poise-boiler 1.16.0 → 1.17.0

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: 1c4fb3bfa6f761790438770520c9da3a00d27d3f
4
- data.tar.gz: f0fd873026544e9407e4828a2b82d4d08ab151b8
3
+ metadata.gz: cbb41d4375a5e3e98881b1df314c052e07de62c0
4
+ data.tar.gz: 7e74700459c42dd0889e52ca67608e4f345f084f
5
5
  SHA512:
6
- metadata.gz: f08303ed019060ef16e3a2734fb5ad32db5a718b9fa95b0e597a3082fdc7057a8c95742c89a95c5d506fb52df864e7d23213b88dfed5e56fd24f6abdb58e6336
7
- data.tar.gz: bca5054061b44c5be66344dd8802cdf7c3b8d94200c22d2cf6158f7732bfc3011de62d11f3b57d2090cf145d7ca10f0773ee91c4ee11bf56f8587b3b77042574
6
+ metadata.gz: 1b8c84d279563a3b2aebd395c0580dbc0e76a52100d2f81209257683c1b9781dc393d24c7ee8a169931abf031edc675f6bb9adbfb91921132c5d38d4c613f043
7
+ data.tar.gz: 3356b5a6738bf364f6716f4beb837f04322be256f6528aef3736b9ecc3f7f9c5504c37fc87d3db5791a33f5650eb6c57ca10168212cb8b4860f47b83d17cf002
@@ -1,5 +1,11 @@
1
1
  # Poise-Boiler Changelog
2
2
 
3
+ ## 1.17.0
4
+
5
+ * Compat with the new `Chef::VERSION` magic object.
6
+ * Fix for the breakage of `chef update`: https://github.com/chef/chef-dk/issues/1304.
7
+ * New platform alias `any` for cookbooks that don't care what platform they run on.
8
+
3
9
  ## 1.16.0
4
10
 
5
11
  * Dropping Ubuntu 12.04 from the `linux` platform alias and adding 16.04.
data/Rakefile CHANGED
@@ -31,3 +31,6 @@ desc 'Run all tests'
31
31
  task :test => [:spec]
32
32
 
33
33
  task :default => [:test]
34
+
35
+ # For compat with my normal test layout.
36
+ task :travis => [:test]
@@ -36,6 +36,7 @@ module PoiseBoiler
36
36
  'linux' => %w{ubuntu rhel centos},
37
37
  'unix' => %w{linux}, #, freebsd},
38
38
  'all' => %w{unix windows},
39
+ 'any' => %w{ubuntu-16.04}, # For cookbooks that don't actually use platform-specific bits.
39
40
  }
40
41
 
41
42
  # Default EC2 subnet ID when not overridden in the environment or config.
@@ -77,7 +78,7 @@ module PoiseBoiler
77
78
  elsif ENV['SPEC_BLOCK_CI'] != 'true'
78
79
  # If there isn't a specific override, lock TK to use the same version of Chef as the Gemfile.
79
80
  require 'chef/version'
80
- Chef::VERSION
81
+ Chef::VERSION.to_s
81
82
  end
82
83
  end
83
84
 
@@ -81,8 +81,13 @@ module PoiseBoiler
81
81
  end
82
82
 
83
83
  def compile_poise_policy(policy_path)
84
- info("Compiling policy")
85
- compile_cmd = Mixlib::ShellOut.new(['chef', 'update', policy_path])
84
+ compile_mode = if File.exist?(policy_path.gsub(/\.rb/, '.lock.json'))
85
+ 'update'
86
+ else
87
+ 'install'
88
+ end
89
+ info("Compiling policy (#{compile_mode})")
90
+ compile_cmd = Mixlib::ShellOut.new(['chef', compile_mode, policy_path])
86
91
  compile_cmd.run_command
87
92
  compile_cmd.error!
88
93
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseBoiler
19
- VERSION = '1.16.0'
19
+ VERSION = '1.17.0'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-boiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler