rails 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rails might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1,4 +1,13 @@
1
- *0.14.1* (October 19th, 2005)
1
+ *0.14.2 (RC3)* (October 26th, 2005)
2
+
3
+ * Constants set in the development/test/production environment file are set in Object
4
+
5
+ * Scaffold generator pays attention to the controller name. #2562 [self@mattmower.com]
6
+
7
+ * Include tasks from vendor/plugins/*/tasks in the Rakefile #2545 [Rick Olson]
8
+
9
+
10
+ *0.14.1 (RC2)* (October 19th, 2005)
2
11
 
3
12
  * Don't clean RAILS_ROOT on windows
4
13
 
@@ -7,7 +16,7 @@
7
16
  * Upgraded to Active Record 1.12.1 and Action Pack 1.10.1
8
17
 
9
18
 
10
- *0.14.0* (October 16th, 2005)
19
+ *0.14.0 (RC1)* (October 16th, 2005)
11
20
 
12
21
  * Moved generator folder from RAILS_ROOT/generators to RAILS_ROOT/lib/generators [Tobias Luetke]
13
22
 
data/Rakefile CHANGED
@@ -273,11 +273,11 @@ spec = Gem::Specification.new do |s|
273
273
  EOF
274
274
 
275
275
  s.add_dependency('rake', '>= 0.6.2')
276
- s.add_dependency('activesupport', '= 1.2.1' + PKG_BUILD)
277
- s.add_dependency('activerecord', '= 1.12.1' + PKG_BUILD)
278
- s.add_dependency('actionpack', '= 1.10.1' + PKG_BUILD)
279
- s.add_dependency('actionmailer', '= 1.1.1' + PKG_BUILD)
280
- s.add_dependency('actionwebservice', '= 0.9.1' + PKG_BUILD)
276
+ s.add_dependency('activesupport', '= 1.2.2' + PKG_BUILD)
277
+ s.add_dependency('activerecord', '= 1.12.2' + PKG_BUILD)
278
+ s.add_dependency('actionpack', '= 1.10.2' + PKG_BUILD)
279
+ s.add_dependency('actionmailer', '= 1.1.2' + PKG_BUILD)
280
+ s.add_dependency('actionwebservice', '= 0.9.2' + PKG_BUILD)
281
281
 
282
282
  s.rdoc_options << '--exclude' << '.'
283
283
  s.has_rdoc = false
@@ -57,7 +57,7 @@ module Rails
57
57
  # * #initialize_dependency_mechanism
58
58
  # * #initialize_breakpoints
59
59
  # * #initialize_whiny_nils
60
- # * #intitialize_framework_settings
60
+ # * #initialize_framework_settings
61
61
  # * #load_environment
62
62
  # * #load_plugins
63
63
  #
@@ -81,7 +81,7 @@ module Rails
81
81
  initialize_breakpoints
82
82
  initialize_whiny_nils
83
83
 
84
- intitialize_framework_settings
84
+ initialize_framework_settings
85
85
 
86
86
  # Support for legacy configuration style where the environment
87
87
  # could overwrite anything set from the defaults/global through
@@ -146,7 +146,11 @@ module Rails
146
146
  def load_environment
147
147
  silence_warnings do
148
148
  config = configuration
149
+ constants = self.class.constants
149
150
  eval(IO.read(configuration.environment_path), binding)
151
+ (self.class.constants - constants).each do |const|
152
+ Object.const_set(const, self.class.const_get(const))
153
+ end
150
154
  end
151
155
  end
152
156
 
@@ -239,7 +243,7 @@ module Rails
239
243
  # Initialize framework-specific settings for each of the loaded frameworks
240
244
  # (Configuration#frameworks). The available settings map to the accessors
241
245
  # on each of the corresponding Base classes.
242
- def intitialize_framework_settings
246
+ def initialize_framework_settings
243
247
  configuration.frameworks.each do |framework|
244
248
  base_class = framework.to_s.camelize.constantize.const_get("Base")
245
249
 
@@ -130,7 +130,7 @@ class AppGenerator < Rails::Generator::Base
130
130
  )
131
131
 
132
132
  MYSQL_SOCKET_LOCATIONS = [ "/tmp/mysql.sock", #default
133
- "/var/run/mysqld/mysqld.sock", #debian
133
+ "/var/run/mysqld/mysqld.sock", #debian/gentoo
134
134
  "/var/tmp/mysql.sock", # freebsd
135
135
  "/var/lib/mysql/mysql.sock" ] #fedora
136
136
  end
@@ -46,7 +46,7 @@ class ScaffoldGenerator < Rails::Generator::NamedBase
46
46
 
47
47
  def initialize(runtime_args, runtime_options = {})
48
48
  super
49
- @controller_name = args.shift || ActiveRecord::Base.pluralize_table_names ? @name.pluralize : @name
49
+ @controller_name = args.shift or (ActiveRecord::Base.pluralize_table_names ? @name.pluralize : @name)
50
50
  base_name, @controller_class_path, @controller_file_path, @controller_class_nesting, @controller_class_nesting_depth = extract_modules(@controller_name)
51
51
  @controller_class_name_without_nesting, @controller_singular_name, @controller_plural_name = inflect_names(base_name)
52
52
  if @controller_class_nesting.empty?
@@ -2,7 +2,7 @@ module Rails
2
2
  module Version #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 14
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -4,4 +4,5 @@ $VERBOSE = nil
4
4
  Dir["#{File.dirname(__FILE__)}/*.rake"].each { |ext| load ext }
5
5
 
6
6
  # Load any custom rakefile extensions
7
- Dir["./lib/tasks/**/*.rake"].each { |ext| load ext }
7
+ Dir["./lib/tasks/**/*.rake"].each { |ext| load ext }
8
+ Dir["./vendor/plugins/*/tasks/**/*.rake"].each { |ext| load ext }
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
2
+ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: rails
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.14.1
7
- date: 2005-10-19
6
+ version: 0.14.2
7
+ date: 2005-10-26 00:00:00 +02:00
8
8
  summary: "Web-application framework with template engine, control-flow layer, and ORM."
9
9
  require_paths:
10
10
  - lib
@@ -26,176 +26,178 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
26
26
  version: 0.0.0
27
27
  version:
28
28
  platform: ruby
29
+ signing_key:
30
+ cert_chain:
29
31
  authors:
30
32
  - David Heinemeier Hansson
31
33
  files:
32
- - test
33
- - helpers
34
- - Rakefile
35
- - html
36
- - doc
37
- - lib
38
- - dispatches
39
- - CHANGELOG
40
- - environments
41
34
  - bin
35
+ - CHANGELOG
42
36
  - configs
37
+ - dispatches
38
+ - doc
39
+ - environments
43
40
  - fresh_rakefile
41
+ - helpers
42
+ - html
43
+ - lib
44
44
  - MIT-LICENSE
45
+ - Rakefile
45
46
  - README
46
- - bin/performance
47
- - bin/generate
48
- - bin/console
49
- - bin/server
47
+ - test
50
48
  - bin/breakpointer
49
+ - bin/console
51
50
  - bin/destroy
52
- - bin/runner
51
+ - bin/generate
52
+ - bin/performance
53
53
  - bin/process
54
54
  - bin/rails
55
+ - bin/runner
56
+ - bin/server
55
57
  - bin/performance/benchmarker
56
58
  - bin/performance/profiler
57
- - bin/process/spawner
58
59
  - bin/process/reaper
60
+ - bin/process/spawner
59
61
  - bin/process/spinner
60
- - configs/database.yml
61
- - configs/routes.rb
62
62
  - configs/apache.conf
63
+ - configs/database.yml
63
64
  - configs/empty.log
65
+ - configs/routes.rb
64
66
  - doc/README_FOR_APP
65
67
  - dispatches/dispatch.fcgi
66
68
  - dispatches/dispatch.rb
67
69
  - dispatches/gateway.cgi
68
- - environments/test.rb
69
70
  - environments/boot.rb
70
71
  - environments/development.rb
71
72
  - environments/environment.rb
72
73
  - environments/production.rb
73
- - helpers/test_helper.rb
74
+ - environments/test.rb
74
75
  - helpers/application.rb
75
76
  - helpers/application_helper.rb
76
- - html/javascripts
77
- - html/robots.txt
78
- - html/500.html
77
+ - helpers/test_helper.rb
79
78
  - html/404.html
80
- - html/index.html
79
+ - html/500.html
81
80
  - html/favicon.ico
82
- - html/javascripts/scriptaculous.js
83
- - html/javascripts/prototype.js
84
- - html/javascripts/effects.js
81
+ - html/index.html
82
+ - html/javascripts
83
+ - html/robots.txt
84
+ - html/javascripts/controls.js
85
85
  - html/javascripts/dragdrop.js
86
+ - html/javascripts/effects.js
87
+ - html/javascripts/prototype.js
88
+ - html/javascripts/scriptaculous.js
86
89
  - html/javascripts/slider.js
87
- - html/javascripts/controls.js
88
- - lib/rails_generator
89
90
  - lib/binding_of_caller.rb
90
- - lib/rails_version.rb
91
- - lib/rails_generator.rb
92
- - lib/console_sandbox.rb
93
- - lib/tasks
91
+ - lib/breakpoint.rb
92
+ - lib/breakpoint_client.rb
94
93
  - lib/code_statistics.rb
94
+ - lib/commands
95
+ - lib/commands.rb
96
+ - lib/console_sandbox.rb
97
+ - lib/dispatcher.rb
98
+ - lib/fcgi_handler.rb
95
99
  - lib/initializer.rb
100
+ - lib/rails_generator
101
+ - lib/rails_generator.rb
102
+ - lib/rails_version.rb
96
103
  - lib/railties_path.rb
97
- - lib/dispatcher.rb
98
- - lib/test_help.rb
99
104
  - lib/rubyprof_ext.rb
100
- - lib/commands
101
- - lib/breakpoint_client.rb
102
- - lib/breakpoint.rb
103
- - lib/fcgi_handler.rb
104
- - lib/commands.rb
105
+ - lib/tasks
106
+ - lib/test_help.rb
105
107
  - lib/webrick_server.rb
106
- - lib/rails_generator/scripts
108
+ - lib/commands/breakpointer.rb
109
+ - lib/commands/console.rb
110
+ - lib/commands/destroy.rb
111
+ - lib/commands/generate.rb
112
+ - lib/commands/ncgi
113
+ - lib/commands/performance
114
+ - lib/commands/process
115
+ - lib/commands/runner.rb
116
+ - lib/commands/server.rb
117
+ - lib/commands/update.rb
118
+ - lib/commands/ncgi/listener
119
+ - lib/commands/ncgi/tracker
120
+ - lib/commands/performance/benchmarker.rb
121
+ - lib/commands/performance/profiler.rb
122
+ - lib/commands/process/reaper.rb
123
+ - lib/commands/process/spawner.rb
124
+ - lib/commands/process/spinner.rb
125
+ - lib/rails_generator/base.rb
107
126
  - lib/rails_generator/commands.rb
108
127
  - lib/rails_generator/generators
128
+ - lib/rails_generator/lookup.rb
109
129
  - lib/rails_generator/manifest.rb
130
+ - lib/rails_generator/options.rb
131
+ - lib/rails_generator/scripts
110
132
  - lib/rails_generator/scripts.rb
111
- - lib/rails_generator/lookup.rb
112
133
  - lib/rails_generator/simple_logger.rb
113
- - lib/rails_generator/base.rb
114
134
  - lib/rails_generator/spec.rb
115
- - lib/rails_generator/options.rb
116
- - lib/rails_generator/scripts/update.rb
117
- - lib/rails_generator/scripts/destroy.rb
118
- - lib/rails_generator/scripts/generate.rb
119
- - lib/rails_generator/generators/components
120
135
  - lib/rails_generator/generators/applications
121
- - lib/rails_generator/generators/components/model
122
- - lib/rails_generator/generators/components/scaffold
136
+ - lib/rails_generator/generators/components
137
+ - lib/rails_generator/generators/applications/app
138
+ - lib/rails_generator/generators/applications/app/app_generator.rb
139
+ - lib/rails_generator/generators/applications/app/USAGE
123
140
  - lib/rails_generator/generators/components/controller
124
141
  - lib/rails_generator/generators/components/mailer
125
142
  - lib/rails_generator/generators/components/migration
143
+ - lib/rails_generator/generators/components/model
144
+ - lib/rails_generator/generators/components/scaffold
126
145
  - lib/rails_generator/generators/components/web_service
127
- - lib/rails_generator/generators/components/model/templates
128
- - lib/rails_generator/generators/components/model/USAGE
129
- - lib/rails_generator/generators/components/model/model_generator.rb
130
- - lib/rails_generator/generators/components/model/templates/unit_test.rb
131
- - lib/rails_generator/generators/components/model/templates/model.rb
132
- - lib/rails_generator/generators/components/model/templates/fixtures.yml
133
- - lib/rails_generator/generators/components/scaffold/templates
134
- - lib/rails_generator/generators/components/scaffold/USAGE
135
- - lib/rails_generator/generators/components/scaffold/scaffold_generator.rb
136
- - lib/rails_generator/generators/components/scaffold/templates/functional_test.rb
137
- - lib/rails_generator/generators/components/scaffold/templates/view_show.rhtml
138
- - lib/rails_generator/generators/components/scaffold/templates/helper.rb
139
- - lib/rails_generator/generators/components/scaffold/templates/layout.rhtml
140
- - lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
141
- - lib/rails_generator/generators/components/scaffold/templates/controller.rb
142
- - lib/rails_generator/generators/components/scaffold/templates/style.css
143
- - lib/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml
144
- - lib/rails_generator/generators/components/scaffold/templates/form.rhtml
145
- - lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
146
- - lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml
146
+ - lib/rails_generator/generators/components/controller/controller_generator.rb
147
147
  - lib/rails_generator/generators/components/controller/templates
148
148
  - lib/rails_generator/generators/components/controller/USAGE
149
- - lib/rails_generator/generators/components/controller/controller_generator.rb
150
149
  - lib/rails_generator/generators/components/controller/templates/controller.rb
151
- - lib/rails_generator/generators/components/controller/templates/view.rhtml
152
- - lib/rails_generator/generators/components/controller/templates/helper.rb
153
150
  - lib/rails_generator/generators/components/controller/templates/functional_test.rb
154
- - lib/rails_generator/generators/components/mailer/templates
151
+ - lib/rails_generator/generators/components/controller/templates/helper.rb
152
+ - lib/rails_generator/generators/components/controller/templates/view.rhtml
155
153
  - lib/rails_generator/generators/components/mailer/mailer_generator.rb
154
+ - lib/rails_generator/generators/components/mailer/templates
156
155
  - lib/rails_generator/generators/components/mailer/USAGE
157
- - lib/rails_generator/generators/components/mailer/templates/unit_test.rb
158
- - lib/rails_generator/generators/components/mailer/templates/view.rhtml
159
156
  - lib/rails_generator/generators/components/mailer/templates/fixture.rhtml
160
157
  - lib/rails_generator/generators/components/mailer/templates/mailer.rb
158
+ - lib/rails_generator/generators/components/mailer/templates/unit_test.rb
159
+ - lib/rails_generator/generators/components/mailer/templates/view.rhtml
160
+ - lib/rails_generator/generators/components/migration/migration_generator.rb
161
161
  - lib/rails_generator/generators/components/migration/templates
162
162
  - lib/rails_generator/generators/components/migration/USAGE
163
- - lib/rails_generator/generators/components/migration/migration_generator.rb
164
163
  - lib/rails_generator/generators/components/migration/templates/migration.rb
164
+ - lib/rails_generator/generators/components/model/model_generator.rb
165
+ - lib/rails_generator/generators/components/model/templates
166
+ - lib/rails_generator/generators/components/model/USAGE
167
+ - lib/rails_generator/generators/components/model/templates/fixtures.yml
168
+ - lib/rails_generator/generators/components/model/templates/model.rb
169
+ - lib/rails_generator/generators/components/model/templates/unit_test.rb
170
+ - lib/rails_generator/generators/components/scaffold/scaffold_generator.rb
171
+ - lib/rails_generator/generators/components/scaffold/templates
172
+ - lib/rails_generator/generators/components/scaffold/USAGE
173
+ - lib/rails_generator/generators/components/scaffold/templates/controller.rb
174
+ - lib/rails_generator/generators/components/scaffold/templates/form.rhtml
175
+ - lib/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml
176
+ - lib/rails_generator/generators/components/scaffold/templates/functional_test.rb
177
+ - lib/rails_generator/generators/components/scaffold/templates/helper.rb
178
+ - lib/rails_generator/generators/components/scaffold/templates/layout.rhtml
179
+ - lib/rails_generator/generators/components/scaffold/templates/style.css
180
+ - lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
181
+ - lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml
182
+ - lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
183
+ - lib/rails_generator/generators/components/scaffold/templates/view_show.rhtml
165
184
  - lib/rails_generator/generators/components/web_service/templates
166
185
  - lib/rails_generator/generators/components/web_service/USAGE
167
186
  - lib/rails_generator/generators/components/web_service/web_service_generator.rb
168
187
  - lib/rails_generator/generators/components/web_service/templates/api_definition.rb
169
- - lib/rails_generator/generators/components/web_service/templates/functional_test.rb
170
188
  - lib/rails_generator/generators/components/web_service/templates/controller.rb
171
- - lib/rails_generator/generators/applications/app
172
- - lib/rails_generator/generators/applications/app/USAGE
173
- - lib/rails_generator/generators/applications/app/app_generator.rb
174
- - lib/tasks/documentation.rake
189
+ - lib/rails_generator/generators/components/web_service/templates/functional_test.rb
190
+ - lib/rails_generator/scripts/destroy.rb
191
+ - lib/rails_generator/scripts/generate.rb
192
+ - lib/rails_generator/scripts/update.rb
175
193
  - lib/tasks/databases.rake
194
+ - lib/tasks/documentation.rake
195
+ - lib/tasks/framework.rake
176
196
  - lib/tasks/javascripts.rake
177
- - lib/tasks/statistics.rake
178
197
  - lib/tasks/misc.rake
179
198
  - lib/tasks/rails.rb
180
- - lib/tasks/framework.rake
199
+ - lib/tasks/statistics.rake
181
200
  - lib/tasks/testing.rake
182
- - lib/commands/ncgi
183
- - lib/commands/performance
184
- - lib/commands/breakpointer.rb
185
- - lib/commands/console.rb
186
- - lib/commands/update.rb
187
- - lib/commands/process
188
- - lib/commands/server.rb
189
- - lib/commands/destroy.rb
190
- - lib/commands/runner.rb
191
- - lib/commands/generate.rb
192
- - lib/commands/ncgi/listener
193
- - lib/commands/ncgi/tracker
194
- - lib/commands/performance/benchmarker.rb
195
- - lib/commands/performance/profiler.rb
196
- - lib/commands/process/reaper.rb
197
- - lib/commands/process/spinner.rb
198
- - lib/commands/process/spawner.rb
199
201
  test_files: []
200
202
  rdoc_options:
201
203
  - "--exclude"
@@ -224,7 +226,7 @@ dependencies:
224
226
  -
225
227
  - "="
226
228
  - !ruby/object:Gem::Version
227
- version: 1.2.1
229
+ version: 1.2.2
228
230
  version:
229
231
  - !ruby/object:Gem::Dependency
230
232
  name: activerecord
@@ -234,7 +236,7 @@ dependencies:
234
236
  -
235
237
  - "="
236
238
  - !ruby/object:Gem::Version
237
- version: 1.12.1
239
+ version: 1.12.2
238
240
  version:
239
241
  - !ruby/object:Gem::Dependency
240
242
  name: actionpack
@@ -244,7 +246,7 @@ dependencies:
244
246
  -
245
247
  - "="
246
248
  - !ruby/object:Gem::Version
247
- version: 1.10.1
249
+ version: 1.10.2
248
250
  version:
249
251
  - !ruby/object:Gem::Dependency
250
252
  name: actionmailer
@@ -254,7 +256,7 @@ dependencies:
254
256
  -
255
257
  - "="
256
258
  - !ruby/object:Gem::Version
257
- version: 1.1.1
259
+ version: 1.1.2
258
260
  version:
259
261
  - !ruby/object:Gem::Dependency
260
262
  name: actionwebservice
@@ -264,5 +266,5 @@ dependencies:
264
266
  -
265
267
  - "="
266
268
  - !ruby/object:Gem::Version
267
- version: 0.9.1
269
+ version: 0.9.2
268
270
  version: