travis_parallel_sentinel 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 9d4c31bdf6e1827e31b044b60cd9b0cae57fd165
4
- data.tar.gz: 0e26eff5c5db4f56435d7a029922fb6d1d4843db
3
+ metadata.gz: a758dcde7f147472a846bcafdae67075a63f87a9
4
+ data.tar.gz: 08d4def5da651085350702a6fe9c4b6548f715bd
5
5
  SHA512:
6
- metadata.gz: 9510cca75f2b3edbe1dac428f6d9a0334f0cde90e369e3e0258a180be888a50825036aed74814d388f3741bf019a17e1a69d95a1c98c0179387729c64decddde
7
- data.tar.gz: 770590fa4e0faae85677fb1ee21e7fa334ce9aa1012254702cf2d4e6bbcce1d13150d1f4a2b520bd627d939876a5f93ff80c1d7410b74f734c45381934674d4f
6
+ metadata.gz: d42b586f5160257da81f677016674e681699b5753f4b481f52dc2d5956e86f17d78d23c39e3d5909f63bc0c59e32b44f8aeba4a2f9b78933b61b7252922902fc
7
+ data.tar.gz: 9025cf56dc84ff5246e90512166c9f9d880abddc6358f193d9d4d7484bbc3ed17b4e11ea92095941d6c1b7508c33883e48d6d8c140d90797a8a59d516071b6aa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- travis_parallel_sentinel (0.1.6)
4
+ travis_parallel_sentinel (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -6,6 +6,8 @@ require 'ostruct'
6
6
  TRAVIS_JOB_NUMBER = ENV['TRAVIS_JOB_NUMBER'].to_s.strip
7
7
  TRAVIS_BUILD_ID = ENV['TRAVIS_BUILD_ID'].to_s.strip
8
8
 
9
+ $stdout.sync = $stderr.sync = true
10
+
9
11
  module TravisParallelSentinel
10
12
  def result(job)
11
13
  prefix = "#{job.number}="
@@ -28,7 +30,7 @@ module TravisParallelSentinel
28
30
  builds = JSON.parse(open("https://api.travis-ci.org/builds/#{TRAVIS_BUILD_ID}").read)
29
31
  jobs = status['matrix'].collect{|job| OpenStruct.new(job)}
30
32
  if jobs.select{|job| job.number != TRAVIS_JOB_NUMBER || phase == :after}.detect{|job| job.result.nil?}
31
- STDERR.puts "waiting... #{results(jobs)}"
33
+ $stderr.puts "waiting... #{results(jobs)}"
32
34
  sleep 5
33
35
  elsif jobs.detect{|job| job.result != 0}
34
36
  throw "Some jobs failed: #{results(jobs)}"
@@ -1,3 +1,3 @@
1
1
  module TravisParallelSentinel
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis_parallel_sentinel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - retorquere