ii_finder 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 452fde95e0ced0ad63b8ccf586d493c1514895d074fbb7ae7c4c8e105ae66fb4
4
- data.tar.gz: b07f0b0c3354b93a6b189187ba423605169709b8a4fb56fe57cb8efc92d9c6f0
3
+ metadata.gz: 1e833c71166437a7e1f0881641850c3b2bc6f36f9c7827a2e18d0c63ba9d3e4b
4
+ data.tar.gz: 6f653a027ee5947a6c7bbcd0ce3f76999513f334b79ebd5a8b12dc907961ea2f
5
5
  SHA512:
6
- metadata.gz: c973652162caad6088d84acee6605344679976504869a35c4687b8332e825ec5778cf8b605ae0882573f1998be02ffabdb29d40c9f91b41976b27dadaebaceab
7
- data.tar.gz: d56881a31d2aaa55052094cb1f0e26832339a9ee2478d2a9a18580ef2aef66a6068259230179ca72129e683fb5c97925d28ab8285496614221eefb898b007f35
6
+ metadata.gz: 1b861518b33b016ccc5795cd04c6c1677a159efd43eeb023bb00ae068b00cb2ca2820c0bf35c58b136cf6ee8392995b87b4a4d5e6e8bbfc5e09f1ab7e16a422c
7
+ data.tar.gz: 443dc16e940192156b4af6af1747d9f81166455870ed50215a361c61b9e0535b6ae60e14a0824ae989be6cb141e844235cec5cfbb2b210e4923694b9e792cd73
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.2
4
+
5
+ Try fetch prior to calling instance method.
6
+
3
7
  ## 1.1.1
4
8
 
5
9
  * Check arel_table existence for model.
@@ -34,10 +34,10 @@ module IIFinder
34
34
  end
35
35
 
36
36
  def fetch_criteria(name)
37
- if @criteria.respond_to?(name)
38
- @criteria.send(name)
39
- elsif @criteria.respond_to?(:fetch)
37
+ if @criteria.respond_to?(:fetch)
40
38
  @criteria.fetch(name, nil)
39
+ elsif @criteria.respond_to?(name)
40
+ @criteria.send(name)
41
41
  end
42
42
  end
43
43
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IIFinder
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ii_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-21 00:00:00.000000000 Z
11
+ date: 2021-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.1.2
151
+ rubygems_version: 3.1.6
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: A base finder to support building relations from parameters