query_params 0.1.1 → 1.1.1

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: 980724c4e9c2bb6d6ef941557980782bd63900c2
4
- data.tar.gz: 1652f0ed389a13b7d96d434834a649b98725985f
3
+ metadata.gz: 1e4760d86c9799b2c819f9122447add095fc4b55
4
+ data.tar.gz: 0f895652f78e9638d645fc22fbf233ec651d05f8
5
5
  SHA512:
6
- metadata.gz: cab865d072af2316cfc50932d2a82ab8dbc6a157f3977ae25ffeed724888a31420a0085b8051450e641c7c6adbaa6c2784ef56dba77b2aab9820e48846082dda
7
- data.tar.gz: 7d1d59e98fa1533bef4112558e8ee6200bada9f7a11dc93ffb7908787ef50a87de282753ca5cc1c8450640bb7c65714edcf1a5fe6821b849ebaeeac9bd1f2840
6
+ metadata.gz: cbb53f374616cda74e535c17ebd6443e484754d2825329a10a81a04f9ee456287a439bb44ccad8d5ce2c80d30a53db166f6a96a845ac888a8904c0c096103215
7
+ data.tar.gz: 80dc0c7f0f4ed7cd87fdbab76ae5b158c6dcf5d03319cbc68ff51226ca7e7f7e84a5e3c5ccc1164bc5670a83331af48082c2a1675f970a946c52fb3e7a193609
data/README.md CHANGED
@@ -27,7 +27,7 @@ Or install it yourself as:
27
27
  ## Usage
28
28
 
29
29
  ```ruby
30
- QueryParams.build_uri(base_uri: "http://domain.com/search", q: "Mark", conditions: ["age <= 18", "type = 1"])
30
+ QueryParams.build_uri(base_uri: "http://domain.com/search", q: "Mark", filters: ["age <= 18", "type = 1"])
31
31
  # => "http://domain.com/search?q=Mark&filters=age::le(18)|type::eq(1)"
32
32
  ```
33
33
 
@@ -1,3 +1,3 @@
1
1
  module QueryParams
2
- VERSION = "0.1.1"
2
+ VERSION = "1.1.1"
3
3
  end
data/lib/query_params.rb CHANGED
@@ -29,7 +29,7 @@ module URI
29
29
 
30
30
  def self.build_uri(options = {})
31
31
  queryParams = QueryParams.new(options[:base_uri])
32
- Condition.build_uri(queryParams, options[:conditions]) if options[:conditions]
32
+ Condition.build_uri(queryParams, options[:filters]) if options[:filters]
33
33
  queryParams.full_text_search(options[:q]) if options[:q]
34
34
  queryParams.build_uri()
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Souza