ruby_gpg2 0.1.0.pre.22 → 0.1.0.pre.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa62f16997061b7bba83076558238368e7921cd088873fba84dd252cef689be3
4
- data.tar.gz: e3da63bd6b02348fa97ae65a5de76f8ccc6e09a40ca5198804009034628a8dc1
3
+ metadata.gz: f1ce7b945586b9f5ddff39f43b4b2f3b5a38e372d8151013ee1b1b4473972fb2
4
+ data.tar.gz: 3e620fa6c8b08bdcd082ba3df7e68205f808d1e0530837d8a9c9ba0a80ac9d63
5
5
  SHA512:
6
- metadata.gz: 3b493577d1029fa49b00d41cbe0f8ee1b76ec3259da3edf3bacfcb52af8d25b0796b1e21e38bb8d174d0264bb9008ebead36a50da8a7782b9ac980e66e578f8a
7
- data.tar.gz: f578d0ba19c2db7dde2a64f6d244e6668d9ce7f9bba1112eb6042ece8d65b317e8732c0d04c8ec2aa4a6de6fdf72880bec7e04f09f759bfdd820a0debe5aa15b
6
+ metadata.gz: e85f0039ec41f60aef85a2f6bd8acb94e471c99be34de7a6cc9e856b2252093a5b3ebe97e315751f2ca262c79d160450e8203e4e6e6b3a87c29b6705fd822469
7
+ data.tar.gz: 9dab915ce94967ccf1e9132b4186c9336a67c98140b4a72d0ac0116abb713531868697e5bacc608fc179eeaa91fa19f4d6bca2119c710a85120f5920deff8436
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_gpg2 (0.1.0.pre.22)
4
+ ruby_gpg2 (0.1.0.pre.23)
5
5
  lino (= 1.3.0)
6
6
 
7
7
  GEM
@@ -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
@@ -1,3 +1,5 @@
1
+ require_relative 'commands/decrypt'
2
+ require_relative 'commands/encrypt'
1
3
  require_relative 'commands/export'
2
4
  require_relative 'commands/export_secret_keys'
3
5
  require_relative 'commands/generate_key'
@@ -1,3 +1,3 @@
1
1
  module RubyGPG2
2
- VERSION = '0.1.0.pre.22'
2
+ VERSION = '0.1.0.pre.23'
3
3
  end
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.22
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-04 00:00:00.000000000 Z
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