intrinio 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/intrinio/api.rb +2 -1
- data/lib/intrinio/version.rb +1 -1
- 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: c39293234adfdcffde5539f0dcdf68385155f258
|
4
|
+
data.tar.gz: 3ee010eb81eb115abcb1da60fcc5e69fcfa2bf5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19ac629eda3c065f569160148cbafc86d9963fbcea6c6a767a75cda675a17532a5634220cd80b019cc94f17b5a8c09e28a126caf0a6c84d2f98399d416061e44
|
7
|
+
data.tar.gz: 6004cedc1ccf6b5b5848fce25f735a3052c41024aa15307b98fa0d92313f44e87b6a6a7d0e5afef068d12433ca908424789ca6654960dae523612d1557e7cf11
|
data/lib/intrinio/api.rb
CHANGED
@@ -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
|
|
data/lib/intrinio/version.rb
CHANGED