rails 1.1.3 → 1.1.4

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,3 +1,10 @@
1
+ *1.1.4* (June 29th, 2006)
2
+
3
+ * Remove use of opts.on { |options[:name] } style hash assignment. References #4440. [headius@headius.com]
4
+
5
+ * Updated to Action Pack 1.12.3, ActionWebService 1.1.4, ActionMailer 1.2.3
6
+
7
+
1
8
  *1.1.3* (June 27th, 2006)
2
9
 
3
10
  * Updated to Active Record 1.14.3, Action Pack 1.12.2, ActionWebService 1.1.3, ActionMailer 1.2.2
data/Rakefile CHANGED
@@ -280,9 +280,9 @@ spec = Gem::Specification.new do |s|
280
280
  s.add_dependency('rake', '>= 0.7.1')
281
281
  s.add_dependency('activesupport', '= 1.3.1' + PKG_BUILD)
282
282
  s.add_dependency('activerecord', '= 1.14.3' + PKG_BUILD)
283
- s.add_dependency('actionpack', '= 1.12.2' + PKG_BUILD)
284
- s.add_dependency('actionmailer', '= 1.2.2' + PKG_BUILD)
285
- s.add_dependency('actionwebservice', '= 1.1.3' + PKG_BUILD)
283
+ s.add_dependency('actionpack', '= 1.12.3' + PKG_BUILD)
284
+ s.add_dependency('actionmailer', '= 1.2.3' + PKG_BUILD)
285
+ s.add_dependency('actionwebservice', '= 1.1.4' + PKG_BUILD)
286
286
 
287
287
  s.rdoc_options << '--exclude' << '.'
288
288
  s.has_rdoc = false
@@ -4,8 +4,8 @@ require 'optparse'
4
4
  options = { :sandbox => false, :irb => irb }
5
5
  OptionParser.new do |opt|
6
6
  opt.banner = "Usage: console [environment] [options]"
7
- opt.on('-s', '--sandbox', 'Rollback database modifications on exit.') { |options[:sandbox]| }
8
- opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |options[:irb]| }
7
+ opt.on('-s', '--sandbox', 'Rollback database modifications on exit.') { |v| options[:sandbox] = v }
8
+ opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |v| options[:irb] = v }
9
9
  opt.parse!(ARGV)
10
10
  end
11
11
 
@@ -117,8 +117,8 @@ ARGV.options do |opts|
117
117
 
118
118
  opts.on(" Options:")
119
119
 
120
- opts.on("-a", "--action=name", "reload|graceful|kill (default: #{OPTIONS[:action]})", String) { |OPTIONS[:action]| }
121
- opts.on("-d", "--dispatcher=path", "default: #{OPTIONS[:dispatcher]}", String) { |OPTIONS[:dispatcher]| }
120
+ opts.on("-a", "--action=name", "reload|graceful|kill (default: #{OPTIONS[:action]})", String) { |v| OPTIONS[:action] = v }
121
+ opts.on("-d", "--dispatcher=path", "default: #{OPTIONS[:dispatcher]}", String) { |v| OPTIONS[:dispatcher] = v }
122
122
 
123
123
  opts.separator ""
124
124
 
@@ -65,11 +65,11 @@ ARGV.options do |opts|
65
65
 
66
66
  opts.on(" Options:")
67
67
 
68
- opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |OPTIONS[:port]| }
69
- opts.on("-i", "--instances=number", Integer, "Number of instances (default: #{OPTIONS[:instances]})") { |OPTIONS[:instances]| }
70
- opts.on("-r", "--repeat=seconds", Integer, "Repeat spawn attempts every n seconds (default: off)") { |OPTIONS[:repeat]| }
71
- opts.on("-e", "--environment=name", String, "test|development|production (default: #{OPTIONS[:environment]})") { |OPTIONS[:environment]| }
72
- opts.on("-s", "--spawner=path", String, "default: #{OPTIONS[:spawner]}") { |OPTIONS[:spawner]| }
68
+ opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v }
69
+ opts.on("-i", "--instances=number", Integer, "Number of instances (default: #{OPTIONS[:instances]})") { |v| OPTIONS[:instances] = v }
70
+ opts.on("-r", "--repeat=seconds", Integer, "Repeat spawn attempts every n seconds (default: off)") { |v| OPTIONS[:repeat] = v }
71
+ opts.on("-e", "--environment=name", String, "test|development|production (default: #{OPTIONS[:environment]})") { |v| OPTIONS[:environment] = v }
72
+ opts.on("-s", "--spawner=path", String, "default: #{OPTIONS[:spawner]}") { |v| OPTIONS[:spawner] = v }
73
73
  opts.on("-d", "--dispatcher=path", String, "default: #{OPTIONS[:dispatcher]}") { |dispatcher| OPTIONS[:dispatcher] = File.expand_path(dispatcher) }
74
74
 
75
75
  opts.separator ""
@@ -36,9 +36,9 @@ ARGV.options do |opts|
36
36
 
37
37
  opts.on(" Options:")
38
38
 
39
- opts.on("-c", "--command=path", String) { |OPTIONS[:command]| }
40
- opts.on("-i", "--interval=seconds", Float) { |OPTIONS[:interval]| }
41
- opts.on("-d", "--daemon") { |OPTIONS[:daemon]| }
39
+ opts.on("-c", "--command=path", String) { |v| OPTIONS[:command] = v }
40
+ opts.on("-i", "--interval=seconds", Float) { |v| OPTIONS[:interval] = v }
41
+ opts.on("-d", "--daemon") { |v| OPTIONS[:daemon] = v }
42
42
 
43
43
  opts.separator ""
44
44
 
@@ -10,7 +10,7 @@ ARGV.options do |opts|
10
10
 
11
11
  opts.on("-e", "--environment=name", String,
12
12
  "Specifies the environment for the runner to operate under (test/development/production).",
13
- "Default: development") { |options[:environment]| }
13
+ "Default: development") { |v| options[:environment] = v }
14
14
 
15
15
  opts.separator ""
16
16
 
@@ -19,13 +19,13 @@ ARGV.options do |opts|
19
19
 
20
20
  opts.on("-p", "--port=port", Integer,
21
21
  "Runs Rails on the specified port.",
22
- "Default: 3000") { |OPTIONS[:port]| }
22
+ "Default: 3000") { |v| OPTIONS[:port] = v }
23
23
  opts.on("-b", "--binding=ip", String,
24
24
  "Binds Rails to the specified ip.",
25
- "Default: 0.0.0.0") { |OPTIONS[:ip]| }
25
+ "Default: 0.0.0.0") { |v| OPTIONS[:ip] = v }
26
26
  opts.on("-e", "--environment=name", String,
27
27
  "Specifies the environment to run this server under (test/development/production).",
28
- "Default: development") { |OPTIONS[:environment]| }
28
+ "Default: development") { |v| OPTIONS[:environment] = v }
29
29
  opts.on("-m", "--mime-types=filename", String,
30
30
  "Specifies an Apache style mime.types configuration file to be used for mime types",
31
31
  "Default: none") { |mime_types_file| OPTIONS[:mime_types] = WEBrick::HTTPUtils::load_mime_types(mime_types_file) }
@@ -36,7 +36,7 @@ ARGV.options do |opts|
36
36
 
37
37
  opts.on("-c", "--charset=charset", String,
38
38
  "Set default charset for output.",
39
- "Default: UTF-8") { |OPTIONS[:charset]| }
39
+ "Default: UTF-8") { |v| OPTIONS[:charset] = v }
40
40
 
41
41
  opts.separator ""
42
42
 
@@ -2,7 +2,7 @@ module Rails
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -96,15 +96,15 @@ class AppGenerator < Rails::Generator::Base
96
96
  opt.separator 'Options:'
97
97
  opt.on("-r", "--ruby=path", String,
98
98
  "Path to the Ruby binary of your choice (otherwise scripts use env, dispatchers current path).",
99
- "Default: #{DEFAULT_SHEBANG}") { |options[:shebang]| }
99
+ "Default: #{DEFAULT_SHEBANG}") { |v| options[:shebang] = v }
100
100
 
101
101
  opt.on("-d", "--database=name", String,
102
102
  "Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite2/sqlite3).",
103
- "Default: mysql") { |options[:db]| }
103
+ "Default: mysql") { |v| options[:db] = v }
104
104
 
105
105
  opt.on("-f", "--freeze",
106
106
  "Freeze Rails in vendor/rails from the gems generating the skeleton",
107
- "Default: false") { |options[:freeze]| }
107
+ "Default: false") { |v| options[:freeze] = v }
108
108
  end
109
109
 
110
110
  def mysql_socket_location
@@ -29,6 +29,6 @@ class ModelGenerator < Rails::Generator::NamedBase
29
29
  opt.separator ''
30
30
  opt.separator 'Options:'
31
31
  opt.on("--skip-migration",
32
- "Don't generate a migration file for this model") { |options[:skip_migration]| }
32
+ "Don't generate a migration file for this model") { |v| options[:skip_migration] = v }
33
33
  end
34
34
  end
@@ -121,12 +121,12 @@ module Rails
121
121
  opt.separator ''
122
122
  opt.separator 'General Options:'
123
123
 
124
- opt.on('-p', '--pretend', 'Run but do not make any changes.') { |options[:pretend]| }
124
+ opt.on('-p', '--pretend', 'Run but do not make any changes.') { |v| options[:pretend] = v }
125
125
  opt.on('-f', '--force', 'Overwrite files that already exist.') { options[:collision] = :force }
126
126
  opt.on('-s', '--skip', 'Skip files that already exist.') { options[:collision] = :skip }
127
- opt.on('-q', '--quiet', 'Suppress normal output.') { |options[:quiet]| }
128
- opt.on('-t', '--backtrace', 'Debugging: show backtrace on errors.') { |options[:backtrace]| }
129
- opt.on('-h', '--help', 'Show this help message.') { |options[:help]| }
127
+ opt.on('-q', '--quiet', 'Suppress normal output.') { |v| options[:quiet] = v }
128
+ opt.on('-t', '--backtrace', 'Debugging: show backtrace on errors.') { |v| options[:backtrace] = v }
129
+ opt.on('-h', '--help', 'Show this help message.') { |v| options[:help] = v }
130
130
  opt.on('-c', '--svn', 'Modify files with subversion. (Note: svn must be in path)') do
131
131
  options[:svn] = `svn status`.inject({}) do |opt, e|
132
132
  opt[e.chomp[7..-1]] = true
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: rails
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.3
7
- date: 2006-06-27 00:00:00 -05:00
6
+ version: 1.1.4
7
+ date: 2006-06-29 00:00:00 -05:00
8
8
  summary: Web-application framework with template engine, control-flow layer, and ORM.
9
9
  require_paths:
10
10
  - lib
@@ -293,7 +293,7 @@ dependencies:
293
293
  requirements:
294
294
  - - "="
295
295
  - !ruby/object:Gem::Version
296
- version: 1.12.2
296
+ version: 1.12.3
297
297
  version:
298
298
  - !ruby/object:Gem::Dependency
299
299
  name: actionmailer
@@ -302,7 +302,7 @@ dependencies:
302
302
  requirements:
303
303
  - - "="
304
304
  - !ruby/object:Gem::Version
305
- version: 1.2.2
305
+ version: 1.2.3
306
306
  version:
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: actionwebservice
@@ -311,5 +311,5 @@ dependencies:
311
311
  requirements:
312
312
  - - "="
313
313
  - !ruby/object:Gem::Version
314
- version: 1.1.3
314
+ version: 1.1.4
315
315
  version: