pwss 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.textile +2 -1
- data/bin/pwss +4 -2
- data/lib/pwss.rb +1 -2
- data/lib/pwss/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0afa2b0c4dc43e457a4bb00e4ac66769d4efa1bc
|
4
|
+
data.tar.gz: 3cf4b0444295371d822a70cb6f9da42c6232ee58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 466ada399ee11f8b68e22f826e10133961e52eccc657e233f36ea28e54f44f4230e207a5b4014fe7cc4d4d67656fb3c90847e0d5830258f20626c4d0c337b063
|
7
|
+
data.tar.gz: 5b45a426241981275bc02d2f79197dcb0753a90d8a5034159c03116550dd4f8d65c4523d99083d7654e12ce03d2f8c1ad3781a5873f3d989d9f2344de4fc5f33
|
data/README.textile
CHANGED
@@ -148,7 +148,8 @@ Notice that only @title@ and @password@ are required.
|
|
148
148
|
|
149
149
|
h2. Changelog
|
150
150
|
|
151
|
-
* *Release 0.5.
|
151
|
+
* *Release 0.5.1* fixes a bug of the "add" command, which threw an error if the title was not supplied on the command line. When adding an entry, now it is possible to specify the title on the command line or just wait for the title prompt
|
152
|
+
* *Release 0.5.0* This is a release mainly focused on improving interaction. It includes small changes to the command syntax and improved exit conditions. In details:
|
152
153
|
** *add* now accepts the title in the command line. For instance @pwss add New Entry@
|
153
154
|
** *new* is now an alias for the *add* command
|
154
155
|
** *update* now requires to specify the field: use @-p@, @--password@, or @--field password@, if you want to update the password
|
data/bin/pwss
CHANGED
@@ -24,8 +24,8 @@ def file2string filename
|
|
24
24
|
[string, password]
|
25
25
|
end
|
26
26
|
|
27
|
-
#
|
28
|
-
#
|
27
|
+
# add and new are command aliases. Unfortunately slop does not seem to support aliases.
|
28
|
+
# hence this function, which is called by both commands.
|
29
29
|
def add opts, args
|
30
30
|
filename = opts.to_hash[:filename] || DEFAULT_FILENAME
|
31
31
|
waiting = opts.to_hash[:wait] || DEFAULT_SECS
|
@@ -40,6 +40,8 @@ def add opts, args
|
|
40
40
|
# ask for a new entry
|
41
41
|
if default_title != "" then
|
42
42
|
overrides = {"title" => ["Readline.readline('title (leave empty for \"#{default_title}\"): ')", "'#{default_title}'"]}
|
43
|
+
else
|
44
|
+
overrides = Hash.new
|
43
45
|
end
|
44
46
|
pe = eval("Pwss::" + type).new
|
45
47
|
pe.ask length, alnum, overrides
|
data/lib/pwss.rb
CHANGED
@@ -98,8 +98,7 @@ module Pwss
|
|
98
98
|
response = Readline.readline
|
99
99
|
id = response == "" ? -1 : response.to_i
|
100
100
|
while (id < -1 or id >= found.size)
|
101
|
-
|
102
|
-
response = Readline.readline
|
101
|
+
response = Readline.readline "Select entry by ID (0..#{found.size-1}); -1 or empty string to exit: "
|
103
102
|
id = response == "" ? -1 : response.to_i
|
104
103
|
end
|
105
104
|
if id == -1 then
|
data/lib/pwss/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adolfo Villafiorita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -129,9 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.4.5
|
132
|
+
rubygems_version: 2.4.5.1
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: A password manager in the spirit of pwss
|
136
136
|
test_files: []
|
137
|
-
has_rdoc:
|