helium-ruby 0.14.0 → 0.15.0
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/helium/client.rb +1 -0
- data/lib/helium/client/http.rb +3 -1
- data/lib/helium/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: 53e05f57ef55311d33284991d8d4025a41f4e7b4
|
|
4
|
+
data.tar.gz: 4180c6aa50f17b1738a23ec6706a56f3a8c175a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 019483fd957599d0ad237019568d3369c5dd85b26d6a38e0edfd4af9252e61ca1b7aba1530b35e5becc1b6792e462b019022094591c00d02b1e36fa9629d6815
|
|
7
|
+
data.tar.gz: 1ff63065a3b9113f3a5a9950229669301dd5435a94dd974c0ecbae0849ed5d29f58c7ebbc89105e3784a25d8bae1ea44670d267515a542968becb4bf5f00701a
|
data/lib/helium/client.rb
CHANGED
|
@@ -24,6 +24,7 @@ module Helium
|
|
|
24
24
|
def initialize(opts = {})
|
|
25
25
|
@api_key = opts.fetch(:api_key)
|
|
26
26
|
@api_host = opts.fetch(:host, HOST)
|
|
27
|
+
@api_version = opts.fetch(:api_version, API_VERSION)
|
|
27
28
|
@verify_peer = opts.fetch(:verify_peer, true)
|
|
28
29
|
@debug = opts.fetch(:debug, false)
|
|
29
30
|
end
|
data/lib/helium/client/http.rb
CHANGED
|
@@ -33,7 +33,9 @@ module Helium
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def base_url
|
|
36
|
-
"#{PROTOCOL}://#{@api_host}
|
|
36
|
+
url = "#{PROTOCOL}://#{@api_host}"
|
|
37
|
+
url += "/v#{@api_version}" if @api_version
|
|
38
|
+
url
|
|
37
39
|
end
|
|
38
40
|
|
|
39
41
|
# Contructs a proper url given a path. If the path is already a full url
|
data/lib/helium/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: helium-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Allen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-10-
|
|
12
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: typhoeus
|