rgpg 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6870de9b2e952bec979e9022244381ae8f8d8e7a
4
+ data.tar.gz: b97da7ff4d58d86defdff33b406fadcc85443514
5
+ SHA512:
6
+ metadata.gz: 64a9549fc956e77b8a8c1de83145f467d6a341e54696da168d0790d2734ead8f5c569414d4c8e3063d6840b2b28db57075abe76327a586be508f995bda878d7e
7
+ data.tar.gz: 91400c881bbd60156cea6fb1ff1a3e958b355d3c0df9c6a21462cd5644ee29e4dd3ff1fc59518e16d424f6858b84103a86dcc7fe649f61ea9b06de807f118261
@@ -1,7 +1,7 @@
1
1
  module Rgpg
2
2
  module GemInfo
3
3
  MAJOR_VERSION = 0
4
- MINOR_VERSION = 3
4
+ MINOR_VERSION = 4
5
5
  PATCH_VERSION = 0
6
6
 
7
7
  def self.version_string
@@ -34,6 +34,7 @@ module Rgpg
34
34
  '--recipient', recipient,
35
35
  '--yes',
36
36
  '--trust-model', 'always',
37
+ '--no-tty',
37
38
  input_file_name
38
39
  )
39
40
  end
@@ -41,7 +42,7 @@ module Rgpg
41
42
 
42
43
  def self.decrypt_file(public_key_file_name, private_key_file_name, input_file_name, output_file_name, passphrase=nil)
43
44
  raise ArgumentError.new("Public key file \"#{public_key_file_name}\" does not exist") unless File.exist?(public_key_file_name)
44
- raise ArgumentError.new("Private key file \"#{public_key_file_name}\" does not exist") unless File.exist?(private_key_file_name)
45
+ raise ArgumentError.new("Private key file \"#{private_key_file_name}\" does not exist") unless File.exist?(private_key_file_name)
45
46
  raise ArgumentError.new("Input file \"#{input_file_name}\" does not exist") unless File.exist?(input_file_name)
46
47
 
47
48
  recipient = get_recipient(private_key_file_name)
@@ -52,6 +53,7 @@ module Rgpg
52
53
  '--decrypt',
53
54
  '--yes',
54
55
  '--trust-model', 'always',
56
+ '--no-tty',
55
57
  input_file_name
56
58
  args.unshift '--passphrase', passphrase unless passphrase.nil?
57
59
  run_gpg_capture(*args)
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgpg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
5
- prerelease:
4
+ version: 0.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Richard Cook
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-09 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Simple Ruby wrapper around "gpg" command for file encryption
15
14
  email: rcook@rcook.org
@@ -19,39 +18,32 @@ extensions: []
19
18
  extra_rdoc_files: []
20
19
  files:
21
20
  - LICENSE
21
+ - bin/rgpg
22
22
  - lib/rgpg.rb
23
23
  - lib/rgpg/gem_info.rb
24
24
  - lib/rgpg/gpg_helper.rb
25
- - bin/rgpg
26
25
  homepage: https://github.com/rcook/rgpg/
27
26
  licenses:
28
27
  - MIT
28
+ metadata: {}
29
29
  post_install_message:
30
30
  rdoc_options: []
31
31
  require_paths:
32
32
  - lib
33
33
  required_ruby_version: !ruby/object:Gem::Requirement
34
- none: false
35
34
  requirements:
36
- - - ! '>='
35
+ - - ">="
37
36
  - !ruby/object:Gem::Version
38
37
  version: '0'
39
- segments:
40
- - 0
41
- hash: 4505311354280034693
42
38
  required_rubygems_version: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - ">="
46
41
  - !ruby/object:Gem::Version
47
42
  version: '0'
48
- segments:
49
- - 0
50
- hash: 4505311354280034693
51
43
  requirements: []
52
44
  rubyforge_project:
53
- rubygems_version: 1.8.24
45
+ rubygems_version: 2.4.5
54
46
  signing_key:
55
- specification_version: 3
47
+ specification_version: 4
56
48
  summary: rgpg
57
49
  test_files: []