railties 3.1.12 → 3.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. data/CHANGELOG.md +2292 -41
  2. data/README.rdoc +14 -5
  3. data/bin/rails +7 -0
  4. data/guides/code/getting_started/Gemfile +27 -0
  5. data/guides/code/getting_started/README.rdoc +261 -0
  6. data/guides/code/getting_started/Rakefile +7 -0
  7. data/guides/code/getting_started/app/assets/images/rails.png +0 -0
  8. data/guides/code/getting_started/app/assets/javascripts/application.js +9 -0
  9. data/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +3 -0
  10. data/guides/code/getting_started/app/assets/javascripts/home.js.coffee +3 -0
  11. data/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +3 -0
  12. data/guides/code/getting_started/app/assets/stylesheets/application.css +7 -0
  13. data/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +3 -0
  14. data/guides/code/getting_started/app/assets/stylesheets/home.css.scss +3 -0
  15. data/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +3 -0
  16. data/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss +56 -0
  17. data/guides/code/getting_started/app/controllers/application_controller.rb +3 -0
  18. data/guides/code/getting_started/app/controllers/comments_controller.rb +16 -0
  19. data/guides/code/getting_started/app/controllers/home_controller.rb +5 -0
  20. data/guides/code/getting_started/app/controllers/posts_controller.rb +84 -0
  21. data/guides/code/getting_started/app/helpers/application_helper.rb +2 -0
  22. data/guides/code/getting_started/app/helpers/comments_helper.rb +2 -0
  23. data/guides/code/getting_started/app/helpers/home_helper.rb +2 -0
  24. data/guides/code/getting_started/app/helpers/posts_helper.rb +5 -0
  25. data/guides/code/getting_started/app/models/comment.rb +3 -0
  26. data/guides/code/getting_started/app/models/post.rb +11 -0
  27. data/guides/code/getting_started/app/models/tag.rb +3 -0
  28. data/guides/code/getting_started/app/views/comments/_comment.html.erb +15 -0
  29. data/guides/code/getting_started/app/views/comments/_form.html.erb +13 -0
  30. data/guides/code/getting_started/app/views/home/index.html.erb +2 -0
  31. data/guides/code/getting_started/app/views/layouts/application.html.erb +14 -0
  32. data/guides/code/getting_started/app/views/posts/_form.html.erb +32 -0
  33. data/guides/code/getting_started/app/views/posts/edit.html.erb +6 -0
  34. data/guides/code/getting_started/app/views/posts/index.html.erb +27 -0
  35. data/guides/code/getting_started/app/views/posts/new.html.erb +5 -0
  36. data/guides/code/getting_started/app/views/posts/show.html.erb +31 -0
  37. data/guides/code/getting_started/app/views/tags/_form.html.erb +12 -0
  38. data/guides/code/getting_started/config.ru +4 -0
  39. data/guides/code/getting_started/config/application.rb +53 -0
  40. data/guides/code/getting_started/config/boot.rb +6 -0
  41. data/guides/code/getting_started/config/database.yml +25 -0
  42. data/guides/code/getting_started/config/environment.rb +5 -0
  43. data/guides/code/getting_started/config/environments/development.rb +37 -0
  44. data/guides/code/getting_started/config/environments/production.rb +67 -0
  45. data/guides/code/getting_started/config/environments/test.rb +37 -0
  46. data/guides/code/getting_started/config/initializers/backtrace_silencers.rb +7 -0
  47. data/guides/code/getting_started/config/initializers/inflections.rb +10 -0
  48. data/guides/code/getting_started/config/initializers/mime_types.rb +5 -0
  49. data/guides/code/getting_started/config/initializers/secret_token.rb +7 -0
  50. data/guides/code/getting_started/config/initializers/session_store.rb +8 -0
  51. data/guides/code/getting_started/config/initializers/wrap_parameters.rb +14 -0
  52. data/guides/code/getting_started/config/locales/en.yml +5 -0
  53. data/guides/code/getting_started/config/routes.rb +64 -0
  54. data/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +11 -0
  55. data/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb +12 -0
  56. data/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb +11 -0
  57. data/guides/code/getting_started/db/schema.rb +43 -0
  58. data/guides/code/getting_started/db/seeds.rb +7 -0
  59. data/guides/code/getting_started/doc/README_FOR_APP +2 -0
  60. data/guides/code/getting_started/public/404.html +26 -0
  61. data/guides/code/getting_started/public/422.html +26 -0
  62. data/guides/code/getting_started/public/500.html +26 -0
  63. data/guides/code/getting_started/public/favicon.ico +0 -0
  64. data/guides/code/getting_started/public/robots.txt +5 -0
  65. data/guides/code/getting_started/script/rails +6 -0
  66. data/guides/code/getting_started/test/fixtures/comments.yml +11 -0
  67. data/guides/code/getting_started/test/fixtures/posts.yml +11 -0
  68. data/guides/code/getting_started/test/fixtures/tags.yml +9 -0
  69. data/guides/code/getting_started/test/functional/comments_controller_test.rb +7 -0
  70. data/guides/code/getting_started/test/functional/home_controller_test.rb +9 -0
  71. data/guides/code/getting_started/test/functional/posts_controller_test.rb +49 -0
  72. data/guides/code/getting_started/test/performance/browsing_test.rb +12 -0
  73. data/guides/code/getting_started/test/test_helper.rb +13 -0
  74. data/guides/code/getting_started/test/unit/comment_test.rb +7 -0
  75. data/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb +4 -0
  76. data/guides/code/getting_started/test/unit/helpers/home_helper_test.rb +4 -0
  77. data/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb +4 -0
  78. data/guides/code/getting_started/test/unit/post_test.rb +7 -0
  79. data/guides/code/getting_started/test/unit/tag_test.rb +7 -0
  80. data/guides/rails_guides/generator.rb +2 -1
  81. data/guides/source/3_0_release_notes.textile +2 -2
  82. data/guides/source/3_1_release_notes.textile +3 -110
  83. data/guides/source/action_controller_overview.textile +11 -13
  84. data/guides/source/action_mailer_basics.textile +7 -18
  85. data/guides/source/action_view_overview.textile +78 -9
  86. data/guides/source/active_model_basics.textile +205 -0
  87. data/guides/source/active_record_basics.textile +31 -31
  88. data/guides/source/active_record_querying.textile +288 -67
  89. data/guides/source/active_record_validations_callbacks.textile +69 -75
  90. data/guides/source/active_resource_basics.textile +48 -2
  91. data/guides/source/active_support_core_extensions.textile +145 -24
  92. data/guides/source/ajax_on_rails.textile +65 -7
  93. data/guides/source/api_documentation_guidelines.textile +0 -6
  94. data/guides/source/asset_pipeline.textile +2 -2
  95. data/guides/source/association_basics.textile +25 -34
  96. data/guides/source/caching_with_rails.textile +12 -17
  97. data/guides/source/command_line.textile +29 -19
  98. data/guides/source/configuring.textile +40 -18
  99. data/guides/source/contributing_to_ruby_on_rails.textile +11 -18
  100. data/guides/source/debugging_rails_applications.textile +10 -21
  101. data/guides/source/engines.textile +618 -0
  102. data/guides/source/form_helpers.textile +1 -12
  103. data/guides/source/generators.textile +9 -11
  104. data/guides/source/getting_started.textile +152 -152
  105. data/guides/source/i18n.textile +4 -5
  106. data/guides/source/index.html.erb +0 -1
  107. data/guides/source/initialization.textile +26 -26
  108. data/guides/source/layouts_and_rendering.textile +97 -61
  109. data/guides/source/migrations.textile +380 -161
  110. data/guides/source/performance_testing.textile +4 -10
  111. data/guides/source/plugins.textile +11 -19
  112. data/guides/source/rails_application_templates.textile +12 -4
  113. data/guides/source/rails_on_rack.textile +25 -19
  114. data/guides/source/routing.textile +6 -13
  115. data/guides/source/ruby_on_rails_guides_guidelines.textile +0 -5
  116. data/guides/source/security.textile +11 -15
  117. data/guides/source/testing.textile +1 -9
  118. data/lib/rails/application.rb +107 -42
  119. data/lib/rails/application/bootstrap.rb +12 -11
  120. data/lib/rails/application/configuration.rb +27 -21
  121. data/lib/rails/application/finisher.rb +40 -17
  122. data/lib/rails/application/route_inspector.rb +75 -0
  123. data/lib/rails/application/routes_reloader.rb +15 -4
  124. data/lib/rails/code_statistics.rb +16 -5
  125. data/lib/rails/commands.rb +6 -5
  126. data/lib/rails/commands/application.rb +8 -1
  127. data/lib/rails/commands/console.rb +2 -0
  128. data/lib/rails/commands/dbconsole.rb +2 -2
  129. data/lib/rails/commands/destroy.rb +0 -2
  130. data/lib/rails/commands/generate.rb +3 -3
  131. data/lib/rails/commands/plugin.rb +161 -159
  132. data/lib/rails/commands/plugin_new.rb +3 -2
  133. data/lib/rails/commands/runner.rb +4 -0
  134. data/lib/rails/console/app.rb +26 -22
  135. data/lib/rails/console/helpers.rb +9 -5
  136. data/lib/rails/engine.rb +70 -34
  137. data/lib/rails/engine/commands.rb +39 -0
  138. data/lib/rails/engine/configuration.rb +1 -1
  139. data/lib/rails/generators.rb +3 -14
  140. data/lib/rails/generators/actions.rb +36 -9
  141. data/lib/rails/generators/app_base.rb +34 -38
  142. data/lib/rails/generators/base.rb +4 -4
  143. data/lib/rails/generators/generated_attribute.rb +1 -1
  144. data/lib/rails/generators/named_base.rb +1 -3
  145. data/lib/rails/generators/rails/app/USAGE +6 -0
  146. data/lib/rails/generators/rails/app/app_generator.rb +6 -2
  147. data/lib/rails/generators/rails/app/templates/Gemfile +4 -3
  148. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +9 -3
  149. data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +11 -5
  150. data/lib/rails/generators/rails/app/templates/app/mailers/.empty_directory +0 -0
  151. data/lib/rails/generators/rails/app/templates/app/models/.empty_directory +0 -0
  152. data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +1 -1
  153. data/lib/rails/generators/rails/app/templates/config/application.rb +11 -0
  154. data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +1 -1
  155. data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +1 -1
  156. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +10 -1
  157. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +10 -1
  158. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +6 -6
  159. data/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb +5 -0
  160. data/lib/rails/generators/rails/app/templates/config/routes.rb +1 -1
  161. data/lib/rails/generators/rails/app/templates/public/500.html +0 -1
  162. data/lib/rails/generators/rails/app/templates/public/index.html +1 -1
  163. data/lib/rails/generators/rails/app/templates/public/stylesheets/.empty_directory +0 -0
  164. data/lib/rails/generators/rails/app/templates/test/fixtures/.empty_directory +0 -0
  165. data/lib/rails/generators/rails/app/templates/test/functional/.empty_directory +0 -0
  166. data/lib/rails/generators/rails/app/templates/test/integration/.empty_directory +0 -0
  167. data/lib/rails/generators/rails/app/templates/test/unit/.empty_directory +0 -0
  168. data/lib/rails/generators/rails/controller/templates/controller.rb +1 -1
  169. data/lib/rails/generators/rails/generator/templates/templates/.empty_directory +0 -0
  170. data/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +17 -5
  171. data/lib/rails/generators/rails/plugin_new/templates/Rakefile +1 -0
  172. data/lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory +0 -0
  173. data/lib/rails/generators/rails/plugin_new/templates/app/models/.empty_directory +0 -0
  174. data/lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt +1 -1
  175. data/lib/rails/generators/rails/plugin_new/templates/gitignore +4 -3
  176. data/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb +1 -1
  177. data/lib/rails/generators/rails/plugin_new/templates/rails/application.rb +1 -1
  178. data/lib/rails/generators/rails/plugin_new/templates/script/rails.tt +5 -3
  179. data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +2 -2
  180. data/lib/rails/generators/rails/task/USAGE +9 -0
  181. data/lib/rails/generators/rails/task/task_generator.rb +12 -0
  182. data/lib/rails/generators/rails/task/templates/task.rb +8 -0
  183. data/lib/rails/generators/resource_helpers.rb +3 -3
  184. data/lib/rails/generators/test_unit/integration/templates/integration_test.rb +0 -2
  185. data/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +4 -4
  186. data/lib/rails/paths.rb +11 -38
  187. data/lib/rails/rack/debugger.rb +3 -4
  188. data/lib/rails/rack/logger.rb +26 -12
  189. data/lib/rails/railtie.rb +6 -1
  190. data/lib/rails/railtie/configuration.rb +12 -5
  191. data/lib/rails/source_annotation_extractor.rb +12 -10
  192. data/lib/rails/tasks/documentation.rake +3 -1
  193. data/lib/rails/tasks/engine.rake +1 -0
  194. data/lib/rails/tasks/misc.rake +1 -1
  195. data/lib/rails/tasks/routes.rake +3 -23
  196. data/lib/rails/test_help.rb +1 -2
  197. data/lib/rails/test_unit/testing.rake +8 -4
  198. data/lib/rails/version.rb +3 -3
  199. metadata +131 -61
  200. checksums.yaml +0 -7
  201. data/lib/rails/generators/rails/plugin/USAGE +0 -13
  202. data/lib/rails/generators/rails/plugin/plugin_generator.rb +0 -54
  203. data/lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt +0 -20
  204. data/lib/rails/generators/rails/plugin/templates/README.tt +0 -13
  205. data/lib/rails/generators/rails/plugin/templates/Rakefile.tt +0 -23
  206. data/lib/rails/generators/rails/plugin/templates/init.rb +0 -1
  207. data/lib/rails/generators/rails/plugin/templates/install.rb +0 -1
  208. data/lib/rails/generators/rails/plugin/templates/lib/%file_name%.rb.tt +0 -1
  209. data/lib/rails/generators/rails/plugin/templates/lib/tasks/%file_name%_tasks.rake.tt +0 -4
  210. data/lib/rails/generators/rails/plugin/templates/uninstall.rb +0 -1
@@ -3,7 +3,6 @@
3
3
  abort("Abort testing: Your Rails environment is running in production mode!") if Rails.env.production?
4
4
 
5
5
  require 'test/unit'
6
- require 'active_support/core_ext/kernel/requires'
7
6
  require 'active_support/test_case'
8
7
  require 'action_controller/test_case'
9
8
  require 'action_dispatch/testing/integration'
@@ -25,7 +24,7 @@ if defined?(MiniTest)
25
24
  end
26
25
  end
27
26
 
28
- if defined?(ActiveRecord)
27
+ if defined?(ActiveRecord::Base)
29
28
  require 'active_record/test_case'
30
29
 
31
30
  class ActiveSupport::TestCase
@@ -61,6 +61,7 @@ end
61
61
 
62
62
  # Recreated here from Active Support because :uncommitted needs it before Rails is available
63
63
  module Kernel
64
+ remove_method :silence_stderr # Removing old method to prevent method redefined warning
64
65
  def silence_stderr
65
66
  old_stderr = STDERR.dup
66
67
  STDERR.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
@@ -81,10 +82,14 @@ task :test do
81
82
  Rake::Task[task].invoke
82
83
  nil
83
84
  rescue => e
84
- task
85
+ { :task => task, :exception => e }
85
86
  end
86
87
  end.compact
87
- abort "Errors running #{errors * ', '}!" if errors.any?
88
+
89
+ if errors.any?
90
+ puts errors.map { |e| "Errors running #{e[:task]}! #{e[:exception].inspect}" }.join("\n")
91
+ abort
92
+ end
88
93
  end
89
94
 
90
95
  namespace :test do
@@ -118,8 +123,7 @@ namespace :test do
118
123
 
119
124
  unit_tests = models.map { |model| "test/unit/#{File.basename(model, '.rb')}_test.rb" }
120
125
  functional_tests = controllers.map { |controller| "test/functional/#{File.basename(controller, '.rb')}_test.rb" }
121
-
122
- unit_tests.uniq + functional_tests.uniq
126
+ (unit_tests + functional_tests).uniq.select { |file| File.exist?(file) }
123
127
  end
124
128
 
125
129
  t.libs << 'test'
@@ -1,9 +1,9 @@
1
1
  module Rails
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
- MINOR = 1
5
- TINY = 12
6
- PRE = nil
4
+ MINOR = 2
5
+ TINY = 0
6
+ PRE = "rc1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,107 +1,93 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railties
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.12
4
+ version: 3.2.0.rc1
5
+ prerelease: 6
5
6
  platform: ruby
6
7
  authors:
7
8
  - David Heinemeier Hansson
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-03-18 00:00:00.000000000 Z
12
+ date: 2011-12-20 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &2151958420 !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 0.8.7
20
22
  type: :runtime
21
23
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: 0.8.7
24
+ version_requirements: *2151958420
27
25
  - !ruby/object:Gem::Dependency
28
26
  name: thor
29
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &2151957520 !ruby/object:Gem::Requirement
28
+ none: false
30
29
  requirements:
31
30
  - - ~>
32
31
  - !ruby/object:Gem::Version
33
32
  version: 0.14.6
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: 0.14.6
35
+ version_requirements: *2151957520
41
36
  - !ruby/object:Gem::Dependency
42
37
  name: rack-ssl
43
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &2151956520 !ruby/object:Gem::Requirement
39
+ none: false
44
40
  requirements:
45
41
  - - ~>
46
42
  - !ruby/object:Gem::Version
47
43
  version: 1.3.2
48
44
  type: :runtime
49
45
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 1.3.2
46
+ version_requirements: *2151956520
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: rdoc
57
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &2151955840 !ruby/object:Gem::Requirement
50
+ none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
54
  version: '3.4'
62
55
  type: :runtime
63
56
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '3.4'
57
+ version_requirements: *2151955840
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: activesupport
71
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &2151955200 !ruby/object:Gem::Requirement
61
+ none: false
72
62
  requirements:
73
- - - '='
63
+ - - =
74
64
  - !ruby/object:Gem::Version
75
- version: 3.1.12
65
+ version: 3.2.0.rc1
76
66
  type: :runtime
77
67
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '='
81
- - !ruby/object:Gem::Version
82
- version: 3.1.12
68
+ version_requirements: *2151955200
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: actionpack
85
- requirement: !ruby/object:Gem::Requirement
71
+ requirement: &2151954380 !ruby/object:Gem::Requirement
72
+ none: false
86
73
  requirements:
87
- - - '='
74
+ - - =
88
75
  - !ruby/object:Gem::Version
89
- version: 3.1.12
76
+ version: 3.2.0.rc1
90
77
  type: :runtime
91
78
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '='
95
- - !ruby/object:Gem::Version
96
- version: 3.1.12
97
- description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
79
+ version_requirements: *2151954380
80
+ description: ! 'Rails internals: application bootup, plugins, generators, and rake
81
+ tasks.'
98
82
  email: david@loudthinking.com
99
- executables: []
83
+ executables:
84
+ - rails
100
85
  extensions: []
101
86
  extra_rdoc_files: []
102
87
  files:
103
88
  - CHANGELOG.md
104
89
  - README.rdoc
90
+ - bin/rails
105
91
  - guides/assets/images/belongs_to.png
106
92
  - guides/assets/images/book_icon.gif
107
93
  - guides/assets/images/bullet.gif
@@ -223,6 +209,82 @@ files:
223
209
  - guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css
224
210
  - guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css
225
211
  - guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css
212
+ - guides/code/getting_started/app/assets/images/rails.png
213
+ - guides/code/getting_started/app/assets/javascripts/application.js
214
+ - guides/code/getting_started/app/assets/javascripts/comments.js.coffee
215
+ - guides/code/getting_started/app/assets/javascripts/home.js.coffee
216
+ - guides/code/getting_started/app/assets/javascripts/posts.js.coffee
217
+ - guides/code/getting_started/app/assets/stylesheets/application.css
218
+ - guides/code/getting_started/app/assets/stylesheets/comments.css.scss
219
+ - guides/code/getting_started/app/assets/stylesheets/home.css.scss
220
+ - guides/code/getting_started/app/assets/stylesheets/posts.css.scss
221
+ - guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss
222
+ - guides/code/getting_started/app/controllers/application_controller.rb
223
+ - guides/code/getting_started/app/controllers/comments_controller.rb
224
+ - guides/code/getting_started/app/controllers/home_controller.rb
225
+ - guides/code/getting_started/app/controllers/posts_controller.rb
226
+ - guides/code/getting_started/app/helpers/application_helper.rb
227
+ - guides/code/getting_started/app/helpers/comments_helper.rb
228
+ - guides/code/getting_started/app/helpers/home_helper.rb
229
+ - guides/code/getting_started/app/helpers/posts_helper.rb
230
+ - guides/code/getting_started/app/models/comment.rb
231
+ - guides/code/getting_started/app/models/post.rb
232
+ - guides/code/getting_started/app/models/tag.rb
233
+ - guides/code/getting_started/app/views/comments/_comment.html.erb
234
+ - guides/code/getting_started/app/views/comments/_form.html.erb
235
+ - guides/code/getting_started/app/views/home/index.html.erb
236
+ - guides/code/getting_started/app/views/layouts/application.html.erb
237
+ - guides/code/getting_started/app/views/posts/_form.html.erb
238
+ - guides/code/getting_started/app/views/posts/edit.html.erb
239
+ - guides/code/getting_started/app/views/posts/index.html.erb
240
+ - guides/code/getting_started/app/views/posts/new.html.erb
241
+ - guides/code/getting_started/app/views/posts/show.html.erb
242
+ - guides/code/getting_started/app/views/tags/_form.html.erb
243
+ - guides/code/getting_started/config/application.rb
244
+ - guides/code/getting_started/config/boot.rb
245
+ - guides/code/getting_started/config/database.yml
246
+ - guides/code/getting_started/config/environment.rb
247
+ - guides/code/getting_started/config/environments/development.rb
248
+ - guides/code/getting_started/config/environments/production.rb
249
+ - guides/code/getting_started/config/environments/test.rb
250
+ - guides/code/getting_started/config/initializers/backtrace_silencers.rb
251
+ - guides/code/getting_started/config/initializers/inflections.rb
252
+ - guides/code/getting_started/config/initializers/mime_types.rb
253
+ - guides/code/getting_started/config/initializers/secret_token.rb
254
+ - guides/code/getting_started/config/initializers/session_store.rb
255
+ - guides/code/getting_started/config/initializers/wrap_parameters.rb
256
+ - guides/code/getting_started/config/locales/en.yml
257
+ - guides/code/getting_started/config/routes.rb
258
+ - guides/code/getting_started/config.ru
259
+ - guides/code/getting_started/db/migrate/20110901012504_create_posts.rb
260
+ - guides/code/getting_started/db/migrate/20110901012815_create_comments.rb
261
+ - guides/code/getting_started/db/migrate/20110901013701_create_tags.rb
262
+ - guides/code/getting_started/db/schema.rb
263
+ - guides/code/getting_started/db/seeds.rb
264
+ - guides/code/getting_started/doc/README_FOR_APP
265
+ - guides/code/getting_started/Gemfile
266
+ - guides/code/getting_started/public/404.html
267
+ - guides/code/getting_started/public/422.html
268
+ - guides/code/getting_started/public/500.html
269
+ - guides/code/getting_started/public/favicon.ico
270
+ - guides/code/getting_started/public/robots.txt
271
+ - guides/code/getting_started/Rakefile
272
+ - guides/code/getting_started/README.rdoc
273
+ - guides/code/getting_started/script/rails
274
+ - guides/code/getting_started/test/fixtures/comments.yml
275
+ - guides/code/getting_started/test/fixtures/posts.yml
276
+ - guides/code/getting_started/test/fixtures/tags.yml
277
+ - guides/code/getting_started/test/functional/comments_controller_test.rb
278
+ - guides/code/getting_started/test/functional/home_controller_test.rb
279
+ - guides/code/getting_started/test/functional/posts_controller_test.rb
280
+ - guides/code/getting_started/test/performance/browsing_test.rb
281
+ - guides/code/getting_started/test/test_helper.rb
282
+ - guides/code/getting_started/test/unit/comment_test.rb
283
+ - guides/code/getting_started/test/unit/helpers/comments_helper_test.rb
284
+ - guides/code/getting_started/test/unit/helpers/home_helper_test.rb
285
+ - guides/code/getting_started/test/unit/helpers/posts_helper_test.rb
286
+ - guides/code/getting_started/test/unit/post_test.rb
287
+ - guides/code/getting_started/test/unit/tag_test.rb
226
288
  - guides/rails_guides/generator.rb
227
289
  - guides/rails_guides/helpers.rb
228
290
  - guides/rails_guides/indexer.rb
@@ -236,6 +298,7 @@ files:
236
298
  - guides/source/action_controller_overview.textile
237
299
  - guides/source/action_mailer_basics.textile
238
300
  - guides/source/action_view_overview.textile
301
+ - guides/source/active_model_basics.textile
239
302
  - guides/source/active_record_basics.textile
240
303
  - guides/source/active_record_querying.textile
241
304
  - guides/source/active_record_validations_callbacks.textile
@@ -251,6 +314,7 @@ files:
251
314
  - guides/source/contributing_to_ruby_on_rails.textile
252
315
  - guides/source/credits.html.erb
253
316
  - guides/source/debugging_rails_applications.textile
317
+ - guides/source/engines.textile
254
318
  - guides/source/form_helpers.textile
255
319
  - guides/source/generators.textile
256
320
  - guides/source/getting_started.textile
@@ -275,6 +339,7 @@ files:
275
339
  - lib/rails/application/configuration.rb
276
340
  - lib/rails/application/finisher.rb
277
341
  - lib/rails/application/railties.rb
342
+ - lib/rails/application/route_inspector.rb
278
343
  - lib/rails/application/routes_reloader.rb
279
344
  - lib/rails/application.rb
280
345
  - lib/rails/backtrace_cleaner.rb
@@ -296,6 +361,7 @@ files:
296
361
  - lib/rails/configuration.rb
297
362
  - lib/rails/console/app.rb
298
363
  - lib/rails/console/helpers.rb
364
+ - lib/rails/engine/commands.rb
299
365
  - lib/rails/engine/configuration.rb
300
366
  - lib/rails/engine/railties.rb
301
367
  - lib/rails/engine.rb
@@ -394,16 +460,6 @@ files:
394
460
  - lib/rails/generators/rails/observer/USAGE
395
461
  - lib/rails/generators/rails/performance_test/performance_test_generator.rb
396
462
  - lib/rails/generators/rails/performance_test/USAGE
397
- - lib/rails/generators/rails/plugin/plugin_generator.rb
398
- - lib/rails/generators/rails/plugin/templates/init.rb
399
- - lib/rails/generators/rails/plugin/templates/install.rb
400
- - lib/rails/generators/rails/plugin/templates/lib/%file_name%.rb.tt
401
- - lib/rails/generators/rails/plugin/templates/lib/tasks/%file_name%_tasks.rake.tt
402
- - lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt
403
- - lib/rails/generators/rails/plugin/templates/Rakefile.tt
404
- - lib/rails/generators/rails/plugin/templates/README.tt
405
- - lib/rails/generators/rails/plugin/templates/uninstall.rb
406
- - lib/rails/generators/rails/plugin/USAGE
407
463
  - lib/rails/generators/rails/plugin_new/plugin_new_generator.rb
408
464
  - lib/rails/generators/rails/plugin_new/templates/%name%.gemspec
409
465
  - lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt
@@ -437,6 +493,9 @@ files:
437
493
  - lib/rails/generators/rails/scaffold_controller/USAGE
438
494
  - lib/rails/generators/rails/session_migration/session_migration_generator.rb
439
495
  - lib/rails/generators/rails/session_migration/USAGE
496
+ - lib/rails/generators/rails/task/task_generator.rb
497
+ - lib/rails/generators/rails/task/templates/task.rb
498
+ - lib/rails/generators/rails/task/USAGE
440
499
  - lib/rails/generators/resource_helpers.rb
441
500
  - lib/rails/generators/test_case.rb
442
501
  - lib/rails/generators/test_unit/controller/controller_generator.rb
@@ -494,9 +553,18 @@ files:
494
553
  - lib/rails/test_unit/testing.rake
495
554
  - lib/rails/version.rb
496
555
  - lib/rails.rb
556
+ - lib/rails/generators/rails/app/templates/app/mailers/.empty_directory
557
+ - lib/rails/generators/rails/app/templates/app/models/.empty_directory
558
+ - lib/rails/generators/rails/app/templates/public/stylesheets/.empty_directory
559
+ - lib/rails/generators/rails/app/templates/test/fixtures/.empty_directory
560
+ - lib/rails/generators/rails/app/templates/test/functional/.empty_directory
561
+ - lib/rails/generators/rails/app/templates/test/integration/.empty_directory
562
+ - lib/rails/generators/rails/app/templates/test/unit/.empty_directory
563
+ - lib/rails/generators/rails/generator/templates/templates/.empty_directory
564
+ - lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory
565
+ - lib/rails/generators/rails/plugin_new/templates/app/models/.empty_directory
497
566
  homepage: http://www.rubyonrails.org
498
567
  licenses: []
499
- metadata: {}
500
568
  post_install_message:
501
569
  rdoc_options:
502
570
  - --exclude
@@ -504,19 +572,21 @@ rdoc_options:
504
572
  require_paths:
505
573
  - lib
506
574
  required_ruby_version: !ruby/object:Gem::Requirement
575
+ none: false
507
576
  requirements:
508
- - - '>='
577
+ - - ! '>='
509
578
  - !ruby/object:Gem::Version
510
579
  version: 1.8.7
511
580
  required_rubygems_version: !ruby/object:Gem::Requirement
581
+ none: false
512
582
  requirements:
513
- - - '>='
583
+ - - ! '>'
514
584
  - !ruby/object:Gem::Version
515
- version: '0'
585
+ version: 1.3.1
516
586
  requirements: []
517
587
  rubyforge_project:
518
- rubygems_version: 2.0.2
588
+ rubygems_version: 1.8.7
519
589
  signing_key:
520
- specification_version: 4
590
+ specification_version: 3
521
591
  summary: Tools for creating, working with, and running Rails applications.
522
592
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 8a798a3712ee511f3b9d7cab8d3a80910f8212a3
4
- data.tar.gz: 5f4768dd1dfc715d7f4bfc9f5390265c9412e1d7
5
- SHA512:
6
- metadata.gz: 72f01b187850f2b56bcb6190ad5da6c816a3ac58c65616a0de083172b1c3c8979861c82da318c0bec6a31cd0e9c0973021ae617098bfd556f05d4d36881f43a3
7
- data.tar.gz: 37c7abecf22f59efb3d8d47bb7bf9fc005b2de68169fac0684e1e82a122f0af0dba1136b60f671942f705b656280a49bfe14947968f089088e494c8adab4a17d
@@ -1,13 +0,0 @@
1
- Description:
2
- Stubs out a new plugin at vendor/plugins. Pass the plugin name, either
3
- CamelCased or under_scored, as an argument.
4
-
5
- Example:
6
- `rails generate plugin BrowserFilters`
7
-
8
- creates a standard browser_filters plugin:
9
- vendor/plugins/browser_filters/README
10
- vendor/plugins/browser_filters/init.rb
11
- vendor/plugins/browser_filters/install.rb
12
- vendor/plugins/browser_filters/lib/browser_filters.rb
13
- vendor/plugins/browser_filters/test/browser_filters_test.rb
@@ -1,54 +0,0 @@
1
-
2
- require 'rails/generators/rails/generator/generator_generator'
3
-
4
- module Rails
5
- module Generators
6
- class PluginGenerator < NamedBase
7
- class_option :tasks, :desc => "When supplied creates tasks base files."
8
-
9
- def show_deprecation
10
- return unless behavior == :invoke
11
- message = "Plugin generator is deprecated, please use 'rails plugin new' command to generate plugin structure."
12
- ActiveSupport::Deprecation.warn message
13
- end
14
-
15
- check_class_collision
16
-
17
- def create_root_files
18
- directory '.', plugin_dir, :recursive => false
19
- end
20
-
21
- def create_lib_files
22
- directory 'lib', plugin_dir('lib'), :recursive => false
23
- end
24
-
25
- def create_tasks_files
26
- return unless options[:tasks]
27
- directory 'lib/tasks', plugin_dir('lib/tasks')
28
- end
29
-
30
- hook_for :generator do |generator|
31
- inside plugin_dir, :verbose => true do
32
- invoke generator, [ name ], :namespace => false
33
- end
34
- end
35
-
36
- hook_for :test_framework do |test_framework|
37
- inside plugin_dir, :verbose => true do
38
- invoke test_framework
39
- end
40
- end
41
-
42
- protected
43
-
44
- def plugin_dir(join=nil)
45
- if join
46
- File.join(plugin_dir, join)
47
- else
48
- "vendor/plugins/#{file_name}"
49
- end
50
- end
51
-
52
- end
53
- end
54
- end