rgpg 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rgpg might be problematic. Click here for more details.
- data/lib/rgpg/gem_info.rb +1 -1
- data/lib/rgpg/gpg_helper.rb +8 -2
- metadata +2 -2
data/lib/rgpg/gem_info.rb
CHANGED
data/lib/rgpg/gpg_helper.rb
CHANGED
@@ -63,8 +63,14 @@ module Rgpg
|
|
63
63
|
'--no-default-keyring'
|
64
64
|
] + args
|
65
65
|
command_line = fragments.join(' ')
|
66
|
-
|
67
|
-
|
66
|
+
|
67
|
+
output_file = Tempfile.new('gpg-output')
|
68
|
+
begin
|
69
|
+
output_file.close
|
70
|
+
result = system("#{command_line} > #{output_file.path} 2>&1")
|
71
|
+
ensure
|
72
|
+
output_file.unlink
|
73
|
+
end
|
68
74
|
raise RuntimeError.new('gpg failed') unless result
|
69
75
|
end
|
70
76
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rgpg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Simple Ruby wrapper around "gpg" command for file encryption
|
15
15
|
email: rcook@rcook.org
|