hive-messages 1.0.4 → 1.0.5

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
  SHA1:
3
- metadata.gz: 55b1f7d1ecc67456d0a2a58df7a8ab1a70037a3d
4
- data.tar.gz: c1f9327844b970f697acfc02f27c04cd913394a6
3
+ metadata.gz: 8f62d17bd371bd60c4627507bf6322a88ea8908c
4
+ data.tar.gz: 3f313c6fa3f508a599fc7df83771b5f5c49e4301
5
5
  SHA512:
6
- metadata.gz: c5689c98ec5ab6f4379aa15c56beba564137b973710e7f39baba452fd00d43e13e8bbbac6bb918d041c7a2fb63675513e4086e73b0b32c5e144ba8a84bb5e805
7
- data.tar.gz: 7b1999c329735765392381eaa553ae8d6246ad984c54a78dc9a39b7541e55740711b9aa5c80a1b5ee3ccc85236b37dff811c0bbfcac3f4b59da69a7d6daae857
6
+ metadata.gz: e7615aa966fadd8cb5cb35437eaee8afd598bc5ff153fa9e731b26f77823a77519ee0bfe06d7ba00e53f1fafefdd133ef314731728c4f28d2f079d3da89fa38c
7
+ data.tar.gz: 3baa638a8c6ac953fecfb1c417d616ca674388c264d48499b1f7d8f910b7b0a4212f026e56dc1a5fe54d3ae173efe06b05ccc95f9b6abd6435225a96c3745143
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "hive-messages"
7
- spec.version = '1.0.4'
7
+ spec.version = '1.0.5'
8
8
  spec.authors = ["David Buckhurst", "Paul Carey"]
9
9
  spec.email = ["david.buckhurst@bbc.co.uk"]
10
10
  spec.summary = %q{Hive communication library.}
@@ -23,6 +23,7 @@ module Hive
23
23
  attribute :message, String
24
24
  attribute :result_details, String
25
25
  attribute :test_results, Hash
26
+ attribute :log_files, Hash
26
27
 
27
28
  validates :command, :job_id, presence: true
28
29
 
@@ -21,6 +21,7 @@ module Hive
21
21
  property :message
22
22
  property :result_details
23
23
  property :test_results
24
+ property :log_files
24
25
  end
25
26
  end
26
27
  end
@@ -23,6 +23,7 @@ describe Hive::Representers::JobRepresenter do
23
23
  attribute :message
24
24
  attribute :result_details
25
25
  attribute :test_results
26
+ attribute :log_files
26
27
 
27
28
  attribute :extra
28
29
  end
@@ -58,7 +59,8 @@ describe Hive::Representers::JobRepresenter do
58
59
  exit_value: 0,
59
60
  message: "Hello, mum",
60
61
  result_details: "Blah!",
61
- test_results: [ test_case: 'Testing', urn: '/tmp/test.txt', status: 'passed' ]
62
+ test_results: [ test_case: 'Testing', urn: '/tmp/test.txt', status: 'passed' ],
63
+ log_files: { "stdout" => 'Standard out' }
62
64
  }
63
65
  end
64
66
 
@@ -91,6 +93,7 @@ describe Hive::Representers::JobRepresenter do
91
93
  its(:exit_value) { should eq job_attributes[:exit_value] }
92
94
  its(:message) { should eq job_attributes[:message] }
93
95
  its(:result_details) { should eq job_attributes[:result_details] }
96
+ its(:log_files) { should eq job_attributes[:log_files] }
94
97
 
95
98
  # Attribute that should be ignored
96
99
  its(:extra) { should be_nil }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hive-messages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Buckhurst
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-09 00:00:00.000000000 Z
12
+ date: 2016-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus