rubeepass 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rpass +12 -9
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeb781609000608b982eaec2ccc2353af2754d1e
|
4
|
+
data.tar.gz: c5de5ad1fdef6f674176dae9b7c76b5a2c0d201d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 409b759fa97cfbaa53c5eeebcfd58e95ed8b420e2acfd927ac3b93d3718f129793f36341b75aedafdbe239244b93297fe46f2d0dc5f021f67e701c6f9dc92e8a
|
7
|
+
data.tar.gz: 62a627ad44071604a658f0af86e822bfcb5ee1320a075b9a06fbb9207697fc5cfb5f53ab9314fc0dee5e3ad36cbc4b3080377878f9f38cc3f5452dd441b7ad26
|
data/bin/rpass
CHANGED
@@ -5,6 +5,7 @@ require "hilighter"
|
|
5
5
|
require "io/console"
|
6
6
|
require "json_config"
|
7
7
|
require "optparse"
|
8
|
+
require "pathname"
|
8
9
|
require "rubeepass"
|
9
10
|
|
10
11
|
class RubeePassExit
|
@@ -25,15 +26,17 @@ class RubeePassConfig < JSONConfig
|
|
25
26
|
end
|
26
27
|
|
27
28
|
def last_kdbx(kdbx = nil)
|
28
|
-
set("last_kdbx", kdbx.
|
29
|
-
kdbx = get("last_kdbx")
|
29
|
+
set("last_kdbx", Pathname.new(kdbx).expand_path) if (kdbx)
|
30
|
+
kdbx = get("last_kdbx").to_s
|
30
31
|
return nil if (kdbx.nil? || kdbx.empty?)
|
31
32
|
return kdbx
|
32
33
|
end
|
33
34
|
|
34
35
|
def last_keyfile(keyfile = nil)
|
35
|
-
|
36
|
-
|
36
|
+
if (keyfile)
|
37
|
+
set("last_keyfile", Pathname.new(keyfile).expand_path)
|
38
|
+
end
|
39
|
+
keyfile = get("last_keyfile").to_s
|
37
40
|
return nil if (keyfile.nil? || keyfile.empty?)
|
38
41
|
return keyfile
|
39
42
|
end
|
@@ -210,12 +213,12 @@ end
|
|
210
213
|
|
211
214
|
options = parse(ARGV)
|
212
215
|
|
213
|
-
kdbx = options["kdbx"]
|
214
|
-
password = options["password"] if (options["password"])
|
215
|
-
password = get_password if (options["password"].nil?)
|
216
|
-
keyfile = options["keyfile"]
|
217
|
-
|
218
216
|
begin
|
217
|
+
kdbx = options["kdbx"]
|
218
|
+
password = options["password"] if (options["password"])
|
219
|
+
password = get_password if (options["password"].nil?)
|
220
|
+
keyfile = options["keyfile"]
|
221
|
+
|
219
222
|
keepass = RubeePass.new(
|
220
223
|
kdbx,
|
221
224
|
password,
|
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: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '5.
|
19
|
+
version: '5.9'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 5.
|
22
|
+
version: 5.9.1
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '5.
|
29
|
+
version: '5.9'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.
|
32
|
+
version: 5.9.1
|
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: '
|
39
|
+
version: '11.3'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 11.3.0
|
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: '
|
49
|
+
version: '11.3'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
52
|
+
version: 11.3.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: djinni
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
version: '0.1'
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.1.
|
82
|
+
version: 0.1.7
|
83
83
|
type: :runtime
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -89,7 +89,7 @@ dependencies:
|
|
89
89
|
version: '0.1'
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.1.
|
92
|
+
version: 0.1.7
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: json_config
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
version: '0.1'
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0.1.
|
102
|
+
version: 0.1.2
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '0.1'
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.1.
|
112
|
+
version: 0.1.2
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: os
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,7 +139,7 @@ dependencies:
|
|
139
139
|
version: '0.1'
|
140
140
|
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version: 0.1.
|
142
|
+
version: 0.1.2
|
143
143
|
type: :runtime
|
144
144
|
prerelease: false
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -149,7 +149,7 @@ dependencies:
|
|
149
149
|
version: '0.1'
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.1.
|
152
|
+
version: 0.1.2
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: scoobydoo
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
221
|
version: '0'
|
222
222
|
requirements: []
|
223
223
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.5.1
|
224
|
+
rubygems_version: 2.4.5.1
|
225
225
|
signing_key:
|
226
226
|
specification_version: 4
|
227
227
|
summary: Ruby KeePass 2.x implementation
|