roqua-core-api 0.0.13 → 0.0.14

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: b6629a5792c576139c32eaf0a255f0785ab591bf
4
- data.tar.gz: 899779caf5d2fb5352a44a21136097830c298f44
3
+ metadata.gz: 782133b7896ebd753cda95ede0db54827f2c4594
4
+ data.tar.gz: fff3299005e3fbcaf36efa74325b46fbe3bd7025
5
5
  SHA512:
6
- metadata.gz: a015867ee81c83bf90d53a458606ea866aab4dccfe90268754dce4936d66d3da4e6fd6b85eb7ab9cb4504f66ed857484ec91c08b72c83c1944d0fecb428f59ac
7
- data.tar.gz: 79ba4c56d28fd44fc1589dbeecdc7d6a99a1b4b688bbba5f8c869542bf86c4be6032921f4d839c427fe5c21087a04a9b7345ff5a96dc19ec32f066a4cb1bf10c
6
+ metadata.gz: 79116cb7661998a9f0b1300a3c21df7d25c40c269e596ffd7107d3cc0ba544bf285f375cbeb0beee77e857e263197b80f3202d4b721cc32146a6c6a278e203d4
7
+ data.tar.gz: ee40718596d1bca024cf101d47b4284050131a6f36d2151444714b6b07552408407349bbc46b3161d05b56116893537daad652763b0b19344340b9a9e3e266f7
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.0.14 / 2014-03-12
2
+
3
+ * restore timeout to Ruby default
4
+
1
5
  ### 0.0.13 / 2014-03-11
2
6
 
3
7
  * Fix doorkeeper setup
@@ -6,7 +6,7 @@ module Roqua
6
6
  attr_reader :default_timeout
7
7
 
8
8
  # timeout for requests in seconds
9
- def initialize(core_host: ENV['CORE_HOST'], timeout: 5)
9
+ def initialize(core_host: ENV['CORE_HOST'], timeout: nil)
10
10
  @core_host = core_host
11
11
  @default_timeout = timeout
12
12
  end
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module CoreApi
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
@@ -18,9 +18,14 @@ describe AuthSession do
18
18
  expect(session.core_host).to eq('some_env_core_host')
19
19
  end
20
20
 
21
- it 'defaults the timeout to 5 seconds' do
21
+ it 'sets the default timeout' do
22
+ session = AuthSession.new timeout: 30
23
+ expect(session.default_timeout).to eq 30
24
+ end
25
+
26
+ it 'defaults the default timeout to nil' do
22
27
  session = AuthSession.new
23
- expect(session.default_timeout).to eq 5
28
+ expect(session.default_timeout).to be_nil
24
29
  end
25
30
  end
26
31
 
@@ -32,7 +37,7 @@ describe AuthSession do
32
37
  query: {some: 'param'},
33
38
  headers: {some: 'header'},
34
39
  basic_auth: {username: 'some_username', password: 'some_password'},
35
- timeout: 5)
40
+ timeout: nil)
36
41
  .and_return(response)
37
42
  session.get '/some_path', some: 'param'
38
43
  end
@@ -37,7 +37,7 @@ describe OAuthSession do
37
37
  headers: {"Authorization" => "Bearer some_access_token"},
38
38
  query: {},
39
39
  basic_auth: nil,
40
- timeout: 5).and_return(response)
40
+ timeout: nil).and_return(response)
41
41
  session.get 'some_path'
42
42
  end
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqua-core-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-11 00:00:00.000000000 Z
11
+ date: 2014-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty