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
3 class EntriesFilter < Docs::Rdoc::EntriesFilter3 class EntriesFilter < Docs::Rdoc::EntriesFilter
4 TYPE_BY_NAME_MATCHES = {4 TYPE_BY_NAME_MATCHES = {
5 /Assertions|::Test|Fixture/ => 'Testing',5 /Assertions|::Test|Fixture/ => 'Testing',
6 /\AActiveRecord.+mysql/i => 'ActiveRecord/MySQL',
7 /\AActiveRecord.+postgresql/i => 'ActiveRecord/PostgreSQL',
8 /\AActiveRecord.+sqlite/i => 'ActiveRecord/SQLite',
6 /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations',9 /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations',
7 /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes',10 /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes',
8 /\AActiveRecord.+(Migration|Schema|Adapters::Table)/ => 'ActiveRecord/Migrations',11 /\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection',
9 /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation',12 /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation',
10 /\A(False|Nil|True)Class/ => 'Boolean' }13 /\A(False|Nil|True)Class/ => 'Boolean' }
11 14
12 TYPE_BY_NAME_STARTS_WITH = {15 TYPE_BY_NAME_STARTS_WITH = {
13 'ActionDispatch::Integration' => 'Testing',16 'ActionDispatch::Integration' => 'Testing',
17 'ActionDispatch::Request' => 'ActionDispatch/Request',
18 'ActionDispatch::Response' => 'ActionDispatch/Response',
14 'ActionDispatch::Routing' => 'ActionDispatch/Routing',19 'ActionDispatch::Routing' => 'ActionDispatch/Routing',
15 'ActionView::Helpers' => 'ActionView/Helpers',20 'ActionView::Helpers' => 'ActionView/Helpers',
16 'ActiveModel::Errors' => 'ActiveModel/Validation',21 'ActiveModel::Errors' => 'ActiveModel/Validation',
@@ -25,20 +30,12 @@ module Docs · 8 unmodified lines
25 'ActiveRecord::Scoping' => 'ActiveModel/Query',30 'ActiveRecord::Scoping' => 'ActiveModel/Query',
26 'ActiveRecord::SpawnMethods' => 'ActiveModel/Query',31 'ActiveRecord::SpawnMethods' => 'ActiveModel/Query',
27 'ActiveSupport::Cach' => 'ActiveSupport/Caching',32 'ActiveSupport::Cach' => 'ActiveSupport/Caching',
28 'ActiveSupport::Hash' => 'ActiveSupport/Hash',
29 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector',33 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector',
30 'ActiveSupport::Ordered' => 'ActiveSupport/Hash',
31 'ActiveSupport::Time' => 'ActiveSupport/TimeZones',34 'ActiveSupport::Time' => 'ActiveSupport/TimeZones',
32 'Rails::Application' => 'Rails/Application',35 'Rails::Application' => 'Rails/Application',
33 'Rails::Engine' => 'Rails/Engine',36 'Rails::Engine' => 'Rails/Engine',
34 'Rails::Railtie' => 'Rails/Railtie' }37 'Rails::Railtie' => 'Rails/Railtie' }
35 38
36 def get_name
37 name = super
38 name.sub! 'HashWithIndifferentAccess::HashWithIndifferentAccess', 'HashWithIndifferentAccess'
39 name
40 end
41
42 def get_type39 def get_type
43 parent = at_css('.meta-parent').try(:content).to_s40 parent = at_css('.meta-parent').try(:content).to_s
44 41
lib/docs/scrapers/rdoc/rails.rb+6−20
@@ -6,6 +6,7 @@ module Docs · 5 unmodified lines
6 # actionpack \6 # actionpack \
7 # actionview \7 # actionview \
8 # activemodel \8 # activemodel \
9 # activejob \
9 # activerecord \10 # activerecord \
10 # activesupport \11 # activesupport \
11 # railties \12 # railties \
@@ -19,7 +20,7 @@ module Docs · 7 unmodified lines
19 20
20 self.name = 'Ruby on Rails'21 self.name = 'Ruby on Rails'
21 self.slug = 'rails'22 self.slug = 'rails'
22 self.version = '4.1.8'23 self.version = '4.2.0'
23 self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Rails'24 self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Rails'
24 25
25 html_filters.replace 'rdoc/entries', 'rails/entries'26 html_filters.replace 'rdoc/entries', 'rails/entries'
@@ -29,55 +30,40 @@ module Docs · 3 unmodified lines
29 options[:skip] += %w(30 options[:skip] += %w(
30 AbstractController/Callbacks.html31 AbstractController/Callbacks.html
31 AbstractController/UrlFor.html32 AbstractController/UrlFor.html
32 ActionController.html
33 ActionController/Instrumentation.html33 ActionController/Instrumentation.html
34 ActionController/ModelNaming.html
35 ActionController/Rendering.html34 ActionController/Rendering.html
36 ActionController/Rescue.html35 ActionDispatch/DebugExceptions.html
37 ActionController/UrlFor.html
38 ActionDispatch/DebugExceptions.htnl
39 ActionDispatch/Http/URL.html36 ActionDispatch/Http/URL.html
40 ActionDispatch/Integration/Runner.html37 ActionDispatch/Journey/Parser.html
41 ActionDispatch/Integration/Session.html
42 ActionDispatch/Reloader.html38 ActionDispatch/Reloader.html
43 ActionDispatch/RequestId.html39 ActionDispatch/RequestId.html
44 ActionDispatch/Routing/HtmlTableFormatter.html40 ActionDispatch/Routing/HtmlTableFormatter.html
45 ActionDispatch/Routing/Mapper.html41 ActionDispatch/Routing/Mapper.html
42 ActionDispatch/Routing/RouteSet.html
46 ActionDispatch/ShowExceptions.html43 ActionDispatch/ShowExceptions.html
47 ActionView.html
48 ActionView/Context.html
49 ActionView/FileSystemResolver.html44 ActionView/FileSystemResolver.html
50 ActionView/FixtureResolver.html45 ActionView/FixtureResolver.html
51 ActionView/LogSubscriber.html46 ActionView/LogSubscriber.html
52 ActionView/ModelNaming.html
53 ActionView/Template/Handlers/Erubis.html47 ActionView/Template/Handlers/Erubis.html
54 ActiveModel.html48 ActionView/TestCase/Behavior/RenderedViewsCollection.html
55 ActiveRecord.html
56 ActiveRecord/DynamicMatchers/Finder.html49 ActiveRecord/DynamicMatchers/Finder.html
57 ActiveRecord/Sanitization.html50 ActiveRecord/Sanitization.html
58 ActiveRecord/Tasks/DatabaseTasks.html51 ActiveRecord/Tasks/DatabaseTasks.html
59 ActiveSupport.html
60 ActiveSupport/Configurable/Configuration.html52 ActiveSupport/Configurable/Configuration.html
61 ActiveSupport/Dependencies/WatchStack.html53 ActiveSupport/Dependencies/WatchStack.html
62 ActiveSupport/DescendantsTracker.html54 ActiveSupport/DescendantsTracker.html
63 ActiveSupport/FileUpdateChecker.html55 ActiveSupport/FileUpdateChecker.html
64 ActiveSupport/Notifications/Fanout.html56 ActiveSupport/Notifications/Fanout.html
65 ActiveSupport/Testing/ConstantLookup.html
66 ActiveSupport/Testing/Declarative.html
67 ActiveSupport/Testing/Isolation/Subprocess.html57 ActiveSupport/Testing/Isolation/Subprocess.html
68 Rails/API/Task.html)58 Rails/API/Task.html)
69 59
70 options[:skip_patterns] = [60 options[:skip_patterns] = [
71 /\AAbstractController\/ViewPaths/,
72 /\AActionController\/Caching(?!\/Fragments|\.)/,61 /\AActionController\/Caching(?!\/Fragments|\.)/,
73 /\AActionController\/HideActions/,
74 /\AActionController\/RequestForgeryProtection\/ProtectionMethods/,62 /\AActionController\/RequestForgeryProtection\/ProtectionMethods/,
75 /\AActionController\/Testing/,63 /\AActionController\/Testing/,
76 /\AActionDispatch\/RemoteIp/,64 /\AActionDispatch\/RemoteIp/,
77 /\AActionView\/LookupContext/,65 /\AActionView\/LookupContext/,
78 /\AActionView\/Resolver/,66 /\AActionView\/Resolver/,
79 /\AActiveRecord\/ConnectionAdapters\/(?!DatabaseStatements|SchemaStatements|Table)/,
80 /\AActiveSupport\/JSON\//,
81 /\AActiveSupport\/Multibyte\/Unicode\//,67 /\AActiveSupport\/Multibyte\/Unicode\//,
82 /\AActiveSupport\/XML/i,68 /\AActiveSupport\/XML/i,
83 /\ASourceAnnotationExtractor/]69 /\ASourceAnnotationExtractor/]