compat_resource 12.5.3 → 12.5.4

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
  SHA1:
3
- metadata.gz: 897c4e0b7216ae640a1442e03b48ea21347f85dd
4
- data.tar.gz: 18df17d62d9ab553f10e68582d69fa12e5e6831e
3
+ metadata.gz: c65b6dd796aa308e3cb4db2733903a94e2618cc1
4
+ data.tar.gz: 9c1e1cd5756b69b3fad0c2c7a85a9708d8fefbfc
5
5
  SHA512:
6
- metadata.gz: 43e323fc8a53d720e561caf8cf2a7528b66cacc4ad3d0e4a0a4ae3bd7dbeb96d42842d139e4444b6ab8384dc7653454e5adc742dedf16db674aae48bb7233aaa
7
- data.tar.gz: aa7315484f3536f33d8362edde64f1bb250a4372d1d7644d7b3395787b2c7d6b16e8ca8ad88883f67f814496a9af98a61c5f061505084928df25d0be989d4187
6
+ metadata.gz: a392077b5c71bf0bd7b039b6f09372038ee39d3f4e7bd076331c14c650b499c86727c626f7400762f6ffd6ea6dda01e710f904b6cd52908a6173ebd509336c6d
7
+ data.tar.gz: 5b1a176af3a6c81475d3a31e71c71d42fc5bce51683cbdfabc91f8d896696676a857329fbebad97f3c3546a6d1a561b98db522eb720f7baa036b00555685b609
data/Rakefile CHANGED
@@ -71,7 +71,8 @@ task :update do
71
71
  output = StringIO.new
72
72
  # Wrap the whole thing in a ChefCompat module
73
73
  output.puts "require 'chef_compat/copied_from_chef'"
74
- output.puts "module ChefCompat"
74
+ output.puts "class Chef"
75
+ output.puts "module ::ChefCompat"
75
76
  output.puts "module CopiedFromChef"
76
77
 
77
78
  # Bring over the Chef file
@@ -172,6 +173,7 @@ task :update do
172
173
  # Close the ChefCompat module declaration from the top
173
174
  output.puts "end"
174
175
  output.puts "end"
176
+ output.puts "end"
175
177
 
176
178
  # Write out the file in chef_compat
177
179
  target_file = File.join(target_path, "#{file}.rb")
@@ -1,5 +1,6 @@
1
1
  require 'chef_compat/copied_from_chef'
2
- module ChefCompat
2
+ class Chef
3
+ module ::ChefCompat
3
4
  module CopiedFromChef
4
5
  #
5
6
  # Author:: John Keiser <jkeiser@chef.io>
@@ -30,3 +31,4 @@ class Chef < (defined?(::Chef) ? ::Chef : Object)
30
31
  end
31
32
  end
32
33
  end
34
+ end
@@ -1,5 +1,6 @@
1
1
  require 'chef_compat/copied_from_chef'
2
- module ChefCompat
2
+ class Chef
3
+ module ::ChefCompat
3
4
  module CopiedFromChef
4
5
  #
5
6
  # Author:: John Keiser <jkeiser@chef.io>
@@ -24,3 +25,4 @@ class Chef < (defined?(::Chef) ? ::Chef : Object)
24
25
  end
25
26
  end
26
27
  end
28
+ end
@@ -1,5 +1,6 @@
1
1
  require 'chef_compat/copied_from_chef'
2
- module ChefCompat
2
+ class Chef
3
+ module ::ChefCompat
3
4
  module CopiedFromChef
4
5
  #
5
6
  # Author:: Adam Jacob (<adam@opscode.com>)
@@ -482,3 +483,4 @@ class Chef < (defined?(::Chef) ? ::Chef : Object)
482
483
  end
483
484
  end
484
485
  end
486
+ end
@@ -1,5 +1,6 @@
1
1
  require 'chef_compat/copied_from_chef'
2
- module ChefCompat
2
+ class Chef
3
+ module ::ChefCompat
3
4
  module CopiedFromChef
4
5
  #
5
6
  # Author:: John Keiser <jkeiser@chef.io>
@@ -570,3 +571,4 @@ class Chef < (defined?(::Chef) ? ::Chef : Object)
570
571
  end
571
572
  end
572
573
  end
574
+ end
@@ -1,5 +1,6 @@
1
1
  require 'chef_compat/copied_from_chef'
2
- module ChefCompat
2
+ class Chef
3
+ module ::ChefCompat
3
4
  module CopiedFromChef
4
5
  class Chef < (defined?(::Chef) ? ::Chef : Object)
5
6
  class Provider < (defined?(::Chef::Provider) ? ::Chef::Provider : Object)
@@ -99,3 +100,4 @@ class Chef < (defined?(::Chef) ? ::Chef : Object)
99
100
  end
100
101
  end
101
102
  end
103
+ end
@@ -1,5 +1,6 @@
1
1
  require 'chef_compat/copied_from_chef'
2
- module ChefCompat
2
+ class Chef
3
+ module ::ChefCompat
3
4
  module CopiedFromChef
4
5
  require 'chef_compat/copied_from_chef/chef/mixin/params_validate'
5
6
  require 'chef_compat/copied_from_chef/chef/resource/action_class'
@@ -281,3 +282,4 @@ class Chef < (defined?(::Chef) ? ::Chef : Object)
281
282
  end
282
283
  end
283
284
  end
285
+ end
@@ -1,5 +1,6 @@
1
1
  require 'chef_compat/copied_from_chef'
2
- module ChefCompat
2
+ class Chef
3
+ module ::ChefCompat
3
4
  module CopiedFromChef
4
5
  #
5
6
  # Author:: John Keiser (<jkeiser@chef.io)
@@ -95,3 +96,4 @@ class Chef < (defined?(::Chef) ? ::Chef : Object)
95
96
  end
96
97
  end
97
98
  end
99
+ end
@@ -1,3 +1,9 @@
1
1
  class Chef
2
2
  NOT_PASSED = Object.new if !defined?(NOT_PASSED)
3
+ # Earlier versions of Chef didn't have this message
4
+ if !respond_to?(:log_deprecation)
5
+ def self.log_deprecation(message)
6
+ Chef::Log.warn(message)
7
+ end
8
+ end
3
9
  end
@@ -1,3 +1,3 @@
1
1
  module ChefCompat
2
- VERSION = '12.5.3' if !defined?(VERSION)
2
+ VERSION = '12.5.4' if !defined?(VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compat_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.5.3
4
+ version: 12.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser