ruby-montage 0.4.3 → 0.4.4
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 +4 -4
- data/README.md +1 -0
- data/lib/montage/operators/intersects.rb +17 -0
- data/lib/montage/operators.rb +3 -1
- data/lib/montage/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 932b4c037b77de5056ddfd63a209b1d9e677e805
|
4
|
+
data.tar.gz: 7459ab078987181659041687caddb8d385dd3881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 103ee93351db06df2cc352065e45d70ae5d1040832b25eeafa020b44c9208702aeec740b9bc6ecd42c5f45da9fd6da44c037026471b62d3ab4c96e16cea0f306
|
7
|
+
data.tar.gz: 7877ed0796d430d4ba24de50aae816a6e807e1f8b285cbebc918957550497c9375acc2f4dadb14229c977b4b73dd66be9e872f2f19e64eb9bb0640bbe39f976f
|
data/README.md
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
module Montage
|
2
|
+
module Operators
|
3
|
+
class Intersects
|
4
|
+
def self.operator
|
5
|
+
"intersects"
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.montage_operator
|
9
|
+
"__intersects"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.==(value)
|
13
|
+
value =~ /\bintersects\b(?=([^']*'[^']*')*[^']*$)/i
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/montage/operators.rb
CHANGED
@@ -10,6 +10,7 @@ require 'montage/operators/like'
|
|
10
10
|
require 'montage/operators/in'
|
11
11
|
require 'montage/operators/nil'
|
12
12
|
require 'montage/operators/includes'
|
13
|
+
require 'montage/operators/intersects'
|
13
14
|
|
14
15
|
module Montage
|
15
16
|
module Operators
|
@@ -25,7 +26,8 @@ module Montage
|
|
25
26
|
Montage::Operators::In,
|
26
27
|
Montage::Operators::Ilike,
|
27
28
|
Montage::Operators::Like,
|
28
|
-
Montage::Operators::Includes
|
29
|
+
Montage::Operators::Includes,
|
30
|
+
Montage::Operators::Intersects
|
29
31
|
]
|
30
32
|
end
|
31
33
|
|
data/lib/montage/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-montage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dphaener
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- lib/montage/operators/ilike.rb
|
207
207
|
- lib/montage/operators/in.rb
|
208
208
|
- lib/montage/operators/includes.rb
|
209
|
+
- lib/montage/operators/intersects.rb
|
209
210
|
- lib/montage/operators/like.rb
|
210
211
|
- lib/montage/operators/lt.rb
|
211
212
|
- lib/montage/operators/lte.rb
|