minitest-chef-handler 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -15,4 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
- .vagrant
18
+ .vagrant
19
+ examples/simple-solo/chef.log
data/History.txt CHANGED
@@ -1,6 +1,12 @@
1
+ === 0.6.2 / 09-16-2012
2
+
3
+ * 1 bug fix:
4
+
5
+ * Print MiniTest output in every Chef logger configured.
6
+
1
7
  === 0.6.1 / 08-22-2012
2
8
 
3
- * 1 bug feature:
9
+ * 1 bug fix:
4
10
 
5
11
  * Raise error on test errors.
6
12
 
@@ -4,3 +4,4 @@ path = File.expand_path('{test/test_*,spec/*_spec}.rb', File.dirname(__FILE__))
4
4
 
5
5
  report_handlers << MiniTest::Chef::Handler.new(:path => path)
6
6
  cookbook_path File.expand_path('cookbooks', File.dirname(__FILE__))
7
+ log_location 'chef.log'
@@ -1,3 +1,4 @@
1
+ require 'minitest-chef-handler/core_ext'
1
2
  require 'minitest-chef-handler/context'
2
3
  require 'minitest-chef-handler/resources'
3
4
  require 'minitest-chef-handler/unit'
@@ -25,6 +26,8 @@ module MiniTest
25
26
 
26
27
  require_test_suites(@options.delete(:path))
27
28
 
29
+ MiniTest::Unit.output = ::Chef::Log
30
+
28
31
  if @options[:ci_reports]
29
32
  ENV['CI_REPORTS'] = @options[:ci_reports]
30
33
  runner = CIRunner.new(run_status)
@@ -0,0 +1,12 @@
1
+ class Chef
2
+ class Log
3
+ def self.puts(*a)
4
+ self.<< "\n" if a.empty?
5
+ a.each {|m| self.<< m; self.<< "\n"}
6
+ end
7
+
8
+ def self.print(*a)
9
+ a.each {|m| self.<< m}
10
+ end
11
+ end
12
+ end
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
12
12
  gem.name = "minitest-chef-handler"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = '0.6.1'
14
+ gem.version = '0.6.2'
15
15
 
16
16
  gem.add_dependency('minitest')
17
17
  gem.add_dependency('chef')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-chef-handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-22 00:00:00.000000000 Z
12
+ date: 2012-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
16
- requirement: &70287505569400 !ruby/object:Gem::Requirement
16
+ requirement: &70340924718820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70287505569400
24
+ version_requirements: *70340924718820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: chef
27
- requirement: &70287505567640 !ruby/object:Gem::Requirement
27
+ requirement: &70340924718040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70287505567640
35
+ version_requirements: *70340924718040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ci_reporter
38
- requirement: &70287505565200 !ruby/object:Gem::Requirement
38
+ requirement: &70340924717180 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70287505565200
46
+ version_requirements: *70340924717180
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70287505564540 !ruby/object:Gem::Requirement
49
+ requirement: &70340924716500 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70287505564540
57
+ version_requirements: *70340924716500
58
58
  description: Run Minitest suites as Chef report handlers
59
59
  email:
60
60
  - david.calavera@gmail.com
@@ -94,6 +94,7 @@ files:
94
94
  - lib/minitest-chef-handler/assertions.rb
95
95
  - lib/minitest-chef-handler/ci_runner.rb
96
96
  - lib/minitest-chef-handler/context.rb
97
+ - lib/minitest-chef-handler/core_ext.rb
97
98
  - lib/minitest-chef-handler/infections.rb
98
99
  - lib/minitest-chef-handler/lookup.rb
99
100
  - lib/minitest-chef-handler/resources.rb
@@ -119,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
120
  version: '0'
120
121
  segments:
121
122
  - 0
122
- hash: -197956679937223277
123
+ hash: -970795683623672726
123
124
  required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  none: false
125
126
  requirements:
@@ -128,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  version: '0'
129
130
  segments:
130
131
  - 0
131
- hash: -197956679937223277
132
+ hash: -970795683623672726
132
133
  requirements: []
133
134
  rubyforge_project:
134
135
  rubygems_version: 1.8.11