nexosis_api 1.2.3 → 1.2.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/nexosis_api/client.rb +2 -2
- data/lib/nexosis_api/client/datasets.rb +1 -1
- data/nexosisapi.gemspec +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: 98843ea8efaca93ca14c66a6f8babdc8769992d7
|
|
4
|
+
data.tar.gz: 426cdb0bcc87d9abeb21a6a4c9526e88d075e78e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3eabe9f10de72d8634aab044c866d9a878809c04fdb3f3f428b84bb8b5a1c2e394ca12a25288a3481fe62e20e110a2a3f37cf16d8e0dd76f3babf857423d99f5
|
|
7
|
+
data.tar.gz: 81e486c7cf604819e2350041f9cf19408beab4248e646821c3f46ff5913d5f299be57f5bcc5fba9209794ebdaeac5882e656007803523d620e62ddfe2bc6719e
|
data/lib/nexosis_api/client.rb
CHANGED
|
@@ -52,7 +52,7 @@ module NexosisApi
|
|
|
52
52
|
# client.get_account_balance
|
|
53
53
|
def get_account_balance()
|
|
54
54
|
session_url = '/sessions'
|
|
55
|
-
response = self.class.get(session_url
|
|
55
|
+
response = self.class.get(session_url, @options)
|
|
56
56
|
response.headers['nexosis-account-balance']
|
|
57
57
|
end
|
|
58
58
|
|
|
@@ -94,7 +94,7 @@ module NexosisApi
|
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
def array_query_normalizer(query_set)
|
|
97
|
-
query_set.map { |key, value| value.map { |v| "#{key}=#{v}" } }.join('&')
|
|
97
|
+
query_set.map { |key, value| value.map { |v| "#{key}=#{v}" } }.join('&')
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
end
|
|
@@ -134,7 +134,7 @@ module NexosisApi
|
|
|
134
134
|
|
|
135
135
|
# @private
|
|
136
136
|
def get_dataset_internal(dataset_name, page_number = 0, page_size = 50, query_options = {}, content_type = 'application/json')
|
|
137
|
-
raise ArgumentError, 'page size must be <=
|
|
137
|
+
raise ArgumentError, 'page size must be <= 1000 items per page' unless page_size <= 1000
|
|
138
138
|
raise ArgumentError, 'dataset_name was not provided and is not optional' unless dataset_name.to_s.empty? == false
|
|
139
139
|
dataset_url = "/data/#{dataset_name}"
|
|
140
140
|
headers = { 'api-key' => @api_key, 'Accept' => content_type }
|
data/nexosisapi.gemspec
CHANGED
|
@@ -16,6 +16,6 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
spec.require_paths = ['lib']
|
|
17
17
|
spec.required_ruby_version = '>= 2.0.0'
|
|
18
18
|
spec.summary = "Ruby client for working with the Nexosis API"
|
|
19
|
-
spec.version = '1.2.
|
|
19
|
+
spec.version = '1.2.4'
|
|
20
20
|
spec.metadata["yard.run"] = "yri"
|
|
21
21
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nexosis_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nexosis,Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-09-
|
|
11
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|