query_syntax 1.0.4 → 1.0.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
2
  SHA1:
3
- metadata.gz: f224f5ad8ad645fb93562ba42e6b1e3bdb825b97
4
- data.tar.gz: 9193eee9560f3b63d159b6d7ac80fa44c2d84eae
3
+ metadata.gz: 2b267801c00984cf18e4c701b3faaa81dfc41128
4
+ data.tar.gz: 2f3508a6a1b4645df8ac8066e6979b1a3d3e6188
5
5
  SHA512:
6
- metadata.gz: 8c329ed16e263a2d1abdd9cf1ba52cc541dded99eb563648be63c554e009bd3fc935e774209e82d67b5143c4bbb0d7a126264a7c01aab5b5c833f0783584f887
7
- data.tar.gz: 021d85ee412bd315f9cac3f535c9360460a0370ca45d26383b65e49459e165c30477e3d3fd00e4b29502dfb31e889a4c9e28ad699f96cee7002cc0674bdd3ede
6
+ metadata.gz: fe649a29ea0799672e99f9730b17f3f57f10239984423a49914634f01156c451cb29c5cd34c28807870a6c3cf87217ee249d0d33d1994123ca3ea4267f58c12a
7
+ data.tar.gz: d917e108696a0c75baa603611605dde6396371d514eb9638f59dcab231307c5b50f825091d9d7b4c1d01fb23645fe0640006d14726d6e3239fc3a178821dbf02
data/README.md CHANGED
@@ -16,6 +16,8 @@ Or install it yourself as:
16
16
 
17
17
  $ gem install query_syntax
18
18
 
19
+ ** NOTE ** Updated, as of 1.0.4 only compatible with newer chefs with filter_results
20
+
19
21
  ## Usage
20
22
 
21
23
  QuerySyntax::Query provides bang and non-bang methods for and, or, not, where which determine whether we are modifying the current object or whether we are returning a new object. In most cases though, QuerySyntax will return the QuerySyntax object so that we can chain at will.
@@ -69,7 +69,7 @@ module QuerySyntax
69
69
 
70
70
  def partial(keys, &block)
71
71
  keys = Hash[keys.map { |k,v| [k,Array(v)] }]
72
- Chef::Search::Query.new.search(filter_result: keys, &block)
72
+ search(filter_result: keys, &block)
73
73
  end
74
74
 
75
75
  def each(&block)
@@ -1,5 +1,5 @@
1
1
 
2
2
  module QuerySyntax
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_syntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Serafini