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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98bb3049dbee474c4797f9934cc522e2d563bc326429c7a01b5145e32fed0747
4
- data.tar.gz: ecdcc16efa98548c619216631d9ad9c1392ecf134d25788bea7e9b6a8e94fb7d
3
+ metadata.gz: d1109f2b5351f7edd2125d6636807aa1792597d33e5c2ee13be26a9f95cfe3fd
4
+ data.tar.gz: 90243f80c3466f014a86fd4c5c4e0fd83521147f173764f95b2163fc25ce67ca
5
5
  SHA512:
6
- metadata.gz: 5479c197d0996a9bba3d0c4dea2c2d41a256f2fa1054236247a4c8066b75926021ffaada63286dbb81c812550e1a35807186929ad953347317cb2ace20685143
7
- data.tar.gz: e6fe0d5304d2187b26cf940f880ca0714c843e47df3d5866355cd84467ea2ea13246352e0a74c4c385196e1702a18609400873d4470951848ccb6b30a4558ba1
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Puppet
2
2
  module ResourceApi
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
4
4
  end
5
5
  end
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.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.3
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.