bsm-sso-client 0.7.16 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,10 +6,7 @@ module Bsm::Sso::Client::Cached::ActiveRecord
6
6
  include Bsm::Sso::Client::UserMethods
7
7
 
8
8
  included do
9
- self.mass_assignment_sanitizer = :logger # SSO might send more than we can chew
10
-
11
9
  validates :id, presence: true, on: :create
12
- attr_accessible :id, :email, :kind, :level, :authentication_token, as: :sso
13
10
  end
14
11
 
15
12
  module ClassMethods
@@ -31,11 +28,11 @@ module Bsm::Sso::Client::Cached::ActiveRecord
31
28
  # Cache!
32
29
  def sso_cache(resource, action = nil)
33
30
  if record = where(id: resource.id).first
34
- record.assign_attributes resource.attributes, as: :sso
31
+ record.assign_attributes(resource.attributes)
35
32
  record.changed? ? record.save! : record.touch
36
33
  record
37
34
  else
38
- create! resource.attributes, as: :sso
35
+ create!(resource.attributes)
39
36
  end
40
37
  end
41
38
 
@@ -10,14 +10,8 @@ class Bsm::Sso::Client::Railtie < ::Rails::Railtie
10
10
  Bsm::Sso::Client.warden_configuration.call(manager) if Bsm::Sso::Client.warden_configuration
11
11
  end
12
12
 
13
- if config.action_dispatch.key?(:rescue_responses) # Rails >= 3.2.0
13
+ if config.action_dispatch.key?(:rescue_responses)
14
14
  config.action_dispatch.rescue_responses.merge!(RESCUE_RESPONSES)
15
- else
16
- config.after_initialize do
17
- if defined?(::ActionDispatch::ShowExceptions)
18
- ActionDispatch::ShowExceptions.rescue_responses.merge!(RESCUE_RESPONSES)
19
- end
20
- end
21
15
  end
22
16
 
23
17
  end
metadata CHANGED
@@ -1,66 +1,68 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsm-sso-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.16
4
+ version: 0.8.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Dimitrij Denissenko
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-11-12 00:00:00.000000000 Z
12
+ date: 2013-06-27 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: railties
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 3.2.0
20
- - - <
19
+ - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
21
  version: 4.0.0
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
26
  requirements:
27
- - - '>='
28
- - !ruby/object:Gem::Version
29
- version: 3.2.0
30
- - - <
27
+ - - ! '>='
31
28
  - !ruby/object:Gem::Version
32
29
  version: 4.0.0
33
30
  - !ruby/object:Gem::Dependency
34
31
  name: actionpack
35
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
36
34
  requirements:
37
- - - '>='
35
+ - - ! '>='
38
36
  - !ruby/object:Gem::Version
39
37
  version: '0'
40
38
  type: :runtime
41
39
  prerelease: false
42
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
43
42
  requirements:
44
- - - '>='
43
+ - - ! '>='
45
44
  - !ruby/object:Gem::Version
46
45
  version: '0'
47
46
  - !ruby/object:Gem::Dependency
48
47
  name: activesupport
49
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
50
  requirements:
51
- - - '>='
51
+ - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
57
58
  requirements:
58
- - - '>='
59
+ - - ! '>='
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
62
  - !ruby/object:Gem::Dependency
62
63
  name: rails_warden
63
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
64
66
  requirements:
65
67
  - - ~>
66
68
  - !ruby/object:Gem::Version
@@ -68,6 +70,7 @@ dependencies:
68
70
  type: :runtime
69
71
  prerelease: false
70
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
71
74
  requirements:
72
75
  - - ~>
73
76
  - !ruby/object:Gem::Version
@@ -75,147 +78,161 @@ dependencies:
75
78
  - !ruby/object:Gem::Dependency
76
79
  name: excon
77
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
78
82
  requirements:
79
- - - '>'
80
- - !ruby/object:Gem::Version
81
- version: 0.27.0
82
- - - <
83
+ - - ~>
83
84
  - !ruby/object:Gem::Version
84
- version: 1.0.0
85
+ version: 0.25.0
85
86
  type: :runtime
86
87
  prerelease: false
87
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
88
90
  requirements:
89
- - - '>'
90
- - !ruby/object:Gem::Version
91
- version: 0.27.0
92
- - - <
91
+ - - ~>
93
92
  - !ruby/object:Gem::Version
94
- version: 1.0.0
93
+ version: 0.25.0
95
94
  - !ruby/object:Gem::Dependency
96
95
  name: cancan
97
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
98
  requirements:
99
- - - '>='
99
+ - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
105
106
  requirements:
106
- - - '>='
107
+ - - ! '>='
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
110
  - !ruby/object:Gem::Dependency
110
111
  name: activerecord
111
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
112
114
  requirements:
113
- - - '>='
115
+ - - ! '>='
114
116
  - !ruby/object:Gem::Version
115
117
  version: '0'
116
118
  type: :development
117
119
  prerelease: false
118
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
119
122
  requirements:
120
- - - '>='
123
+ - - ! '>='
121
124
  - !ruby/object:Gem::Version
122
125
  version: '0'
123
126
  - !ruby/object:Gem::Dependency
124
127
  name: rake
125
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
126
130
  requirements:
127
- - - '>='
131
+ - - ! '>='
128
132
  - !ruby/object:Gem::Version
129
133
  version: '0'
130
134
  type: :development
131
135
  prerelease: false
132
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
133
138
  requirements:
134
- - - '>='
139
+ - - ! '>='
135
140
  - !ruby/object:Gem::Version
136
141
  version: '0'
137
142
  - !ruby/object:Gem::Dependency
138
143
  name: rack-test
139
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
140
146
  requirements:
141
- - - '>='
147
+ - - ! '>='
142
148
  - !ruby/object:Gem::Version
143
149
  version: '0'
144
150
  type: :development
145
151
  prerelease: false
146
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
147
154
  requirements:
148
- - - '>='
155
+ - - ! '>='
149
156
  - !ruby/object:Gem::Version
150
157
  version: '0'
151
158
  - !ruby/object:Gem::Dependency
152
159
  name: rspec
153
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
154
162
  requirements:
155
- - - '>='
163
+ - - ! '>='
156
164
  - !ruby/object:Gem::Version
157
165
  version: '0'
158
166
  type: :development
159
167
  prerelease: false
160
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
161
170
  requirements:
162
- - - '>='
171
+ - - ! '>='
163
172
  - !ruby/object:Gem::Version
164
173
  version: '0'
165
174
  - !ruby/object:Gem::Dependency
166
175
  name: shoulda-matchers
167
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
168
178
  requirements:
169
- - - '>='
179
+ - - ! '>='
170
180
  - !ruby/object:Gem::Version
171
181
  version: '0'
172
182
  type: :development
173
183
  prerelease: false
174
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
175
186
  requirements:
176
- - - '>='
187
+ - - ! '>='
177
188
  - !ruby/object:Gem::Version
178
189
  version: '0'
179
190
  - !ruby/object:Gem::Dependency
180
191
  name: webmock
181
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
182
194
  requirements:
183
- - - '>='
195
+ - - ! '>='
184
196
  - !ruby/object:Gem::Version
185
197
  version: '0'
186
198
  type: :development
187
199
  prerelease: false
188
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
189
202
  requirements:
190
- - - '>='
203
+ - - ! '>='
191
204
  - !ruby/object:Gem::Version
192
205
  version: '0'
193
206
  - !ruby/object:Gem::Dependency
194
207
  name: sqlite3
195
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
196
210
  requirements:
197
- - - '>='
211
+ - - ! '>='
198
212
  - !ruby/object:Gem::Version
199
213
  version: '0'
200
214
  type: :development
201
215
  prerelease: false
202
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
203
218
  requirements:
204
- - - '>='
219
+ - - ! '>='
205
220
  - !ruby/object:Gem::Version
206
221
  version: '0'
207
222
  - !ruby/object:Gem::Dependency
208
223
  name: inherited_resources
209
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
210
226
  requirements:
211
- - - '>='
227
+ - - ! '>='
212
228
  - !ruby/object:Gem::Version
213
229
  version: '0'
214
230
  type: :development
215
231
  prerelease: false
216
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
217
234
  requirements:
218
- - - '>='
235
+ - - ! '>='
219
236
  - !ruby/object:Gem::Version
220
237
  version: '0'
221
238
  description: ''
@@ -244,26 +261,27 @@ files:
244
261
  - lib/bsm-sso-client.rb
245
262
  homepage: https://github.com/bsm/sso-client
246
263
  licenses: []
247
- metadata: {}
248
264
  post_install_message:
249
265
  rdoc_options: []
250
266
  require_paths:
251
267
  - lib
252
268
  required_ruby_version: !ruby/object:Gem::Requirement
269
+ none: false
253
270
  requirements:
254
- - - '>='
271
+ - - ! '>='
255
272
  - !ruby/object:Gem::Version
256
273
  version: 1.9.2
257
274
  required_rubygems_version: !ruby/object:Gem::Requirement
275
+ none: false
258
276
  requirements:
259
- - - '>='
277
+ - - ! '>='
260
278
  - !ruby/object:Gem::Version
261
279
  version: 1.3.6
262
280
  requirements: []
263
281
  rubyforge_project:
264
- rubygems_version: 2.0.3
282
+ rubygems_version: 1.8.25
265
283
  signing_key:
266
- specification_version: 4
284
+ specification_version: 3
267
285
  summary: BSM's internal SSO client
268
286
  test_files: []
269
287
  has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 442f47fb2abb13e817bae3651d3fc552a5cc0bae
4
- data.tar.gz: 2a95dc4b28445cd89a373101fd185695ace1fc1d
5
- SHA512:
6
- metadata.gz: 842ed82976bdda82169e1706aeb6cf405f82efeeb633e6889b9c68faf23d3662cf90086ed442c4f2f72baf1adb8243bd45fd01796a7a9802a581c9cd11d8de73
7
- data.tar.gz: 386b70a16639268e70cc5cfe8cd7a9c840f2db09c7c38db4c89bd5f2e49543edeace07d1d90395440b34166409f49b49cf24a6b84ffa69ade565f1f603872cc1