oa-core 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ module OmniAuth
19
19
  return fail!(:password_mismatch) if request[:password_confirmation] && request[:password_confirmation] != '' && request[:password] != request[:password_confirmation]
20
20
  env['REQUEST_METHOD'] = 'GET'
21
21
  env['PATH_INFO'] = request.path + '/callback'
22
- request['auth'] = auth_hash(encrypt(request[:identifier], request[:password]))
22
+ env['rack.auth'] = auth_hash(encrypt(request[:identifier], request[:password]))
23
23
  @app.call(env)
24
24
  end
25
25
 
@@ -6,19 +6,19 @@ module OmniAuth
6
6
 
7
7
  def sets_an_auth_hash
8
8
  it 'should set an auth hash' do
9
- last_request['auth'].should be_kind_of(Hash)
9
+ last_request.env['rack.auth'].should be_kind_of(Hash)
10
10
  end
11
11
  end
12
12
 
13
13
  def sets_provider_to(provider)
14
14
  it "should set the provider to #{provider}" do
15
- (last_request['auth'] || {})['provider'].should == provider
15
+ (last_request.env['rack.auth'] || {})['provider'].should == provider
16
16
  end
17
17
  end
18
18
 
19
19
  def sets_uid_to(uid)
20
20
  it "should set the UID to #{uid}" do
21
- (last_request['auth'] || {})['uid'].should == uid
21
+ (last_request.env['rack.auth'] || {})['uid'].should == uid
22
22
  end
23
23
  end
24
24
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oa-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Bleigh
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-04 00:00:00 -05:00
18
+ date: 2010-10-06 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency