rails 2.3.4 → 2.3.5

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,9 @@
1
+ *Edge*
2
+
3
+ * Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs [DHH]
4
+
5
+ * 1.9 compatibility
6
+
1
7
  *2.3.4 (September 4, 2009)*
2
8
 
3
9
  * I18n support for plugins. #2325 [Antonio Tapiador, Sven Fuchs]
data/Rakefile CHANGED
@@ -202,7 +202,7 @@ task :copy_configs do
202
202
  cp "configs/seeds.rb", "#{PKG_DESTINATION}/db/seeds.rb"
203
203
 
204
204
  cp "environments/boot.rb", "#{PKG_DESTINATION}/config/boot.rb"
205
- cp "environments/environment.rb", "#{PKG_DESTINATION}/config/environment.rb"
205
+ File.open("#{PKG_DESTINATION}/config/environment.rb", 'w') {|f| f.write ERB.new(IO.read("environments/environment.rb"), nil, '-').result(binding)}
206
206
  cp "environments/production.rb", "#{PKG_DESTINATION}/config/environments/production.rb"
207
207
  cp "environments/development.rb", "#{PKG_DESTINATION}/config/environments/development.rb"
208
208
  cp "environments/test.rb", "#{PKG_DESTINATION}/config/environments/test.rb"
@@ -314,11 +314,11 @@ spec = Gem::Specification.new do |s|
314
314
  EOF
315
315
 
316
316
  s.add_dependency('rake', '>= 0.8.3')
317
- s.add_dependency('activesupport', '= 2.3.4' + PKG_BUILD)
318
- s.add_dependency('activerecord', '= 2.3.4' + PKG_BUILD)
319
- s.add_dependency('actionpack', '= 2.3.4' + PKG_BUILD)
320
- s.add_dependency('actionmailer', '= 2.3.4' + PKG_BUILD)
321
- s.add_dependency('activeresource', '= 2.3.4' + PKG_BUILD)
317
+ s.add_dependency('activesupport', '= 2.3.5' + PKG_BUILD)
318
+ s.add_dependency('activerecord', '= 2.3.5' + PKG_BUILD)
319
+ s.add_dependency('actionpack', '= 2.3.5' + PKG_BUILD)
320
+ s.add_dependency('actionmailer', '= 2.3.5' + PKG_BUILD)
321
+ s.add_dependency('activeresource', '= 2.3.5' + PKG_BUILD)
322
322
 
323
323
  s.rdoc_options << '--exclude' << '.'
324
324
  s.has_rdoc = false
@@ -268,7 +268,7 @@ class Plugin
268
268
 
269
269
  def install_using_git(options = {})
270
270
  root = rails_env.root
271
- install_path = mkdir_p "#{root}/vendor/plugins/#{name}"
271
+ mkdir_p(install_path = "#{root}/vendor/plugins/#{name}")
272
272
  Dir.chdir install_path do
273
273
  init_cmd = "git init"
274
274
  init_cmd += " -q" if options[:quiet] and not $verbose
@@ -4,6 +4,8 @@ module Rails
4
4
  def initialize(app)
5
5
  @app = app
6
6
 
7
+ ARGV.clear # clear ARGV so that script/server options aren't passed to IRB
8
+
7
9
  require_library_or_gem 'ruby-debug'
8
10
  ::Debugger.start
9
11
  ::Debugger.settings[:autoeval] = true if ::Debugger.respond_to?(:settings)
@@ -2,7 +2,7 @@ module Rails
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -131,16 +131,16 @@ module Rails
131
131
  opt.on('-q', '--quiet', 'Suppress normal output.') { |v| options[:quiet] = v }
132
132
  opt.on('-t', '--backtrace', 'Debugging: show backtrace on errors.') { |v| options[:backtrace] = v }
133
133
  opt.on('-c', '--svn', 'Modify files with subversion. (Note: svn must be in path)') do
134
- options[:svn] = `svn status`.inject({}) do |opt, e|
135
- opt[e.chomp[7..-1]] = true
136
- opt
134
+ options[:svn] = {}
135
+ `svn status`.each_line do |line|
136
+ options[:svn][line.chomp[7..-1]] = true
137
137
  end
138
138
  end
139
139
  opt.on('-g', '--git', 'Modify files with git. (Note: git must be in path)') do
140
- options[:git] = `git status`.inject({:new => {}, :modified => {}}) do |opt, e|
141
- opt[:new][e.chomp[14..-1]] = true if e =~ /new file:/
142
- opt[:modified][e.chomp[14..-1]] = true if e =~ /modified:/
143
- opt
140
+ options[:git] = {:new => {}, :modified => {}}
141
+ `git status`.each_line do |line|
142
+ options[:git][:new][line.chomp[14..-1]] = true if line =~ /new file:/
143
+ options[:git][:modified][line.chomp[14..-1]] = true if line =~ /modified:/
144
144
  end
145
145
  end
146
146
  end
@@ -4,5 +4,6 @@ $VERBOSE = nil
4
4
  Dir["#{File.dirname(__FILE__)}/*.rake"].each { |ext| load ext }
5
5
 
6
6
  # Load any custom rakefile extensions
7
- Dir["#{RAILS_ROOT}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext }
7
+ Dir["#{RAILS_ROOT}/vendor/plugins/*/tasks/**/*.rake"].sort.each { |ext| load ext }
8
+ Dir["#{RAILS_ROOT}/vendor/plugins/*/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
8
9
  Dir["#{RAILS_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-04 00:00:00 +12:00
12
+ date: 2009-11-27 00:00:00 +13:00
13
13
  default_executable: rails
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - "="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.4
33
+ version: 2.3.5
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: activerecord
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - "="
42
42
  - !ruby/object:Gem::Version
43
- version: 2.3.4
43
+ version: 2.3.5
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: actionpack
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - "="
52
52
  - !ruby/object:Gem::Version
53
- version: 2.3.4
53
+ version: 2.3.5
54
54
  version:
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: actionmailer
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - "="
62
62
  - !ruby/object:Gem::Version
63
- version: 2.3.4
63
+ version: 2.3.5
64
64
  version:
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: activeresource
@@ -70,7 +70,7 @@ dependencies:
70
70
  requirements:
71
71
  - - "="
72
72
  - !ruby/object:Gem::Version
73
- version: 2.3.4
73
+ version: 2.3.5
74
74
  version:
75
75
  description: " Rails is a framework for building web-application using CGI, FCGI, mod_ruby, or WEBrick\n on top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or Oracle with eRuby- or Builder-based templates.\n"
76
76
  email: david@loudthinking.com
@@ -84,7 +84,6 @@ files:
84
84
  - CHANGELOG
85
85
  - fresh_rakefile
86
86
  - MIT-LICENSE
87
- - rails-2.3.4.gem
88
87
  - Rakefile
89
88
  - README
90
89
  - bin/about
@@ -426,7 +425,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
425
  requirements: []
427
426
 
428
427
  rubyforge_project: rails
429
- rubygems_version: 1.3.2
428
+ rubygems_version: 1.3.5
430
429
  signing_key:
431
430
  specification_version: 3
432
431
  summary: Web-application framework with template engine, control-flow layer, and ORM.