sentimeta 0.1.5 → 0.1.6

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: d6a1d8fb4ba42ac645389219d8f8a9929f86522e
4
- data.tar.gz: 6768a8accf86b1755a942beb06c95f21896b3179
3
+ metadata.gz: 99ddab9ce24888439b22ef1dad4439ce9481cf23
4
+ data.tar.gz: 033c86655c8356e5365687f6f9e3706d184d8f0c
5
5
  SHA512:
6
- metadata.gz: 7eea5842d11683d21989e6b738f9b24b241ca0bdab733aee1c5f5b5b41890b7d1beb01c6cd6dc5ea63ad26a703640e025d2681a380de410eb6cff9d5ce67d386
7
- data.tar.gz: 17285dca2df1bb48bc6bc600fd8d0564424c0ea149eaf388e6639c274584655c396cb6544a9077e0fb5dd0f1d3ee9cdfcd4d7049ee864bcb129980ad779880e7
6
+ metadata.gz: 340901c099d4377697d88f637990a6e482dc3e33d6e404f0187cea7d0f1c5af2617d5e68135fdf0d8b1673076b4932067dc50a6c6730a759535494d6b77be047
7
+ data.tar.gz: 9adf20e44114272b4d99df28e8677a4aa05fcd08939561053640ead7c83a42c50389e41847ebaac2fd03d88d421624caa56df2182a7201acb4fb2603bb5377a8
@@ -16,7 +16,11 @@ module Sentimeta::Client::Data
16
16
  end
17
17
 
18
18
  def medal id, options
19
- get(:objects, options.merge(id: "#{ id }/medal"))['medal']
19
+ response = get(:objects, options.merge(id: "#{ id }/medal"))
20
+ if response.ok? && response.body['medal'].present? && response.body['object'].present?
21
+ response.body = response.body.slice 'medal', 'object'
22
+ response
23
+ end
20
24
  end
21
25
 
22
26
  ##
@@ -1,3 +1,3 @@
1
1
  module Sentimeta
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentimeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Shpakov