intrinio 0.1.2 → 0.1.3

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: 0ad910c06f61af3d4a326bb69330dfb634ca1326
4
- data.tar.gz: 9ecbad98ff3d48215612b0f715c4091566cffeaa
3
+ metadata.gz: c39293234adfdcffde5539f0dcdf68385155f258
4
+ data.tar.gz: 3ee010eb81eb115abcb1da60fcc5e69fcfa2bf5d
5
5
  SHA512:
6
- metadata.gz: 6419fa9d9c991a7e39d22a6684f404ab0dda3d0dd39a50c7628ccba030bb0b542d93aad595d8fca6a438ad51902b36695dba21b3a2825b60abe7f8d0e31e9fcf
7
- data.tar.gz: dd553ef8709e94066bd3bd0ffca61cf3c2ea3e3470c250b6aaaba933507d0c5b9b480a125006f22451e112dd851a1b4bae85b6f73b6a6f8b31ebc5ffa2a59728
6
+ metadata.gz: 19ac629eda3c065f569160148cbafc86d9963fbcea6c6a767a75cda675a17532a5634220cd80b019cc94f17b5a8c09e28a126caf0a6c84d2f98399d416061e44
7
+ data.tar.gz: 6004cedc1ccf6b5b5848fce25f735a3052c41024aa15307b98fa0d92313f44e87b6a6a7d0e5afef068d12433ca908424789ca6654960dae523612d1557e7cf11
@@ -46,8 +46,9 @@ module Intrinio
46
46
  result = get *args
47
47
 
48
48
  raise Intrinio::BadResponse, "API said '#{result}'" if result.is_a? String
49
- raise Intrinio::BadResponse, "Got a #{result.class},expected a Hash" unless result.is_a? Hash
49
+ raise Intrinio::BadResponse, "Got a #{result.class}, expected a Hash" unless result.is_a? Hash
50
50
  raise Intrinio::IncompatibleResponse, "There is no data attribute in the response" unless result.has_key? :data
51
+ raise Intrinio::IncompatibleResponse, "The data attribute in the response is empty" unless result[:data]
51
52
 
52
53
  data = result[:data]
53
54
 
@@ -1,3 +1,3 @@
1
1
  module Intrinio
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intrinio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit