ruby_gpg2 0.1.0.pre.7 → 0.1.0.pre.8

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: fb0849638a19aa4b0403c24df4b3c7bc7f395a2d6d1b7f0eec28e0c87acdac4f
4
- data.tar.gz: 6c5f98a82c15e4974c062f2aa606a1f908cc5454b1fc9a1869f79540ad557476
3
+ metadata.gz: c57ad44360db5eb94a82d566616dccf22b98c8cff4119c1a8042450b6bf15ee0
4
+ data.tar.gz: 89d115db82a537514150576cab0102aba00fab143a9e4d25ba83b48ad6fcfd37
5
5
  SHA512:
6
- metadata.gz: bbfb0b48c99ae4390987ff2a7ae7907745facb6a0fa677055eb9f83dbff03ab210a7772f0a35444a82c23a2f0867e96cdfc6f16346e3e74bffac39aafddc023e
7
- data.tar.gz: bc23189fc6f9984a33f0bd956301c05767ecb9e4adbd72ba7c8f3541dab758c6b68dc50c9fe831c8ca2db93cfc1a13797c00024dc3904973da21fffa7062cd4e
6
+ metadata.gz: c91540452c03c2cfddd3b3f3ece1ab3b83049e45c55aa5e1596b134046f366e5bbc156b17196b9dec251aee2fbdef0e2c23426e94b63b13f4b771125e5b042d5
7
+ data.tar.gz: 5b6149b57c39885a8dfd681ef7079bc8d2eeb8c5f6ae5b03c6ffdabf2cc34f5f86b07d6ee6cdbbc6abb446eeece0f5bd2785a48cbf315f0f0af54e9adea2e016
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_gpg2 (0.1.0.pre.7)
4
+ ruby_gpg2 (0.1.0.pre.8)
5
5
  lino (= 1.3.0)
6
6
 
7
7
  GEM
@@ -14,6 +14,10 @@ module RubyGPG2
14
14
  @records = records
15
15
  end
16
16
 
17
+ def secret_keys
18
+ []
19
+ end
20
+
17
21
  def public_keys
18
22
  public_key_indices = @records
19
23
  .each_with_index
@@ -17,6 +17,10 @@ module RubyGPG2
17
17
  builder = super(builder, opts)
18
18
  builder
19
19
  end
20
+
21
+ def do_after(opts)
22
+ super(opts.merge(output_method: :public_keys))
23
+ end
20
24
  end
21
25
  end
22
26
  end
@@ -17,6 +17,10 @@ module RubyGPG2
17
17
  builder = super(builder, opts)
18
18
  builder
19
19
  end
20
+
21
+ def do_after(opts)
22
+ super(opts.merge(output_method: :secret_keys))
23
+ end
20
24
  end
21
25
  end
22
26
  end
@@ -12,8 +12,10 @@ module RubyGPG2
12
12
 
13
13
  def do_after(opts)
14
14
  parse_output = opts[:parse_output].nil? ? true : opts[:parse_output]
15
+ output_method = opts[:output_method]
16
+
15
17
  parse_output ?
16
- ColonOutput.parse(stdout.string) :
18
+ ColonOutput.parse(stdout.string).send(output_method) :
17
19
  stdout.string
18
20
  end
19
21
  end
@@ -1,3 +1,3 @@
1
1
  module RubyGPG2
2
- VERSION = '0.1.0.pre.7'
2
+ VERSION = '0.1.0.pre.8'
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.7
4
+ version: 0.1.0.pre.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson