puppet-resource_api 1.6.1 → 1.6.2

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: 1210710979a59465dd518138104351804fa49991eb2d82c26c934d75893c905c
4
- data.tar.gz: f247fb3e745a6c9c479a2a1444703c93ad6271b3cb007ff8cf0ac4eb896426e1
3
+ metadata.gz: 306133cd86d46867056bd6bf220111b843d0edae82af69e3e428aba627377f56
4
+ data.tar.gz: 7652de8fdc6c86124994ba0b66d78a403baa779eb4b27ed2de0f1862cb7867be
5
5
  SHA512:
6
- metadata.gz: 91e3564bb0115c59cb5fea76054dbbf03c2a8680081a6f7d42dcc11a9bc818413f7a6a9c7c4cd03d2653f9d86b70392a391473e2f14dece7e3b6ba356e495a60
7
- data.tar.gz: 3b04556650e6850eb6fd9a54d783d18c8639d45ac80d50d469f30eedac571300b717bff37bb2dfe0e235cc15fffe9dbe608eff7965336dcced4635fbeb448ab2
6
+ metadata.gz: 45dd940aa1b6cd7aa5378fb2a401158dbb482c6d3171925bcb2ad3a68ed2e017dff6738c6d40c4ee061a6f25a2b4ba582c480ef103a7ebda041f3a7d5ca9657f
7
+ data.tar.gz: 725ee6aeb23a0ad23905b5f6e39c2d66d24461976a6318d35db4bd0839d70314f743e84cefa4ca63cfe11b8f49099b1a2f9a6a1d4bae987826b95f9545c8a75b
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.6.2](https://github.com/puppetlabs/puppet-resource_api/tree/v1.6.2) (2018-10-25)
7
+ [Full Changelog](https://github.com/puppetlabs/puppet-resource_api/compare/v1.6.1...v1.6.2)
8
+
9
+ **Fixed bugs:**
10
+
11
+ - \(PDK-1209\) Fix the other call-sites of const\_defined? and const\_get [\#134](https://github.com/puppetlabs/puppet-resource_api/pull/134) ([DavidS](https://github.com/DavidS))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Release prep for v1.6.1 [\#133](https://github.com/puppetlabs/puppet-resource_api/pull/133) ([DavidS](https://github.com/DavidS))
16
+
6
17
  ## [v1.6.1](https://github.com/puppetlabs/puppet-resource_api/tree/v1.6.1) (2018-10-25)
7
18
  [Full Changelog](https://github.com/puppetlabs/puppet-resource_api/compare/v1.6.0...v1.6.1)
8
19
 
@@ -543,16 +543,16 @@ MESSAGE
543
543
  def load_default_provider(class_name, type_name_sym)
544
544
  # loads the "puppet/provider/#{type_name}/#{type_name}" file through puppet
545
545
  Puppet::Type.type(type_name_sym).provider(type_name_sym)
546
- Puppet::Provider.const_get(class_name).const_get(class_name)
546
+ Puppet::Provider.const_get(class_name, false).const_get(class_name, false)
547
547
  end
548
548
  module_function :load_default_provider # rubocop:disable Style/AccessModifierDeclarations
549
549
 
550
550
  def load_device_provider(class_name, type_name_sym, device_class_name, device_name_sym)
551
551
  # loads the "puppet/provider/#{type_name}/#{device_name}" file through puppet
552
552
  Puppet::Type.type(type_name_sym).provider(device_name_sym)
553
- provider_module = Puppet::Provider.const_get(class_name)
554
- if provider_module.const_defined?(device_class_name)
555
- provider_module.const_get(device_class_name)
553
+ provider_module = Puppet::Provider.const_get(class_name, false)
554
+ if provider_module.const_defined?(device_class_name, false)
555
+ provider_module.const_get(device_class_name, false)
556
556
  else
557
557
  load_default_provider(class_name, type_name_sym)
558
558
  end
@@ -1,5 +1,5 @@
1
1
  module Puppet
2
2
  module ResourceApi
3
- VERSION = '1.6.1'.freeze
3
+ VERSION = '1.6.2'.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.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Schmitt