signet-rails 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ module Signet
31
31
  # is this a login-based OAuth2 adapter? If so, the callback will be used to identify a
32
32
  # user and create one if necessary
33
33
  # Options: :login, :webserver
34
- combined_options[:type] = :login
34
+ combined_options[:type] ||= :webserver
35
35
 
36
36
  # name of hash-behaving attribute on our wrapper that contains credentials
37
37
  # keyed by :name
@@ -82,7 +82,7 @@ module Signet
82
82
  begin
83
83
  u = nil
84
84
  if combined_options[:type] == :login
85
- u = User.first_or_initialize(uid: id)
85
+ u = User.first_or_initialize(uid: combined_options[:name].to_s + "_" + id)
86
86
  u.save
87
87
  else
88
88
  session = env['rack.session']
@@ -1,5 +1,5 @@
1
1
  module Signet
2
2
  module Rails
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signet-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-11 00:00:00.000000000 Z
12
+ date: 2013-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler