hypertrack 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cd33ffb3022506660ade678e859d8f4a822f5c98fa5ec8c6653a4373e2ca3b6
4
- data.tar.gz: 5d2e0688ca132a59dab6ac4d29121db107fce5ee1b8807a9a624b0ae56aeb4f9
3
+ metadata.gz: 13942950f4002fa7ea03d9902fe5244268a94114d93f799098f12121ef47076e
4
+ data.tar.gz: 17ebb2fa453db480bdc57267d2caf6b2df3df80390c875bcb068802811657fca
5
5
  SHA512:
6
- metadata.gz: bd650d36e7af7bb4eaa6d9ecbac6010e2dc1469fd1a05ba0316eddfad9cfcf6a3365d31eda1d53d30db5f0be903bd1511db4d78d111f5824cdec1fbf6b148cf6
7
- data.tar.gz: b1cf916148189ccc7e250c3fb86019d96a19bea83b733717dc93e88a119dae8a67d40ed36abafec24fd88325d876d910afdba5111345579e9e3b8ed0d1188354
6
+ metadata.gz: 8c64862c602baa347c6e9808037f674c2fc73caef1a889ef10fe1d8ae8ab79dc98b92649071e4b4523a2ad4704a7921661fbf33e115b052ca9f9e8aa90173510
7
+ data.tar.gz: 30664a73153eff6cbe675309a71801ed9ad67956f9516f7628f40f3dc5f3e3140f24de98a3d3b403f554795bed78e4c26fec13780d06f88f66d861b575d06bc9
@@ -32,6 +32,11 @@ module HyperTrack
32
32
 
33
33
  class << self
34
34
  attr_accessor :secret_key
35
+ attr_writer :api_version
36
+
37
+ def api_version
38
+ @api_version || "v1"
39
+ end
35
40
  end
36
41
 
37
42
  end
@@ -2,7 +2,6 @@ module HyperTrack
2
2
  class ApiClient
3
3
 
4
4
  BASE_URL = "https://api.hypertrack.com/api"
5
- API_VERSION = "v1"
6
5
 
7
6
  VERB_MAP = {
8
7
  :get => Net::HTTP::Get,
@@ -50,7 +49,7 @@ module HyperTrack
50
49
  end
51
50
 
52
51
  def get_uri(path)
53
- url = "#{BASE_URL}/#{API_VERSION}/#{path}"
52
+ url = "#{BASE_URL}/#{HyperTrack.api_version}/#{path}"
54
53
  URI.parse(url)
55
54
  end
56
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hypertrack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Utsav Kesharwani
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-03-14 00:00:00.000000000 Z
13
+ date: 2018-04-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json