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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0feb0bd801d81b121346597573faecb51b3f635
4
- data.tar.gz: 1de1f6aec706c502764d33e7e75c14e0780506b5
3
+ metadata.gz: 53e05f57ef55311d33284991d8d4025a41f4e7b4
4
+ data.tar.gz: 4180c6aa50f17b1738a23ec6706a56f3a8c175a3
5
5
  SHA512:
6
- metadata.gz: 0a7d4e3ed31a5420f14ec20600bb8a03f5c7b9b13d249cd5795343f52692fb62ae56135080df6f2bd345ac95bd85926cdee2f53139980d47abd9b0eaa7130585
7
- data.tar.gz: db72d8cf7cb3a40d949da06c7742dc7ed21904b89c2579b696b194c263c4bf5834be6c5fff8e5c5468f1536c3e40ee08d6e366eac11158c327fe41b50f9d2563
6
+ metadata.gz: 019483fd957599d0ad237019568d3369c5dd85b26d6a38e0edfd4af9252e61ca1b7aba1530b35e5becc1b6792e462b019022094591c00d02b1e36fa9629d6815
7
+ data.tar.gz: 1ff63065a3b9113f3a5a9950229669301dd5435a94dd974c0ecbae0849ed5d29f58c7ebbc89105e3784a25d8bae1ea44670d267515a542968becb4bf5f00701a
@@ -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
@@ -33,7 +33,9 @@ module Helium
33
33
  end
34
34
 
35
35
  def base_url
36
- "#{PROTOCOL}://#{@api_host}/v#{API_VERSION}"
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
@@ -1,3 +1,3 @@
1
1
  module Helium
2
- VERSION = "0.14.0"
2
+ VERSION = "0.15.0"
3
3
  end
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.14.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-19 00:00:00.000000000 Z
12
+ date: 2016-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus