hashipack 0.1.8 → 0.1.9

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: 543d181e4dcfe4edb7a51e31ffca9f40e7fee60e165201330518ac976c0e4552
4
- data.tar.gz: 84063074a728b088f6f0ee4d0c63ccef150ba13d0ee8c6cb09cc25eebba67b6e
3
+ metadata.gz: a87321f217996af0552f2572e3fa9ef1f641bf90739a7f3f0e660f5c55966d96
4
+ data.tar.gz: 8e5d4888e4f5d9628333dc0fd2803549c7af38f61f3fa1add68b64b36d47aa50
5
5
  SHA512:
6
- metadata.gz: 8ab18b55931bd4cd214b9e5c172fdebf601791a35018b27694d20daf54e95e95496c9b0c1300c3ff8fcc6cb40593878095eb6d41b38e1eb471a0ce88d5870ba4
7
- data.tar.gz: cbbee5f51e9ba98a441778578c693350ce4f011890b5a80628f2f650bc95dafd7249d53101d724cb54148d40277644403e5ce12143f8e795b55ff3f579b216bf
6
+ metadata.gz: 3e7920bd5b7a750e7600c6f132bbe44e7e02c347d6c9a41873f4528947a62cc0eb416215966caa5511b04e5925407aacd54a1c71061c09e1de2d51ef6989ccbb
7
+ data.tar.gz: e56c1c34631b7c4dc92e5d14d2ef7f06e04670654658bef32355749c4f6df1770f951cc4b4b365dc3899a099aa662928c6e44a4035d1b3f5854b35aff6e0cb77
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hashipack (0.1.8)
4
+ hashipack (0.1.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -35,6 +35,8 @@ module Hashipack
35
35
  artifacts[message.number] ||= Artifact.new
36
36
  artifacts[message.number].append_info(message.key, message.value)
37
37
 
38
+ elsif message.type == :other
39
+ on_output.call(message.text)
38
40
  end
39
41
  end
40
42
 
@@ -7,8 +7,7 @@ module Hashipack
7
7
  elsif msg.artifact?
8
8
  ArtifactMessage.new(line)
9
9
  else
10
- puts "Ignoring unknown message type #{msg.type}"
11
- Message.new(line)
10
+ OtherMessage.new(line)
12
11
  end
13
12
  end
14
13
 
@@ -45,6 +44,16 @@ module Hashipack
45
44
  end
46
45
  end
47
46
 
47
+ class OtherMessage < Message
48
+ def type
49
+ :other
50
+ end
51
+
52
+ def text
53
+ @parts.join(',')
54
+ end
55
+ end
56
+
48
57
  class ArtifactMessage < Message
49
58
  def type
50
59
  :artifact
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hashipack
4
- VERSION = "0.1.8"
4
+ VERSION = "0.1.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashipack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas_Skywalker