authentise 0.1.0 → 0.2.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: 8f1e56dbfbd3c62ea57126745ef129b508795a75
4
- data.tar.gz: a67c2a69f9ee8dad71424f044af0946a720eb839
3
+ metadata.gz: b5c482f7dd3c413ce5388825d6e8f166b1fe3e1c
4
+ data.tar.gz: 1d396496e639f998e7b367a2a21710a27ae65eaf
5
5
  SHA512:
6
- metadata.gz: 499c0b034752c6177b9ca3ab58fdc7f65408ab543171dc26f4df3866ffe0fb170713280b2d5fda6a0018d1d440bfca48bfbcb29ba73853342e938b53e2118029
7
- data.tar.gz: 3c3fe5cf2b1dc67db778e6e076e81d775107d96cb946adceebb582825901b5c258bc6f0bf4798aa7a59a8e6c69cd5598c785aa1ebf77267f8e8bfb34e81d1f9f
6
+ metadata.gz: ea354a546c8a850305183e55728b10d090bb17ce600dc1f9c2942c03b1317bb9c9ed44610181efb4585031e684c08f7d707b29fcf66d3e8086e208010ceef08b
7
+ data.tar.gz: 554da033fd57e3b024b3d264a4e4195a4d9ae88f54fe6dcabef9860a9ba7e6690bd321302691192f33ee345e197d1ca695aff6e0be179c5996dd95f725bd6a22
@@ -23,6 +23,8 @@ module Authentise
23
23
  options = {
24
24
  content_type: :json,
25
25
  accept: :json,
26
+ open_timeout: 2,
27
+ timeout: 2,
26
28
  }
27
29
  RestClient.post(url, body, options) do |response, _request, _result|
28
30
  if response.code == 201
@@ -21,6 +21,8 @@ module Authentise
21
21
  url = "https://users.authentise.com/users/"
22
22
  options = {
23
23
  accept: :json,
24
+ open_timeout: 2,
25
+ timeout: 2,
24
26
  }
25
27
  RestClient.post(url, params, options) do |response, _request, _result|
26
28
  json = JSON.parse(response)
@@ -47,6 +49,8 @@ module Authentise
47
49
  url = "https://users.authentise.com/sessions/"
48
50
  options = {
49
51
  accept: :json,
52
+ open_timeout: 2,
53
+ timeout: 2,
50
54
  }
51
55
  RestClient.post(url, params, options) do |response, _request, _result|
52
56
  if response.code == 201
@@ -36,6 +36,8 @@ module Authentise
36
36
  content_type: :json,
37
37
  accept: :json,
38
38
  cookies: { session: session_token },
39
+ open_timeout: 2,
40
+ timeout: 2,
39
41
  }
40
42
  RestClient.post(url, body, options) do |response, _request, _result|
41
43
  if response.code == 201
@@ -53,6 +55,8 @@ module Authentise
53
55
  file = File.read(path)
54
56
  options = {
55
57
  content_type: 'application/octet-stream',
58
+ open_timeout: 2,
59
+ timeout: 2,
56
60
  }
57
61
  RestClient.put(url, file, options) do |response, _request, _result|
58
62
  if response.code == 200
@@ -70,6 +74,8 @@ module Authentise
70
74
  content_type: :json,
71
75
  accept: :json,
72
76
  cookies: { session: session_token },
77
+ open_timeout: 2,
78
+ timeout: 2,
73
79
  }
74
80
  RestClient.get(url, headers) do |response, _request, _result|
75
81
  if response.code == 200
@@ -162,6 +168,8 @@ module Authentise
162
168
  content_type: :json,
163
169
  accept: :json,
164
170
  cookies: { session: session_token },
171
+ open_timeout: 2,
172
+ timeout: 2,
165
173
  }
166
174
  RestClient.post(url, body, headers) do |response, _request, _result|
167
175
  if response.code == 201
@@ -181,6 +189,8 @@ module Authentise
181
189
  content_type: :json,
182
190
  accept: :json,
183
191
  cookies: { session: session_token },
192
+ open_timeout: 2,
193
+ timeout: 2,
184
194
  }
185
195
  RestClient.get(url, headers) do |response, _request, _result|
186
196
  if response.code == 200
@@ -1,3 +1,3 @@
1
1
  module Authentise
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,55 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-09 00:00:00.000000000 Z
11
+ date: 2015-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: webmock
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
69
  description: Access Authentise's 3D-Printing streaming API
@@ -95,12 +109,12 @@ require_paths:
95
109
  - lib
96
110
  required_ruby_version: !ruby/object:Gem::Requirement
97
111
  requirements:
98
- - - '>='
112
+ - - ">="
99
113
  - !ruby/object:Gem::Version
100
114
  version: '0'
101
115
  required_rubygems_version: !ruby/object:Gem::Requirement
102
116
  requirements:
103
- - - '>='
117
+ - - ">="
104
118
  - !ruby/object:Gem::Version
105
119
  version: '0'
106
120
  requirements: []