rake_gpg 0.19.0.pre.4 → 0.19.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +18 -16
- data/lib/rake_gpg/home.rb +2 -2
- data/lib/rake_gpg/tasks/encryption/decrypt.rb +7 -7
- data/lib/rake_gpg/tasks/encryption/encrypt.rb +7 -7
- data/lib/rake_gpg/tasks/keys/generate.rb +7 -7
- data/lib/rake_gpg/tasks/keys/import.rb +1 -1
- data/lib/rake_gpg/version.rb +1 -1
- data/lib/rake_gpg.rb +8 -8
- data/rake_gpg.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1229af2f6bf42a1502938fdc63acdeb00d6a5aad53f2680b534f0f87f13e78dc
|
4
|
+
data.tar.gz: 3a5a5c090562180aaf43b500d732f501269baad282a12f40162daae2a9249489
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee5f6fc9b672b6bf48c46d6fc9ab313c8ac7fa7bedde6e954868bd96fb9c2239d41edcf2d7b9701b6e608942d1c8856683b697edc96d7b95b0551a30bee257cb
|
7
|
+
data.tar.gz: 99e3dc822de2b8d84e12acc378e179d2cb2ea5a4cada434a9b97c26693d25cb278b55cccdd780b897868570efb4a8da479930c6bc228f747aa8dac69c1ff2a7b
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_gpg (0.19.0.pre.
|
4
|
+
rake_gpg (0.19.0.pre.5)
|
5
5
|
rake_factory (~> 0.23)
|
6
|
-
ruby_gpg2 (
|
6
|
+
ruby_gpg2 (= 0.11.0.pre.5)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (7.1.
|
11
|
+
activesupport (7.1.2)
|
12
12
|
base64
|
13
13
|
bigdecimal
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -21,14 +21,15 @@ GEM
|
|
21
21
|
addressable (2.8.5)
|
22
22
|
public_suffix (>= 2.0.2, < 6.0)
|
23
23
|
ast (2.4.2)
|
24
|
-
base64 (0.
|
24
|
+
base64 (0.2.0)
|
25
25
|
bigdecimal (3.1.4)
|
26
|
+
childprocess (5.0.0)
|
26
27
|
colored2 (3.1.2)
|
27
28
|
concurrent-ruby (1.2.2)
|
28
29
|
connection_pool (2.4.1)
|
29
30
|
diff-lcs (1.5.0)
|
30
31
|
docile (1.4.0)
|
31
|
-
drb (2.
|
32
|
+
drb (2.2.0)
|
32
33
|
ruby2_keywords
|
33
34
|
excon (0.104.0)
|
34
35
|
fakefs (2.5.0)
|
@@ -46,13 +47,14 @@ GEM
|
|
46
47
|
i18n (1.14.1)
|
47
48
|
concurrent-ruby (~> 1.0)
|
48
49
|
immutable-struct (2.4.1)
|
49
|
-
json (2.
|
50
|
+
json (2.7.1)
|
50
51
|
language_server-protocol (3.17.0.3)
|
51
|
-
lino (3.
|
52
|
+
lino (3.2.0.pre.10)
|
53
|
+
childprocess (~> 5.0.0)
|
52
54
|
hamster (~> 3.0)
|
53
55
|
open4 (~> 1.3)
|
54
56
|
minitest (5.20.0)
|
55
|
-
mutex_m (0.
|
57
|
+
mutex_m (0.2.0)
|
56
58
|
octokit (8.0.0)
|
57
59
|
faraday (>= 1, < 3)
|
58
60
|
sawyer (~> 0.9)
|
@@ -77,10 +79,10 @@ GEM
|
|
77
79
|
colored2 (~> 3.1)
|
78
80
|
git (~> 1.13, >= 1.13.2)
|
79
81
|
rake_factory (= 0.32.0.pre.2)
|
80
|
-
rake_git_crypt (0.1.0.pre.
|
82
|
+
rake_git_crypt (0.1.0.pre.29)
|
81
83
|
colored2 (~> 3.1)
|
82
84
|
rake_factory (= 0.32.0.pre.2)
|
83
|
-
ruby_git_crypt (= 0.1.0.pre.
|
85
|
+
ruby_git_crypt (= 0.1.0.pre.4)
|
84
86
|
ruby_gpg2 (~> 0.6)
|
85
87
|
rake_github (0.13.0)
|
86
88
|
colored2 (~> 3.1)
|
@@ -92,7 +94,7 @@ GEM
|
|
92
94
|
rake_factory (~> 0.23)
|
93
95
|
sshkey (~> 2.0)
|
94
96
|
rchardet (1.8.0)
|
95
|
-
regexp_parser (2.8.
|
97
|
+
regexp_parser (2.8.3)
|
96
98
|
rexml (3.2.6)
|
97
99
|
rspec (3.12.0)
|
98
100
|
rspec-core (~> 3.12.0)
|
@@ -107,7 +109,7 @@ GEM
|
|
107
109
|
diff-lcs (>= 1.2.0, < 2.0)
|
108
110
|
rspec-support (~> 3.12.0)
|
109
111
|
rspec-support (3.12.1)
|
110
|
-
rubocop (1.
|
112
|
+
rubocop (1.59.0)
|
111
113
|
json (~> 2.3)
|
112
114
|
language_server-protocol (>= 3.17.0)
|
113
115
|
parallel (~> 1.10)
|
@@ -115,7 +117,7 @@ GEM
|
|
115
117
|
rainbow (>= 2.2.2, < 4.0)
|
116
118
|
regexp_parser (>= 1.8, < 3.0)
|
117
119
|
rexml (>= 3.2.5, < 4.0)
|
118
|
-
rubocop-ast (>= 1.
|
120
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
119
121
|
ruby-progressbar (~> 1.7)
|
120
122
|
unicode-display_width (>= 2.4.0, < 3.0)
|
121
123
|
rubocop-ast (1.30.0)
|
@@ -132,11 +134,11 @@ GEM
|
|
132
134
|
rubocop-factory_bot (~> 2.22)
|
133
135
|
ruby-progressbar (1.13.0)
|
134
136
|
ruby2_keywords (0.0.5)
|
135
|
-
ruby_git_crypt (0.1.0.pre.
|
137
|
+
ruby_git_crypt (0.1.0.pre.4)
|
136
138
|
immutable-struct (~> 2.4)
|
137
139
|
lino (~> 3.0)
|
138
|
-
ruby_gpg2 (0.
|
139
|
-
lino (
|
140
|
+
ruby_gpg2 (0.11.0.pre.5)
|
141
|
+
lino (= 3.2.0.pre.10)
|
140
142
|
sawyer (0.9.2)
|
141
143
|
addressable (>= 2.3.5)
|
142
144
|
faraday (>= 0.17.3, < 3)
|
data/lib/rake_gpg/home.rb
CHANGED
@@ -7,9 +7,9 @@ module RakeGPG
|
|
7
7
|
@home_directory = home_directory
|
8
8
|
end
|
9
9
|
|
10
|
-
def with_resolved_directory(&
|
10
|
+
def with_resolved_directory(&)
|
11
11
|
if @home_directory == :temporary
|
12
|
-
Dir.mktmpdir('home', @work_directory, &
|
12
|
+
Dir.mktmpdir('home', @work_directory, &)
|
13
13
|
else
|
14
14
|
FileUtils.mkdir_p(@home_directory)
|
15
15
|
yield @home_directory
|
@@ -45,8 +45,8 @@ module RakeGPG
|
|
45
45
|
def import_key(home_directory)
|
46
46
|
RubyGPG2.import(
|
47
47
|
key_file_paths: [key_file_path],
|
48
|
-
work_directory
|
49
|
-
home_directory:
|
48
|
+
work_directory:,
|
49
|
+
home_directory:
|
50
50
|
)
|
51
51
|
end
|
52
52
|
|
@@ -60,11 +60,11 @@ module RakeGPG
|
|
60
60
|
|
61
61
|
def decrypt(home_directory)
|
62
62
|
RubyGPG2.decrypt(
|
63
|
-
input_file_path
|
64
|
-
output_file_path
|
65
|
-
home_directory
|
66
|
-
trust_mode
|
67
|
-
passphrase
|
63
|
+
input_file_path:,
|
64
|
+
output_file_path:,
|
65
|
+
home_directory:,
|
66
|
+
trust_mode:,
|
67
|
+
passphrase:,
|
68
68
|
pinentry_mode: passphrase ? :loopback : nil,
|
69
69
|
without_passphrase: !passphrase
|
70
70
|
)
|
@@ -54,8 +54,8 @@ module RakeGPG
|
|
54
54
|
def import_key(home_directory)
|
55
55
|
RubyGPG2.import(
|
56
56
|
key_file_paths: [key_file_path],
|
57
|
-
work_directory
|
58
|
-
home_directory
|
57
|
+
work_directory:,
|
58
|
+
home_directory:,
|
59
59
|
with_status: true
|
60
60
|
)
|
61
61
|
end
|
@@ -68,11 +68,11 @@ module RakeGPG
|
|
68
68
|
def encrypt(home_directory, key_fingerprint)
|
69
69
|
RubyGPG2.encrypt(
|
70
70
|
recipient: key_fingerprint,
|
71
|
-
input_file_path
|
72
|
-
output_file_path
|
73
|
-
home_directory
|
74
|
-
armor
|
75
|
-
trust_mode:
|
71
|
+
input_file_path:,
|
72
|
+
output_file_path:,
|
73
|
+
home_directory:,
|
74
|
+
armor:,
|
75
|
+
trust_mode:
|
76
76
|
)
|
77
77
|
end
|
78
78
|
|
@@ -73,8 +73,8 @@ module RakeGPG
|
|
73
73
|
.in_temp_file(work_directory) do |f|
|
74
74
|
RubyGPG2.generate_key(
|
75
75
|
parameter_file_path: f.path,
|
76
|
-
home_directory
|
77
|
-
work_directory
|
76
|
+
home_directory:,
|
77
|
+
work_directory:,
|
78
78
|
without_passphrase: passphrase.nil?,
|
79
79
|
with_status: true
|
80
80
|
)
|
@@ -95,8 +95,8 @@ module RakeGPG
|
|
95
95
|
RubyGPG2.export(
|
96
96
|
names: [key_fingerprint],
|
97
97
|
output_file_path: "#{output_directory}/#{name_prefix}.public",
|
98
|
-
armor
|
99
|
-
home_directory:
|
98
|
+
armor:,
|
99
|
+
home_directory:
|
100
100
|
)
|
101
101
|
end
|
102
102
|
|
@@ -104,10 +104,10 @@ module RakeGPG
|
|
104
104
|
RubyGPG2.export_secret_keys(
|
105
105
|
names: [key_fingerprint],
|
106
106
|
output_file_path: "#{output_directory}/#{name_prefix}.private",
|
107
|
-
armor
|
108
|
-
passphrase
|
107
|
+
armor:,
|
108
|
+
passphrase:,
|
109
109
|
pinentry_mode: passphrase.nil? ? nil : :loopback,
|
110
|
-
home_directory:
|
110
|
+
home_directory:
|
111
111
|
)
|
112
112
|
end
|
113
113
|
|
data/lib/rake_gpg/version.rb
CHANGED
data/lib/rake_gpg.rb
CHANGED
@@ -4,19 +4,19 @@ require 'rake_gpg/tasks'
|
|
4
4
|
require 'rake_gpg/version'
|
5
5
|
|
6
6
|
module RakeGPG
|
7
|
-
def self.define_encrypt_task(opts = {}, &
|
8
|
-
RakeGPG::Tasks::Encryption::Encrypt.define(opts, &
|
7
|
+
def self.define_encrypt_task(opts = {}, &)
|
8
|
+
RakeGPG::Tasks::Encryption::Encrypt.define(opts, &)
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.define_decrypt_task(opts = {}, &
|
12
|
-
RakeGPG::Tasks::Encryption::Decrypt.define(opts, &
|
11
|
+
def self.define_decrypt_task(opts = {}, &)
|
12
|
+
RakeGPG::Tasks::Encryption::Decrypt.define(opts, &)
|
13
13
|
end
|
14
14
|
|
15
|
-
def self.define_generate_key_task(opts = {}, &
|
16
|
-
RakeGPG::Tasks::Keys::Generate.define(opts, &
|
15
|
+
def self.define_generate_key_task(opts = {}, &)
|
16
|
+
RakeGPG::Tasks::Keys::Generate.define(opts, &)
|
17
17
|
end
|
18
18
|
|
19
|
-
def self.define_import_key_task(opts = {}, &
|
20
|
-
RakeGPG::Tasks::Keys::Import.define(opts, &
|
19
|
+
def self.define_import_key_task(opts = {}, &)
|
20
|
+
RakeGPG::Tasks::Keys::Import.define(opts, &)
|
21
21
|
end
|
22
22
|
end
|
data/rake_gpg.gemspec
CHANGED
@@ -35,10 +35,10 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
36
|
spec.require_paths = ['lib']
|
37
37
|
|
38
|
-
spec.required_ruby_version = '>=
|
38
|
+
spec.required_ruby_version = '>= 3.1'
|
39
39
|
|
40
40
|
spec.add_dependency 'rake_factory', '~> 0.23'
|
41
|
-
spec.add_dependency 'ruby_gpg2', '
|
41
|
+
spec.add_dependency 'ruby_gpg2', '0.11.0.pre.5'
|
42
42
|
|
43
43
|
spec.add_development_dependency 'activesupport'
|
44
44
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_gpg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.0.pre.
|
4
|
+
version: 0.19.0.pre.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake_factory
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: ruby_gpg2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.11.0.pre.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.11.0.pre.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -302,14 +302,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
302
302
|
requirements:
|
303
303
|
- - ">="
|
304
304
|
- !ruby/object:Gem::Version
|
305
|
-
version: '
|
305
|
+
version: '3.1'
|
306
306
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
307
307
|
requirements:
|
308
308
|
- - ">"
|
309
309
|
- !ruby/object:Gem::Version
|
310
310
|
version: 1.3.1
|
311
311
|
requirements: []
|
312
|
-
rubygems_version: 3.
|
312
|
+
rubygems_version: 3.3.7
|
313
313
|
signing_key:
|
314
314
|
specification_version: 4
|
315
315
|
summary: Rake tasks for managing GPG activities.
|