g5_authentication_client 1.0.1.pre.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6d829111a4021e3b7c1a2ffb3176dab7254a316b1f28f51f9ba500183a1e71dc
4
+ data.tar.gz: d3a95d3b564d043488fa2682c66273d2dfc965a025faf6828cf0abefdcc74620
5
+ SHA512:
6
+ metadata.gz: 4938e31f9665cab400e99ee810eb75065fd913e31a98e23f3f07a082fa1f6eef18446cedb95fdd9162ca3ffede0b08a2f42991d03074eb90b913319711bce079
7
+ data.tar.gz: 02d1f42c0c8fc03902d8caf99c6e629e67206ebb78c1070cd7b504329d4b4a85836b80f224872f95c6bc3455108b8039b6332079d330b27c6b26576655460714
@@ -1,8 +1,18 @@
1
+
2
+ ##v1.0.2 (2018-08-15)
3
+ *bringing this all together
4
+
5
+ ## v1.0.1 (2018-01-22)
6
+
7
+ * Removing RestClient dependency
8
+ * [#35](https://github.com/G5/g5_authentication_client/pull/35)
9
+
1
10
  ## v1.0.1.pre.1 (2017-11-02)
2
11
 
3
12
  * Reintroduce support for ruby >= 1.9.3
4
13
  ([#34](https://github.com/G5/g5_authentication_client/pull/34))
5
14
 
15
+
6
16
  ## v1.0.0 (2017-10-18)
7
17
 
8
18
  * **Backwards incompatible changes**
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ['lib']
21
21
 
22
22
  s.add_dependency('modelish')
23
+ s.add_dependency('hashie', '< 3.6.0')
24
+
23
25
  s.add_dependency('configlet', '~> 2.1')
24
26
  s.add_dependency('oauth2')
25
27
  s.add_dependency('addressable')
@@ -4,11 +4,7 @@ module G5AuthenticationClient::AuthTokenHelper
4
4
  # Return response to 'yield'
5
5
  # Yield response should have a 'code' method for the http status code
6
6
  def do_with_username_pw_access_token
7
- begin
8
- response = yield cached_username_pw_access_token
9
- rescue RestClient::ExceptionWithResponse => e
10
- response = e.response
11
- end
7
+ response = yield cached_username_pw_access_token
12
8
  if response.code.to_i == 401
13
9
  @cached_username_pw_access_token = nil
14
10
  response = yield cached_username_pw_access_token
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module G5AuthenticationClient
4
- VERSION = '1.0.1.pre.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_authentication_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.pre.1
5
- prerelease: 6
4
+ version: 1.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Rob Revels
@@ -10,230 +9,216 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2017-11-03 00:00:00.000000000 Z
12
+ date: 2018-08-16 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: modelish
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: hashie
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "<"
33
+ - !ruby/object:Gem::Version
34
+ version: 3.6.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "<"
40
+ - !ruby/object:Gem::Version
41
+ version: 3.6.0
31
42
  - !ruby/object:Gem::Dependency
32
43
  name: configlet
33
44
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
45
  requirements:
36
- - - ~>
46
+ - - "~>"
37
47
  - !ruby/object:Gem::Version
38
48
  version: '2.1'
39
49
  type: :runtime
40
50
  prerelease: false
41
51
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
52
  requirements:
44
- - - ~>
53
+ - - "~>"
45
54
  - !ruby/object:Gem::Version
46
55
  version: '2.1'
47
56
  - !ruby/object:Gem::Dependency
48
57
  name: oauth2
49
58
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
59
  requirements:
52
- - - ! '>='
60
+ - - ">="
53
61
  - !ruby/object:Gem::Version
54
62
  version: '0'
55
63
  type: :runtime
56
64
  prerelease: false
57
65
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
66
  requirements:
60
- - - ! '>='
67
+ - - ">="
61
68
  - !ruby/object:Gem::Version
62
69
  version: '0'
63
70
  - !ruby/object:Gem::Dependency
64
71
  name: addressable
65
72
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
73
  requirements:
68
- - - ! '>='
74
+ - - ">="
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  type: :runtime
72
78
  prerelease: false
73
79
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
80
  requirements:
76
- - - ! '>='
81
+ - - ">="
77
82
  - !ruby/object:Gem::Version
78
83
  version: '0'
79
84
  - !ruby/object:Gem::Dependency
80
85
  name: rake
81
86
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
87
  requirements:
84
- - - ! '>='
88
+ - - ">="
85
89
  - !ruby/object:Gem::Version
86
90
  version: '0'
87
91
  type: :development
88
92
  prerelease: false
89
93
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
94
  requirements:
92
- - - ! '>='
95
+ - - ">="
93
96
  - !ruby/object:Gem::Version
94
97
  version: '0'
95
98
  - !ruby/object:Gem::Dependency
96
99
  name: rspec
97
100
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
101
  requirements:
100
- - - ! '>='
102
+ - - ">="
101
103
  - !ruby/object:Gem::Version
102
104
  version: '0'
103
105
  type: :development
104
106
  prerelease: false
105
107
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
108
  requirements:
108
- - - ! '>='
109
+ - - ">="
109
110
  - !ruby/object:Gem::Version
110
111
  version: '0'
111
112
  - !ruby/object:Gem::Dependency
112
113
  name: rspec-its
113
114
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
115
  requirements:
116
- - - ! '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
122
  requirements:
124
- - - ! '>='
123
+ - - ">="
125
124
  - !ruby/object:Gem::Version
126
125
  version: '0'
127
126
  - !ruby/object:Gem::Dependency
128
127
  name: webmock
129
128
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
129
  requirements:
132
- - - ! '>='
130
+ - - ">="
133
131
  - !ruby/object:Gem::Version
134
132
  version: '0'
135
133
  type: :development
136
134
  prerelease: false
137
135
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
136
  requirements:
140
- - - ! '>='
137
+ - - ">="
141
138
  - !ruby/object:Gem::Version
142
139
  version: '0'
143
140
  - !ruby/object:Gem::Dependency
144
141
  name: fakefs
145
142
  requirement: !ruby/object:Gem::Requirement
146
- none: false
147
143
  requirements:
148
- - - ! '>='
144
+ - - ">="
149
145
  - !ruby/object:Gem::Version
150
146
  version: '0'
151
147
  type: :development
152
148
  prerelease: false
153
149
  version_requirements: !ruby/object:Gem::Requirement
154
- none: false
155
150
  requirements:
156
- - - ! '>='
151
+ - - ">="
157
152
  - !ruby/object:Gem::Version
158
153
  version: '0'
159
154
  - !ruby/object:Gem::Dependency
160
155
  name: simplecov
161
156
  requirement: !ruby/object:Gem::Requirement
162
- none: false
163
157
  requirements:
164
- - - ! '>='
158
+ - - ">="
165
159
  - !ruby/object:Gem::Version
166
160
  version: '0'
167
161
  type: :development
168
162
  prerelease: false
169
163
  version_requirements: !ruby/object:Gem::Requirement
170
- none: false
171
164
  requirements:
172
- - - ! '>='
165
+ - - ">="
173
166
  - !ruby/object:Gem::Version
174
167
  version: '0'
175
168
  - !ruby/object:Gem::Dependency
176
169
  name: codeclimate-test-reporter
177
170
  requirement: !ruby/object:Gem::Requirement
178
- none: false
179
171
  requirements:
180
- - - ~>
172
+ - - "~>"
181
173
  - !ruby/object:Gem::Version
182
174
  version: '1.0'
183
175
  type: :development
184
176
  prerelease: false
185
177
  version_requirements: !ruby/object:Gem::Requirement
186
- none: false
187
178
  requirements:
188
- - - ~>
179
+ - - "~>"
189
180
  - !ruby/object:Gem::Version
190
181
  version: '1.0'
191
182
  - !ruby/object:Gem::Dependency
192
183
  name: yard
193
184
  requirement: !ruby/object:Gem::Requirement
194
- none: false
195
185
  requirements:
196
- - - ! '>='
186
+ - - ">="
197
187
  - !ruby/object:Gem::Version
198
188
  version: '0'
199
189
  type: :development
200
190
  prerelease: false
201
191
  version_requirements: !ruby/object:Gem::Requirement
202
- none: false
203
192
  requirements:
204
- - - ! '>='
193
+ - - ">="
205
194
  - !ruby/object:Gem::Version
206
195
  version: '0'
207
196
  - !ruby/object:Gem::Dependency
208
197
  name: rdiscount
209
198
  requirement: !ruby/object:Gem::Requirement
210
- none: false
211
199
  requirements:
212
- - - ! '>='
200
+ - - ">="
213
201
  - !ruby/object:Gem::Version
214
202
  version: '0'
215
203
  type: :development
216
204
  prerelease: false
217
205
  version_requirements: !ruby/object:Gem::Requirement
218
- none: false
219
206
  requirements:
220
- - - ! '>='
207
+ - - ">="
221
208
  - !ruby/object:Gem::Version
222
209
  version: '0'
223
210
  - !ruby/object:Gem::Dependency
224
211
  name: vcr
225
212
  requirement: !ruby/object:Gem::Requirement
226
- none: false
227
213
  requirements:
228
- - - ! '>='
214
+ - - ">="
229
215
  - !ruby/object:Gem::Version
230
216
  version: '0'
231
217
  type: :development
232
218
  prerelease: false
233
219
  version_requirements: !ruby/object:Gem::Requirement
234
- none: false
235
220
  requirements:
236
- - - ! '>='
221
+ - - ">="
237
222
  - !ruby/object:Gem::Version
238
223
  version: '0'
239
224
  description: Client for the G5 Auth service
@@ -244,10 +229,10 @@ executables: []
244
229
  extensions: []
245
230
  extra_rdoc_files: []
246
231
  files:
247
- - .gitignore
248
- - .rspec
249
- - .ruby-version
250
- - .travis.yml
232
+ - ".gitignore"
233
+ - ".rspec"
234
+ - ".ruby-version"
235
+ - ".travis.yml"
251
236
  - CHANGELOG.md
252
237
  - Gemfile
253
238
  - LICENSE
@@ -275,30 +260,26 @@ files:
275
260
  - spec/support/oauth_protected_resource.rb
276
261
  homepage: https://github.com/G5/g5_authentication_client
277
262
  licenses: []
263
+ metadata: {}
278
264
  post_install_message:
279
265
  rdoc_options: []
280
266
  require_paths:
281
267
  - lib
282
268
  required_ruby_version: !ruby/object:Gem::Requirement
283
- none: false
284
269
  requirements:
285
- - - ! '>='
270
+ - - ">="
286
271
  - !ruby/object:Gem::Version
287
272
  version: '0'
288
- segments:
289
- - 0
290
- hash: -2255672136091484720
291
273
  required_rubygems_version: !ruby/object:Gem::Requirement
292
- none: false
293
274
  requirements:
294
- - - ! '>'
275
+ - - ">="
295
276
  - !ruby/object:Gem::Version
296
- version: 1.3.1
277
+ version: '0'
297
278
  requirements: []
298
279
  rubyforge_project: g5_authentication_client
299
- rubygems_version: 1.8.23.2
280
+ rubygems_version: 2.7.6
300
281
  signing_key:
301
- specification_version: 3
282
+ specification_version: 4
302
283
  summary: Client for the G5 Auth service
303
284
  test_files:
304
285
  - spec/g5_authentication_client/auth_token_helper_spec.rb
@@ -311,4 +292,3 @@ test_files:
311
292
  - spec/spec_helper.rb
312
293
  - spec/support/module_configured_attribute.rb
313
294
  - spec/support/oauth_protected_resource.rb
314
- has_rdoc: