chef-sugar 5.1.8 → 5.1.9

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
  SHA256:
3
- metadata.gz: 227f7d0ee3fe7a7f8c4dd30ca3ae140eeeee3dfcbde7df0e59a3f9fdc8119297
4
- data.tar.gz: 29ce42de49a7b7f0ef5a012e99130b0eec87df6aca9cf477ef783905613264de
3
+ metadata.gz: d72a8bfee113bc27fd2cfa75f5e25fabfcb8108645f8431b2c5af58bb3426445
4
+ data.tar.gz: 67ab7cbefbb46bc41fa08ffe9f5b62f9398fd4ceff559badc14875c9402c28ee
5
5
  SHA512:
6
- metadata.gz: 1a63872706b818c738bb04d7c7f464b346a4c9de718b2de357c019b7a74df271c3d5c53bd25ecc3afe693f0345ad0ffd4cb60443039a2220ae163db3dd2bcc6c
7
- data.tar.gz: 9eca96a8c964d20c87b52c0a1e01d759c8154e8e0b9075008c57880aad4ffea9f21555158003e30d08299af9dab9338617487b7a8bb4e1388fe05b87b18ca828
6
+ metadata.gz: 7035ac92d9edbcaf49b338c54cfe4b408b2d796f308df391ef6f7e3db0274bd0374130046da5d24b91169fc09177882117f043a761093aadad79f091d41d836c
7
+ data.tar.gz: bfd9c2ee77514a6c85e4e061f8c9f48c9ff04f8bea8e10138d3753864e7415b86828237e35e286176fc3368c290f062eb510afc1cc762675174b1fd69d16d51f
@@ -20,7 +20,7 @@ class Chef
20
20
  extend self
21
21
 
22
22
  # these helpers have been moved to core-chef
23
- unless Gem::Requirement.new(">= 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
23
+ if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
24
24
  #
25
25
  # Determine if the current architecture is 64-bit
26
26
  #
@@ -136,7 +136,7 @@ class Chef
136
136
  end
137
137
 
138
138
  module DSL
139
- unless Gem::Requirement.new(">= 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
139
+ if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
140
140
  # @see Chef::Sugar::Architecture#_64_bit?
141
141
  def _64_bit?; Chef::Sugar::Architecture._64_bit?(node); end
142
142
 
@@ -20,7 +20,7 @@ class Chef
20
20
  extend self
21
21
 
22
22
  # these helpers have been moved to core chef
23
- unless Gem::Requirement.new(">= 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
23
+ if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
24
24
  #
25
25
  # Returns true if the current node is a docker container.
26
26
  #
@@ -36,7 +36,7 @@ class Chef
36
36
  end
37
37
 
38
38
  module DSL
39
- unless Gem::Requirement.new(">= 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
39
+ if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
40
40
  # @see Chef::Sugar::Docker#docker?
41
41
  def docker?; Chef::Sugar::Docker.docker?(node); end
42
42
  end
@@ -20,7 +20,7 @@ class Chef
20
20
  extend self
21
21
 
22
22
  # these helpers have been moved to core-chef
23
- unless Gem::Requirement.new(">= 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
23
+ if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
24
24
  #
25
25
  # Returns true if the current node is provisioned by Test Kitchen.
26
26
  #
@@ -36,7 +36,7 @@ class Chef
36
36
  end
37
37
 
38
38
  module DSL
39
- unless Gem::Requirement.new(">= 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
39
+ if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
40
40
  # @see Chef::Sugar::Kitchen#kitchen?
41
41
  def kitchen?; Chef::Sugar::Kitchen.kitchen?(node); end
42
42
  end
@@ -122,7 +122,7 @@ class Chef
122
122
  end
123
123
 
124
124
  # these helpers have been moved to core chef
125
- unless Gem::Requirement.new(">= 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
125
+ if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
126
126
  #
127
127
  # Determine if the current node is linux mint.
128
128
  #
@@ -20,7 +20,7 @@ class Chef
20
20
  extend self
21
21
 
22
22
  # these helpers have been moved to core chef
23
- unless Gem::Requirement.new(">= 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
23
+ if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION))
24
24
 
25
25
  #
26
26
  # Determine if the current node is a member of the arch family.
@@ -16,6 +16,6 @@
16
16
 
17
17
  class Chef
18
18
  module Sugar
19
- VERSION = "5.1.8"
19
+ VERSION = "5.1.9"
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-sugar
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.8
4
+ version: 5.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A series of helpful sugar of the Chef core and other resources to make
14
14
  a cleaner, more lean recipe DSL, enforce DRY principles, and make writing Chef recipes