compat_resource 12.5.13 → 12.5.14
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 +4 -4
- data/files/lib/chef_compat/monkeypatches/chef.rb +14 -12
- data/files/lib/chef_compat/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2dc72a948f1cb7b4ae30ace971a375f319ef8d4
|
|
4
|
+
data.tar.gz: 7b4d49278d4c10aec56e7e5dd89ca94ad7dfc551
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59b1fc8b98642673dc507e80e3931d24c4c8edc52fbbba39353e6a004dbac177799c3b8b2d108e6ee7ab19eef734eb5974b91bcf78b04ea4ae93d176124b57c9
|
|
7
|
+
data.tar.gz: 0ef0958d11750723c38094733724a82bc3bfa7c381ad4d475e2fd703360dd725f7d760a2668a1a7c17b56fadb9f73e1946a04db4675086df29256156093b5f88
|
|
@@ -3,22 +3,24 @@ class Chef
|
|
|
3
3
|
# Earlier versions of Chef didn't have this message
|
|
4
4
|
module ChefCompatDeprecation
|
|
5
5
|
def log_deprecation(message, location=nil)
|
|
6
|
-
if
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
break
|
|
16
|
-
end
|
|
6
|
+
if !location
|
|
7
|
+
# Pick the first caller that is *not* part of the Chef or ChefCompat gem,
|
|
8
|
+
# that's the thing the user wrote.
|
|
9
|
+
chef_compat_gem_path = File.expand_path("../../..", __FILE__)
|
|
10
|
+
chef_gem_path = File.expand_path("../..",::Chef::Resource.instance_method(:initialize).source_location[0])
|
|
11
|
+
caller(0..10).each do |c|
|
|
12
|
+
if !c.start_with?(chef_gem_path) && !c.start_with?(chef_compat_gem_path)
|
|
13
|
+
new_location = c
|
|
14
|
+
break
|
|
17
15
|
end
|
|
18
16
|
end
|
|
17
|
+
end
|
|
19
18
|
|
|
19
|
+
begin
|
|
20
20
|
super
|
|
21
|
-
|
|
21
|
+
# Bleagh. `super_method` doesn't exist on older rubies and I haven't
|
|
22
|
+
# figured out a way to check for its existence otherwise.
|
|
23
|
+
rescue NoMethodError
|
|
22
24
|
Chef::Log.warn(message)
|
|
23
25
|
end
|
|
24
26
|
end
|
metadata
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: compat_resource
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 12.5.
|
|
4
|
+
version: 12.5.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Keiser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - '>='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - '>='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rspec
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - '>='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: cheffish
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - '>='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - '>='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: stove
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - '>='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - '>='
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: chef
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - '>='
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - '>='
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
description: Bring some new features of Chef 12.5 to previous 12.X releases
|
|
@@ -86,33 +86,33 @@ executables: []
|
|
|
86
86
|
extensions: []
|
|
87
87
|
extra_rdoc_files: []
|
|
88
88
|
files:
|
|
89
|
-
- CHANGELOG.md
|
|
90
|
-
- Gemfile
|
|
91
89
|
- LICENSE
|
|
92
90
|
- README.md
|
|
91
|
+
- CHANGELOG.md
|
|
92
|
+
- Gemfile
|
|
93
93
|
- Rakefile
|
|
94
|
-
- files/lib/chef_compat.rb
|
|
95
|
-
- files/lib/chef_compat/copied_from_chef.rb
|
|
96
94
|
- files/lib/chef_compat/copied_from_chef/chef/constants.rb
|
|
97
95
|
- files/lib/chef_compat/copied_from_chef/chef/delayed_evaluator.rb
|
|
98
96
|
- files/lib/chef_compat/copied_from_chef/chef/mixin/params_validate.rb
|
|
99
97
|
- files/lib/chef_compat/copied_from_chef/chef/mixin/properties.rb
|
|
100
98
|
- files/lib/chef_compat/copied_from_chef/chef/property.rb
|
|
101
99
|
- files/lib/chef_compat/copied_from_chef/chef/provider.rb
|
|
102
|
-
- files/lib/chef_compat/copied_from_chef/chef/resource.rb
|
|
103
100
|
- files/lib/chef_compat/copied_from_chef/chef/resource/action_class.rb
|
|
101
|
+
- files/lib/chef_compat/copied_from_chef/chef/resource.rb
|
|
102
|
+
- files/lib/chef_compat/copied_from_chef.rb
|
|
104
103
|
- files/lib/chef_compat/delegating_class.rb
|
|
105
104
|
- files/lib/chef_compat/mixin/properties.rb
|
|
106
|
-
- files/lib/chef_compat/monkeypatches.rb
|
|
107
|
-
- files/lib/chef_compat/monkeypatches/chef.rb
|
|
108
105
|
- files/lib/chef_compat/monkeypatches/chef/exceptions.rb
|
|
109
106
|
- files/lib/chef_compat/monkeypatches/chef/provider.rb
|
|
110
|
-
- files/lib/chef_compat/monkeypatches/chef/resource.rb
|
|
111
107
|
- files/lib/chef_compat/monkeypatches/chef/resource/lwrp_base.rb
|
|
108
|
+
- files/lib/chef_compat/monkeypatches/chef/resource.rb
|
|
109
|
+
- files/lib/chef_compat/monkeypatches/chef.rb
|
|
110
|
+
- files/lib/chef_compat/monkeypatches.rb
|
|
112
111
|
- files/lib/chef_compat/property.rb
|
|
113
|
-
- files/lib/chef_compat/resource.rb
|
|
114
112
|
- files/lib/chef_compat/resource/lwrp_base.rb
|
|
113
|
+
- files/lib/chef_compat/resource.rb
|
|
115
114
|
- files/lib/chef_compat/version.rb
|
|
115
|
+
- files/lib/chef_compat.rb
|
|
116
116
|
homepage: http://chef.io
|
|
117
117
|
licenses:
|
|
118
118
|
- Apache 2.0
|
|
@@ -123,17 +123,17 @@ require_paths:
|
|
|
123
123
|
- files/lib
|
|
124
124
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
125
|
requirements:
|
|
126
|
-
- -
|
|
126
|
+
- - '>='
|
|
127
127
|
- !ruby/object:Gem::Version
|
|
128
128
|
version: '0'
|
|
129
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
requirements:
|
|
131
|
-
- -
|
|
131
|
+
- - '>='
|
|
132
132
|
- !ruby/object:Gem::Version
|
|
133
133
|
version: '0'
|
|
134
134
|
requirements: []
|
|
135
135
|
rubyforge_project:
|
|
136
|
-
rubygems_version: 2.
|
|
136
|
+
rubygems_version: 2.0.14
|
|
137
137
|
signing_key:
|
|
138
138
|
specification_version: 4
|
|
139
139
|
summary: Bring some new features of Chef 12.5 to previous 12.X releases
|