vidibus-user 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -4,6 +4,7 @@ module Vidibus
4
4
  extend ActiveSupport::Concern
5
5
  included do
6
6
  field :uuid
7
+ field :email
7
8
  validates :uuid, :uuid => true
8
9
  end
9
10
  end
@@ -55,6 +55,7 @@ Warden::Strategies.add(:connector) do
55
55
  user_data = JSON.parse(response)
56
56
  selector = {:uuid => user_data["uuid"]}
57
57
  user = User.where(selector).first || User.new(selector)
58
+ user.email = user_data["email"]
58
59
  user.save!
59
60
  rescue OAuth2::HTTPError
60
61
  Rails.logger.error "Failed to fetch user data from #{credentials[:service_url]}/oauth/user"
data/vidibus-user.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vidibus-user}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andre Pankratz"]
12
- s.date = %q{2011-02-04}
12
+ s.date = %q{2011-02-06}
13
13
  s.description = %q{Provides single sign-on and a local user model.}
14
14
  s.email = %q{andre@vidibus.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-user
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Pankratz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-04 00:00:00 +01:00
18
+ date: 2011-02-06 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency