compat_resource 12.5.1 → 12.5.2

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: 5ed9d768d08a398d70638978548f4de2b569f84c
4
- data.tar.gz: 58695b3a1aebe67d20c95dee715aa309cd89d1b1
3
+ metadata.gz: 7fcce8db32aa622c553d333c32abb03bb745e610
4
+ data.tar.gz: 7d914bf530d8c11ad1c66ff0e18e7843bbea90e8
5
5
  SHA512:
6
- metadata.gz: 764407ed4e04d4a840c616b6393c22f2264c00ee49d0a608257543d37b082d26cf71454e114232ecc221a76fdfe3b95bc738ed13b844ab6757474e81e6e874bd
7
- data.tar.gz: 86304dde4a36458892c9966855af7d6c3e17d7254d224531c283f7f7ee0392912ee98706d33076faf38b7a33fe0b8a63991f4de7190e104f7805bb05dc29f074
6
+ metadata.gz: 2f9c9b21fe8ea1f68a787ee0446a6476c64ffd658c3c913b30617ee631332311811467e7c57b6a95b9dfcd28547a85ef580301e9e390c77249ff2b5ddf738678
7
+ data.tar.gz: f63416e1c08514dc75a72823b6e0d657e36a4a3a2286f64551a8e45c06aa59fbf247fa5518d328545619b5b37ce30c69ba284756588a55cbd07e0559a18f6622
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ task default: :spec
14
14
  # "rake update" updates the copied_from_chef files so we can grab bugfixes or new features
15
15
  #
16
16
  CHEF_FILES = %w(chef/constants chef/delayed_evaluator chef/property
17
- chef/resource chef/resource/action_class chef/provider chef/dsl/recipe
17
+ chef/resource chef/resource/action_class chef/provider
18
18
  chef/mixin/params_validate)
19
19
  SPEC_FILES = %w(unit/property_spec.rb unit/property/state_spec.rb unit/property/validation_spec.rb
20
20
  integration/recipes/resource_action_spec.rb
@@ -53,8 +53,7 @@ KEEP_INCLUDES = {
53
53
  'chef/provider' => [],
54
54
  }
55
55
  KEEP_CLASSES = {
56
- 'chef/provider' => %w(Chef::Provider),
57
- 'chef/dsl/recipe' => %w(Chef::Recipe::DSL::FullDSL),
56
+ 'chef/provider' => %w(Chef::Provider)
58
57
  }
59
58
  SKIP_LINES = {
60
59
  'chef/dsl/recipe' => [ /include Chef::Mixin::PowershellOut/ ]
@@ -1,7 +1,18 @@
1
1
  require 'chef/provider'
2
+ require 'chef/provider/lwrp_base'
2
3
 
3
4
  class Chef::Provider
4
5
  if !defined?(InlineResources)
5
6
  InlineResources = Chef::Provider::LWRPBase::InlineResources
6
7
  end
8
+ module InlineResources
9
+ require 'chef/dsl/recipe'
10
+ require 'chef/dsl/platform_introspection'
11
+ require 'chef/dsl/data_query'
12
+ require 'chef/dsl/include_recipe'
13
+ include Chef::DSL::Recipe
14
+ include Chef::DSL::PlatformIntrospection
15
+ include Chef::DSL::DataQuery
16
+ include Chef::DSL::IncludeRecipe
17
+ end
7
18
  end
@@ -1,3 +1,3 @@
1
1
  module ChefCompat
2
- VERSION = '12.5.1' if !defined?(VERSION)
2
+ VERSION = '12.5.2' 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.1
4
+ version: 12.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
@@ -81,7 +81,6 @@ files:
81
81
  - files/lib/chef_compat/copied_from_chef.rb
82
82
  - files/lib/chef_compat/copied_from_chef/chef/constants.rb
83
83
  - files/lib/chef_compat/copied_from_chef/chef/delayed_evaluator.rb
84
- - files/lib/chef_compat/copied_from_chef/chef/dsl/recipe.rb
85
84
  - files/lib/chef_compat/copied_from_chef/chef/mixin/params_validate.rb
86
85
  - files/lib/chef_compat/copied_from_chef/chef/property.rb
87
86
  - files/lib/chef_compat/copied_from_chef/chef/provider.rb
@@ -1,8 +0,0 @@
1
- require 'chef_compat/copied_from_chef'
2
- module ChefCompat
3
- module CopiedFromChef
4
- class Chef < (defined?(::Chef) ? ::Chef : Object)
5
- end
6
- require 'chef_compat/copied_from_chef/chef/resource'
7
- end
8
- end