capital-iq 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/capital-iq.gemspec +2 -2
- data/lib/capital-iq/base.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2UzNmViYjdmYThkMjdkZmIxOTQyZjUzNjI4YmE1YzdlMmZkMDUwNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWFlMDI4MDU1YjZlY2Y5YTQ0YTE1OGNjODJlZjI2OGU0ZDUxZDEzZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzFkZDEzNTZmYWE3NjljNTA2YzNhODBiNTE1ZWNlMzRmZDYxOTc0ZWYzOTc4
|
10
|
+
NTdiNzRjNzAzNTczMDI0YzBkNDNhMmE0MmY0MjRlNjQ1ZGEyODk4MmVmMzI1
|
11
|
+
ODE5YzY5NTA3ZGNjYjQ0YTE5MDFkZjlhNDE3OThkMGVhMjdhMjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDE5Y2Q1MTZhZjNmNDcwMGUxYzJhMjEyNGQ3ZmFiYmIxNDdiYzY4NDM5YmU2
|
14
|
+
NDkzZWI3ZWVhMjI0YTM1NTM1ZmE3NDJiODg5NDVmYzI4MDFlZWQyMWZjZDg3
|
15
|
+
NGFjYWY4NDBlYWVlYmU2YjgwNDdiODlmNjViZjk4MWYwYTg1OWQ=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/capital-iq.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: capital-iq 0.0.
|
5
|
+
# stub: capital-iq 0.0.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "capital-iq"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.6"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Ian Morgan"]
|
data/lib/capital-iq/base.rb
CHANGED
@@ -12,7 +12,7 @@ module CapitalIQ
|
|
12
12
|
request_body = Request.new(function, identifier, mnemonic, properties).request
|
13
13
|
response_data = self.class.post(ENDPOINT, body: request_body, basic_auth: @auth, ssl_version: :SSLv3).parsed_response
|
14
14
|
response = response_data[response_data.keys.first]
|
15
|
-
|
15
|
+
raise CapitalIQ::APIError if response == "Error Processing the Request"
|
16
16
|
raise CapitalIQ::APIError, response.first['ErrMsg'] if response.first['ErrMsg']
|
17
17
|
response.first
|
18
18
|
end
|