second_level_cache 2.1.14 → 2.1.15

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
  SHA1:
3
- metadata.gz: 7686a42b44f437f2e6fc609d96522d1379b7a200
4
- data.tar.gz: ba2e25b305dbfdcd28422f7336a4d626799eb248
3
+ metadata.gz: e39295b09b9e8ebe23ba4cfaac49a42168b5327c
4
+ data.tar.gz: 635c82b444d861fffeb61a2d7b8fc9b82ccebf76
5
5
  SHA512:
6
- metadata.gz: 80c5b721865aa021c8e849b2fd9e55fe76f70b1d4bb9d1f15c8f0219e46ce2f55cc87314c1db8c03fcfc9b1606078d9d23362dbba2a54fb7891877536ca4e081
7
- data.tar.gz: a324360eb82ba9b00045aca3e85e6e7c6cef69376b91de60cef776c9c5b432467d1f7728c0dcb59965bf37a6048432a2e463b71e830d2867905586d5c7514fdd
6
+ metadata.gz: 675fe9b7770e085f00b210ec8aff15b5e7cc1b5fe025d894ccff0b9b29c19aed8a68f99fe28840c4fea249a190261e1b71ec3cb37e03d56239207bccdca299b9
7
+ data.tar.gz: 5e13c37f662c986d405ace8feee74703e891de3753ead0741bf39f4f06637fe91b7d86cff8bc14318019841189b44806f4d1e75a2fb2a8a857f68d451ef12fec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ 2.1.15
2
+ * Replace Fixnum class check for Integer class
3
+
1
4
  2.1.14
2
5
  * support has_one with scope
3
6
 
@@ -13,7 +13,7 @@ module SecondLevelCache
13
13
 
14
14
  module ClassMethods
15
15
  def find_with_cache(*ids)
16
- return all.find(ids.first) if ids.size == 1 && ids.first.is_a?(Fixnum)
16
+ return all.find(ids.first) if ids.size == 1 && ids.first.is_a?(Integer)
17
17
  find_without_cache(*ids)
18
18
  end
19
19
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module SecondLevelCache
3
- VERSION = "2.1.14"
3
+ VERSION = "2.1.15"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: second_level_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.14
4
+ version: 2.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hooopo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.5.1
178
+ rubygems_version: 2.5.2.3
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: 'SecondLevelCache is a write-through and read-through caching library inspired
@@ -185,25 +185,25 @@ summary: 'SecondLevelCache is a write-through and read-through caching library i
185
185
  is a cache miss, it will populate the cache. Write-Through: As objects are created,
186
186
  updated, and deleted, all of the caches are automatically kept up-to-date and coherent.'
187
187
  test_files:
188
- - test/active_record_test_case_helper.rb
189
- - test/base_test.rb
190
- - test/belongs_to_association_test.rb
191
- - test/fetch_by_uniq_key_test.rb
188
+ - test/polymorphic_association_test.rb
189
+ - test/require_test.rb
190
+ - test/preloader_test.rb
192
191
  - test/finder_methods_test.rb
193
- - test/has_one_association_test.rb
192
+ - test/belongs_to_association_test.rb
193
+ - test/second_level_cache_test.rb
194
+ - test/record_marshal_test.rb
195
+ - test/persistence_test.rb
196
+ - test/single_table_inheritance_test.rb
197
+ - test/model/image.rb
194
198
  - test/model/account.rb
195
- - test/model/animal.rb
196
199
  - test/model/book.rb
197
- - test/model/image.rb
200
+ - test/model/topic.rb
201
+ - test/model/animal.rb
198
202
  - test/model/multi_read_from_cache_test.rb
199
203
  - test/model/post.rb
200
- - test/model/topic.rb
201
204
  - test/model/user.rb
202
- - test/persistence_test.rb
203
- - test/polymorphic_association_test.rb
204
- - test/preloader_test.rb
205
- - test/record_marshal_test.rb
206
- - test/require_test.rb
207
- - test/second_level_cache_test.rb
208
- - test/single_table_inheritance_test.rb
205
+ - test/fetch_by_uniq_key_test.rb
209
206
  - test/test_helper.rb
207
+ - test/has_one_association_test.rb
208
+ - test/base_test.rb
209
+ - test/active_record_test_case_helper.rb