heroku_hatchet 2.0.2 → 2.0.3

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: f446fdc4fd463ebbf8659b563cfd6f2c46c993ab
4
- data.tar.gz: 203eefcb75b14667780811188f3d35f2a7b82136
3
+ metadata.gz: b2724cc73ce141dda01c9cb487f5ec17d6aee3aa
4
+ data.tar.gz: abdf9b2be53bef8b915d37a95813cd900dd9a6d7
5
5
  SHA512:
6
- metadata.gz: 9733874b3d5c3be14a1e6a60c81dfe6255d32391abfde97c639899b1b5cd7bef4e5a940a2e021a1c6af36cd93d0f1733ab523fc98758e3fc331520cd5f5bbec4
7
- data.tar.gz: 5bd310be072a4405c6fbd35cf6efb9441e42bd31306b1bf0e7a225bbee4adbf8c44e6883fc29439074a25cfdb05f7b900a1f13611d022449f880c13ee1f038ea
6
+ metadata.gz: 7f9a3853d46f8e7d3d5f223328340bcdad156b5579cc3ab5d5ce54d916b6f0657335ff3a43396d991ad5dcea93585376725e60979e3dc8a1d2fbde0e685a6c5a
7
+ data.tar.gz: 7864116c20872b21b4b05f5d4f2102f752825c590a40b69184c1dcef3f697fdb48ac570a6c83c4ecd34da4c096d8c39d00a08593483ce4c6d854d17bb58dbbe8
data/.travis.yml CHANGED
@@ -10,3 +10,10 @@ env:
10
10
  - HATCHET_RETRIES=3
11
11
  - HATCHET_APP_LIMIT=80
12
12
  - secure: TvpZ0CrIe0FqjyTUOAtVqjHHrtF1esMroa00bYYRBas050/y7ygVpAn9utFZZChgt1PUbM48I01UaQglGxtmXVl3ahQXtPpXlzlwJOlDS09dlZFfLenkv530/pxIlpRtqk4q18gCoLBblXX7RZu3TGt0qds+o8dQrBzL6QifAHs=
13
+ sudo: false
14
+ addons:
15
+ apt:
16
+ sources:
17
+ - heroku
18
+ packages:
19
+ - heroku-toolbelt
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ## 2.0.3
4
+
5
+ - Fix CI support to include multi nodes of output.
6
+
3
7
  ## 2.0.2
4
8
 
5
9
  - Do not require super user access
@@ -80,9 +80,6 @@ module Hatchet
80
80
  expects: [201, 200]
81
81
  )
82
82
 
83
- @setup_stream_url = response["setup_stream_url"]
84
- @output_stream_url = response["output_stream_url"]
85
-
86
83
  @status = response["status"].to_sym
87
84
  end
88
85
 
@@ -91,8 +88,24 @@ module Hatchet
91
88
  end
92
89
 
93
90
  def output
94
- get_contents_or_whatever(@setup_stream_url) +
95
- get_contents_or_whatever(@output_stream_url)
91
+ test_nodes = excon_request(
92
+ method: :get,
93
+ path: "/test-runs/#{@test_run_id}/test-nodes",
94
+ version: "3.ci",
95
+ expects: [200]
96
+ )
97
+
98
+ node_output_urls = []
99
+ test_nodes.each do |test_node|
100
+ node_output_urls << test_node.fetch("setup_stream_url")
101
+ node_output_urls << test_node.fetch("output_stream_url")
102
+ end
103
+
104
+ output = String.new
105
+ node_output_urls.each do |url|
106
+ output << get_contents_or_whatever(url)
107
+ end
108
+ output
96
109
  end
97
110
 
98
111
  def wait!
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_hatchet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2017-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: platform-api