compat_resource 12.5.2 → 12.5.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: 7fcce8db32aa622c553d333c32abb03bb745e610
4
- data.tar.gz: 7d914bf530d8c11ad1c66ff0e18e7843bbea90e8
3
+ metadata.gz: 897c4e0b7216ae640a1442e03b48ea21347f85dd
4
+ data.tar.gz: 18df17d62d9ab553f10e68582d69fa12e5e6831e
5
5
  SHA512:
6
- metadata.gz: 2f9c9b21fe8ea1f68a787ee0446a6476c64ffd658c3c913b30617ee631332311811467e7c57b6a95b9dfcd28547a85ef580301e9e390c77249ff2b5ddf738678
7
- data.tar.gz: f63416e1c08514dc75a72823b6e0d657e36a4a3a2286f64551a8e45c06aa59fbf247fa5518d328545619b5b37ce30c69ba284756588a55cbd07e0559a18f6622
6
+ metadata.gz: 43e323fc8a53d720e561caf8cf2a7528b66cacc4ad3d0e4a0a4ae3bd7dbeb96d42842d139e4444b6ab8384dc7653454e5adc742dedf16db674aae48bb7233aaa
7
+ data.tar.gz: aa7315484f3536f33d8362edde64f1bb250a4372d1d7644d7b3395787b2c7d6b16e8ca8ad88883f67f814496a9af98a61c5f061505084928df25d0be989d4187
@@ -3,6 +3,11 @@ require 'chef_compat/copied_from_chef/chef/resource'
3
3
 
4
4
  module ChefCompat
5
5
  class Resource < ChefCompat::CopiedFromChef::Chef::Resource
6
+ def initialize(*args, &block)
7
+ super
8
+ # @resource_name is used in earlier Chef versions
9
+ @resource_name = self.class.resource_name
10
+ end
6
11
  # Things we'll need to define ourselves:
7
12
  # 1. provider
8
13
  # 2. resource_name
@@ -1,3 +1,3 @@
1
1
  module ChefCompat
2
- VERSION = '12.5.2' if !defined?(VERSION)
2
+ VERSION = '12.5.3' 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.2
4
+ version: 12.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser