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 +4 -4
- data/lib/hypertrack.rb +5 -0
- data/lib/hypertrack/api_client.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13942950f4002fa7ea03d9902fe5244268a94114d93f799098f12121ef47076e
|
4
|
+
data.tar.gz: 17ebb2fa453db480bdc57267d2caf6b2df3df80390c875bcb068802811657fca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c64862c602baa347c6e9808037f674c2fc73caef1a889ef10fe1d8ae8ab79dc98b92649071e4b4523a2ad4704a7921661fbf33e115b052ca9f9e8aa90173510
|
7
|
+
data.tar.gz: 30664a73153eff6cbe675309a71801ed9ad67956f9516f7628f40f3dc5f3e3140f24de98a3d3b403f554795bed78e4c26fec13780d06f88f66d861b575d06bc9
|
data/lib/hypertrack.rb
CHANGED
@@ -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}/#{
|
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.
|
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-
|
13
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|