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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11171f9d7ad3325e8abac63936c5efeef978f5b7
4
- data.tar.gz: 37a9cd60b0718bd03ddb3c5fc0a1675cedc8c991
3
+ metadata.gz: b77427581b32cd6729aa4d13a1770b644960597c
4
+ data.tar.gz: 7bdb62420b891564207ec621ae7bc51ffc5ccbf6
5
5
  SHA512:
6
- metadata.gz: daf6c470c221a08e7a8545440ae5d05f3f0a61616087cc99bda596890af6b578f5545300d9874efce310a3f803c207946e4345365c276055f7d8a12e1da295da
7
- data.tar.gz: 5921b2c2fe7abb7a33626d42875130992d379aa12f67c386323537307a8a3d2bef914f9c6f234c3a81d70e788627e17e80f2f80a80195cf2b09aff3e963cf036
6
+ metadata.gz: 786921be51e12ea7af81d38d0e98662e3ff80297babf1a92b303eb64d33db5c4c526908cb8880927736373db15e284059f303ee8f1b775e82fba76858e53c6c5
7
+ data.tar.gz: e06d71da3ccd7e9070c6519f10717f6edc1f4b0fa68beee855254a4d317c0a3c59f76f8c3354d2844736a8b1441f22692573b7bf6126373707ec05164bc9040c
@@ -1148,7 +1148,7 @@ Rails/HasAndBelongsToMany:
1148
1148
 
1149
1149
  Rails/Output:
1150
1150
  Description: 'Checks for calls to puts, print, etc.'
1151
- Enabled: true
1151
+ Enabled: false
1152
1152
 
1153
1153
  Rails/ReadWriteAttribute:
1154
1154
  Description: >-
@@ -60,7 +60,7 @@ module CC
60
60
  duration = timeout * 1000
61
61
  @listener.timed_out(container_data(duration: duration))
62
62
  else
63
- sleep 1 until !t_out.alive? && !t_err.alive?
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
- out.each_line(@output_delimeter) do |chunk|
105
- output = chunk.chomp(@output_delimeter)
106
-
107
- @on_output.call(output)
108
- check_output_bytes(output.bytesize)
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
- err.each_line do |line|
116
- @stderr_io.write(line)
117
- check_output_bytes(line.bytesize)
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.5
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-23 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport