intrinio 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/intrinio +6 -1
- data/lib/intrinio/api.rb +4 -3
- data/lib/intrinio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ad910c06f61af3d4a326bb69330dfb634ca1326
|
4
|
+
data.tar.gz: 9ecbad98ff3d48215612b0f715c4091566cffeaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6419fa9d9c991a7e39d22a6684f404ab0dda3d0dd39a50c7628ccba030bb0b542d93aad595d8fca6a438ad51902b36695dba21b3a2825b60abe7f8d0e31e9fcf
|
7
|
+
data.tar.gz: dd553ef8709e94066bd3bd0ffca61cf3c2ea3e3470c250b6aaaba933507d0c5b9b480a125006f22451e112dd851a1b4bae85b6f73b6a6f8b31ebc5ffa2a59728
|
data/bin/intrinio
CHANGED
data/lib/intrinio/api.rb
CHANGED
@@ -44,9 +44,10 @@ module Intrinio
|
|
44
44
|
|
45
45
|
def get_csv(*args)
|
46
46
|
result = get *args
|
47
|
-
|
48
|
-
raise Intrinio::BadResponse, "
|
49
|
-
raise Intrinio::
|
47
|
+
|
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
|
50
|
+
raise Intrinio::IncompatibleResponse, "There is no data attribute in the response" unless result.has_key? :data
|
50
51
|
|
51
52
|
data = result[:data]
|
52
53
|
|
data/lib/intrinio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intrinio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|