bigrig 0.4.1 → 0.4.2

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: 4ff7894ca684a15d01db2a127337a9d6b9f03163
4
- data.tar.gz: a5618dbedda3832917b25d2199999dbee3a2acb3
3
+ metadata.gz: 00aa4dcc5c5020989a86e614b6275ece8b0c4186
4
+ data.tar.gz: be21feead0bf637a42fbab508afc42dab1354e46
5
5
  SHA512:
6
- metadata.gz: 8cfce1eac1a40854e7b9749c9653a666b10c23e638dee73a222a94550ed174b4915cc4986a928eaae302c60471fca008b99aeb725ba45fc95130076d9ec767d1
7
- data.tar.gz: e3ed3dcd6b56049d8cf4a504e0790c4e3c3b97e89c0ebaa9ea09fe5d7245dc3505a153f4a2ed2490f8adb65913447948bd310685f16eda9cd5a715fac89b1792
6
+ metadata.gz: 0815eb41d36aa361896dda68ce455f0d053717696292ed2972b8bae108a9bc4dee7a5e9c4a314511b365ff9f298cd6b8609703444ae64229b08bba2c71209b16
7
+ data.tar.gz: 259c2135db5db706b882dabeb21e7f9965eee97d4063149f3cbfef99f23365561feb480353e9ad06aaef781d7317c2851d6044f34467996ef4c22fbd932275ce
data/CHANGELOG.md CHANGED
@@ -59,3 +59,7 @@ Add `volumes` attriute
59
59
  0.4.1
60
60
  =====
61
61
  * wait_for failures fail bigrig
62
+
63
+ 0.4.2
64
+ =====
65
+ * Fix nasty jruby incompadability
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bigrig (0.4.1)
4
+ bigrig (0.4.2)
5
5
  colorize (= 0.7.5)
6
6
  docker-api (= 1.20.0)
7
7
  filewatcher (= 0.4.0)
@@ -69,6 +69,7 @@ GEM
69
69
  crack (>= 0.3.2)
70
70
 
71
71
  PLATFORMS
72
+ java
72
73
  ruby
73
74
 
74
75
  DEPENDENCIES
@@ -10,6 +10,15 @@ module Bigrig
10
10
  @buffer = ''
11
11
  end
12
12
 
13
+ # WTF jruby?!
14
+ def as_array(input)
15
+ if input.is_a? Enumerator
16
+ input.each_with_object([]) { |ch, x| x << ch }
17
+ else
18
+ input
19
+ end
20
+ end
21
+
13
22
  def parse(input)
14
23
  output = documents(input).map do |json|
15
24
  if json['errorDetail']
@@ -43,7 +52,7 @@ module Bigrig
43
52
 
44
53
  # rubocop:disable all
45
54
  def next_document
46
- chars = @buffer.chars
55
+ chars = as_array @buffer.chars
47
56
  i = count = 0
48
57
  string = false
49
58
 
@@ -1,3 +1,3 @@
1
1
  module Bigrig
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigrig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hawk Newton