History

Update Ruby on Rails documentation (5.0.0, 4.2.6, 4.1.15)

Thibaut Courouble committed 10 years ago

Commit d5d96f21 parent eac1ec72 files · +35 −44Browse files

Unified · Split

2 files
  1. lib/docs/filters/rails/entries.rb +26 −24
  2. lib/docs/scrapers/rdoc/rails.rb +9 −20
lib/docs/filters/rails/entries.rb+26−24
@@ -9,32 +9,34 @@ module Docs · 8 unmodified lines
99 /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations',
1010 /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes',
1111 /\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection',
12− /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation',
13− /\A(False|Nil|True)Class/ => 'Boolean' }
12+ /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation' }
1413
1514 TYPE_BY_NAME_STARTS_WITH = {
16− 'ActionDispatch::Integration' => 'Testing',
17− 'ActionDispatch::Request' => 'ActionDispatch/Request',
18− 'ActionDispatch::Response' => 'ActionDispatch/Response',
19− 'ActionDispatch::Routing' => 'ActionDispatch/Routing',
20− 'ActionView::Helpers' => 'ActionView/Helpers',
21− 'ActiveModel::Errors' => 'ActiveModel/Validation',
22− 'ActiveModel::Valid' => 'ActiveModel/Validation',
23− 'ActiveRecord::Batches' => 'ActiveModel/Query',
24− 'ActiveRecord::Calculations' => 'ActiveModel/Query',
25− 'ActiveRecord::Connection' => 'ActiveModel/Connection',
26− 'ActiveRecord::FinderMethods' => 'ActiveModel/Query',
27− 'ActiveRecord::Query' => 'ActiveModel/Query',
28− 'ActiveRecord::Relation' => 'ActiveModel/Relation',
29− 'ActiveRecord::Result' => 'ActiveModel/Connection',
30− 'ActiveRecord::Scoping' => 'ActiveModel/Query',
31− 'ActiveRecord::SpawnMethods' => 'ActiveModel/Query',
32− 'ActiveSupport::Cach' => 'ActiveSupport/Caching',
33− 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector',
34− 'ActiveSupport::Time' => 'ActiveSupport/TimeZones',
35− 'Rails::Application' => 'Rails/Application',
36− 'Rails::Engine' => 'Rails/Engine',
37− 'Rails::Railtie' => 'Rails/Railtie' }
15+ 'ActionController::Parameters' => 'ActionController/Parameters',
16+ 'ActionDispatch::Integration' => 'Testing',
17+ 'ActionDispatch::Request' => 'ActionDispatch/Request',
18+ 'ActionDispatch::Response' => 'ActionDispatch/Response',
19+ 'ActionDispatch::Routing' => 'ActionDispatch/Routing',
20+ 'ActionView::Helpers' => 'ActionView/Helpers',
21+ 'ActiveModel::Errors' => 'ActiveModel/Validation',
22+ 'ActiveModel::Valid' => 'ActiveModel/Validation',
23+ 'ActiveRecord::Batches' => 'ActiveRecord/Query',
24+ 'ActiveRecord::Calculations' => 'ActiveRecord/Query',
25+ 'ActiveRecord::Connection' => 'ActiveRecord/Connection',
26+ 'ActiveRecord::FinderMethods' => 'ActiveRecord/Query',
27+ 'ActiveRecord::Migra' => 'ActiveRecord/Migration',
28+ 'ActiveRecord::Query' => 'ActiveRecord/Query',
29+ 'ActiveRecord::Relation' => 'ActiveRecord/Relation',
30+ 'ActiveRecord::Result' => 'ActiveRecord/Connection',
31+ 'ActiveRecord::Scoping' => 'ActiveRecord/Query',
32+ 'ActiveRecord::SpawnMethods' => 'ActiveRecord/Query',
33+ 'ActiveSupport::Cach' => 'ActiveSupport/Caching',
34+ 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector',
35+ 'ActiveSupport::Time' => 'ActiveSupport/TimeZones',
36+ 'Rails::Application' => 'Rails/Application',
37+ 'Rails::Engine' => 'Rails/Engine',
38+ 'Rails::Generators' => 'Rails/Generators',
39+ 'Rails::Railtie' => 'Rails/Railtie' }
3840
3941 def get_type
4042 parent = at_css('.meta-parent').try(:content).to_s
lib/docs/scrapers/rdoc/rails.rb+9−20
@@ -13,54 +13,43 @@ module Docs · 12 unmodified lines
1313 options[:root_title] = 'Ruby on Rails'
1414
1515 options[:skip] += %w(
16− AbstractController/Callbacks.html
17− AbstractController/UrlFor.html
1816 ActionController/Instrumentation.html
1917 ActionController/Rendering.html
2018 ActionDispatch/DebugExceptions.html
21− ActionDispatch/Http/URL.html
2219 ActionDispatch/Journey/Parser.html
2320 ActionDispatch/Reloader.html
24− ActionDispatch/RequestId.html
2521 ActionDispatch/Routing/HtmlTableFormatter.html
26− ActionDispatch/Routing/Mapper.html
27− ActionDispatch/Routing/RouteSet.html
2822 ActionDispatch/ShowExceptions.html
29− ActionView/FileSystemResolver.html
3023 ActionView/FixtureResolver.html
3124 ActionView/LogSubscriber.html
32− ActionView/Template/Handlers/Erubis.html
3325 ActionView/TestCase/Behavior/RenderedViewsCollection.html
34− ActiveRecord/DynamicMatchers/Finder.html
35− ActiveRecord/Sanitization.html
3626 ActiveRecord/Tasks/DatabaseTasks.html
37− ActiveSupport/Configurable/Configuration.html
3827 ActiveSupport/Dependencies/WatchStack.html
39− ActiveSupport/DescendantsTracker.html
40− ActiveSupport/FileUpdateChecker.html
41− ActiveSupport/Notifications/Fanout.html
42− ActiveSupport/Testing/Isolation/Subprocess.html
43− Rails/API/Task.html)
28+ ActiveSupport/Notifications/Fanout.html)
4429
4530 options[:skip_patterns] += [
46− /\AActionController\/Caching(?!\/Fragments|\.)/,
47− /\AActionController\/RequestForgeryProtection\/ProtectionMethods/,
4831 /\AActionController\/Testing/,
49− /\AActionDispatch\/RemoteIp/,
5032 /\AActionView\/LookupContext/,
5133 /\AActionView\/Resolver/,
5234 /\AActiveSupport\/Multibyte\/Unicode\//,
5335 /\AActiveSupport\/XML/i,
5436 /\ASourceAnnotationExtractor/,
5537 /\AI18n\/Railtie/,
38+ /\AMinitest/,
39+ /\ARails\/API/,
5640 /\ARails\/AppBuilder/,
57− /\ARails\/PluginBuilder/]
41+ /\ARails\/PluginBuilder/,
42+ /\ARails\/Generators\/Testing/]
5843
5944 options[:attribution] = <<-HTML
6045 &copy; 2004&ndash;2016 David Heinemeier Hansson<br>
6146 Licensed under the MIT License.
6247 HTML
6348
49+ version '5.0' do
50+ self.release = '5.0.0'
51+ end
52+
6453 version '4.2' do
6554 self.release = '4.2.6'
6655 end