composite_primary_keys 3.1.10 → 3.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ == 3.1.11 2012-05-20
2
+ Fix AssociationReflection#derive_primary_key for belongs_to relationships (Heinrich Lee Yu).
3
+
1
4
  == 3.1.10 2011-07-08
2
5
  * Bugfix for belongs_to with includes (John Ash)
3
6
  * Improved tests for calling clear on a habtm association, which involved (David Rueck)
@@ -5,9 +5,7 @@ module ActiveRecord
5
5
  if options[:foreign_key]
6
6
  options[:foreign_key]
7
7
  elsif belongs_to?
8
- #CPK
9
- #"#{name}_id"
10
- class_name.foreign_key
8
+ "#{name}_id"
11
9
  elsif options[:as]
12
10
  "#{options[:as]}_id"
13
11
  else
@@ -36,4 +34,4 @@ module ActiveRecord
36
34
  end
37
35
  end
38
36
  end
39
- end
37
+ end
@@ -2,7 +2,7 @@ module CompositePrimaryKeys
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- TINY = 10
5
+ TINY = 11
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,71 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: composite_primary_keys
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.1.11
5
5
  prerelease:
6
- segments:
7
- - 3
8
- - 1
9
- - 10
10
- version: 3.1.10
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dr Nic Williams
14
9
  - Charlie Savage
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-07-08 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2012-05-20 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: activerecord
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
19
+ requirements:
27
20
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 3
32
- - 0
33
- - 0
21
+ - !ruby/object:Gem::Version
34
22
  version: 3.0.0
35
- - - ">="
36
- - !ruby/object:Gem::Version
37
- hash: 13
38
- segments:
39
- - 3
40
- - 0
41
- - 5
23
+ - - ! '>='
24
+ - !ruby/object:Gem::Version
42
25
  version: 3.0.5
43
26
  type: :runtime
44
- version_requirements: *id001
45
- - !ruby/object:Gem::Dependency
46
- name: rspec
47
27
  prerelease: false
48
- requirement: &id002 !ruby/object:Gem::Requirement
28
+ version_requirements: !ruby/object:Gem::Requirement
49
29
  none: false
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- hash: 3
54
- segments:
55
- - 0
56
- version: "0"
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.0
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: 3.0.5
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
39
+ requirement: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
57
45
  type: :development
58
- version_requirements: *id002
46
+ prerelease: false
47
+ version_requirements: !ruby/object:Gem::Requirement
48
+ none: false
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
59
53
  description: Composite key support for ActiveRecord 3
60
- email:
54
+ email:
61
55
  - drnicwilliams@gmail.com
62
56
  executables: []
63
-
64
57
  extensions: []
65
-
66
58
  extra_rdoc_files: []
67
-
68
- files:
59
+ files:
69
60
  - Rakefile
70
61
  - History.txt
71
62
  - README.txt
@@ -209,40 +200,29 @@ files:
209
200
  - test/test_validations.rb
210
201
  homepage: http://github.com/cfis/composite_primary_keys
211
202
  licenses: []
212
-
213
203
  post_install_message:
214
204
  rdoc_options: []
215
-
216
- require_paths:
205
+ require_paths:
217
206
  - lib
218
- required_ruby_version: !ruby/object:Gem::Requirement
207
+ required_ruby_version: !ruby/object:Gem::Requirement
219
208
  none: false
220
- requirements:
221
- - - ">="
222
- - !ruby/object:Gem::Version
223
- hash: 57
224
- segments:
225
- - 1
226
- - 8
227
- - 7
209
+ requirements:
210
+ - - ! '>='
211
+ - !ruby/object:Gem::Version
228
212
  version: 1.8.7
229
- required_rubygems_version: !ruby/object:Gem::Requirement
213
+ required_rubygems_version: !ruby/object:Gem::Requirement
230
214
  none: false
231
- requirements:
232
- - - ">="
233
- - !ruby/object:Gem::Version
234
- hash: 3
235
- segments:
236
- - 0
237
- version: "0"
215
+ requirements:
216
+ - - ! '>='
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
238
219
  requirements: []
239
-
240
220
  rubyforge_project: compositekeys
241
- rubygems_version: 1.7.2
221
+ rubygems_version: 1.8.24
242
222
  signing_key:
243
223
  specification_version: 3
244
224
  summary: Composite key support for ActiveRecord
245
- test_files:
225
+ test_files:
246
226
  - test/abstract_unit.rb
247
227
  - test/db_test.rb
248
228
  - test/debug.log