chef-validation 0.2.2 → 0.2.3

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: 6ef3435c33e89c5cc6869e0698f5c5b5e21de1e5
4
- data.tar.gz: 8aef1ac842fdeb3c599875243f2a5647d923f21b
3
+ metadata.gz: 9aeb12ca1436351478eecc3b980ee34faf64f81c
4
+ data.tar.gz: 11d17d8eb52e2f20c232c8cba17be7b31b4f4de1
5
5
  SHA512:
6
- metadata.gz: 9de30d6d0c1c2ca4833edb902df7d4f70a12de74ebc6d2f00a993789bb7d4aaeeaafa4b443032fa41143498a4bca0bc3bbfd3a0fe5294cccad4308d45b8c4dc1
7
- data.tar.gz: 71e82ceb8fca3e7bb89c7e92a9aad38a22e1ad610ecd5c7375330b3ace9c90806c8031d309605fb05dc116166999341ee1d3914f9f6ad75d446fbd12d4af57d3
6
+ metadata.gz: a05cb9f974c058adb986a50a6914b3b34eb2f0ec30dae1a04c81816c53c05fe0ec999e063181dd478e1e09b062cbc39b647f9323d352b42d8863f507dc543386
7
+ data.tar.gz: 8449b1c2612cd771494b8b02d7a087b68849f93ccf1300f160afe2038dc3d8ab1f1e565d6ca5f3b16684269c23de2a439a3fe2dd07bfefb9958c025c282965fd
@@ -1,3 +1,8 @@
1
+ # 0.2.3
2
+
3
+ * Enhancements
4
+ * Use Chef Gem compile_time option when available
5
+
1
6
  # 0.2.2
2
7
 
3
8
  * Bug Fixes
@@ -1,4 +1,4 @@
1
1
  class Chef; end;
2
2
  module Chef::Validation
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
@@ -7,10 +7,18 @@
7
7
  # Copyright (c) 2014 Jamie Winsor
8
8
  #
9
9
 
10
- chef_gem "chef-validation" do
11
- version Chef::Validation.cookbook_version(node)
12
- options "--ignore-dependencies"
13
- action :nothing
14
- end.run_action(:install)
10
+ if Chef::Resource::ChefGem.instance_methods(false).include?(:compile_time)
11
+ chef_gem "chef-validation" do
12
+ version Chef::Validation.cookbook_version(node)
13
+ options "--ignore-dependencies"
14
+ compile_time true
15
+ end
16
+ else
17
+ chef_gem "chef-validation" do
18
+ version Chef::Validation.cookbook_version(node)
19
+ options "--ignore-dependencies"
20
+ action :nothing
21
+ end.run_action(:install)
22
+ end
15
23
 
16
24
  require "chef-validation"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-17 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef