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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff94ccc5900983ed4a32427891dfa8ee6101e0b4
4
- data.tar.gz: 1abfb57b4be19e851eadb4b2d7fb85df3928ca5c
3
+ metadata.gz: 932b4c037b77de5056ddfd63a209b1d9e677e805
4
+ data.tar.gz: 7459ab078987181659041687caddb8d385dd3881
5
5
  SHA512:
6
- metadata.gz: a5f82b3395d986f92a1cdf2184bebf63baa88a220f0f8359052bdc243b3deabcec553c0486b847a7cd8a8062908838adc0b22832d4413f423b4e3df4e55707b6
7
- data.tar.gz: 16f1f2cf70b1fe1ed8b9014e910ef35c51746d11830cc4c29a0481a3571e0b25a6bfa7c38be62c63686b4d435992e498798bd80bd3b29d29710b1cac032c38f8
6
+ metadata.gz: 103ee93351db06df2cc352065e45d70ae5d1040832b25eeafa020b44c9208702aeec740b9bc6ecd42c5f45da9fd6da44c037026471b62d3ab4c96e16cea0f306
7
+ data.tar.gz: 7877ed0796d430d4ba24de50aae816a6e807e1f8b285cbebc918957550497c9375acc2f4dadb14229c977b4b73dd66be9e872f2f19e64eb9bb0640bbe39f976f
data/README.md CHANGED
@@ -92,6 +92,7 @@ All API actions are available as methods on the client object. The following met
92
92
  | like | __contains |
93
93
  | ilike | __icontains |
94
94
  | includes | __includes |
95
+ | intersects | __intersects |
95
96
 
96
97
 
97
98
  ## The Query Object
@@ -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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Montage
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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