bigrig 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -1
- data/lib/bigrig/output_parser.rb +10 -1
- data/lib/bigrig/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00aa4dcc5c5020989a86e614b6275ece8b0c4186
|
4
|
+
data.tar.gz: be21feead0bf637a42fbab508afc42dab1354e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0815eb41d36aa361896dda68ce455f0d053717696292ed2972b8bae108a9bc4dee7a5e9c4a314511b365ff9f298cd6b8609703444ae64229b08bba2c71209b16
|
7
|
+
data.tar.gz: 259c2135db5db706b882dabeb21e7f9965eee97d4063149f3cbfef99f23365561feb480353e9ad06aaef781d7317c2851d6044f34467996ef4c22fbd932275ce
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/bigrig/output_parser.rb
CHANGED
@@ -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
|
|
data/lib/bigrig/version.rb
CHANGED