chef-sugar-ng 5.1.8 → 5.1.9

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
  SHA256:
3
- metadata.gz: 34504dfb9d2ccb1279df8c397521678c56099f948babcdcc8092e8fcaa16ea61
4
- data.tar.gz: 07dc8a4f0cf5ec853556552f160b602fc0b81966e9bd4a809ef86cedb81525e4
3
+ metadata.gz: 9456a143bb22eee2c366a831f4a0d26ca9f213eb44b4ea87ebe0e8dc57f219ee
4
+ data.tar.gz: 1e80cfc9d0acacbfddfdf75ba5f0fff6cc254a117e0c4b723d558c5f6a0e0ce1
5
5
  SHA512:
6
- metadata.gz: aae5a6577c9f278d36718dea1af8f9513373e7ed92bc0d2f6676f9249f1ce53ae56413597df9a4031e85e3eb14e5c0e4f59218fe05edd546274441ef3df47b0e
7
- data.tar.gz: dd79a73382a848870e6790cc998743d6e5b0d50a77ccfb91a1efc47c6702fa6dd805a2d7d8ea73675dab5e2709f53cc5f291e41e8d4cb7068a1f1bd2a32a08d3
6
+ metadata.gz: a57bdc40e7956a5d27a0313d71c028d9de512b31b00f93322db73bbe2722f1aa6f7cbb846c6753fdf5c5d7cfe3bcf005848f6f268fb7b29327e1dfdfbf21b64a
7
+ data.tar.gz: 976f47acdf04b888f3048920a02ce27146413639d5b610663c60b197bd62f0618db7a133c294ae1cc3151335412e803ddddd5dc4131f52fde83864f7971ae523
@@ -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-ng
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