composite_primary_keys 12.0.0 → 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69bb7bf55e5c40834cb9f38c6978cc7ad2564bc7e2884cc0181d7894f9ebba40
4
- data.tar.gz: 31b2aa1fedc849533cbdebfbee1f2cd434a0a2ec37085a92b5592004d7a0ff4a
3
+ metadata.gz: 310d0182aec4e25246c7dd2fb3fe1acfddf92c10a427168b281fb16d24293852
4
+ data.tar.gz: 3a985b615dca7dc7eb1db8d654bfa4b53ea29c5c99cb994927eb55fb8569269c
5
5
  SHA512:
6
- metadata.gz: 3b12c996e4d31037a31560dc6b69cd15ef422abfb6355c1331902b40ce1dff9e4faf59f36537c293b978571a09df875ee6628a94d6a24735fea20f84c370a2f3
7
- data.tar.gz: eea6437fa46aab688e1b721e0cc3352b95ad318e1385d068399f30a111729fb0879a71071a3e94c56b652e8817e768651bd26f1f6a2a02066d2a0ece5b2e2f25
6
+ metadata.gz: 3d39752f6e7f510c23a59afdc0e09195904164f2f991c41525ce0e2ed2e0591eb312d8d13b2344077d208cd14d6bc38c55b232997acf7c51b3d4df763f2677c2
7
+ data.tar.gz: b94a65d0dc8b1bc955bff3e61b485c060d110849a301b8047ad3702fee4b23bf6d741a91e4ebeddce0ce8329f39004326666c1f6a6ec0937985c7537d3f14653
@@ -1,6 +1,10 @@
1
- == 12.0.0 (?)
2
- * Update to ActiveRecord 6.0 (Hiroshi Kajisha, Alexandru Anca, Charlie Savage)
3
- * Update travis setup (Olle Jonsson)
1
+ == 12.0.1 (2019-11-25)
2
+ * Convert attribute names to strings before checking for them in has_attribute? (Daniel de Haas)
3
+ * Update the comment referring to the overridden Rails code (Daniel de Haas)
4
+
5
+ == 12.0.0 (2019-09-03)
6
+ * Update to ActiveRecord 6.0 (Hiroshi Kajisha, Alexandru Anca, Charlie Savage, Sammy Larbi)
7
+ * Update travis setup (Olle Jonsson, Charlie Savage)
4
8
 
5
9
  == 11.2.0 (2019-03-16)
6
10
  * When creating new records, honor composite key autoincrementing fields if possible (Antti Pitkänen)
@@ -26,7 +26,7 @@ $:.unshift(File.dirname(__FILE__)) unless
26
26
 
27
27
  unless defined?(ActiveRecord)
28
28
  require 'rubygems'
29
- gem 'activerecord', '6.0.0'
29
+ gem 'activerecord', '~>6.0.0'
30
30
  require 'active_record'
31
31
  end
32
32
 
@@ -2,8 +2,8 @@ module ActiveRecord
2
2
  module AttributeMethods
3
3
  def has_attribute?(attr_name)
4
4
  # CPK
5
- # attributes.key?(attr_name)
6
- Array(attr_name).all? {|single_attr| attributes.key?(single_attr) }
5
+ # @attributes.key?(attr_name.to_s)
6
+ Array(attr_name).all? {|single_attr| attributes.key?(single_attr.to_s) }
7
7
  end
8
8
  end
9
9
  end
@@ -2,7 +2,7 @@ module CompositePrimaryKeys
2
2
  module VERSION
3
3
  MAJOR = 12
4
4
  MINOR = 0
5
- TINY = 0
5
+ TINY = 1
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composite_primary_keys
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.0
4
+ version: 12.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  requirements: []
273
- rubygems_version: 3.0.4
273
+ rubygems_version: 3.0.6
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: Composite key support for ActiveRecord