Skip to content

Commit 441ae77

Browse files
committed
pdk update
1 parent f47ac68 commit 441ae77

9 files changed

+35
-11
lines changed

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.rb eol=lf
2+
*.erb eol=lf
3+
*.pp eol=lf
4+
*.sh eol=lf
5+
*.epp eol=lf

.pdkignore

+13
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,16 @@
2222
/convert_report.txt
2323
/update_report.txt
2424
.DS_Store
25+
/appveyor.yml
26+
/.fixtures.yml
27+
/Gemfile
28+
/.gitattributes
29+
/.gitignore
30+
/.gitlab-ci.yml
31+
/.pdkignore
32+
/Rakefile
33+
/.rspec
34+
/.rubocop.yml
35+
/.travis.yml
36+
/.yardopts
37+
/spec/

.puppet-lint.rc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--relative
2+
--no-2sp_soft_tabs-check
3+
--no-arrow_alignment-check

.travis.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
---
2-
sudo: false
32
dist: trusty
43
language: ruby
54
cache: bundler
65
before_install:
6+
- if [ $BUNDLER_VERSION ]; then
7+
gem install -v $BUNDLER_VERSION bundler --no-rdoc --no-ri;
8+
fi
79
- bundle -v
810
- rm -f Gemfile.lock
9-
- gem update --system
11+
- gem update --system $RUBYGEMS_VERSION
1012
- gem --version
1113
- bundle -v
1214
script:
1315
- 'bundle exec rake $CHECK'
1416
bundler_args: --without system_tests
1517
rvm:
16-
- 2.5.0
18+
- 2.5.1
1719
env:
1820
global:
1921
- BEAKER_PUPPET_COLLECTION=puppet6 PUPPET_GEM_VERSION="~> 6.0"
@@ -28,7 +30,7 @@ matrix:
2830
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
2931
rvm: 2.4.4
3032
-
31-
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
33+
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec RUBYGEMS_VERSION=2.7.8 BUNDLER_VERSION=1.17.3
3234
rvm: 2.1.9
3335
branches:
3436
only:

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ group :development do
2121
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
2222
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
2323
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
24-
gem "json", '<= 2.0.4', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.4.4')
24+
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
25+
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2526
gem "puppet-module-posix-default-r#{minor_version}", require: false, platforms: [:ruby]
2627
gem "puppet-module-posix-dev-r#{minor_version}", require: false, platforms: [:ruby]
2728
gem "puppet-module-win-default-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw]

Rakefile

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ require 'puppetlabs_spec_helper/rake_tasks'
22
require 'puppet-syntax/tasks/puppet-syntax'
33
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
44
require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
5+
require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any?
56

67
def changelog_user
78
return unless Rake.application.top_level_tasks.include? "changelog"

metadata.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"version_requirement": ">= 4.0"
7777
}
7878
],
79-
"pdk-version": "1.8.0.pre (heads/master-0-g3527c5c)",
79+
"pdk-version": "1.9.0.pre (heads/master-0-g24ff96b)",
8080
"template-url": "https://github.com/puppetlabs/pdk-templates",
81-
"template-ref": "heads/master-0-gde71a15"
82-
}
81+
"template-ref": "heads/master-0-ge116657"
82+
}

spec/default_facts.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#
33
# Facts specified here will override the values provided by rspec-puppet-facts.
44
---
5-
concat_basedir: ""
65
ipaddress: "172.16.254.254"
76
is_pe: false
87
macaddress: "AA:AA:AA:AA:AA:AA"

spec/spec_helper.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040

4141
def ensure_module_defined(module_name)
4242
module_name.split('::').reduce(Object) do |last_module, next_module|
43-
last_module.const_set(next_module, Module.new) unless last_module.const_defined?(next_module)
44-
last_module.const_get(next_module)
43+
last_module.const_set(next_module, Module.new) unless last_module.const_defined?(next_module, false)
44+
last_module.const_get(next_module, false)
4545
end
4646
end
4747

0 commit comments

Comments
 (0)