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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2553a7a2e55ca432b8237846c9ca874415ed7f11
4
- data.tar.gz: 49bb878f3ef6444b3138c498246280d1ad090e12
3
+ metadata.gz: 0afa2b0c4dc43e457a4bb00e4ac66769d4efa1bc
4
+ data.tar.gz: 3cf4b0444295371d822a70cb6f9da42c6232ee58
5
5
  SHA512:
6
- metadata.gz: 44735ee5e8235b212e37d75b9e167743bcf375af8dcb2bd822b895aef1b266b37e2e565c090278e83f5f0ebd6d920aa95c74e71314d7dd85a2da7cd8cd49db28
7
- data.tar.gz: 1b20540be432cec70e2dae8bc940976570516a453790a8453d8f8f5dcb13dbf53c071cc867ade7e94be9f8412c9d9054a9ea0964d894800cd0c692681dab8499
6
+ metadata.gz: 466ada399ee11f8b68e22f826e10133961e52eccc657e233f36ea28e54f44f4230e207a5b4014fe7cc4d4d67656fb3c90847e0d5830258f20626c4d0c337b063
7
+ data.tar.gz: 5b45a426241981275bc02d2f79197dcb0753a90d8a5034159c03116550dd4f8d65c4523d99083d7654e12ce03d2f8c1ad3781a5873f3d989d9f2344de4fc5f33
@@ -148,7 +148,8 @@ Notice that only @title@ and @password@ are required.
148
148
 
149
149
  h2. Changelog
150
150
 
151
- * *Release 0.5.0* This is mainly a release focused on improving interaction. Small changes to the command syntax and improved exit conditions. In details:
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
- # this is to support command aliases: add and new
28
- # maybe not the the best of places where to define a function
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
@@ -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
- printf "Select entry by ID (0..#{found.size-1}); -1 or empty string to exit: "
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
@@ -1,3 +1,3 @@
1
1
  module Pwss
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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-08-17 00:00:00.000000000 Z
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: