Skip to content
Myr

Cleanup leftover references to ruby

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by William Langford · committed by Nico Williams · parent 15be4e7 · Browse files · 6 files+5 added−226 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+5 added−226 removed

  • other:+5 added−226 removed

6 files+5 added−226 removed

deleted:docs/Gemfile-7 removed
1source "https://rubygems.org"23gem "rake"4gem "bonsai"5gem "maruku"6gem "ronn"7gem "mustache", "<1.0" # to support ruby <2.0
deleted:docs/Gemfile.lock-63 removed
1GEM2 remote: https://rubygems.org/3 specs:4 activesupport (4.2.3)5 i18n (~> 0.7)6 json (~> 1.7, >= 1.7.7)7 minitest (~> 5.1)8 thread_safe (~> 0.3, >= 0.3.4)9 tzinfo (~> 1.1)10 addressable (2.3.8)11 bonsai (1.4.9)12 activesupport (>= 3.0.3)13 builder (>= 3.0.0)14 i18n (>= 0.5.0)15 launchy (>= 0.3.7)16 liquid (>= 2.2.2)17 maruku (>= 0.6.0)18 rack19 sass20 sinatra (>= 1.0)21 tilt (>= 1.3)22 watch (>= 0.1.0)23 yui-compressor24 builder (3.2.2)25 hpricot (0.8.6)26 i18n (0.7.0)27 json (1.8.3)28 launchy (2.4.3)29 addressable (~> 2.3)30 liquid (3.0.6)31 maruku (0.7.2)32 minitest (5.8.0)33 mustache (0.99.8)34 rack (1.6.4)35 rack-protection (1.5.3)36 rack37 rake (10.4.2)38 rdiscount (2.1.8)39 ronn (0.7.3)40 hpricot (>= 0.8.2)41 mustache (>= 0.7.0)42 rdiscount (>= 1.5.8)43 sass (3.4.16)44 sinatra (1.4.6)45 rack (~> 1.4)46 rack-protection (~> 1.4)47 tilt (>= 1.3, < 3)48 thread_safe (0.3.5)49 tilt (2.0.1)50 tzinfo (1.2.2)51 thread_safe (~> 0.1)52 watch (0.1.0)53 yui-compressor (0.12.0)5455PLATFORMS56 ruby5758DEPENDENCIES59 bonsai60 maruku61 mustache (< 1.0)62 rake63 ronn
deleted:docs/Rakefile-24 removed
1current_dir = File.dirname(__FILE__)2rakefile_manual = File.expand_path(File.join(current_dir, "Rakefile.manual"))3rakefile_website = File.expand_path(File.join(current_dir, "Rakefile.website"))45desc "Build the manpage from the bonsai source of the manual"6task :manpage do7 system %(#{$0} -f #{rakefile_manual} manpage)8end910desc "Collect jq unit test cases from the bonsai source of the manual"11task :mantests do12 system %(#{$0} -f #{rakefile_manual} mantests)13end1415desc "Build the website from the bonsai sources"16task :build do17 system %(#{$0} -f #{rakefile_website} build)18end1920desc "Serve a live view of the website on http://localhost:5000/jq/"21task :serve do22 system %(#{$0} -f #{rakefile_website} serve)23end24
deleted:docs/Rakefile.manual-49 removed
1require 'ronn'2require 'tempfile'3require 'yaml'45def load_manual6 YAML::load(File.open("content/3.manual/manual.yml"))7end89task :manpage do10 Tempfile.open "manpage" do |f|11 manual = load_manual12 f.puts manual['manpage_intro']13 f.puts manual['body']14 manual['sections'].each do |section|1516 f.puts "## #{section['title'].upcase}\n"17 f.puts section['body']18 f.puts ""19 (section['entries'] || []).each do |entry|20 f.puts "### #{entry['title']}\n"21 f.puts entry['body']22 f.puts ""23 (entry['examples'] || []).each do |example|24 f.puts " jq '#{example['program']}'"25 f.puts " #{example['input']}"26 f.puts " => #{example['output'].join(", ")}"27 f.puts28 end29 end30 f.puts ""31 end32 f.puts manual['manpage_epilogue']33 f.close34 puts Ronn::Document.new(f.path).convert('roff').gsub(/<\/?code>/,"")35 end36end3738task :mantests do39 load_manual['sections'].each do |section|40 (section['entries'] || []).each do |entry|41 (entry['examples'] || []).each do |example|42 puts example['program'].gsub("\n", " ")43 puts example['input']44 example['output'].each do |s| puts s end45 puts46 end47 end48 end49end
deleted:docs/Rakefile.website-76 removed
1require 'bonsai'2require 'json'3require 'liquid'4require 'maruku'56module ExtraFilters7 def markdownify(input)8 Maruku.new(input).to_html9 end10 def search_id(input)11 input.gsub(/`/, '')12 end13 def section_id(input)14 input.gsub(/[^a-zA-Z0-9_]/, '')15 end16 def entry_id(input)17 input.gsub(/[ `]/, '')18 end19 def no_paragraph(input)20 input.gsub('<p>', '').gsub('</p>', '')21 end22 def json(input)23 input.to_json24 end25 def unique(input)26 @n = (@n || 0) + 127 input + @n.to_s28 end29end3031Liquid::Template.register_filter(ExtraFilters)3233begin34 `java 2>&1`35rescue36 class Bonsai::Exporter37 def self.compress_assets38 Bonsai.log "java not found! Not compressing javascript or stylesheets"39 end40 end41end4243task :build do44 Bonsai.root_dir = Dir.pwd45 Bonsai::Exporter.publish!46end4748task :serve do49 begin50 Bonsai.log "Press Control+C to quit"5152 require 'rack'53 require 'sinatra'54 require 'watch'55 require 'launchy'5657 Bonsai.root_dir = Dir.pwd5859 server = fork {60 app = Rack::Builder.app {61 map "/jq" do62 use Bonsai::StaticPassThrough, :root => Bonsai.root_dir + "/output", :urls => ["/"]63 end64 run Bonsai::DevelopmentServer65 }66 Rack::Handler.default.run(app, :Port => 5000) do67 Launchy.open("http://localhost:5000/jq/")68 end69 }70 Watch.new("{content,templates,public}/**/*") { Bonsai::Exporter.process! }71 rescue Interrupt72 Process.kill("QUIT", server)73 Process.wait(server)74 exit75 end76end
modified:Dockerfile+5 added-7 removed
11 unmodified lines
12 libtool \13 git \14 bison \15 flex \16 ruby \17 wget \18 ruby-dev && \16 python3 \17 wget && \18 wget https://github.com/kkos/oniguruma/archive/v5.9.6.tar.gz -O onig-5.9.6.tar.gz && \19 sha512sum onig-5.9.6.tar.gz | grep 6b048d345e148c9da38af7a8df76d4a358eb3d4db91fa7834076e511f526a63544284f212b0d56badbbd33112c8b458a5fff02bfbbda012ecfe478bc436ea679 && \20 tar zxvf onig-5.9.6.tar.gz && \21 (cd oniguruma-5.9.6 && \
1 unmodified line
23 autoreconf -i && \24 ./configure --prefix=/usr/local && \25 make && \26 make install ) && \28 gem install bundler && \29 (cd /app/docs && bundle install) && \27 pip3 install pipenv && \28 (cd /app/docs && pipenv sync) && \29 (cd /app && \30 autoreconf -i && \31 ./configure --disable-valgrind --enable-all-static --prefix=/usr/local && \32 make -j8 && \
8 unmodified lines
41 libtool \42 bison \43 git \44 flex \46 ruby \47 ruby-dev && \45 python3 && \46 apt-get autoremove -y && \47 rm -rf oniguruma-5.9.6 && \48 rm -rf /var/lib/apt/lists/* /var/lib/gems49
2 unmodified lines