lookup_by 0.10.4 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dabf985d40ba22c3fccef9758f08829c367029d
4
- data.tar.gz: d8428f8ef2f854c3552e0ff507a9e7b7d3c50993
3
+ metadata.gz: db2d09ac4154fec2fa6e8936e8607569637ddf80
4
+ data.tar.gz: b52e31b9f71e3a42c9efd2e4a41060aa29f21736
5
5
  SHA512:
6
- metadata.gz: d27a0d57bc5bf4fdbd05de046da003f1e97bafcec89cf701f37765f9eaa82a5721bb79c601c3a8de4da1e6694a2fbcfc49eed9b458a700435f5a3816569bc27a
7
- data.tar.gz: 1439c460e20d6cd602bb04848df2bc6aeb41c2059bd61eeb40b56d2a877240eef01ba6124b27530063203bc8d4cfe2be08d649d2c6ed379e82fd862c35aa3f6a
6
+ metadata.gz: b902dc71e0be17d094a2f26cd769aeb4399726f851cf612ac821ca81ec37bc7c62c0e37e6c5f653ad7748cbf5bde86952be3b7eac6c3798c3d2a63be0ad3eaf5
7
+ data.tar.gz: 9080b08599655ee9cc4cfdc2421c8d305f1757f1af5a0dbbcae529f04468060d9fd1b8020c4290840c1c6998330cfc0154a8c4540beece06ec9cca36bc48a5d3
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3-p551
4
- - 2.0.0-p645
4
+ - 2.0.0
5
5
  - 2.1.6
6
6
  - 2.2.2
7
7
  - rbx-2.5.2
@@ -15,7 +15,7 @@ module LookupBy
15
15
  if klass.respond_to?(:lookups) && klass.lookups.include?(method.to_sym)
16
16
  target = method.to_s.classify.constantize
17
17
 
18
- options[:collection] ||= target.pluck(target.lookup.field) if target.lookup.cache_all?
18
+ options[:collection] ||= target.pluck(target.lookup.field) if target.lookup.has_cache?
19
19
  end
20
20
 
21
21
  input_without_lookup(method, options)
@@ -15,7 +15,7 @@ module LookupBy
15
15
  if klass.respond_to?(:lookups) && klass.lookups.include?(method.to_sym)
16
16
  target = method.to_s.classify.constantize
17
17
 
18
- options[:collection] ||= target.pluck(target.lookup.field) if target.lookup.cache_all?
18
+ options[:collection] ||= target.pluck(target.lookup.field) if target.lookup.has_cache?
19
19
  end
20
20
 
21
21
  input_without_lookup(method, options, &block)
@@ -1,3 +1,3 @@
1
1
  module LookupBy
2
- VERSION = "0.10.4"
2
+ VERSION = "0.10.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookup_by
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Peterson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-20 00:00:00.000000000 Z
11
+ date: 2015-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.4.7
156
+ rubygems_version: 2.4.8
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: A thread-safe lookup table cache for ActiveRecord