puppet-resource_api 1.0.0 → 1.0.1
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/CHANGELOG.md +11 -0
- data/README.md +2 -2
- data/lib/puppet/resource_api.rb +10 -0
- data/lib/puppet/resource_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1109f2b5351f7edd2125d6636807aa1792597d33e5c2ee13be26a9f95cfe3fd
|
|
4
|
+
data.tar.gz: 90243f80c3466f014a86fd4c5c4e0fd83521147f173764f95b2163fc25ce67ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46eb1a5d01c9f75ba77c558c12415a73b9f9a153f922c7817b9f4efb8d313183e7def1dc79e1bba806aecc2e2436e5985f2896eaafcd4b286a900f784c8538f0
|
|
7
|
+
data.tar.gz: 95930d409605838df56773c7c95be80f0124bb90a55bb841cb19f8621a486d48ee4b8872a12909bfccf9ce98986ac571493ac799cf0d12259f0de1aa00223161
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All significant changes to this repo will be summarized in this file.
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
## [v1.0.1](https://github.com/puppetlabs/puppet-resource_api/tree/v1.0.1) (2018-03-23)
|
|
7
|
+
[Full Changelog](https://github.com/puppetlabs/puppet-resource_api/compare/v1.0.0...v1.0.1)
|
|
8
|
+
|
|
9
|
+
**Fixed bugs:**
|
|
10
|
+
|
|
11
|
+
- Actually implement the promised behavior [\#44](https://github.com/puppetlabs/puppet-resource_api/pull/44) ([DavidS](https://github.com/DavidS))
|
|
12
|
+
|
|
13
|
+
**Merged pull requests:**
|
|
14
|
+
|
|
15
|
+
- Release prep for v1.0.0 [\#43](https://github.com/puppetlabs/puppet-resource_api/pull/43) ([da-ar](https://github.com/da-ar))
|
|
16
|
+
|
|
6
17
|
## [v1.0.0](https://github.com/puppetlabs/puppet-resource_api/tree/v1.0.0) (2018-03-23)
|
|
7
18
|
[Full Changelog](https://github.com/puppetlabs/puppet-resource_api/compare/v0.10.0...v1.0.0)
|
|
8
19
|
|
data/README.md
CHANGED
|
@@ -188,7 +188,7 @@ This gem is still under heavy development. This section is a living document of
|
|
|
188
188
|
|
|
189
189
|
Currently working:
|
|
190
190
|
* Basic type and provider definition, using `name`, `desc`, and `attributes`.
|
|
191
|
-
* The `canonicalize` and `remote_resource` features.
|
|
191
|
+
* The `canonicalize`, `simple_get_filter`, and `remote_resource` features.
|
|
192
192
|
* All the logging facilities.
|
|
193
193
|
* Executing the new provider under the following commands:
|
|
194
194
|
* `puppet apply`
|
|
@@ -222,7 +222,7 @@ To cut a new release, from a current `master` checkout:
|
|
|
222
222
|
* run `rake changelog`
|
|
223
223
|
* double check the PRs to make sure they're all tagged correctly
|
|
224
224
|
* Check README and other materials for up-to-date-ness
|
|
225
|
-
* Commit changes
|
|
225
|
+
* Commit changes with title "Release prep for v<VERSION>"
|
|
226
226
|
* Upload and PR the release prep to github as normal
|
|
227
227
|
* Check that CI is green and merge the PR
|
|
228
228
|
* Run `rake release[upstream]` to release what just passed CI
|
data/lib/puppet/resource_api.rb
CHANGED
|
@@ -15,6 +15,16 @@ module Puppet::ResourceApi
|
|
|
15
15
|
unknown_features = definition[:features] - supported_features
|
|
16
16
|
Puppet.warning("Unknown feature detected: #{unknown_features.inspect}") unless unknown_features.empty?
|
|
17
17
|
|
|
18
|
+
# fixup any weird behavior ;-)
|
|
19
|
+
definition[:attributes].each do |name, attr|
|
|
20
|
+
next unless attr[:behavior]
|
|
21
|
+
if attr[:behaviour]
|
|
22
|
+
raise Puppet::DevError, "the '#{name}' attribute has both a `behavior` and a `behaviour`, only use one"
|
|
23
|
+
end
|
|
24
|
+
attr[:behaviour] = attr[:behavior]
|
|
25
|
+
attr.delete(:behavior)
|
|
26
|
+
end
|
|
27
|
+
|
|
18
28
|
# prepare the ruby module for the provider
|
|
19
29
|
# this has to happen before Puppet::Type.newtype starts autoloading providers
|
|
20
30
|
# it also needs to be guarded against the namespace already being defined by something
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppet-resource_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Schmitt
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
version: '0'
|
|
78
78
|
requirements: []
|
|
79
79
|
rubyforge_project:
|
|
80
|
-
rubygems_version: 2.7.
|
|
80
|
+
rubygems_version: 2.7.6
|
|
81
81
|
signing_key:
|
|
82
82
|
specification_version: 4
|
|
83
83
|
summary: This library provides a simple way to write new native resources for puppet.
|