glossyapp 0.1.8 → 0.1.9

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: 93c0af4ab4af2fda4741cee5619da3e90de1f216
4
- data.tar.gz: b682f4ec720d98dbe617b8f6a0c4a7e49af0551b
3
+ metadata.gz: 5d580505eb9909f64e97c58e3aa6e822f7eb3f6c
4
+ data.tar.gz: 0e1c21b09317e7f827806d51c3e2da40cbeffc1e
5
5
  SHA512:
6
- metadata.gz: 1a99dec7d91d6592eccd05363071ef1233ec5a4dd20126b082d99e426454cb8251c9d1552c1f8696bed6b1a332f38c13df5e60f3cb06c16ae77020d7285e9f57
7
- data.tar.gz: e5bf875bdcfc47d042f215e20eed626228ed3f42ebdd7d715827b296bf438357c802d5b65dfef2423a480de066f906bde9bb47d643cd3589432e72c7ec6a52d2
6
+ metadata.gz: 120cdde4556886fab487f1c15126e6e1e60ad814d885d97cd2a9f438cb10301f3636c5dd68579122c2c8f1e93eee3686536273baa2b1929e5280fd737feff7e2
7
+ data.tar.gz: 67bae257bda06564c813d92d607e0cd1880b31a3caa51e487e02ad8fd56375b0938481ab40aefd2be08c8dbbcd117bb221cd659d7613ba01484fa27209fa8656
@@ -16,11 +16,12 @@ module GlossyApp
16
16
  # You find the rest of the methods in glossyapp/session/*
17
17
  class Session
18
18
 
19
- def initialize(api_key, base_url = 'http://api.glossyapp.com/v1', proxy = nil)
19
+ def initialize(api_key, base_url = 'http://api.glossyapp.com/v1', proxy = nil, timeout = 30)
20
20
 
21
21
  @api_key = api_key
22
22
  @base_url = base_url
23
23
  @proxy = proxy
24
+ @timeout = timeout
24
25
 
25
26
  setup_session
26
27
  end
@@ -43,7 +44,7 @@ module GlossyApp
43
44
 
44
45
  def setup_session
45
46
  @glossy_api = Patron::Session.new
46
- @glossy_api.timeout = 30
47
+ @glossy_api.timeout = @timeout
47
48
 
48
49
  @glossy_api.base_url = @base_url
49
50
 
@@ -1,3 +1,3 @@
1
1
  module GlossyApp
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glossyapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Schmid
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-02 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler