codeclimate 0.14.5 → 0.14.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/rubocop/.rubocop.yml +1 -1
- data/lib/cc/analyzer/container.rb +17 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b77427581b32cd6729aa4d13a1770b644960597c
|
4
|
+
data.tar.gz: 7bdb62420b891564207ec621ae7bc51ffc5ccbf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 786921be51e12ea7af81d38d0e98662e3ff80297babf1a92b303eb64d33db5c4c526908cb8880927736373db15e284059f303ee8f1b775e82fba76858e53c6c5
|
7
|
+
data.tar.gz: e06d71da3ccd7e9070c6519f10717f6edc1f4b0fa68beee855254a4d317c0a3c59f76f8c3354d2844736a8b1441f22692573b7bf6126373707ec05164bc9040c
|
data/config/rubocop/.rubocop.yml
CHANGED
@@ -60,7 +60,7 @@ module CC
|
|
60
60
|
duration = timeout * 1000
|
61
61
|
@listener.timed_out(container_data(duration: duration))
|
62
62
|
else
|
63
|
-
|
63
|
+
[t_out, t_err].each(&:join)
|
64
64
|
duration = ((Time.now - started) * 1000).round
|
65
65
|
@listener.finished(container_data(duration: duration, status: status))
|
66
66
|
end
|
@@ -101,20 +101,28 @@ module CC
|
|
101
101
|
|
102
102
|
def read_stdout(out)
|
103
103
|
Thread.new do
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
104
|
+
begin
|
105
|
+
out.each_line(@output_delimeter) do |chunk|
|
106
|
+
output = chunk.chomp(@output_delimeter)
|
107
|
+
|
108
|
+
@on_output.call(output)
|
109
|
+
check_output_bytes(output.bytesize)
|
110
|
+
end
|
111
|
+
ensure
|
112
|
+
out.close
|
109
113
|
end
|
110
114
|
end
|
111
115
|
end
|
112
116
|
|
113
117
|
def read_stderr(err)
|
114
118
|
Thread.new do
|
115
|
-
|
116
|
-
|
117
|
-
|
119
|
+
begin
|
120
|
+
err.each_line do |line|
|
121
|
+
@stderr_io.write(line)
|
122
|
+
check_output_bytes(line.bytesize)
|
123
|
+
end
|
124
|
+
ensure
|
125
|
+
err.close
|
118
126
|
end
|
119
127
|
end
|
120
128
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code Climate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|