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

pull/438/head
Thibaut Courouble 9 years ago
parent eac1ec7772
commit d5d96f2d42

@ -9,32 +9,34 @@ module Docs
/\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations', /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations',
/\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes', /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes',
/\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection', /\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection',
/\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation', /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation' }
/\A(False|Nil|True)Class/ => 'Boolean' }
TYPE_BY_NAME_STARTS_WITH = { TYPE_BY_NAME_STARTS_WITH = {
'ActionDispatch::Integration' => 'Testing', 'ActionController::Parameters' => 'ActionController/Parameters',
'ActionDispatch::Request' => 'ActionDispatch/Request', 'ActionDispatch::Integration' => 'Testing',
'ActionDispatch::Response' => 'ActionDispatch/Response', 'ActionDispatch::Request' => 'ActionDispatch/Request',
'ActionDispatch::Routing' => 'ActionDispatch/Routing', 'ActionDispatch::Response' => 'ActionDispatch/Response',
'ActionView::Helpers' => 'ActionView/Helpers', 'ActionDispatch::Routing' => 'ActionDispatch/Routing',
'ActiveModel::Errors' => 'ActiveModel/Validation', 'ActionView::Helpers' => 'ActionView/Helpers',
'ActiveModel::Valid' => 'ActiveModel/Validation', 'ActiveModel::Errors' => 'ActiveModel/Validation',
'ActiveRecord::Batches' => 'ActiveModel/Query', 'ActiveModel::Valid' => 'ActiveModel/Validation',
'ActiveRecord::Calculations' => 'ActiveModel/Query', 'ActiveRecord::Batches' => 'ActiveRecord/Query',
'ActiveRecord::Connection' => 'ActiveModel/Connection', 'ActiveRecord::Calculations' => 'ActiveRecord/Query',
'ActiveRecord::FinderMethods' => 'ActiveModel/Query', 'ActiveRecord::Connection' => 'ActiveRecord/Connection',
'ActiveRecord::Query' => 'ActiveModel/Query', 'ActiveRecord::FinderMethods' => 'ActiveRecord/Query',
'ActiveRecord::Relation' => 'ActiveModel/Relation', 'ActiveRecord::Migra' => 'ActiveRecord/Migration',
'ActiveRecord::Result' => 'ActiveModel/Connection', 'ActiveRecord::Query' => 'ActiveRecord/Query',
'ActiveRecord::Scoping' => 'ActiveModel/Query', 'ActiveRecord::Relation' => 'ActiveRecord/Relation',
'ActiveRecord::SpawnMethods' => 'ActiveModel/Query', 'ActiveRecord::Result' => 'ActiveRecord/Connection',
'ActiveSupport::Cach' => 'ActiveSupport/Caching', 'ActiveRecord::Scoping' => 'ActiveRecord/Query',
'ActiveSupport::Inflector' => 'ActiveSupport/Inflector', 'ActiveRecord::SpawnMethods' => 'ActiveRecord/Query',
'ActiveSupport::Time' => 'ActiveSupport/TimeZones', 'ActiveSupport::Cach' => 'ActiveSupport/Caching',
'Rails::Application' => 'Rails/Application', 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector',
'Rails::Engine' => 'Rails/Engine', 'ActiveSupport::Time' => 'ActiveSupport/TimeZones',
'Rails::Railtie' => 'Rails/Railtie' } 'Rails::Application' => 'Rails/Application',
'Rails::Engine' => 'Rails/Engine',
'Rails::Generators' => 'Rails/Generators',
'Rails::Railtie' => 'Rails/Railtie' }
def get_type def get_type
parent = at_css('.meta-parent').try(:content).to_s parent = at_css('.meta-parent').try(:content).to_s

@ -13,54 +13,43 @@ module Docs
options[:root_title] = 'Ruby on Rails' options[:root_title] = 'Ruby on Rails'
options[:skip] += %w( options[:skip] += %w(
AbstractController/Callbacks.html
AbstractController/UrlFor.html
ActionController/Instrumentation.html ActionController/Instrumentation.html
ActionController/Rendering.html ActionController/Rendering.html
ActionDispatch/DebugExceptions.html ActionDispatch/DebugExceptions.html
ActionDispatch/Http/URL.html
ActionDispatch/Journey/Parser.html ActionDispatch/Journey/Parser.html
ActionDispatch/Reloader.html ActionDispatch/Reloader.html
ActionDispatch/RequestId.html
ActionDispatch/Routing/HtmlTableFormatter.html ActionDispatch/Routing/HtmlTableFormatter.html
ActionDispatch/Routing/Mapper.html
ActionDispatch/Routing/RouteSet.html
ActionDispatch/ShowExceptions.html ActionDispatch/ShowExceptions.html
ActionView/FileSystemResolver.html
ActionView/FixtureResolver.html ActionView/FixtureResolver.html
ActionView/LogSubscriber.html ActionView/LogSubscriber.html
ActionView/Template/Handlers/Erubis.html
ActionView/TestCase/Behavior/RenderedViewsCollection.html ActionView/TestCase/Behavior/RenderedViewsCollection.html
ActiveRecord/DynamicMatchers/Finder.html
ActiveRecord/Sanitization.html
ActiveRecord/Tasks/DatabaseTasks.html ActiveRecord/Tasks/DatabaseTasks.html
ActiveSupport/Configurable/Configuration.html
ActiveSupport/Dependencies/WatchStack.html ActiveSupport/Dependencies/WatchStack.html
ActiveSupport/DescendantsTracker.html ActiveSupport/Notifications/Fanout.html)
ActiveSupport/FileUpdateChecker.html
ActiveSupport/Notifications/Fanout.html
ActiveSupport/Testing/Isolation/Subprocess.html
Rails/API/Task.html)
options[:skip_patterns] += [ options[:skip_patterns] += [
/\AActionController\/Caching(?!\/Fragments|\.)/,
/\AActionController\/RequestForgeryProtection\/ProtectionMethods/,
/\AActionController\/Testing/, /\AActionController\/Testing/,
/\AActionDispatch\/RemoteIp/,
/\AActionView\/LookupContext/, /\AActionView\/LookupContext/,
/\AActionView\/Resolver/, /\AActionView\/Resolver/,
/\AActiveSupport\/Multibyte\/Unicode\//, /\AActiveSupport\/Multibyte\/Unicode\//,
/\AActiveSupport\/XML/i, /\AActiveSupport\/XML/i,
/\ASourceAnnotationExtractor/, /\ASourceAnnotationExtractor/,
/\AI18n\/Railtie/, /\AI18n\/Railtie/,
/\AMinitest/,
/\ARails\/API/,
/\ARails\/AppBuilder/, /\ARails\/AppBuilder/,
/\ARails\/PluginBuilder/] /\ARails\/PluginBuilder/,
/\ARails\/Generators\/Testing/]
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2004&ndash;2016 David Heinemeier Hansson<br> &copy; 2004&ndash;2016 David Heinemeier Hansson<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
version '5.0' do
self.release = '5.0.0'
end
version '4.2' do version '4.2' do
self.release = '4.2.6' self.release = '4.2.6'
end end

Loading…
Cancel
Save