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 +5 -5
- data/MIT-LICENSE +0 -0
- data/Rakefile +0 -0
- data/lib/where_exists.rb +2 -2
- data/lib/where_exists/version.rb +1 -1
- data/test/belongs_to_polymorphic_test.rb +0 -0
- data/test/belongs_to_test.rb +0 -0
- data/test/db/test.db +0 -0
- data/test/documentation_test.rb +0 -0
- data/test/has_and_belongs_to_many.rb +0 -0
- data/test/has_many_polymorphic_test.rb +0 -0
- data/test/has_many_test.rb +0 -0
- data/test/has_many_through_test.rb +0 -0
- data/test/test_helper.rb +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 04a754bdba0efe110c9e700feda620618a9f0f35
|
|
4
|
+
data.tar.gz: 194d5488d6809663b0be8eaba9f26f0ffb224aeb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a2d63d72377b8f062eee34f2bc228309ebe4201d88b319dda9b9316aa2e84de39d117d21c057f494b2ed2c79f12a2f90aae6ea39a1a168c7e3aeab02b5dfb8a
|
|
7
|
+
data.tar.gz: 952e052725851bb53f8ade54661ec65d35bdf536836ce589c85bdd29c3cceba7d0dc1347d9bd2aa97d656dc85a01db38f6b0a2d756f535812e06cc63f3a90fea
|
data/MIT-LICENSE
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
data/lib/where_exists.rb
CHANGED
|
@@ -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)]
|
data/lib/where_exists/version.rb
CHANGED
|
File without changes
|
data/test/belongs_to_test.rb
CHANGED
|
File without changes
|
data/test/db/test.db
CHANGED
|
Binary file
|
data/test/documentation_test.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/test/has_many_test.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/test/test_helper.rb
CHANGED
|
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
|
+
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:
|
|
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.
|
|
129
|
+
rubygems_version: 2.6.11
|
|
130
130
|
signing_key:
|
|
131
131
|
specification_version: 4
|
|
132
132
|
summary: "#where_exists extension of ActiveRecord"
|