History

Update Ruby on Rails documentation (4.2.0)

Thibaut committed 11 years ago

Commit 81041011 parent 722bd402 files · +12 −29Browse files

Unified · Split

2 files
  1. lib/docs/filters/rails/entries.rb +6 −9
  2. lib/docs/scrapers/rdoc/rails.rb +6 −20
lib/docs/filters/rails/entries.rb+6−9
@@ -3,14 +3,19 @@ module Docs · 2 unmodified lines
33 class EntriesFilter < Docs::Rdoc::EntriesFilter
44 TYPE_BY_NAME_MATCHES = {
55 /Assertions|::Test|Fixture/ => 'Testing',
6+ /\AActiveRecord.+mysql/i => 'ActiveRecord/MySQL',
7+ /\AActiveRecord.+postgresql/i => 'ActiveRecord/PostgreSQL',
8+ /\AActiveRecord.+sqlite/i => 'ActiveRecord/SQLite',
69 /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations',
710 /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes',
8− /\AActiveRecord.+(Migration|Schema|Adapters::Table)/ => 'ActiveRecord/Migrations',
11+ /\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection',
912 /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation',
1013 /\A(False|Nil|True)Class/ => 'Boolean' }
1114
1215 TYPE_BY_NAME_STARTS_WITH = {
1316 'ActionDispatch::Integration' => 'Testing',
17+ 'ActionDispatch::Request' => 'ActionDispatch/Request',
18+ 'ActionDispatch::Response' => 'ActionDispatch/Response',
1419 'ActionDispatch::Routing' => 'ActionDispatch/Routing',
1520 'ActionView::Helpers' => 'ActionView/Helpers',
1621 'ActiveModel::Errors' => 'ActiveModel/Validation',
@@ -25,20 +30,12 @@ module Docs · 8 unmodified lines
2530 'ActiveRecord::Scoping' => 'ActiveModel/Query',
2631 'ActiveRecord::SpawnMethods' => 'ActiveModel/Query',
2732 'ActiveSupport::Cach' => 'ActiveSupport/Caching',
28− 'ActiveSupport::Hash' => 'ActiveSupport/Hash',
2933 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector',
30− 'ActiveSupport::Ordered' => 'ActiveSupport/Hash',
3134 'ActiveSupport::Time' => 'ActiveSupport/TimeZones',
3235 'Rails::Application' => 'Rails/Application',
3336 'Rails::Engine' => 'Rails/Engine',
3437 'Rails::Railtie' => 'Rails/Railtie' }
3538
36− def get_name
37− name = super
38− name.sub! 'HashWithIndifferentAccess::HashWithIndifferentAccess', 'HashWithIndifferentAccess'
39− name
40− end
41−
4239 def get_type
4340 parent = at_css('.meta-parent').try(:content).to_s
4441
lib/docs/scrapers/rdoc/rails.rb+6−20
@@ -6,6 +6,7 @@ module Docs · 5 unmodified lines
66 # actionpack \
77 # actionview \
88 # activemodel \
9+ # activejob \
910 # activerecord \
1011 # activesupport \
1112 # railties \
@@ -19,7 +20,7 @@ module Docs · 7 unmodified lines
1920
2021 self.name = 'Ruby on Rails'
2122 self.slug = 'rails'
22− self.version = '4.1.8'
23+ self.version = '4.2.0'
2324 self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Rails'
2425
2526 html_filters.replace 'rdoc/entries', 'rails/entries'
@@ -29,55 +30,40 @@ module Docs · 3 unmodified lines
2930 options[:skip] += %w(
3031 AbstractController/Callbacks.html
3132 AbstractController/UrlFor.html
32− ActionController.html
3333 ActionController/Instrumentation.html
34− ActionController/ModelNaming.html
3534 ActionController/Rendering.html
36− ActionController/Rescue.html
37− ActionController/UrlFor.html
38− ActionDispatch/DebugExceptions.htnl
35+ ActionDispatch/DebugExceptions.html
3936 ActionDispatch/Http/URL.html
40− ActionDispatch/Integration/Runner.html
41− ActionDispatch/Integration/Session.html
37+ ActionDispatch/Journey/Parser.html
4238 ActionDispatch/Reloader.html
4339 ActionDispatch/RequestId.html
4440 ActionDispatch/Routing/HtmlTableFormatter.html
4541 ActionDispatch/Routing/Mapper.html
42+ ActionDispatch/Routing/RouteSet.html
4643 ActionDispatch/ShowExceptions.html
47− ActionView.html
48− ActionView/Context.html
4944 ActionView/FileSystemResolver.html
5045 ActionView/FixtureResolver.html
5146 ActionView/LogSubscriber.html
52− ActionView/ModelNaming.html
5347 ActionView/Template/Handlers/Erubis.html
54− ActiveModel.html
55− ActiveRecord.html
48+ ActionView/TestCase/Behavior/RenderedViewsCollection.html
5649 ActiveRecord/DynamicMatchers/Finder.html
5750 ActiveRecord/Sanitization.html
5851 ActiveRecord/Tasks/DatabaseTasks.html
59− ActiveSupport.html
6052 ActiveSupport/Configurable/Configuration.html
6153 ActiveSupport/Dependencies/WatchStack.html
6254 ActiveSupport/DescendantsTracker.html
6355 ActiveSupport/FileUpdateChecker.html
6456 ActiveSupport/Notifications/Fanout.html
65− ActiveSupport/Testing/ConstantLookup.html
66− ActiveSupport/Testing/Declarative.html
6757 ActiveSupport/Testing/Isolation/Subprocess.html
6858 Rails/API/Task.html)
6959
7060 options[:skip_patterns] = [
71− /\AAbstractController\/ViewPaths/,
7261 /\AActionController\/Caching(?!\/Fragments|\.)/,
73− /\AActionController\/HideActions/,
7462 /\AActionController\/RequestForgeryProtection\/ProtectionMethods/,
7563 /\AActionController\/Testing/,
7664 /\AActionDispatch\/RemoteIp/,
7765 /\AActionView\/LookupContext/,
7866 /\AActionView\/Resolver/,
79− /\AActiveRecord\/ConnectionAdapters\/(?!DatabaseStatements|SchemaStatements|Table)/,
80− /\AActiveSupport\/JSON\//,
8167 /\AActiveSupport\/Multibyte\/Unicode\//,
8268 /\AActiveSupport\/XML/i,
8369 /\ASourceAnnotationExtractor/]