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
Provenance
- Commit
a4756fd- Tree
b36cc39- Author
William Langford <wlangfor@gmail.com>- Committer
Nico Williams <nico@cryptonector.com>- Parent
15be4e7
6 files changed+5 added−226 removed
deleted:docs/Gemfile-7 removed
1-source "https://rubygems.org"2-3-gem "rake"4-gem "bonsai"5-gem "maruku"6-gem "ronn"7-gem "mustache", "<1.0" # to support ruby <2.0deleted:docs/Gemfile.lock-63 removed
1-GEM2- 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)54-55-PLATFORMS56- ruby57-58-DEPENDENCIES59- bonsai60- maruku61- mustache (< 1.0)62- rake63- ronndeleted:docs/Rakefile-24 removed
1-current_dir = File.dirname(__FILE__)2-rakefile_manual = File.expand_path(File.join(current_dir, "Rakefile.manual"))3-rakefile_website = File.expand_path(File.join(current_dir, "Rakefile.website"))4-5-desc "Build the manpage from the bonsai source of the manual"6-task :manpage do7- system %(#{$0} -f #{rakefile_manual} manpage)8-end9-10-desc "Collect jq unit test cases from the bonsai source of the manual"11-task :mantests do12- system %(#{$0} -f #{rakefile_manual} mantests)13-end14-15-desc "Build the website from the bonsai sources"16-task :build do17- system %(#{$0} -f #{rakefile_website} build)18-end19-20-desc "Serve a live view of the website on http://localhost:5000/jq/"21-task :serve do22- system %(#{$0} -f #{rakefile_website} serve)23-end24-deleted:docs/Rakefile.manual-49 removed
1-require 'ronn'2-require 'tempfile'3-require 'yaml'4-5-def load_manual6- YAML::load(File.open("content/3.manual/manual.yml"))7-end8-9-task :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|15-16- 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- end36-end37-38-task :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- end49-enddeleted:docs/Rakefile.website-76 removed
1-require 'bonsai'2-require 'json'3-require 'liquid'4-require 'maruku'5-6-module 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- end29-end30-31-Liquid::Template.register_filter(ExtraFilters)32-33-begin34- `java 2>&1`35-rescue36- class Bonsai::Exporter37- def self.compress_assets38- Bonsai.log "java not found! Not compressing javascript or stylesheets"39- end40- end41-end42-43-task :build do44- Bonsai.root_dir = Dir.pwd45- Bonsai::Exporter.publish!46-end47-48-task :serve do49- begin50- Bonsai.log "Press Control+C to quit"51-52- require 'rack'53- require 'sinatra'54- require 'watch'55- require 'launchy'56-57- Bonsai.root_dir = Dir.pwd58-59- 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- end76-endmodified:Dockerfile+5 added-7 removed
11 unmodified lines12 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 line23 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 lines41 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