rubeepass 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rpass +7 -4
  3. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91dc1f156ff913d8f9b3d08642075e1be03398de
4
- data.tar.gz: ac5d669625c2116a6e07e703d5d465ec0444d536
3
+ metadata.gz: c5704decfd0c0ad9e6eeb2733f03b440d72b5fd9
4
+ data.tar.gz: 68890f4b945a6de78e415a9a1194ff96f47696db
5
5
  SHA512:
6
- metadata.gz: f3433194f422cf7619575945ed10f4ee5d5b2fa0456e68012ef0c954d3b5634d17d7e22affa7a9d856a05b4e6dded6006fc95dd260231ccfe09c95c1c5486967
7
- data.tar.gz: f53de3359b27337ae1018af5edd0e92c9823be92cb1b416ef20fc2259de31210d4e832b1f3307975b0f8af9873c1a1f6861795ec327271bedc604229f5dd2a6b
6
+ metadata.gz: 44f0dec5f903c4cf263696f7070af5c0b5156c7dadff6d5cccba6657da7c45b38463034c65613acdeb9ce02b8d7d2cf07df93e7e9311d93a2fa4901295ff21d4
7
+ data.tar.gz: ea18e0a1d8ceea258c9a7a49a076bb187eb15e97fc588cceec7314698401fe103affec4af7ab80e90f5d05444c02a1aa3214e0fcdaaabb219fe6346129d05025
data/bin/rpass CHANGED
@@ -33,7 +33,9 @@ class RubeePassConfig < JSONConfig
33
33
  end
34
34
 
35
35
  def last_keyfile(kf = nil)
36
- set("last_keyfile", Pathname.new(kf).expand_path) if (kf)
36
+ file = nil
37
+ file = Pathname.new(kf).expand_path if (kf && !kf.empty?)
38
+ set("last_keyfile", file) if (kf)
37
39
  kf = get("last_keyfile").to_s
38
40
  return nil if (kf.nil? || kf.empty?)
39
41
  return kf
@@ -175,6 +177,7 @@ def parse(args)
175
177
  if (args.length == 1)
176
178
  # Use specified kdbx (and keyfile if specified)
177
179
  options["kdbx"] = args[0]
180
+ options["keyfile"] ||= ""
178
181
  else
179
182
  # Use kdbx from config if stored
180
183
  if (rc.last_kdbx)
@@ -202,9 +205,9 @@ def parse(args)
202
205
  end
203
206
 
204
207
  # Store data in config
205
- rc.last_kdbx(options["kdbx"])
206
- rc.last_keyfile(options["keyfile"])
207
- rc.timeout(options["timeout"])
208
+ options["kdbx"] = rc.last_kdbx(options["kdbx"])
209
+ options["keyfile"] = rc.last_keyfile(options["keyfile"])
210
+ options["timeout"] = rc.timeout(options["timeout"])
208
211
 
209
212
  return options
210
213
  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: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-26 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.10'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 5.10.1
22
+ version: 5.10.3
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,27 +29,27 @@ dependencies:
29
29
  version: '5.10'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 5.10.1
32
+ version: 5.10.3
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '12.0'
39
+ version: '12.2'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 12.0.0
42
+ version: 12.2.1
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '12.0'
49
+ version: '12.2'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 12.0.0
52
+ version: 12.2.1
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: djinni
55
55
  requirement: !ruby/object:Gem::Requirement