rails 2.3.9 → 2.3.10

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,5 @@
1
+ *2.3.10 (October 15, 2010)*
2
+
1
3
  *2.3.9 (September 4, 2010)*
2
4
 
3
5
  * Deprecates config.load_(once_)paths in favor of autolaod_(once_)paths. [fxn]
data/Rakefile CHANGED
@@ -313,11 +313,11 @@ spec = Gem::Specification.new do |s|
313
313
  EOF
314
314
 
315
315
  s.add_dependency('rake', '>= 0.8.3')
316
- s.add_dependency('activesupport', '= 2.3.9' + PKG_BUILD)
317
- s.add_dependency('activerecord', '= 2.3.9' + PKG_BUILD)
318
- s.add_dependency('actionpack', '= 2.3.9' + PKG_BUILD)
319
- s.add_dependency('actionmailer', '= 2.3.9' + PKG_BUILD)
320
- s.add_dependency('activeresource', '= 2.3.9' + PKG_BUILD)
316
+ s.add_dependency('activesupport', '= 2.3.10' + PKG_BUILD)
317
+ s.add_dependency('activerecord', '= 2.3.10' + PKG_BUILD)
318
+ s.add_dependency('actionpack', '= 2.3.10' + PKG_BUILD)
319
+ s.add_dependency('actionmailer', '= 2.3.10' + PKG_BUILD)
320
+ s.add_dependency('activeresource', '= 2.3.10' + PKG_BUILD)
321
321
 
322
322
  s.rdoc_options << '--exclude' << '.'
323
323
  s.has_rdoc = false
@@ -31,8 +31,10 @@ module Rails
31
31
 
32
32
  def self.from_directory_name(directory_name, load_spec=true)
33
33
  directory_name_parts = File.basename(directory_name).split('-')
34
- name = directory_name_parts[0..-2].join('-')
35
- version = directory_name_parts.last
34
+
35
+ version = directory_name_parts.find { |s| s.match(/^\d(\.\d|\.\w+)*$/) }
36
+ name = directory_name_parts[0..directory_name_parts.index(version)-1].join('-') if version
37
+
36
38
  result = self.new(name, :version => version)
37
39
  spec_filename = File.join(directory_name, '.specification')
38
40
  if load_spec
@@ -101,8 +101,8 @@ module Rails
101
101
  end
102
102
 
103
103
  def version_for_dir(d)
104
- matches = /-([^-]+)$/.match(d)
105
- Gem::Version.new(matches[1]) if matches
104
+ version = d.split('-').find { |s| s.match(/^\d(\.\d|\.\w+)*$/) }
105
+ Gem::Version.new(version)
106
106
  end
107
107
 
108
108
  def load_specification(gem_dir)
@@ -2,7 +2,7 @@ module Rails
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- TINY = 9
5
+ TINY = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -46,14 +46,14 @@ namespace :db do
46
46
  $stderr.puts "Couldn't create database for #{config.inspect}"
47
47
  end
48
48
  end
49
- return # Skip the else clause of begin/rescue
49
+ return # Skip the else clause of begin/rescue
50
50
  else
51
51
  ActiveRecord::Base.establish_connection(config)
52
52
  ActiveRecord::Base.connection
53
53
  end
54
54
  rescue
55
55
  case config['adapter']
56
- when 'mysql'
56
+ when /^mysql/
57
57
  @charset = ENV['CHARSET'] || 'utf8'
58
58
  @collation = ENV['COLLATION'] || 'utf8_unicode_ci'
59
59
  begin
@@ -159,7 +159,7 @@ namespace :db do
159
159
  task :charset => :environment do
160
160
  config = ActiveRecord::Base.configurations[RAILS_ENV || 'development']
161
161
  case config['adapter']
162
- when 'mysql'
162
+ when /^mysql/
163
163
  ActiveRecord::Base.establish_connection(config)
164
164
  puts ActiveRecord::Base.connection.charset
165
165
  when 'postgresql'
@@ -174,7 +174,7 @@ namespace :db do
174
174
  task :collation => :environment do
175
175
  config = ActiveRecord::Base.configurations[RAILS_ENV || 'development']
176
176
  case config['adapter']
177
- when 'mysql'
177
+ when /^mysql/
178
178
  ActiveRecord::Base.establish_connection(config)
179
179
  puts ActiveRecord::Base.connection.collation
180
180
  else
@@ -274,7 +274,7 @@ namespace :db do
274
274
  task :dump => :environment do
275
275
  abcs = ActiveRecord::Base.configurations
276
276
  case abcs[RAILS_ENV]["adapter"]
277
- when "mysql", "oci", "oracle"
277
+ when /^mysql/, "oci", "oracle"
278
278
  ActiveRecord::Base.establish_connection(abcs[RAILS_ENV])
279
279
  File.open("#{RAILS_ROOT}/db/#{RAILS_ENV}_structure.sql", "w+") { |f| f << ActiveRecord::Base.connection.structure_dump }
280
280
  when "postgresql"
@@ -320,7 +320,7 @@ namespace :db do
320
320
  task :clone_structure => [ "db:structure:dump", "db:test:purge" ] do
321
321
  abcs = ActiveRecord::Base.configurations
322
322
  case abcs["test"]["adapter"]
323
- when "mysql"
323
+ when /^mysql/
324
324
  ActiveRecord::Base.establish_connection(:test)
325
325
  ActiveRecord::Base.connection.execute('SET foreign_key_checks = 0')
326
326
  IO.readlines("#{RAILS_ROOT}/db/#{RAILS_ENV}_structure.sql").join.split("\n\n").each do |table|
@@ -354,14 +354,14 @@ namespace :db do
354
354
  task :purge => :environment do
355
355
  abcs = ActiveRecord::Base.configurations
356
356
  case abcs["test"]["adapter"]
357
- when "mysql"
357
+ when /^mysql/
358
358
  ActiveRecord::Base.establish_connection(:test)
359
359
  ActiveRecord::Base.connection.recreate_database(abcs["test"]["database"], abcs["test"])
360
360
  when "postgresql"
361
361
  ActiveRecord::Base.clear_active_connections!
362
362
  drop_database(abcs['test'])
363
363
  create_database(abcs['test'])
364
- when "sqlite","sqlite3"
364
+ when "sqlite", "sqlite3"
365
365
  dbfile = abcs["test"]["database"] || abcs["test"]["dbfile"]
366
366
  File.delete(dbfile) if File.exist?(dbfile)
367
367
  when "sqlserver"
@@ -408,7 +408,7 @@ end
408
408
  def drop_database(config)
409
409
  begin
410
410
  case config['adapter']
411
- when 'mysql'
411
+ when /^mysql/
412
412
  ActiveRecord::Base.establish_connection(config)
413
413
  ActiveRecord::Base.connection.drop_database config['database']
414
414
  when /^sqlite/
Binary file
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease: false
5
6
  segments:
6
7
  - 2
7
8
  - 3
8
- - 9
9
- version: 2.3.9
9
+ - 10
10
+ version: 2.3.10
10
11
  platform: ruby
11
12
  authors:
12
13
  - David Heinemeier Hansson
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-09-04 00:00:00 -07:00
18
+ date: 2010-10-15 00:00:00 +13:00
18
19
  default_executable: rails
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rake
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 57
27
30
  segments:
28
31
  - 0
29
32
  - 8
@@ -35,70 +38,80 @@ dependencies:
35
38
  name: activesupport
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - "="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 23
41
46
  segments:
42
47
  - 2
43
48
  - 3
44
- - 9
45
- version: 2.3.9
49
+ - 10
50
+ version: 2.3.10
46
51
  type: :runtime
47
52
  version_requirements: *id002
48
53
  - !ruby/object:Gem::Dependency
49
54
  name: activerecord
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - "="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 23
55
62
  segments:
56
63
  - 2
57
64
  - 3
58
- - 9
59
- version: 2.3.9
65
+ - 10
66
+ version: 2.3.10
60
67
  type: :runtime
61
68
  version_requirements: *id003
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: actionpack
64
71
  prerelease: false
65
72
  requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
66
74
  requirements:
67
75
  - - "="
68
76
  - !ruby/object:Gem::Version
77
+ hash: 23
69
78
  segments:
70
79
  - 2
71
80
  - 3
72
- - 9
73
- version: 2.3.9
81
+ - 10
82
+ version: 2.3.10
74
83
  type: :runtime
75
84
  version_requirements: *id004
76
85
  - !ruby/object:Gem::Dependency
77
86
  name: actionmailer
78
87
  prerelease: false
79
88
  requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
80
90
  requirements:
81
91
  - - "="
82
92
  - !ruby/object:Gem::Version
93
+ hash: 23
83
94
  segments:
84
95
  - 2
85
96
  - 3
86
- - 9
87
- version: 2.3.9
97
+ - 10
98
+ version: 2.3.10
88
99
  type: :runtime
89
100
  version_requirements: *id005
90
101
  - !ruby/object:Gem::Dependency
91
102
  name: activeresource
92
103
  prerelease: false
93
104
  requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
94
106
  requirements:
95
107
  - - "="
96
108
  - !ruby/object:Gem::Version
109
+ hash: 23
97
110
  segments:
98
111
  - 2
99
112
  - 3
100
- - 9
101
- version: 2.3.9
113
+ - 10
114
+ version: 2.3.10
102
115
  type: :runtime
103
116
  version_requirements: *id006
104
117
  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"
@@ -113,6 +126,7 @@ files:
113
126
  - CHANGELOG
114
127
  - fresh_rakefile
115
128
  - MIT-LICENSE
129
+ - railties-3.0.0.beta3.gem
116
130
  - Rakefile
117
131
  - README
118
132
  - bin/about
@@ -334,23 +348,27 @@ rdoc_options:
334
348
  require_paths:
335
349
  - lib
336
350
  required_ruby_version: !ruby/object:Gem::Requirement
351
+ none: false
337
352
  requirements:
338
353
  - - ">="
339
354
  - !ruby/object:Gem::Version
355
+ hash: 3
340
356
  segments:
341
357
  - 0
342
358
  version: "0"
343
359
  required_rubygems_version: !ruby/object:Gem::Requirement
360
+ none: false
344
361
  requirements:
345
362
  - - ">="
346
363
  - !ruby/object:Gem::Version
364
+ hash: 3
347
365
  segments:
348
366
  - 0
349
367
  version: "0"
350
368
  requirements: []
351
369
 
352
370
  rubyforge_project: rails
353
- rubygems_version: 1.3.6
371
+ rubygems_version: 1.3.7
354
372
  signing_key:
355
373
  specification_version: 3
356
374
  summary: Web-application framework with template engine, control-flow layer, and ORM.