railties 4.0.0.beta1 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +120 -27
  3. data/RDOC_MAIN.rdoc +73 -0
  4. data/bin/rails +3 -1
  5. data/lib/rails/api/task.rb +158 -0
  6. data/lib/rails/app_rails_loader.rb +44 -20
  7. data/lib/rails/application.rb +55 -32
  8. data/lib/rails/application/configuration.rb +9 -7
  9. data/lib/rails/commands.rb +2 -0
  10. data/lib/rails/commands/console.rb +3 -1
  11. data/lib/rails/commands/server.rb +6 -2
  12. data/lib/rails/engine.rb +4 -3
  13. data/lib/rails/generators/actions.rb +1 -1
  14. data/lib/rails/generators/app_base.rb +52 -30
  15. data/lib/rails/generators/erb/scaffold/templates/_form.html.erb +10 -1
  16. data/lib/rails/generators/erb/scaffold/templates/index.html.erb +9 -9
  17. data/lib/rails/generators/erb/scaffold/templates/show.html.erb +1 -2
  18. data/lib/rails/generators/generated_attribute.rb +4 -0
  19. data/lib/rails/generators/named_base.rb +2 -1
  20. data/lib/rails/generators/rails/app/templates/Gemfile +9 -4
  21. data/lib/rails/generators/rails/app/templates/config.ru +1 -1
  22. data/lib/rails/generators/rails/app/templates/config/application.rb +3 -2
  23. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +2 -0
  24. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +2 -2
  25. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +1 -1
  26. data/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +1 -1
  27. data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +1 -1
  28. data/lib/rails/generators/rails/app/templates/config/routes.rb +1 -1
  29. data/lib/rails/generators/rails/app/templates/public/404.html +41 -10
  30. data/lib/rails/generators/rails/app/templates/public/422.html +42 -10
  31. data/lib/rails/generators/rails/app/templates/public/500.html +41 -10
  32. data/lib/rails/generators/rails/app/templates/test/test_helper.rb +1 -1
  33. data/lib/rails/generators/rails/model/USAGE +16 -10
  34. data/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +9 -5
  35. data/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +0 -3
  36. data/lib/rails/generators/rails/plugin_new/templates/Gemfile +0 -8
  37. data/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb +4 -8
  38. data/lib/rails/generators/rails/plugin_new/templates/rails/javascripts.js +13 -0
  39. data/lib/rails/generators/rails/plugin_new/templates/rails/stylesheets.css +13 -0
  40. data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +1 -0
  41. data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +1 -1
  42. data/lib/rails/generators/test_case.rb +6 -211
  43. data/lib/rails/generators/test_unit/model/templates/fixtures.yml +7 -9
  44. data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +5 -1
  45. data/lib/rails/generators/testing/assertions.rb +121 -0
  46. data/lib/rails/generators/testing/behaviour.rb +106 -0
  47. data/lib/rails/generators/testing/setup_and_teardown.rb +18 -0
  48. data/lib/rails/info.rb +2 -2
  49. data/lib/rails/tasks/documentation.rake +2 -46
  50. data/lib/rails/templates/rails/welcome/index.html.erb +1 -1
  51. data/lib/rails/test_unit/railtie.rb +4 -0
  52. data/lib/rails/test_unit/sub_test_task.rb +78 -1
  53. data/lib/rails/test_unit/testing.rake +32 -42
  54. data/lib/rails/version.rb +3 -3
  55. metadata +15 -23
  56. data/lib/rails/generators/rails/app/templates/app/assets/images/rails.png +0 -0
@@ -1,10 +1,10 @@
1
1
  module Rails
2
- module VERSION #:nodoc:
2
+ module VERSION
3
3
  MAJOR = 4
4
4
  MINOR = 0
5
5
  TINY = 0
6
- PRE = "beta1"
6
+ PRE = "rc1"
7
7
 
8
- STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
8
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railties
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta1
4
+ version: 4.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-02-26 00:00:00.000000000 Z
11
+ date: 2013-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0.beta1
19
+ version: 4.0.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0.beta1
26
+ version: 4.0.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actionpack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.0.0.beta1
33
+ version: 4.0.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.0.0.beta1
40
+ version: 4.0.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.17.0
61
+ version: 0.18.1
62
62
  - - <
63
63
  - !ruby/object:Gem::Version
64
64
  version: '2.0'
@@ -68,24 +68,10 @@ dependencies:
68
68
  requirements:
69
69
  - - '>='
70
70
  - !ruby/object:Gem::Version
71
- version: 0.17.0
71
+ version: 0.18.1
72
72
  - - <
73
73
  - !ruby/object:Gem::Version
74
74
  version: '2.0'
75
- - !ruby/object:Gem::Dependency
76
- name: rdoc
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ~>
80
- - !ruby/object:Gem::Version
81
- version: '3.4'
82
- type: :runtime
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ~>
87
- - !ruby/object:Gem::Version
88
- version: '3.4'
89
75
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
90
76
  email: david@loudthinking.com
91
77
  executables:
@@ -95,8 +81,10 @@ extra_rdoc_files: []
95
81
  files:
96
82
  - CHANGELOG.md
97
83
  - README.rdoc
84
+ - RDOC_MAIN.rdoc
98
85
  - bin/rails
99
86
  - lib/rails/all.rb
87
+ - lib/rails/api/task.rb
100
88
  - lib/rails/app_rails_loader.rb
101
89
  - lib/rails/application/bootstrap.rb
102
90
  - lib/rails/application/configuration.rb
@@ -149,7 +137,6 @@ files:
149
137
  - lib/rails/generators/migration.rb
150
138
  - lib/rails/generators/named_base.rb
151
139
  - lib/rails/generators/rails/app/app_generator.rb
152
- - lib/rails/generators/rails/app/templates/app/assets/images/rails.png
153
140
  - lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt
154
141
  - lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css
155
142
  - lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb.tt
@@ -233,7 +220,9 @@ files:
233
220
  - lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE
234
221
  - lib/rails/generators/rails/plugin_new/templates/rails/application.rb
235
222
  - lib/rails/generators/rails/plugin_new/templates/rails/boot.rb
223
+ - lib/rails/generators/rails/plugin_new/templates/rails/javascripts.js
236
224
  - lib/rails/generators/rails/plugin_new/templates/rails/routes.rb
225
+ - lib/rails/generators/rails/plugin_new/templates/rails/stylesheets.css
237
226
  - lib/rails/generators/rails/plugin_new/templates/Rakefile
238
227
  - lib/rails/generators/rails/plugin_new/templates/README.rdoc
239
228
  - lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb
@@ -271,6 +260,9 @@ files:
271
260
  - lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
272
261
  - lib/rails/generators/test_unit/scaffold/templates/functional_test.rb
273
262
  - lib/rails/generators/test_unit.rb
263
+ - lib/rails/generators/testing/assertions.rb
264
+ - lib/rails/generators/testing/behaviour.rb
265
+ - lib/rails/generators/testing/setup_and_teardown.rb
274
266
  - lib/rails/generators.rb
275
267
  - lib/rails/info.rb
276
268
  - lib/rails/info_controller.rb