ruby_gpg2 0.1.0.pre.15 → 0.1.0.pre.16

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: 757eba52ef88c96af2b0c2be9199ca3365e7e90e1e49485f57fa5c417614df26
4
- data.tar.gz: 6b8cea9b6c702051eea538d54adf389c1a50b62badbeb61a2c5f79da617f90e1
3
+ metadata.gz: 4a387ba32eb3dc42df88c40940ed7bc7a30cca4e3b95bf4e560a0f51ea3c793f
4
+ data.tar.gz: f66a879919bb178fddb5619278144cb90c5aeecea804afe4a6216577b6d5e84e
5
5
  SHA512:
6
- metadata.gz: 9e8cf2702299459f76054d7bba1e2cf6ae70771a02c33000d2e13e13e584bc35ab0e4f6129e902e8c925809bca072c36aee5393e56af68969dfc4e4bfd56ac06
7
- data.tar.gz: c80831abc24ac65fbafd690393d07ebed189a9d10b32f4b1a2e3900f897007f8702fb8931bc2a80306d0e15e83de4ef212055e96dad505764df1eab59916c539
6
+ metadata.gz: 468795434d5a015a963e264a29d946fd51c61afdf531c23a44a45ed77ca7b15714b4ec5eb40c9cff2f1330304ed0cbb06a193334a5ea18b8e4cf6e55baab49f1
7
+ data.tar.gz: 68a9491ee83e12b0ebe978f5cb5209014912435dcf1af466961378e8e50e64b3389e09e26e6e1e243785a98e4d6f0b4cc073fc25c1c232e1511de4555eed66ef
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_gpg2 (0.1.0.pre.15)
4
+ ruby_gpg2 (0.1.0.pre.16)
5
5
  lino (= 1.3.0)
6
6
 
7
7
  GEM
@@ -1,5 +1,7 @@
1
1
  require 'lino'
2
2
 
3
+ require_relative './result'
4
+
3
5
  module RubyGPG2
4
6
  module Commands
5
7
  class Base
@@ -48,6 +50,7 @@ module RubyGPG2
48
50
  end
49
51
 
50
52
  def do_after(opts)
53
+ Result.new
51
54
  end
52
55
  end
53
56
  end
@@ -4,11 +4,8 @@ module RubyGPG2
4
4
  module Commands
5
5
  module Mixins
6
6
  module WithResult
7
- class Result < Struct.new(:output, :status)
8
- end
9
-
10
7
  def do_after(opts)
11
- result = Result.new
8
+ result = super(opts)
12
9
  result.output = opts[:output] if opts[:output]
13
10
  result.status = opts[:status] if opts[:status]
14
11
  result
@@ -0,0 +1,7 @@
1
+ module RubyGPG2
2
+ module Commands
3
+ class Result < Struct.new(:output, :status)
4
+
5
+ end
6
+ end
7
+ end
@@ -13,6 +13,14 @@ module RubyGPG2
13
13
  @lines = lines
14
14
  end
15
15
 
16
+ def filter_by_type(type)
17
+ StatusOutput.new(@lines.filter { |l| l.type == type })
18
+ end
19
+
20
+ def first_line
21
+ @lines.first
22
+ end
23
+
16
24
  def ==(other)
17
25
  other.class == self.class && other.state == state
18
26
  end
@@ -1,3 +1,3 @@
1
1
  module RubyGPG2
2
- VERSION = '0.1.0.pre.15'
2
+ VERSION = '0.1.0.pre.16'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_gpg2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.15
4
+ version: 0.1.0.pre.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
@@ -176,6 +176,7 @@ files:
176
176
  - lib/ruby_gpg2/commands/mixins/with_captured_status.rb
177
177
  - lib/ruby_gpg2/commands/mixins/with_result.rb
178
178
  - lib/ruby_gpg2/commands/mixins/without_passphrase.rb
179
+ - lib/ruby_gpg2/commands/result.rb
179
180
  - lib/ruby_gpg2/key.rb
180
181
  - lib/ruby_gpg2/parameter_file_contents.rb
181
182
  - lib/ruby_gpg2/status_line.rb