puppet-resource_api 1.8.2 → 1.8.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
  SHA256:
3
- metadata.gz: 25188e590ac6518a9950590d7eae784c51add5ccaf2dea49a4788c2760fcb0a8
4
- data.tar.gz: dc43fc9fb6f9f5bee6ba8584b1277add457c3c750ff33d8ba2eb1b92667bde29
3
+ metadata.gz: 42a8295bef7527d8b9a309e22c9b650bf2f0e62213be3bba7cca506ecd5b745b
4
+ data.tar.gz: b1630d97f5a1c13f5377f67e30818dbcd41cc31c6f1c0cbc5e8dd75acff51cb2
5
5
  SHA512:
6
- metadata.gz: 0b7a893bcf2ffcdd4b36c6c741c9d98b0c648a1f49456496d3f34ff37061f779f0748508c23bdeda13a6139f1b5c01b611d6097eb3455aebbcb2a23c54299e8b
7
- data.tar.gz: 3ac4e6f47d675dc87722afb75f363519e747727802d02e9d1ec48a2b31d4af02f7b6cc89847ba6f3b5d93760007684abc0efe1a1ba07e43435df1657f1814da7
6
+ metadata.gz: 8d3741e8c50ecaa89ccc3e7dd6f8e0a926602427731d1a4755377e45ab8aab1de46ed2c2c020d455516825509cf9e4159e9890c86d4b11ddbe8236b734a41486
7
+ data.tar.gz: 4c55d2a4b01c0dd1675c49c42752643c037b68eb5fd0c66ce65a152d1d93129a09cb33bdb967ad81eef36d7622c5a7a66d9642d86753d6e807135895af17e07c
data/Gemfile CHANGED
@@ -16,7 +16,7 @@ group :tests do
16
16
  # unless we're dealing with jruby...
17
17
  if RUBY_PLATFORM == 'java'
18
18
  # load any rubocop version that works on java for the Rakefile
19
- gem 'rubocop'
19
+ gem 'rubocop', '0.41.2'
20
20
  elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
21
21
  gem 'rubocop', '0.57.2'
22
22
  # the last version of parallel to support ruby 2.1
data/README.md CHANGED
@@ -359,7 +359,7 @@ To do so, follow these instructions from a current `master` checkout:
359
359
  * run `rake changelog`
360
360
  * double check the PRs to make sure they're all tagged correctly (using the new CHANGELOG for cross-checking)
361
361
  * Check README and other materials for up-to-date-ness
362
- * Commit changes with title "Release prep for v\<VERSION>"
362
+ * Commit changes with title "Release prep for \<VERSION>"
363
363
  * Upload and PR the release-prep branch to the puppetlabs GitHub repo
364
364
  * Check that CI is green and merge the PR
365
365
  * Run `rake release[upstream]` to release from your checkout
@@ -63,6 +63,10 @@ module Puppet::ResourceApi
63
63
  error_msg = "The following mandatory attributes were not provided:\n * " + missing_attrs.join(", \n * ")
64
64
  raise Puppet::ResourceError, error_msg if missing_attrs.any?
65
65
  end
66
+
67
+ def notify_schema_errors(message)
68
+ raise Puppet::DevError, message
69
+ end
66
70
  end
67
71
 
68
72
  # Base RSAPI schema Object
@@ -144,6 +148,10 @@ module Puppet::ResourceApi
144
148
 
145
149
  return if rejected_keys.empty? && bad_values.empty?
146
150
 
151
+ notify_schema_errors(message)
152
+ end
153
+
154
+ def notify_schema_errors(message)
147
155
  if Puppet.settings[:strict] == :off
148
156
  Puppet.debug(message)
149
157
  elsif Puppet.settings[:strict] == :warning
@@ -1,5 +1,5 @@
1
1
  module Puppet
2
2
  module ResourceApi
3
- VERSION = '1.8.2'.freeze
3
+ VERSION = '1.8.3'.freeze
4
4
  end
5
5
  end
@@ -22,7 +22,7 @@ See [this post](https://groups.google.com/d/msg/puppet-dev/1R9gwkEIxHU/adWXJ0NfC
22
22
 
23
23
  ---
24
24
 
25
- Subject: [ANN] Resource API vX.Y.Z Release
25
+ Subject: [ANN] Resource API X.Y.Z Release
26
26
 
27
27
  Hi all,
28
28
 
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.8.2
4
+ version: 1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Schmitt