sentimeta 0.0.7 → 0.0.8

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: beb7f74d8e443eb73760034b6de883d33115758a
4
- data.tar.gz: a8334fa624519d92b6185023a56071d15843a123
3
+ metadata.gz: 20440216e3bbdcef072e45bd1797f18519fce7a7
4
+ data.tar.gz: d2edb744b925eec679b135bc6bb2e9b1326bb15a
5
5
  SHA512:
6
- metadata.gz: a599e70180566f03f21d47de9350afa5af8326bf3d97303c77f45371fcae4a5e7cc597439576e1588874900b216d792ce65975eddfed72f939c148737ae08ef1
7
- data.tar.gz: 72d7019659ba3733a00bd426d58651fda682980939fa4c279c3a10b348404fb72f4cc820ba6e458950364ab18596390497dca79d604fdec0cfb33fcc210e032f
6
+ metadata.gz: bf6b9babb5432ae5e6090809eea86db628dcffde6c79b98d4b3a4840d0c9486ab2d82cd1f1460fd7ab98b8564e927aad3440ab96885ccd7709276517f0efb1b8
7
+ data.tar.gz: c6b7ebcfd46d5a18695891d24e09da567fa0cb977b8d3f713e1e1f85c2b1e3109404c638eb2d70b800cc8336dadb7b80a4dbfe2150a09f5c7d3d9164b8139705
@@ -12,6 +12,10 @@ module Sentimeta
12
12
  end
13
13
  end
14
14
 
15
+ def attributes options={}
16
+ fetch(:attributes, options)['values']
17
+ end
18
+
15
19
  def prices options={}
16
20
  fetch :prices, options
17
21
  end
@@ -26,6 +30,7 @@ module Sentimeta
26
30
  components << Sentimeta.endpoint
27
31
  components << (options.delete(:sphere) || Sentimeta.sphere) unless endpoint == :spheres
28
32
  components << endpoint
33
+ components << options.delete(:filter) if endpoint == :attributes
29
34
  components << options.delete(:provider) if endpoint == :prices
30
35
  components << options.delete(:id)
31
36
  end.compact.join('/')
@@ -1,3 +1,3 @@
1
1
  module Sentimeta
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentimeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Shpakov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-22 00:00:00.000000000 Z
11
+ date: 2014-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler