ya 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -7,7 +7,7 @@ module Ya
7
7
  end
8
8
 
9
9
  def lookup(login)
10
- return unless login
10
+ return if !login || login == ''
11
11
  load[login.to_sym]
12
12
  end
13
13
 
@@ -102,6 +102,10 @@ class TestYa < Test::Unit::TestCase
102
102
  assert_nil @directory.authenticate(nil, nil)
103
103
  end
104
104
 
105
+ should 'return nil if blank strings are passed for login and password' do
106
+ assert_nil @directory.authenticate('', '')
107
+ end
108
+
105
109
  should 'return false if nil is passed in for password' do
106
110
  assert !@directory.authenticate('somebody', nil)
107
111
  end
data/ya.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ya}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Carsten Nielsen"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Nielsen