rubeepass 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 198fd42f6442a724c48c2e9fed48dde20d381ce6
4
- data.tar.gz: 632b3d39273d942925b56139da529b35a08ec2f4
3
+ metadata.gz: 91052eff9e9814c1cc27a445831800d11d006398
4
+ data.tar.gz: 33b62541ea35b3d3c89f2dcf8aa313e7e8b30bf2
5
5
  SHA512:
6
- metadata.gz: 1f1dc4135f2c8d9de6cc409ea99c44f0b2c4d78a2001c63ca2047639c7613bb9e458939604d1e3af6b2bab151b4a2fba329f799dde7c3a344ae1aa1f408791eb
7
- data.tar.gz: 510391ec34652bfea7b32895d3d3b82c8727d9077c12cac06bd09875fe257e505fcb216870290ded1f3d083210cbc9f0a77e3045ed59c0bc374030016b11c08d
6
+ metadata.gz: 39380c8eb6144688314dd38263c55c387d2b3e58eb7e283bf6a5130ac04a05fff4345a9673439640868eb00626f92502d2c370944039643886ee15a013ec92f6
7
+ data.tar.gz: 54d042c8a5438daba7a1eafd38d19146e18ee1986163543d1499142641992625fcbb1f8f9afabd71516307373d8fb55d400572b4a9046f8dcc6fc6734b798a1c
@@ -100,6 +100,7 @@ class RubeePass::Entry
100
100
 
101
101
  def self.handle_protected(keepass, base64)
102
102
  data = nil
103
+ return nil if (base64.nil?)
103
104
  begin
104
105
  data = base64.unpack("m*")[0].fix
105
106
  rescue ArgumentError => e
@@ -170,6 +171,7 @@ class RubeePass::Entry
170
171
 
171
172
  def password
172
173
  return nil if (@keepass.nil?)
174
+ return "" if (@password.nil?)
173
175
  begin
174
176
  return @keepass.protected_decryptor.get_password(
175
177
  @password
data/lib/rubeepass.rb CHANGED
@@ -436,7 +436,6 @@ class RubeePass
436
436
  @thread.join
437
437
  rescue Interrupt => e
438
438
  puts
439
- return
440
439
  end
441
440
  end
442
441
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubeepass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest