noun-project-api 0.0.3 → 0.0.4

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: 555b32dd0c32aa738fd649d0163e307381955535
4
- data.tar.gz: 6e39e2c2e0081ae35d967a6abf84d60195df6f52
3
+ metadata.gz: 619e990e330b1b4f052966c8451846e258765009
4
+ data.tar.gz: 4a0151db35041c2019ebb02e7c559c65adeeaea3
5
5
  SHA512:
6
- metadata.gz: 1f30120ef9f391e98dc2d22d9619e61cd97bb6cb3f332aab8d3aa370cc599c29d3d88b187249ebbeb788a42d855f967aec4c56170d370323484c190369e9e374
7
- data.tar.gz: 2de8e80d24c8028dc4c3d5e7da9d75ad791a51ff047bdf9f6b976693962f9ebe2de0cc4f477abe9750c1b0cae2933564d6a15cbc712c1304ab16a39b905017ec
6
+ metadata.gz: 77ff6f20e725233243c6a880d4261fe95d1dd478c15c0cd3f54c5e9d90c3e8f8e28ff658c3cef1c3657e83e866b06f989779de0e5ae7631ddb3fc0a37863a2fa
7
+ data.tar.gz: 8ddebd880e73358891119d2aee21dd1fc363a7cf03bf2b62bb8a8cbb5f89ed7136c607cbac6d0c34e5140cb0aecc38e5919e722bee51e16352f6fc537cc1f6a6
@@ -10,7 +10,7 @@ module NounProjectApi
10
10
  result = self.access_token.get("#{API_BASE}#{API_PATH}#{id}")
11
11
  raise ArgumentError.new('Bad request') unless result.code == '200'
12
12
 
13
- JSON.parse(result.body)
13
+ JSON.parse(result.body)["icon"]
14
14
  end
15
15
 
16
16
  alias_method :find_by_slug, :find
@@ -30,7 +30,7 @@ RSpec.describe NounProjectApi::Icon do
30
30
  @valid_response
31
31
  )
32
32
 
33
- expect(@icon.find(id)).to eq(@valid_hash)
33
+ expect(@icon.find(id)).to eq(@valid_hash["icon"])
34
34
  end
35
35
 
36
36
  it 'raises an error with a missing id' do
@@ -62,7 +62,7 @@ RSpec.describe NounProjectApi::Icon do
62
62
  @valid_response
63
63
  )
64
64
 
65
- expect(@icon.find_by_slug(slug)).to eq(@valid_hash)
65
+ expect(@icon.find_by_slug(slug)).to eq(@valid_hash["icon"])
66
66
  end
67
67
 
68
68
  it 'raises an error with a missing slug' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noun-project-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadav Shatz