tome 0.1.1.pre → 1.0.0

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 (4) hide show
  1. data/README.md +9 -11
  2. data/lib/tome/tome.rb +13 -10
  3. data/lib/tome/version.rb +1 -1
  4. metadata +30 -7
data/README.md CHANGED
@@ -9,11 +9,15 @@ You can keep track of multiple complex passwords without having to remember any
9
9
  Now that I've scared off all but the bravest, feel free to look [under the hood](#under-the-hood) or
10
10
  at the security bits in [crypt.rb](https://github.com/schmich/tome/blob/master/lib/tome/crypt.rb).
11
11
 
12
+ [![Build Status](https://secure.travis-ci.org/schmich/tome.png)](http://travis-ci.org/schmich/tome)
13
+ [![Dependency Status](https://gemnasium.com/schmich/tome.png)](http://gemnasium.com/schmich/tome)
14
+ [![Code Quality](https://codeclimate.com/badge.png)](https://codeclimate.com/github/schmich/tome)
15
+
12
16
  ## Installation
13
17
 
14
- * Requires [Ruby 1.9.3](http://www.ruby-lang.org/en/downloads/) or newer.
15
- * `gem install tome --pre`
16
- * `tome` is now available on the command-line.
18
+ * Install [Ruby 1.9.3](http://www.ruby-lang.org/en/downloads/) or newer.
19
+ * `gem install tome`
20
+ * `tome` should now be available on the command-line. Run `tome help` to get started.
17
21
 
18
22
  ## Usage
19
23
 
@@ -34,6 +38,7 @@ Recalling a password is just as easy:
34
38
 
35
39
  > tome get linkedin.com
36
40
  Master password:
41
+ Password for linkedin.com:
37
42
  p4ssw0rd
38
43
 
39
44
  In fact, it's even simpler than that. `tome get` does substring pattern matching to recall a password,
@@ -41,6 +46,7 @@ so this works, too:
41
46
 
42
47
  > tome get linked
43
48
  Master password:
49
+ Password for linkedin.com:
44
50
  p4ssw0rd
45
51
 
46
52
  You can also generate and copy complex passwords without having to remember anything:
@@ -109,11 +115,3 @@ and used for encryption.
109
115
  from [SecureRandom#uuid](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/securerandom/rdoc/SecureRandom.html#method-c-uuid).
110
116
  * Randomly-generated [IV](http://en.wikipedia.org/wiki/Initialization_vector) from [OpenSSL::Cipher#random_iv](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/openssl/rdoc/OpenSSL/Cipher.html#method-i-random_iv).
111
117
  * 100,000 [key stretch](http://en.wikipedia.org/wiki/Key_stretching) iterations.
112
-
113
- ## Contributing
114
-
115
- *TODO*
116
-
117
- ## License
118
-
119
- *TODO*
data/lib/tome/tome.rb CHANGED
@@ -271,10 +271,12 @@ module Tome
271
271
  tome = Tome.load_tome(@tome_filename)
272
272
  store = load_store(tome)
273
273
 
274
- result = yield store
275
-
276
- store = nil
277
- GC.start
274
+ begin
275
+ result = yield store
276
+ ensure
277
+ store = nil
278
+ GC.start
279
+ end
278
280
 
279
281
  return result
280
282
  end
@@ -283,12 +285,13 @@ module Tome
283
285
  tome = Tome.load_tome(@tome_filename)
284
286
  store = load_store(tome)
285
287
 
286
- result = yield store
287
-
288
- Tome.save_tome(@tome_filename, tome, store, @master_password)
289
- store = nil
290
-
291
- GC.start
288
+ begin
289
+ result = yield store
290
+ Tome.save_tome(@tome_filename, tome, store, @master_password)
291
+ ensure
292
+ store = nil
293
+ GC.start
294
+ end
292
295
 
293
296
  return result
294
297
  end
data/lib/tome/version.rb CHANGED
@@ -1 +1 @@
1
- $version = '0.1.1.pre'
1
+ $version = '1.0.0'
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.pre
5
- prerelease: 6
4
+ version: 1.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris Schmich
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000 Z
12
+ date: 2012-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: passgen
@@ -59,8 +59,24 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: 0.9.2.2
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 0.9.2.2
62
78
  description: Lightweight password manager with a humane command-line interface. Manage
63
- your passwords with a single master password.
79
+ your passwords with a single master password and strong encryption.
64
80
  email: schmch@gmail.com
65
81
  executables:
66
82
  - tome
@@ -78,7 +94,13 @@ files:
78
94
  - README.md
79
95
  homepage: https://github.com/schmich/tome
80
96
  licenses: []
81
- post_install_message:
97
+ post_install_message: ! '-------------------------------
98
+
99
+ Run ''tome help'' to get started.
100
+
101
+ -------------------------------
102
+
103
+ '
82
104
  rdoc_options: []
83
105
  require_paths:
84
106
  - lib
@@ -91,9 +113,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
113
  required_rubygems_version: !ruby/object:Gem::Requirement
92
114
  none: false
93
115
  requirements:
94
- - - ! '>'
116
+ - - ! '>='
95
117
  - !ruby/object:Gem::Version
96
- version: 1.3.1
118
+ version: '0'
97
119
  requirements: []
98
120
  rubyforge_project:
99
121
  rubygems_version: 1.8.24
@@ -101,3 +123,4 @@ signing_key:
101
123
  specification_version: 3
102
124
  summary: Lightweight command-line password manager.
103
125
  test_files: []
126
+ has_rdoc: