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 +4 -4
- data/lib/noun-project-api/icon.rb +1 -1
- data/spec/lib/noun-project-api/icon_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 619e990e330b1b4f052966c8451846e258765009
|
4
|
+
data.tar.gz: 4a0151db35041c2019ebb02e7c559c65adeeaea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|