inquisitio 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ec9cf90b4eb054bcd0cc4a50657012bfc244aa6
4
- data.tar.gz: ce88645dad186e3f94c2d020ad14a3cb89e3a077
3
+ metadata.gz: d2d83062b65f0dc0e1e2e69a893a2c1abc429fed
4
+ data.tar.gz: d9ca4e60e8c0297cc2ff77079cb3508b67921639
5
5
  SHA512:
6
- metadata.gz: faf0ec26e69d120267f7d956aa52ac5926f21dc8d210786275cf0cff972d4653106b8510eb4c91e29c46567290b3c2eccc71155c4f86ee349a78e74787f0f4ca
7
- data.tar.gz: 36423bc33afe9a853d20a5aa30d3352b37c00c7dacaa96de767bcf230b245c59d2791b551c9dcd3632c3059faa601db0bb892c357ed36169607d8dc7cc0da325
6
+ metadata.gz: 59aa63e30611a23fc1de81b18ccab23c4a3e22420184a54907b2c3a9544e697abc710e5dc261ef21c8fcc098da5f18605dff7f3e9b98089112c0719ab2193906
7
+ data.tar.gz: 8694aa4b152b48e9c66b2b625868a0026a9fd107f02936932113b7caffc0c60714e64305a620360566e1d3a712fd1c12491cf6c10abe2007750908069bb6aa6f
@@ -1,3 +1,6 @@
1
+ 2.1.2 / 2015-07-23
2
+ [BUGFIX] Make results_facets into a hash so we can use a full range of methods
3
+
1
4
  2.1.1 / 2015-07-23
2
5
  [BUGFIX] result_facets now returns an empty set in the event no facets were requested or returned
3
6
 
@@ -1,16 +1,14 @@
1
1
  module Inquisitio
2
- class Facets
3
- extend Forwardable
2
+ class Facets < Hash
4
3
 
5
4
  def initialize(facets)
6
- @facets = facets.nil? ? {} : JSON.parse(facets.to_json, symbolize_names: true)
5
+ super
6
+ hash = facets.nil? ? {} : JSON.parse(facets.to_json, symbolize_names: true)
7
+ merge!(hash)
7
8
  end
8
9
 
9
10
  def fields
10
- @facets.keys
11
+ keys
11
12
  end
12
-
13
- def_delegator :@facets, :[]
14
-
15
13
  end
16
- end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Inquisitio
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inquisitio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-07-23 00:00:00.000000000 Z
14
+ date: 2015-08-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: excon