letmein 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/letmein.gemspec +1 -1
- data/lib/letmein.rb +5 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/letmein.gemspec
CHANGED
data/lib/letmein.rb
CHANGED
@@ -30,9 +30,11 @@ module LetMeIn
|
|
30
30
|
attr_accessor :identifier, :password, :authenticated_object
|
31
31
|
validate :authenticate
|
32
32
|
|
33
|
-
def initialize(params = {})
|
34
|
-
|
35
|
-
|
33
|
+
def initialize(params = { })
|
34
|
+
unless params.blank?
|
35
|
+
self.identifier = params[:identifier] || params[LetMeIn.configuration.identifier.to_sym]
|
36
|
+
self.password = params[:password]
|
37
|
+
end
|
36
38
|
end
|
37
39
|
|
38
40
|
def save
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 4
|
9
|
+
version: 0.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Oleg Khabarov
|
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
108
|
requirements:
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
hash:
|
111
|
+
hash: 4289054067406348260
|
112
112
|
segments:
|
113
113
|
- 0
|
114
114
|
version: "0"
|