Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(IAC-859) Add ruby 2.7 to test matrix #276

Merged
merged 2 commits into from
Nov 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
- rvm: 2.5.7
env: PUPPET_GEM_VERSION='~> 6.14.0'
- rvm: 2.5.7
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#master'
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#main'
- rvm: 2.7
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#main'
- rvm: 2.4.3
env: PUPPET_GEM_VERSION='https://github.com/puppetlabs/puppet.git#5.5.x'
notifications:
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/resource_api/parameter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(type_name, data_type, attribute_name, resource_hash)
@type_name = type_name
@data_type = data_type
@attribute_name = attribute_name
super(resource_hash) # Pass resource to parent Puppet class.
super(**resource_hash) # Pass resource to parent Puppet class.
end

# This method assigns value to the parameter and cleans value.
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/resource_api/property.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(type_name, data_type, attribute_name, resource_hash)
# Define class method insync?(is) if the name is :ensure
def_insync? if @attribute_name == :ensure && self.class != Puppet::ResourceApi::Property
# Pass resource to parent Puppet class.
super(resource_hash)
super(**resource_hash)
end

# This method returns value of the property.
Expand Down