codeclimate 0.21.2 → 0.21.3

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: fd5a499ae1ec499e15ef8cff4e2688c4e699f993
4
- data.tar.gz: 26f0bf5c6e55b18e8a98ae9e2ecadeb870aa5161
3
+ metadata.gz: 223058f42f68c459fe705d3b397afa9ef427b690
4
+ data.tar.gz: 89559b49df562eec5b73e08ac4bb14ce16a1047a
5
5
  SHA512:
6
- metadata.gz: 5241da19b8e08f11bd1d3d98fa0e50cada92590b04feac30933f36a930d1cc65a67bed3c89df17a47e447b3d1c6e5d889e0b2fb501ec9412360221f7caaa410d
7
- data.tar.gz: 74a357148ef859d5ad16cdd08e732fa8e34961f70b37a3744438afa59dbaad66c5780713b64a85ae377de53ba8f05779494c5f2e765bcf33eeb7db827a6ae4b7
6
+ metadata.gz: f6ee632006247e4bdcc26df9fdff8e373c40e0676b09466f2eaafed4a5752295d5d7950ea781b61c7a966278d5353aee09fb9fe6b76bd27b75049b3efd21db50
7
+ data.tar.gz: cf776954b2b37af4b9dbc5da353ec87f61da72582f1f6ed54fef0844ef9a85c1e70f4cfb18e4e75586956790a01762f9298d9c60407d710658184870af15ea9f
@@ -48,7 +48,9 @@ module CC
48
48
  started = Time.now
49
49
  @listener.started(container_data)
50
50
 
51
- pid, _, out, err = POSIX::Spawn.popen4(*docker_run_command(options))
51
+ command = docker_run_command(options)
52
+ CLI.debug("docker run: #{command.inspect}")
53
+ pid, _, out, err = POSIX::Spawn.popen4(*command)
52
54
 
53
55
  @t_out = read_stdout(out)
54
56
  @t_err = read_stderr(err)
@@ -34,6 +34,7 @@ module CC
34
34
  )
35
35
 
36
36
  container.on_output("\0") do |raw_output|
37
+ CLI.debug "engine output: #{raw_output.inspect}"
37
38
  output = EngineOutput.new(raw_output)
38
39
 
39
40
  unless output_filter.filter?(output)
@@ -42,6 +43,7 @@ module CC
42
43
  end
43
44
 
44
45
  write_config_file
46
+ CLI.debug "engine config: #{File.read(config_file).inspect}"
45
47
  container.run(container_options)
46
48
  ensure
47
49
  delete_config_file
@@ -8,7 +8,7 @@ module CC
8
8
  end
9
9
 
10
10
  def timed_out(data)
11
- message = "engine #{engine_name} ran for #{data.duration} seconds"
11
+ message = "engine #{engine_name} ran for #{data.duration / 1000} seconds"
12
12
  message << " and was killed"
13
13
 
14
14
  raise timeout_ex, message
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.21.2
4
+ version: 0.21.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-03 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport