rubeepass 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rpass +22 -18
- data/lib/rubeepass.rb +6 -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: 8e78e132f01833276117752cd5576df91c211ba5
|
4
|
+
data.tar.gz: e06c07fcc900e8953a67b53b5d9801b7fa480aac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14947d86686ef76cf1adccea3a7aee2e9b2b232fa7f056a65641f66d0e816ec0f080cbf84e5e11547eca0641980db40e386ff3aeef8964878c51ba2ce14028f2
|
7
|
+
data.tar.gz: 84f24d7ae97bc99447d44b9e185b81d21e1d8826b83c8be82e0022406a0f970f964a58f2ee43eeb0fae9e82f0df4d7f34fef8a742fc8a65881c4858d62ea0f9d
|
data/bin/rpass
CHANGED
@@ -253,24 +253,28 @@ end
|
|
253
253
|
|
254
254
|
djinni = Djinni.new
|
255
255
|
djinni.load_wishes("#{File.dirname(__FILE__)}/../lib/builtins")
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
256
|
+
begin
|
257
|
+
if (options["command"])
|
258
|
+
djinni.grant_wish(
|
259
|
+
"#{options["command"].chomp}\n",
|
260
|
+
{
|
261
|
+
"keepass" => keepass,
|
262
|
+
"cwd" => keepass.db,
|
263
|
+
"clipboard_timeout" => options["timeout"]
|
264
|
+
}
|
265
|
+
)
|
266
|
+
else
|
267
|
+
djinni.prompt(
|
268
|
+
{
|
269
|
+
"keepass" => keepass,
|
270
|
+
"cwd" => keepass.db,
|
271
|
+
"clipboard_timeout" => options["timeout"]
|
272
|
+
},
|
273
|
+
"rpass:/> ".white
|
274
|
+
)
|
275
|
+
end
|
276
|
+
# rescue SystemExit => e
|
277
|
+
ensure
|
265
278
|
keepass.wait_to_exit
|
266
|
-
else
|
267
|
-
djinni.prompt(
|
268
|
-
{
|
269
|
-
"keepass" => keepass,
|
270
|
-
"cwd" => keepass.db,
|
271
|
-
"clipboard_timeout" => options["timeout"]
|
272
|
-
},
|
273
|
-
"rpass:/> ".white
|
274
|
-
)
|
275
279
|
end
|
276
280
|
exit RPassExit::GOOD
|
data/lib/rubeepass.rb
CHANGED
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: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -161,9 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.4.
|
164
|
+
rubygems_version: 2.4.5.1
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: Ruby KeePass 2.x implementation
|
168
168
|
test_files: []
|
169
|
-
has_rdoc:
|