Skip to content

Commit

Permalink
Merge pull request #2104 from larouxn/update_ruby_and_related_doc
Browse files Browse the repository at this point in the history
Update Ruby, Rails, and Minitest docs
  • Loading branch information
simon04 authored Jan 5, 2024
2 parents 0074c41 + c9dd0ed commit d5f82e9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 12 deletions.
11 changes: 6 additions & 5 deletions docs/file-scrapers.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,12 @@ done
### Ruby / Minitest
### Ruby on Rails
* 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)
* Open "railties/lib/rails/api/task.rb" and comment out any code related to sdoc ("configure_sdoc")
* Run "bundle install --without db && bundle exec rake rdoc" (in the Rails directory)
* Run "cd guides && bundle exec rake guides:generate:html"
* Copy the "guides/output" directory to "html/guides"
* Copy the "html" directory to "docs/rails~[version]"
* Open `railties/lib/rails/api/task.rb` and comment out any code related to sdoc (`configure_sdoc`)
* Run `bundle config set --local without 'db job'` (in the Rails directory)
* Run `bundle install && bundle exec rake rdoc` (in the Rails directory)
* Run `cd guides && bundle exec rake guides:generate:html`
* Copy the `guides/output` directory to `html/guides`
* Copy the `html` directory to `docs/rails~[version]`

### Ruby
Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run
Expand Down
2 changes: 1 addition & 1 deletion lib/docs/filters/rails/entries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class EntriesFilter < Docs::Rdoc::EntriesFilter

def get_name
if slug.start_with?('guides')
name = at_css('#feature h2').content.strip
name = at_css('#mainCol h2').content.strip
name.remove! %r{\s\(.+\)\z}
return name
end
Expand Down
2 changes: 1 addition & 1 deletion lib/docs/scrapers/rdoc/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Minitest < Rdoc

self.name = 'Ruby / Minitest'
self.slug = 'minitest'
self.release = '5.17.0'
self.release = '5.20.0'
self.links = {
code: 'https://github.com/minitest/minitest'
}
Expand Down
6 changes: 5 additions & 1 deletion lib/docs/scrapers/rdoc/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ class Rails < Rdoc
end
end

version '7.1' do
self.release = '7.1.2'
end

version '7.0' do
self.release = '7.0.4'
self.release = '7.0.8'
end

version '6.1' do
Expand Down
12 changes: 8 additions & 4 deletions lib/docs/scrapers/rdoc/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,20 @@ class Ruby < Rdoc
Licensed under their own licenses.
HTML

version '3.3' do
self.release = '3.3.0'
end

version '3.2' do
self.release = '3.2.0'
self.release = '3.2.2'
end

version '3.1' do
self.release = '3.1.3'
self.release = '3.1.4'
end

version '3' do
self.release = '3.0.0'
self.release = '3.0.6'
end

version '2.7' do
Expand Down

0 comments on commit d5f82e9

Please sign in to comment.