bats-chef-handler 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9501f7ba250d4b313bff5fd4d9781946b9f97257
4
+ data.tar.gz: 6180641001b7cbc4dabc9af45d54adfa349180e7
5
+ SHA512:
6
+ metadata.gz: 0732c8c3f534fba759bafe644008dd298d257fccb10563cf0866b8db732c3017c640410a37f1645fef9e666d8a6916ec7b4dc80e243cbf28e9728dc2312a8535
7
+ data.tar.gz: 6e532d45a5c1bc051ac7f292c9b8950a990ee2f2247cf8721b47461900452181fecea4b51820c2f88dad832fac3105da246edb03ae57c7e047ba243e41e5ea53
data/README.md CHANGED
@@ -9,7 +9,7 @@ by [minitest-chef-handler](https://github.com/calavera/minitest-chef-handler)
9
9
  Requirements
10
10
  ============
11
11
 
12
- * Tested on Chef 10.14.x. May run on other versions (will test Chef 11 soon.)
12
+ * Tested on Chef 10.14.x and 11.14.x.
13
13
  * Only tested with chef-solo thus far. I do not run chef-server or hosted chef.
14
14
  * Install [bats](https://github.com/sstephenson/bats). It should be in `$PATH` for the Chef run.
15
15
 
@@ -1,3 +1,5 @@
1
+ require 'chef/log'
2
+
1
3
  class Chef
2
4
  class Handler
3
5
  class BatsHandler < Chef::Handler
@@ -14,11 +16,11 @@ class Chef
14
16
 
15
17
  Dir.glob(test_file_paths).each do |test_path|
16
18
  Chef::Log.info "Running test: #{test_path}"
17
- cmd = shell_out("bats #{test_path}", :live_stream => STDOUT)
19
+ cmd = shell_out("bats #{test_path}")
18
20
  if cmd.exitstatus == 0
19
- Chef::Log.debug "#{test_path}: test passed"
21
+ Chef::Log.info "#{test_path}: test passed: #{cmd.stdout}"
20
22
  else
21
- Chef::Log.debug "#{test_path}: test failed"
23
+ Chef::Log.error "#{test_path}: test failed: #{cmd.stdout}"
22
24
  test_failures << test_path
23
25
  end
24
26
  end
@@ -1,7 +1,7 @@
1
1
  class Chef
2
2
  class Handler
3
3
  class BatsHandler < Chef::Handler
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bats-chef-handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Joe Miller
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-04 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: chef
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>'
17
+ - - '>'
20
18
  - !ruby/object:Gem::Version
21
19
  version: '10.14'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>'
24
+ - - '>'
28
25
  - !ruby/object:Gem::Version
29
26
  version: '10.14'
30
27
  description: Run BATS tests at the end of a chef run, similar to minitest-chef-handler
@@ -36,31 +33,30 @@ extra_rdoc_files: []
36
33
  files:
37
34
  - LICENSE
38
35
  - README.md
39
- - lib/chef/handler/bats_handler_version.rb
40
36
  - lib/chef/handler/bats_handler.rb
37
+ - lib/chef/handler/bats_handler_version.rb
41
38
  homepage: https://github.com/joemiller/bats-chef-handler
42
39
  licenses:
43
40
  - MIT
41
+ metadata: {}
44
42
  post_install_message:
45
43
  rdoc_options: []
46
44
  require_paths:
47
45
  - lib
48
46
  required_ruby_version: !ruby/object:Gem::Requirement
49
- none: false
50
47
  requirements:
51
- - - ! '>='
48
+ - - '>='
52
49
  - !ruby/object:Gem::Version
53
50
  version: '0'
54
51
  required_rubygems_version: !ruby/object:Gem::Requirement
55
- none: false
56
52
  requirements:
57
- - - ! '>='
53
+ - - '>='
58
54
  - !ruby/object:Gem::Version
59
55
  version: '0'
60
56
  requirements: []
61
57
  rubyforge_project:
62
- rubygems_version: 1.8.25
58
+ rubygems_version: 2.0.14
63
59
  signing_key:
64
- specification_version: 3
60
+ specification_version: 4
65
61
  summary: BATS tests handler
66
62
  test_files: []