ruby_gpg2 0.1.0.pre.15 → 0.1.0.pre.16
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a387ba32eb3dc42df88c40940ed7bc7a30cca4e3b95bf4e560a0f51ea3c793f
|
4
|
+
data.tar.gz: f66a879919bb178fddb5619278144cb90c5aeecea804afe4a6216577b6d5e84e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 468795434d5a015a963e264a29d946fd51c61afdf531c23a44a45ed77ca7b15714b4ec5eb40c9cff2f1330304ed0cbb06a193334a5ea18b8e4cf6e55baab49f1
|
7
|
+
data.tar.gz: 68a9491ee83e12b0ebe978f5cb5209014912435dcf1af466961378e8e50e64b3389e09e26e6e1e243785a98e4d6f0b4cc073fc25c1c232e1511de4555eed66ef
|
data/Gemfile.lock
CHANGED
@@ -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 =
|
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
|
@@ -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
|
data/lib/ruby_gpg2/version.rb
CHANGED
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.
|
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
|