where_exists 1.1.4 → 1.1.5

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
- SHA256:
3
- metadata.gz: 9264d4a29619fa91e69b9648228c2597564b087e81d11012bfe6e1708337ac7d
4
- data.tar.gz: cd071c68e39c82aa182c35f99e5871dd0ddeec3b3bbdb63e5aa12dbfc2ee088e
2
+ SHA1:
3
+ metadata.gz: 04a754bdba0efe110c9e700feda620618a9f0f35
4
+ data.tar.gz: 194d5488d6809663b0be8eaba9f26f0ffb224aeb
5
5
  SHA512:
6
- metadata.gz: 33621afb28c864019a32ef912bcda6edbd481ea26b4eabef5965796ce8bfd23f8e37f4ed56ddce72e34bf0f286e8759b1132ee39ffd95a3b329ad2cdbfce2fdb
7
- data.tar.gz: dfe4dee7dc35c9a5fe4a3bbe4441a4647da72d9f541c4f0c98f564df784e394b27da5776d1c9389b4e879b102bbd701af5db4052a32b80bd6b7e2d5264c9ba0c
6
+ metadata.gz: 6a2d63d72377b8f062eee34f2bc228309ebe4201d88b319dda9b9316aa2e84de39d117d21c057f494b2ed2c79f12a2f90aae6ea39a1a168c7e3aeab02b5dfb8a
7
+ data.tar.gz: 952e052725851bb53f8ade54661ec65d35bdf536836ce589c85bdd29c3cceba7d0dc1347d9bd2aa97d656dc85a01db38f6b0a2d756f535812e06cc63f3a90fea
File without changes
data/Rakefile CHANGED
File without changes
@@ -198,13 +198,13 @@ module WhereExists
198
198
 
199
199
  if next_association[:next_association] && next_association[:next_association][:association]
200
200
  subq = str.match(/\([^\(\)]+\)/mi)[0]
201
- str.sub!(subq,
201
+ str.sub!(subq) do
202
202
  "(#{subq} AND (#{loop_nested_association(
203
203
  next_association[:association],
204
204
  next_association[:next_association],
205
205
  true
206
206
  )}))"
207
- )
207
+ end
208
208
  end
209
209
 
210
210
  nested ? str : [query.where(str)]
@@ -1,3 +1,3 @@
1
1
  module WhereExists
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
File without changes
File without changes
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: where_exists
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Zolotarev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-25 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: rails
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.7.7
129
+ rubygems_version: 2.6.11
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: "#where_exists extension of ActiveRecord"