bsm-sso-client 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ require 'active_support/core_ext/numeric/time'
8
8
  require 'active_support/dependencies'
9
9
  require 'active_resource'
10
10
  require 'action_controller'
11
+ require 'action_controller/metal/exceptions'
11
12
  require 'rails_warden'
12
13
 
13
14
  module Bsm
@@ -15,7 +15,7 @@ class Bsm::Sso::Client::Strategies::HttpAuth < Bsm::Sso::Client::Strategies::Bas
15
15
 
16
16
  def token
17
17
  return nil unless request.authorization && request.authorization =~ /^Basic (.*)/m
18
- @token ||= ActiveSupport::Base64.decode64($1).split(/:/, 2).first
18
+ @token ||= Base64.decode64($1).split(/:/, 2).first
19
19
  end
20
20
 
21
21
  Warden::Strategies.add :sso_http_auth, self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsm-sso-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,53 +9,44 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-04 00:00:00.000000000Z
12
+ date: 2012-01-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeresource
16
- requirement: &21533600 !ruby/object:Gem::Requirement
16
+ requirement: &9431320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.1.0
22
- - - <
23
- - !ruby/object:Gem::Version
24
- version: 3.2.0
25
22
  type: :runtime
26
23
  prerelease: false
27
- version_requirements: *21533600
24
+ version_requirements: *9431320
28
25
  - !ruby/object:Gem::Dependency
29
26
  name: actionpack
30
- requirement: &21531920 !ruby/object:Gem::Requirement
27
+ requirement: &9430860 !ruby/object:Gem::Requirement
31
28
  none: false
32
29
  requirements:
33
30
  - - ! '>='
34
31
  - !ruby/object:Gem::Version
35
32
  version: 3.1.0
36
- - - <
37
- - !ruby/object:Gem::Version
38
- version: 3.2.0
39
33
  type: :runtime
40
34
  prerelease: false
41
- version_requirements: *21531920
35
+ version_requirements: *9430860
42
36
  - !ruby/object:Gem::Dependency
43
37
  name: railties
44
- requirement: &21529320 !ruby/object:Gem::Requirement
38
+ requirement: &9430400 !ruby/object:Gem::Requirement
45
39
  none: false
46
40
  requirements:
47
41
  - - ! '>='
48
42
  - !ruby/object:Gem::Version
49
43
  version: 3.1.0
50
- - - <
51
- - !ruby/object:Gem::Version
52
- version: 3.2.0
53
44
  type: :runtime
54
45
  prerelease: false
55
- version_requirements: *21529320
46
+ version_requirements: *9430400
56
47
  - !ruby/object:Gem::Dependency
57
48
  name: rails_warden
58
- requirement: &21500600 !ruby/object:Gem::Requirement
49
+ requirement: &9429900 !ruby/object:Gem::Requirement
59
50
  none: false
60
51
  requirements:
61
52
  - - ~>
@@ -63,10 +54,10 @@ dependencies:
63
54
  version: 0.5.0
64
55
  type: :runtime
65
56
  prerelease: false
66
- version_requirements: *21500600
57
+ version_requirements: *9429900
67
58
  - !ruby/object:Gem::Dependency
68
59
  name: activerecord
69
- requirement: &21498180 !ruby/object:Gem::Requirement
60
+ requirement: &9429520 !ruby/object:Gem::Requirement
70
61
  none: false
71
62
  requirements:
72
63
  - - ! '>='
@@ -74,10 +65,10 @@ dependencies:
74
65
  version: '0'
75
66
  type: :development
76
67
  prerelease: false
77
- version_requirements: *21498180
68
+ version_requirements: *9429520
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
- requirement: &21495920 !ruby/object:Gem::Requirement
71
+ requirement: &9429000 !ruby/object:Gem::Requirement
81
72
  none: false
82
73
  requirements:
83
74
  - - ! '>='
@@ -85,10 +76,10 @@ dependencies:
85
76
  version: '0'
86
77
  type: :development
87
78
  prerelease: false
88
- version_requirements: *21495920
79
+ version_requirements: *9429000
89
80
  - !ruby/object:Gem::Dependency
90
81
  name: rack-test
91
- requirement: &21494300 !ruby/object:Gem::Requirement
82
+ requirement: &9428520 !ruby/object:Gem::Requirement
92
83
  none: false
93
84
  requirements:
94
85
  - - ! '>='
@@ -96,10 +87,10 @@ dependencies:
96
87
  version: '0'
97
88
  type: :development
98
89
  prerelease: false
99
- version_requirements: *21494300
90
+ version_requirements: *9428520
100
91
  - !ruby/object:Gem::Dependency
101
92
  name: rspec
102
- requirement: &21492720 !ruby/object:Gem::Requirement
93
+ requirement: &9428000 !ruby/object:Gem::Requirement
103
94
  none: false
104
95
  requirements:
105
96
  - - ! '>='
@@ -107,10 +98,10 @@ dependencies:
107
98
  version: '0'
108
99
  type: :development
109
100
  prerelease: false
110
- version_requirements: *21492720
101
+ version_requirements: *9428000
111
102
  - !ruby/object:Gem::Dependency
112
103
  name: shoulda-matchers
113
- requirement: &21491180 !ruby/object:Gem::Requirement
104
+ requirement: &9427440 !ruby/object:Gem::Requirement
114
105
  none: false
115
106
  requirements:
116
107
  - - ! '>='
@@ -118,10 +109,10 @@ dependencies:
118
109
  version: '0'
119
110
  type: :development
120
111
  prerelease: false
121
- version_requirements: *21491180
112
+ version_requirements: *9427440
122
113
  - !ruby/object:Gem::Dependency
123
114
  name: webmock
124
- requirement: &21464140 !ruby/object:Gem::Requirement
115
+ requirement: &9426680 !ruby/object:Gem::Requirement
125
116
  none: false
126
117
  requirements:
127
118
  - - ! '>='
@@ -129,10 +120,10 @@ dependencies:
129
120
  version: '0'
130
121
  type: :development
131
122
  prerelease: false
132
- version_requirements: *21464140
123
+ version_requirements: *9426680
133
124
  - !ruby/object:Gem::Dependency
134
125
  name: sqlite3-ruby
135
- requirement: &21462500 !ruby/object:Gem::Requirement
126
+ requirement: &9426100 !ruby/object:Gem::Requirement
136
127
  none: false
137
128
  requirements:
138
129
  - - ! '>='
@@ -140,7 +131,7 @@ dependencies:
140
131
  version: '0'
141
132
  type: :development
142
133
  prerelease: false
143
- version_requirements: *21462500
134
+ version_requirements: *9426100
144
135
  description: ''
145
136
  email: dimitrij@blacksquaremedia.com
146
137
  executables: []