rails 2.1.1 → 2.1.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,3 +1,8 @@
1
+ *2.1.2 (October 23rd, 2008)*
2
+
3
+ * Security fixes for Active Record and Action Pack and a few other minor fixes
4
+
5
+
1
6
  *2.1.1 (September 4th, 2008)*
2
7
 
3
8
  * Fix script/about in production mode. #370 [Cheah Chu Yeow, Xavier Noria, David Krmpotic]
data/Rakefile CHANGED
@@ -306,11 +306,11 @@ spec = Gem::Specification.new do |s|
306
306
  EOF
307
307
 
308
308
  s.add_dependency('rake', '>= 0.8.1')
309
- s.add_dependency('activesupport', '= 2.1.1' + PKG_BUILD)
310
- s.add_dependency('activerecord', '= 2.1.1' + PKG_BUILD)
311
- s.add_dependency('actionpack', '= 2.1.1' + PKG_BUILD)
312
- s.add_dependency('actionmailer', '= 2.1.1' + PKG_BUILD)
313
- s.add_dependency('activeresource', '= 2.1.1' + PKG_BUILD)
309
+ s.add_dependency('activesupport', '= 2.1.2' + PKG_BUILD)
310
+ s.add_dependency('activerecord', '= 2.1.2' + PKG_BUILD)
311
+ s.add_dependency('actionpack', '= 2.1.2' + PKG_BUILD)
312
+ s.add_dependency('actionmailer', '= 2.1.2' + PKG_BUILD)
313
+ s.add_dependency('activeresource', '= 2.1.2' + PKG_BUILD)
314
314
 
315
315
  s.rdoc_options << '--exclude' << '.'
316
316
  s.has_rdoc = false
@@ -1,6 +1,6 @@
1
- ActiveRecord::Base.send :increment_open_transactions
1
+ ActiveRecord::Base.connection.increment_open_transactions
2
2
  ActiveRecord::Base.connection.begin_db_transaction
3
3
  at_exit do
4
4
  ActiveRecord::Base.connection.rollback_db_transaction
5
- ActiveRecord::Base.send :decrement_open_transactions
5
+ ActiveRecord::Base.connection.decrement_open_transactions
6
6
  end
@@ -120,7 +120,9 @@ module Rails
120
120
 
121
121
  def unpack_command
122
122
  cmd = %w(unpack) << @name
123
- cmd << "--version" << %("#{@requirement.to_s}") if @requirement
123
+ # We don't quote this requirement as it's run through GemRunner instead
124
+ # of shelling out to gem
125
+ cmd << "--version" << @requirement.to_s if @requirement
124
126
  cmd
125
127
  end
126
128
  end
@@ -2,7 +2,7 @@ module Rails
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -208,7 +208,8 @@ module Rails
208
208
  class GemGeneratorSource < AbstractGemSource
209
209
  # Yield latest versions of generator gems.
210
210
  def each
211
- Gem::cache.search(/_generator$/).inject({}) { |latest, gem|
211
+ dependency = Gem::Dependency.new(/_generator$/, Gem::Requirement.default)
212
+ Gem::cache.search(dependency).inject({}) { |latest, gem|
212
213
  hem = latest[gem.name]
213
214
  latest[gem.name] = gem if hem.nil? or gem.version > hem.version
214
215
  latest
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.1.1
4
+ version: 2.1.2
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: 2008-09-04 00:00:00 +02:00
12
+ date: 2008-10-23 00:00:00 +02: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.1.1
33
+ version: 2.1.2
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.1.1
43
+ version: 2.1.2
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.1.1
53
+ version: 2.1.2
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.1.1
63
+ version: 2.1.2
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.1.1
73
+ version: 2.1.2
74
74
  version:
75
75
  description: Rails is a framework for building web-application using CGI, FCGI, mod_ruby, or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or Oracle with eRuby- or Builder-based templates.
76
76
  email: david@loudthinking.com
@@ -352,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
352
352
  requirements: []
353
353
 
354
354
  rubyforge_project: rails
355
- rubygems_version: 1.2.0
355
+ rubygems_version: 1.3.0
356
356
  signing_key:
357
357
  specification_version: 2
358
358
  summary: Web-application framework with template engine, control-flow layer, and ORM.