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.

@@ -2,7 +2,7 @@ module Rgpg
2
2
  module GemInfo
3
3
  MAJOR_VERSION = 0
4
4
  MINOR_VERSION = 2
5
- PATCH_VERSION = 1
5
+ PATCH_VERSION = 2
6
6
 
7
7
  def self.version_string
8
8
  [MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION].join('.')
@@ -63,8 +63,14 @@ module Rgpg
63
63
  '--no-default-keyring'
64
64
  ] + args
65
65
  command_line = fragments.join(' ')
66
- puts command_line
67
- result = system(command_line)
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.1
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-30 00:00:00.000000000 Z
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