History

Merge pull request #2104 from larouxn/update_ruby_and_related_doc

Update Ruby, Rails, and Minitest docs

Simon Legner committed 2 years ago

Commit d5f82e92 parents 0074c41 c9dd0ed5 files · +21 −12Browse files

Unified · Split

5 files
  1. docs/file-scrapers.md +6 −5
  2. lib/docs/filters/rails/entries.rb +1 −1
  3. lib/docs/scrapers/rdoc/minitest.rb +1 −1
  4. lib/docs/scrapers/rdoc/rails.rb +5 −1
  5. lib/docs/scrapers/rdoc/ruby.rb +8 −4
docs/file-scrapers.md+6−5
@@ -242,11 +242,12 @@ done · 241 unmodified lines
242### Ruby / Minitest242### Ruby / Minitest
243### Ruby on Rails243### Ruby on Rails
244* Download a release at https://github.com/rails/rails/releases or clone https://github.com/rails/rails.git (checkout to the branch of the rails' version that is going to be scraped)244* Download a release at https://github.com/rails/rails/releases or clone https://github.com/rails/rails.git (checkout to the branch of the rails' version that is going to be scraped)
245* Open "railties/lib/rails/api/task.rb" and comment out any code related to sdoc ("configure_sdoc")245* Open `railties/lib/rails/api/task.rb` and comment out any code related to sdoc (`configure_sdoc`)
246* Run "bundle install --without db && bundle exec rake rdoc" (in the Rails directory)246* Run `bundle config set --local without 'db job'` (in the Rails directory)
247* Run "cd guides && bundle exec rake guides:generate:html"247* Run `bundle install && bundle exec rake rdoc` (in the Rails directory)
248* Copy the "guides/output" directory to "html/guides"248* Run `cd guides && bundle exec rake guides:generate:html`
249* Copy the "html" directory to "docs/rails~[version]"249* Copy the `guides/output` directory to `html/guides`
250* Copy the `html` directory to `docs/rails~[version]`
250 251
251### Ruby252### Ruby
252Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run253Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run
lib/docs/filters/rails/entries.rb+1−1
@@ -40,7 +40,7 @@ module Docs · 39 unmodified lines
40 40
41 def get_name41 def get_name
42 if slug.start_with?('guides')42 if slug.start_with?('guides')
43 name = at_css('#feature h2').content.strip43 name = at_css('#mainCol h2').content.strip
44 name.remove! %r{\s\(.+\)\z}44 name.remove! %r{\s\(.+\)\z}
45 return name45 return name
46 end46 end
lib/docs/scrapers/rdoc/minitest.rb+1−1
@@ -8,7 +8,7 @@ module Docs · 7 unmodified lines
8 8
9 self.name = 'Ruby / Minitest'9 self.name = 'Ruby / Minitest'
10 self.slug = 'minitest'10 self.slug = 'minitest'
11 self.release = '5.17.0'11 self.release = '5.20.0'
12 self.links = {12 self.links = {
13 code: 'https://github.com/minitest/minitest'13 code: 'https://github.com/minitest/minitest'
14 }14 }
lib/docs/scrapers/rdoc/rails.rb+5−1
@@ -75,8 +75,12 @@ module Docs · 74 unmodified lines
75 end75 end
76 end76 end
77 77
78 version '7.1' do
79 self.release = '7.1.2'
80 end
81
78 version '7.0' do82 version '7.0' do
79 self.release = '7.0.4'83 self.release = '7.0.8'
80 end84 end
81 85
82 version '6.1' do86 version '6.1' do
lib/docs/scrapers/rdoc/ruby.rb+8−4
@@ -69,16 +69,20 @@ module Docs · 68 unmodified lines
69 Licensed under their own licenses.69 Licensed under their own licenses.
70 HTML70 HTML
71 71
72 version '3.3' do
73 self.release = '3.3.0'
74 end
75
72 version '3.2' do76 version '3.2' do
73 self.release = '3.2.0'77 self.release = '3.2.2'
74 end78 end
75 79
76 version '3.1' do80 version '3.1' do
77 self.release = '3.1.3'81 self.release = '3.1.4'
78 end82 end
79 83
80 version '3' do84 version '3' do
81 self.release = '3.0.0'85 self.release = '3.0.6'
82 end86 end
83 87
84 version '2.7' do88 version '2.7' do