thincloud-authentication 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,22 @@
|
|
1
|
-
module Thincloud
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
module Thincloud
|
2
|
+
module Authentication
|
3
|
+
class << self
|
4
|
+
attr_accessor :configuration
|
5
|
+
end
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
def self.configure
|
8
|
+
self.configuration ||= Configuration.new
|
9
|
+
yield configuration
|
10
|
+
end
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
# Public: Configuration options for the Thincloud::Authentication module
|
13
|
+
class Configuration
|
14
|
+
attr_accessor :providers, :mailer_sender
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
16
|
+
def initialize
|
17
|
+
@providers = {}
|
18
|
+
@mailer_sender = "app@example.com"
|
19
|
+
end
|
18
20
|
end
|
19
21
|
end
|
20
22
|
end
|
@@ -1,9 +1,11 @@
|
|
1
|
-
module Thincloud
|
2
|
-
module
|
3
|
-
|
1
|
+
module Thincloud
|
2
|
+
module Authentication
|
3
|
+
module IdentifiableUser
|
4
|
+
extend ActiveSupport::Concern
|
4
5
|
|
5
|
-
|
6
|
-
|
6
|
+
included do
|
7
|
+
has_many :identities, class_name: "Thincloud::Authentication::Identity"
|
8
|
+
end
|
7
9
|
end
|
8
10
|
end
|
9
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thincloud-authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-10-
|
13
|
+
date: 2012-10-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -268,7 +268,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
268
268
|
version: '0'
|
269
269
|
segments:
|
270
270
|
- 0
|
271
|
-
hash:
|
271
|
+
hash: -642330587581833206
|
272
272
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
273
|
none: false
|
274
274
|
requirements:
|
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
277
|
version: '0'
|
278
278
|
segments:
|
279
279
|
- 0
|
280
|
-
hash:
|
280
|
+
hash: -642330587581833206
|
281
281
|
requirements: []
|
282
282
|
rubyforge_project:
|
283
283
|
rubygems_version: 1.8.24
|