vidsy-data-api 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vidsy/data/api/request.rb +7 -1
- data/lib/vidsy/data/api/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: ab586295c4cf7c18378463b18f7a2db2d1c75cb9
|
4
|
+
data.tar.gz: b2ef8e375a4efdd22fba7f10d890986c7fcf6cc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7b7d7cd91362ff63759796a0e2068193334a3f0b8e29d5879067bce3628041f1d13614069cc62ed94e4d5ba976305f044eabea56782e8d039ec532a7f1acc85
|
7
|
+
data.tar.gz: 80bdf8e5c1f5674d815b4b704b551e0c8604091daa4a8996a2045d935d09e05cf1d71762d519aa9e48a267e0c8fbb10e39e4ff9590d6650712bb5101049e3952
|
@@ -16,7 +16,10 @@ module Vidsy
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def get(path)
|
19
|
-
connection.get
|
19
|
+
connection.get do |r|
|
20
|
+
r.url complete_path(path)
|
21
|
+
r.options.timeout = TIMEOUT
|
22
|
+
end
|
20
23
|
end
|
21
24
|
|
22
25
|
def post(path, options)
|
@@ -24,11 +27,14 @@ module Vidsy
|
|
24
27
|
r.body = options.to_json
|
25
28
|
r.headers["Content-Type"] = "application/json"
|
26
29
|
r.url complete_path(path)
|
30
|
+
r.options.timeout = TIMEOUT
|
27
31
|
end
|
28
32
|
end
|
29
33
|
|
30
34
|
private
|
31
35
|
|
36
|
+
TIMEOUT = 2
|
37
|
+
|
32
38
|
def complete_path(path)
|
33
39
|
"/#{version}#{path}"
|
34
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidsy-data-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Revett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|