ii_finder 1.1.0 → 1.1.1

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: 5e3dc926cc0da901131f8a10b84ae7a31815606384e5b37ab3caad85ad87cee3
4
- data.tar.gz: 9217854b0fe479c182404a1137e4c95f1777d8a674fbb3f3b81bc744a1476652
3
+ metadata.gz: 452fde95e0ced0ad63b8ccf586d493c1514895d074fbb7ae7c4c8e105ae66fb4
4
+ data.tar.gz: b07f0b0c3354b93a6b189187ba423605169709b8a4fb56fe57cb8efc92d9c6f0
5
5
  SHA512:
6
- metadata.gz: 45ee75341deca673d350dadc0bc1c0be3e24b9a473261f26f5861310fced6d3b2b9237aaf484dac82d08339bbeb1e6a7e5bde7ddcca77d2cd1599ec03b849083
7
- data.tar.gz: ad252f7de5a14f901aa2278d7a9b69732a198778608c3bdfb816f73e46ec435d18721cac57901890d722e3780bc03bc19735fe4df703612392bf82352053a661
6
+ metadata.gz: c973652162caad6088d84acee6605344679976504869a35c4687b8332e825ec5778cf8b605ae0882573f1998be02ffabdb29d40c9f91b41976b27dadaebaceab
7
+ data.tar.gz: d56881a31d2aaa55052094cb1f0e26832339a9ee2478d2a9a18580ef2aef66a6068259230179ca72129e683fb5c97925d28ab8285496614221eefb898b007f35
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.1
4
+
5
+ * Check arel_table existence for model.
6
+ * Make mergeability check more flexible.
7
+
3
8
  ## 1.1.0
4
9
 
5
10
  * Add log subscriber.
@@ -19,7 +19,7 @@ module IIFinder
19
19
  @criteria = args[1]
20
20
  @model = @relation.klass
21
21
  end
22
- @table = @model.arel_table
22
+ @table = @model.arel_table if @model.respond_to?(:arel_table)
23
23
  end
24
24
 
25
25
  def call
@@ -44,7 +44,7 @@ module IIFinder
44
44
  def call_method(name, value)
45
45
  result = send(name, value)
46
46
 
47
- if Config.merge_relation && result.is_a?(ActiveRecord::Relation)
47
+ if result.respond_to?(:merge) && Config.merge_relation
48
48
  @relation = @relation.merge(result)
49
49
  end
50
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IIFinder
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
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.0
4
+ version: 1.1.1
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-07-19 00:00:00.000000000 Z
11
+ date: 2021-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport