letmein 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/letmein.gemspec +1 -1
  3. data/lib/letmein.rb +5 -3
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
data/letmein.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{letmein}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov"]
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
- self.identifier = params[:identifier] || params[LetMeIn.configuration.identifier.to_sym]
35
- self.password = params[:password]
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
- - 3
9
- version: 0.0.3
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: -4232238799848481364
111
+ hash: 4289054067406348260
112
112
  segments:
113
113
  - 0
114
114
  version: "0"