key-db 2.0.0 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/keydb.rb +2 -3
  2. metadata +4 -5
data/lib/keydb.rb CHANGED
@@ -60,9 +60,8 @@ class KeyDB
60
60
  end
61
61
 
62
62
  def count
63
- key_count = %x[wc -l #{@filename}].split(" ")
64
- key_count = key_count[0]
65
- return key_count.to_i
63
+ key_count = %x[wc -l #{@filename}].split(" ")[0]
64
+ key_count.to_i
66
65
  end
67
66
 
68
67
  def delete_db
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: key-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-12 00:00:00.000000000 Z
12
+ date: 2012-05-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'A database acessible via keys. Changed some ''puts'' to ''return''.
15
- Added filename variable. Fixed key getter bug. New count method which counts the
16
- number of keys in the database. Removed recall_key deprecation. Calls to that function
17
- will now result in an error. File to require: ''keydb'''
15
+ Added filename variable. Fixed bugs introduced in 2.0.1 and 2.0.2. File to require:
16
+ ''keydb'''
18
17
  email: slmnwise@gmail.com
19
18
  executables: []
20
19
  extensions: []