activerecord 2.3.9.pre → 2.3.9

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

Potentially problematic release.


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

data/CHANGELOG CHANGED
@@ -1,4 +1,4 @@
1
- *2.3.9 (August 29, 2010)*
1
+ *2.3.9 (September 4, 2010)*
2
2
  *2.3.8 (May 24, 2010)*
3
3
  *2.3.7 (May 24, 2010)*
4
4
 
@@ -383,7 +383,7 @@ module ActiveRecord
383
383
  return send("find_by_#{rest}", *args) ||
384
384
  method_missing("create_by_#{rest}", *args)
385
385
  when /^create_by_(.*)$/
386
- return create Hash[$1.split('_and_').zip(args)]
386
+ return create($1.split('_and_').zip(args).inject({}) { |h,kv| k,v=kv ; h[k] = v ; h })
387
387
  end
388
388
 
389
389
  if @target.respond_to?(method) || (!@reflection.klass.respond_to?(method) && Class.respond_to?(method))
@@ -26,7 +26,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
26
26
  post = Post.find :first
27
27
 
28
28
  assert_equal [], person.readers
29
- assert_nil person.readers.find_by_post_id post.id
29
+ assert_nil person.readers.find_by_post_id(post.id)
30
30
 
31
31
  reader = person.readers.create_by_post_id post.id
32
32
 
@@ -55,7 +55,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
55
55
  post = Post.find :first
56
56
 
57
57
  assert_equal [], person.readers
58
- assert_nil person.readers.find_by_post_id post.id
58
+ assert_nil person.readers.find_by_post_id(post.id)
59
59
 
60
60
  reader = person.readers.find_or_create_by_post_id post.id
61
61
 
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 2
7
7
  - 3
8
8
  - 9
9
- - pre
10
- version: 2.3.9.pre
9
+ version: 2.3.9
11
10
  platform: ruby
12
11
  authors:
13
12
  - David Heinemeier Hansson
@@ -15,7 +14,7 @@ autorequire: active_record
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-08-29 00:00:00 -07:00
17
+ date: 2010-09-04 00:00:00 -07:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -29,8 +28,7 @@ dependencies:
29
28
  - 2
30
29
  - 3
31
30
  - 9
32
- - pre
33
- version: 2.3.9.pre
31
+ version: 2.3.9
34
32
  type: :runtime
35
33
  version_requirements: *id001
36
34
  description: Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.
@@ -417,13 +415,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
417
415
  version: "0"
418
416
  required_rubygems_version: !ruby/object:Gem::Requirement
419
417
  requirements:
420
- - - ">"
418
+ - - ">="
421
419
  - !ruby/object:Gem::Version
422
420
  segments:
423
- - 1
424
- - 3
425
- - 1
426
- version: 1.3.1
421
+ - 0
422
+ version: "0"
427
423
  requirements: []
428
424
 
429
425
  rubyforge_project: activerecord