devise_koala_connectable 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +2 -2
- data/devise_koala_connectable.gemspec +3 -3
- data/lib/devise_koala_connectable/model.rb +4 -4
- metadata +5 -5
data/Rakefile
CHANGED
@@ -2,8 +2,8 @@ require "rubygems"
|
|
2
2
|
require "rake"
|
3
3
|
require "echoe"
|
4
4
|
|
5
|
-
Echoe.new("devise_koala_connectable", "0.1.
|
6
|
-
p.description = "Facebook authentification
|
5
|
+
Echoe.new("devise_koala_connectable", "0.1.2") do |p|
|
6
|
+
p.description = "Rails gem for adding Facebook authentification capabillity to devise using koala"
|
7
7
|
p.url = "http://github.com/webmatze/devise_koala_connectable"
|
8
8
|
p.author = "Mathias Karstädt"
|
9
9
|
p.email = "mathias.karstaedt@gmail.com"
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{devise_koala_connectable}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Mathias Karst\303\244dt"]
|
9
9
|
s.date = %q{2011-02-17}
|
10
|
-
s.description = %q{Facebook authentification
|
10
|
+
s.description = %q{Rails gem for adding Facebook authentification capabillity to devise using koala}
|
11
11
|
s.email = %q{mathias.karstaedt@gmail.com}
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/devise_koala_connectable.rb", "lib/devise_koala_connectable/locales/de.yml", "lib/devise_koala_connectable/locales/en.yml", "lib/devise_koala_connectable/model.rb", "lib/devise_koala_connectable/schema.rb", "lib/devise_koala_connectable/strategy.rb", "lib/devise_koala_connectable/version.rb", "lib/devise_koala_connectable/view_helpers.rb"]
|
13
13
|
s.files = ["README.rdoc", "Rakefile", "devise_koala_connectable.gemspec", "lib/devise_koala_connectable.rb", "lib/devise_koala_connectable/locales/de.yml", "lib/devise_koala_connectable/locales/en.yml", "lib/devise_koala_connectable/model.rb", "lib/devise_koala_connectable/schema.rb", "lib/devise_koala_connectable/strategy.rb", "lib/devise_koala_connectable/version.rb", "lib/devise_koala_connectable/view_helpers.rb", "rails/init.rb", "Manifest"]
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = %q{devise_koala_connectable}
|
18
18
|
s.rubygems_version = %q{1.3.7}
|
19
|
-
s.summary = %q{Facebook authentification
|
19
|
+
s.summary = %q{Rails gem for adding Facebook authentification capabillity to devise using koala}
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
22
22
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
@@ -33,13 +33,13 @@ module Devise #:nodoc:
|
|
33
33
|
# Store Koala account/session credentials.
|
34
34
|
#
|
35
35
|
def store_koala_credentials!(attributes = {})
|
36
|
-
self.send(:"#{self.class.koala_identifier_field}=", attributes[
|
36
|
+
self.send(:"#{self.class.koala_identifier_field}=", attributes["id"])
|
37
37
|
|
38
38
|
# Confirm without e-mail - if confirmable module is loaded.
|
39
39
|
self.skip_confirmation! if self.respond_to?(:skip_confirmation!)
|
40
40
|
|
41
41
|
# Only populate +email+ field if it's available (e.g. if +authenticable+ module is used).
|
42
|
-
self.email = attributes[
|
42
|
+
self.email = attributes["email"] || '' if self.respond_to?(:email)
|
43
43
|
|
44
44
|
# Lazy hack: These database fields are required if +authenticable+/+confirmable+
|
45
45
|
# module(s) is used. Could be avoided with :null => true for authenticatable
|
@@ -130,8 +130,8 @@ module Devise #:nodoc:
|
|
130
130
|
# Authenticate a user based on Facebook Identifier.
|
131
131
|
#
|
132
132
|
def authenticate_with_koala(attributes = {})
|
133
|
-
if attributes[
|
134
|
-
self.find_for_koala(attributes[
|
133
|
+
if attributes["id"].present?
|
134
|
+
self.find_for_koala(attributes["id"])
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_koala_connectable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Mathias Karst\xC3\xA4dt"
|
@@ -78,7 +78,7 @@ dependencies:
|
|
78
78
|
version: "0"
|
79
79
|
type: :development
|
80
80
|
version_requirements: *id004
|
81
|
-
description: Facebook authentification
|
81
|
+
description: Rails gem for adding Facebook authentification capabillity to devise using koala
|
82
82
|
email: mathias.karstaedt@gmail.com
|
83
83
|
executables: []
|
84
84
|
|
@@ -147,6 +147,6 @@ rubyforge_project: devise_koala_connectable
|
|
147
147
|
rubygems_version: 1.3.7
|
148
148
|
signing_key:
|
149
149
|
specification_version: 3
|
150
|
-
summary: Facebook authentification
|
150
|
+
summary: Rails gem for adding Facebook authentification capabillity to devise using koala
|
151
151
|
test_files: []
|
152
152
|
|