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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2070637423e6b75af3c98eafd67d3f7b93f33160
4
- data.tar.gz: 3e3812693eec8267e0f47e2e803b7e3ad286949b
3
+ metadata.gz: ab586295c4cf7c18378463b18f7a2db2d1c75cb9
4
+ data.tar.gz: b2ef8e375a4efdd22fba7f10d890986c7fcf6cc4
5
5
  SHA512:
6
- metadata.gz: 0b15e53c0460c8c8997150b9f8bd47a2ccaa997e9e43e968b5eb7728d3dc0cd27f561c1130aeb9ebafd9fb1c581e30d95d97e6a65f3191d28e5e78055880e9ba
7
- data.tar.gz: a912b23cc798b776aa0a7a2ddaa9c0a42e266d73230593d3e1aa6e6bd3222defe75abc1c4c82e0701ea727766042bcd28a8a8e2affde87ff0641a18439f5636a
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 complete_path(path)
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
@@ -1,7 +1,7 @@
1
1
  module Vidsy
2
2
  module Data
3
3
  module API
4
- VERSION = "0.8.1"
4
+ VERSION = "0.9.0"
5
5
  end
6
6
  end
7
7
  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.8.1
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-10 00:00:00.000000000 Z
11
+ date: 2016-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler