ruby_gpg2 0.1.0.pre.22 → 0.1.0.pre.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby_gpg2/commands/decrypt.rb +30 -0
- data/lib/ruby_gpg2/commands/encrypt.rb +28 -0
- data/lib/ruby_gpg2/commands/mixins/input_config.rb +15 -0
- data/lib/ruby_gpg2/commands/mixins/recipient_config.rb +16 -0
- data/lib/ruby_gpg2/commands.rb +2 -0
- data/lib/ruby_gpg2/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1ce7b945586b9f5ddff39f43b4b2f3b5a38e372d8151013ee1b1b4473972fb2
|
4
|
+
data.tar.gz: 3e620fa6c8b08bdcd082ba3df7e68205f808d1e0530837d8a9c9ba0a80ac9d63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e85f0039ec41f60aef85a2f6bd8acb94e471c99be34de7a6cc9e856b2252093a5b3ebe97e315751f2ca262c79d160450e8203e4e6e6b3a87c29b6705fd822469
|
7
|
+
data.tar.gz: 9dab915ce94967ccf1e9132b4186c9336a67c98140b4a72d0ac0116abb713531868697e5bacc608fc179eeaa91fa19f4d6bca2119c710a85120f5920deff8436
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'lino'
|
2
|
+
|
3
|
+
require_relative 'base'
|
4
|
+
require_relative 'mixins/global_config'
|
5
|
+
require_relative 'mixins/batch_config'
|
6
|
+
require_relative 'mixins/input_config'
|
7
|
+
require_relative 'mixins/output_config'
|
8
|
+
require_relative 'mixins/passphrase_config'
|
9
|
+
require_relative 'mixins/pinentry_config'
|
10
|
+
require_relative 'mixins/without_passphrase'
|
11
|
+
|
12
|
+
module RubyGPG2
|
13
|
+
module Commands
|
14
|
+
class Decrypt < Base
|
15
|
+
include Mixins::GlobalConfig
|
16
|
+
include Mixins::BatchConfig
|
17
|
+
include Mixins::InputConfig
|
18
|
+
include Mixins::OutputConfig
|
19
|
+
include Mixins::PassphraseConfig
|
20
|
+
include Mixins::PinentryConfig
|
21
|
+
include Mixins::WithoutPassphrase
|
22
|
+
|
23
|
+
def configure_command(builder, opts)
|
24
|
+
builder = super(builder, opts)
|
25
|
+
builder = builder.with_subcommand('--decrypt')
|
26
|
+
builder
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'lino'
|
2
|
+
|
3
|
+
require_relative 'base'
|
4
|
+
require_relative 'mixins/global_config'
|
5
|
+
require_relative 'mixins/batch_config'
|
6
|
+
require_relative 'mixins/armor_config'
|
7
|
+
require_relative 'mixins/input_config'
|
8
|
+
require_relative 'mixins/output_config'
|
9
|
+
require_relative 'mixins/recipient_config'
|
10
|
+
|
11
|
+
module RubyGPG2
|
12
|
+
module Commands
|
13
|
+
class Encrypt < Base
|
14
|
+
include Mixins::GlobalConfig
|
15
|
+
include Mixins::BatchConfig
|
16
|
+
include Mixins::ArmorConfig
|
17
|
+
include Mixins::InputConfig
|
18
|
+
include Mixins::OutputConfig
|
19
|
+
include Mixins::RecipientConfig
|
20
|
+
|
21
|
+
def configure_command(builder, opts)
|
22
|
+
builder = super(builder, opts)
|
23
|
+
builder = builder.with_subcommand('--encrypt')
|
24
|
+
builder
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module RubyGPG2
|
2
|
+
module Commands
|
3
|
+
module Mixins
|
4
|
+
module InputConfig
|
5
|
+
def configure_command(builder, opts)
|
6
|
+
input_file_path = opts[:input_file_path]
|
7
|
+
|
8
|
+
builder = super(builder, opts)
|
9
|
+
builder = builder.with_argument(input_file_path) if input_file_path
|
10
|
+
builder
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module RubyGPG2
|
2
|
+
module Commands
|
3
|
+
module Mixins
|
4
|
+
module RecipientConfig
|
5
|
+
def configure_command(builder, opts)
|
6
|
+
recipient = opts[:recipient]
|
7
|
+
|
8
|
+
builder = super(builder, opts)
|
9
|
+
builder = builder.with_option(
|
10
|
+
'--recipient', recipient) if recipient
|
11
|
+
builder
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/ruby_gpg2/commands.rb
CHANGED
data/lib/ruby_gpg2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_gpg2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.
|
4
|
+
version: 0.1.0.pre.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lino
|
@@ -163,6 +163,8 @@ files:
|
|
163
163
|
- lib/ruby_gpg2/colon_record.rb
|
164
164
|
- lib/ruby_gpg2/commands.rb
|
165
165
|
- lib/ruby_gpg2/commands/base.rb
|
166
|
+
- lib/ruby_gpg2/commands/decrypt.rb
|
167
|
+
- lib/ruby_gpg2/commands/encrypt.rb
|
166
168
|
- lib/ruby_gpg2/commands/export.rb
|
167
169
|
- lib/ruby_gpg2/commands/export_secret_keys.rb
|
168
170
|
- lib/ruby_gpg2/commands/generate_key.rb
|
@@ -173,9 +175,11 @@ files:
|
|
173
175
|
- lib/ruby_gpg2/commands/mixins/batch_config.rb
|
174
176
|
- lib/ruby_gpg2/commands/mixins/colon_config.rb
|
175
177
|
- lib/ruby_gpg2/commands/mixins/global_config.rb
|
178
|
+
- lib/ruby_gpg2/commands/mixins/input_config.rb
|
176
179
|
- lib/ruby_gpg2/commands/mixins/output_config.rb
|
177
180
|
- lib/ruby_gpg2/commands/mixins/passphrase_config.rb
|
178
181
|
- lib/ruby_gpg2/commands/mixins/pinentry_config.rb
|
182
|
+
- lib/ruby_gpg2/commands/mixins/recipient_config.rb
|
179
183
|
- lib/ruby_gpg2/commands/mixins/status_config.rb
|
180
184
|
- lib/ruby_gpg2/commands/mixins/with_captured_output.rb
|
181
185
|
- lib/ruby_gpg2/commands/mixins/with_captured_status.rb
|