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
9 /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations',9 /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations',
10 /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes',10 /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes',
11 /\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection',11 /\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection',
12 /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation',12 /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation' }
13 /\A(False|Nil|True)Class/ => 'Boolean' }
14 13
15 TYPE_BY_NAME_STARTS_WITH = {14 TYPE_BY_NAME_STARTS_WITH = {
16 'ActionDispatch::Integration' => 'Testing',15 'ActionController::Parameters' => 'ActionController/Parameters',
17 'ActionDispatch::Request' => 'ActionDispatch/Request',16 'ActionDispatch::Integration' => 'Testing',
18 'ActionDispatch::Response' => 'ActionDispatch/Response',17 'ActionDispatch::Request' => 'ActionDispatch/Request',
19 'ActionDispatch::Routing' => 'ActionDispatch/Routing',18 'ActionDispatch::Response' => 'ActionDispatch/Response',
20 'ActionView::Helpers' => 'ActionView/Helpers',19 'ActionDispatch::Routing' => 'ActionDispatch/Routing',
21 'ActiveModel::Errors' => 'ActiveModel/Validation',20 'ActionView::Helpers' => 'ActionView/Helpers',
22 'ActiveModel::Valid' => 'ActiveModel/Validation',21 'ActiveModel::Errors' => 'ActiveModel/Validation',
23 'ActiveRecord::Batches' => 'ActiveModel/Query',22 'ActiveModel::Valid' => 'ActiveModel/Validation',
24 'ActiveRecord::Calculations' => 'ActiveModel/Query',23 'ActiveRecord::Batches' => 'ActiveRecord/Query',
25 'ActiveRecord::Connection' => 'ActiveModel/Connection',24 'ActiveRecord::Calculations' => 'ActiveRecord/Query',
26 'ActiveRecord::FinderMethods' => 'ActiveModel/Query',25 'ActiveRecord::Connection' => 'ActiveRecord/Connection',
27 'ActiveRecord::Query' => 'ActiveModel/Query',26 'ActiveRecord::FinderMethods' => 'ActiveRecord/Query',
28 'ActiveRecord::Relation' => 'ActiveModel/Relation',27 'ActiveRecord::Migra' => 'ActiveRecord/Migration',
29 'ActiveRecord::Result' => 'ActiveModel/Connection',28 'ActiveRecord::Query' => 'ActiveRecord/Query',
30 'ActiveRecord::Scoping' => 'ActiveModel/Query',29 'ActiveRecord::Relation' => 'ActiveRecord/Relation',
31 'ActiveRecord::SpawnMethods' => 'ActiveModel/Query',30 'ActiveRecord::Result' => 'ActiveRecord/Connection',
32 'ActiveSupport::Cach' => 'ActiveSupport/Caching',31 'ActiveRecord::Scoping' => 'ActiveRecord/Query',
33 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector',32 'ActiveRecord::SpawnMethods' => 'ActiveRecord/Query',
34 'ActiveSupport::Time' => 'ActiveSupport/TimeZones',33 'ActiveSupport::Cach' => 'ActiveSupport/Caching',
35 'Rails::Application' => 'Rails/Application',34 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector',
36 'Rails::Engine' => 'Rails/Engine',35 'ActiveSupport::Time' => 'ActiveSupport/TimeZones',
37 'Rails::Railtie' => 'Rails/Railtie' }36 'Rails::Application' => 'Rails/Application',
37 'Rails::Engine' => 'Rails/Engine',
38 'Rails::Generators' => 'Rails/Generators',
39 'Rails::Railtie' => 'Rails/Railtie' }
38 40
39 def get_type41 def get_type
40 parent = at_css('.meta-parent').try(:content).to_s42 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
13 options[:root_title] = 'Ruby on Rails'13 options[:root_title] = 'Ruby on Rails'
14 14
15 options[:skip] += %w(15 options[:skip] += %w(
16 AbstractController/Callbacks.html
17 AbstractController/UrlFor.html
18 ActionController/Instrumentation.html16 ActionController/Instrumentation.html
19 ActionController/Rendering.html17 ActionController/Rendering.html
20 ActionDispatch/DebugExceptions.html18 ActionDispatch/DebugExceptions.html
21 ActionDispatch/Http/URL.html
22 ActionDispatch/Journey/Parser.html19 ActionDispatch/Journey/Parser.html
23 ActionDispatch/Reloader.html20 ActionDispatch/Reloader.html
24 ActionDispatch/RequestId.html
25 ActionDispatch/Routing/HtmlTableFormatter.html21 ActionDispatch/Routing/HtmlTableFormatter.html
26 ActionDispatch/Routing/Mapper.html
27 ActionDispatch/Routing/RouteSet.html
28 ActionDispatch/ShowExceptions.html22 ActionDispatch/ShowExceptions.html
29 ActionView/FileSystemResolver.html
30 ActionView/FixtureResolver.html23 ActionView/FixtureResolver.html
31 ActionView/LogSubscriber.html24 ActionView/LogSubscriber.html
32 ActionView/Template/Handlers/Erubis.html
33 ActionView/TestCase/Behavior/RenderedViewsCollection.html25 ActionView/TestCase/Behavior/RenderedViewsCollection.html
34 ActiveRecord/DynamicMatchers/Finder.html
35 ActiveRecord/Sanitization.html
36 ActiveRecord/Tasks/DatabaseTasks.html26 ActiveRecord/Tasks/DatabaseTasks.html
37 ActiveSupport/Configurable/Configuration.html
38 ActiveSupport/Dependencies/WatchStack.html27 ActiveSupport/Dependencies/WatchStack.html
39 ActiveSupport/DescendantsTracker.html28 ActiveSupport/Notifications/Fanout.html)
40 ActiveSupport/FileUpdateChecker.html
41 ActiveSupport/Notifications/Fanout.html
42 ActiveSupport/Testing/Isolation/Subprocess.html
43 Rails/API/Task.html)
44 29
45 options[:skip_patterns] += [30 options[:skip_patterns] += [
46 /\AActionController\/Caching(?!\/Fragments|\.)/,
47 /\AActionController\/RequestForgeryProtection\/ProtectionMethods/,
48 /\AActionController\/Testing/,31 /\AActionController\/Testing/,
49 /\AActionDispatch\/RemoteIp/,
50 /\AActionView\/LookupContext/,32 /\AActionView\/LookupContext/,
51 /\AActionView\/Resolver/,33 /\AActionView\/Resolver/,
52 /\AActiveSupport\/Multibyte\/Unicode\//,34 /\AActiveSupport\/Multibyte\/Unicode\//,
53 /\AActiveSupport\/XML/i,35 /\AActiveSupport\/XML/i,
54 /\ASourceAnnotationExtractor/,36 /\ASourceAnnotationExtractor/,
55 /\AI18n\/Railtie/,37 /\AI18n\/Railtie/,
38 /\AMinitest/,
39 /\ARails\/API/,
56 /\ARails\/AppBuilder/,40 /\ARails\/AppBuilder/,
57 /\ARails\/PluginBuilder/]41 /\ARails\/PluginBuilder/,
42 /\ARails\/Generators\/Testing/]
58 43
59 options[:attribution] = <<-HTML44 options[:attribution] = <<-HTML
60 &copy; 2004&ndash;2016 David Heinemeier Hansson<br>45 &copy; 2004&ndash;2016 David Heinemeier Hansson<br>
61 Licensed under the MIT License.46 Licensed under the MIT License.
62 HTML47 HTML
63 48
49 version '5.0' do
50 self.release = '5.0.0'
51 end
52
64 version '4.2' do53 version '4.2' do
65 self.release = '4.2.6'54 self.release = '4.2.6'
66 end55 end