Skip to content

Commit b2a23f2

Browse files
pdk (1.7.1) update
1 parent 8d48f56 commit b2a23f2

6 files changed

+27
-20
lines changed

.rubocop.yml

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ AllCops:
1919
Metrics/LineLength:
2020
Description: People have wide screens, use them.
2121
Max: 200
22+
GetText/DecorateString:
23+
Description: We don't want to decorate test output.
24+
Exclude:
25+
- spec/*
2226
RSpec/BeforeAfterAll:
2327
Description: Beware of using after(:all) as it may cause state to leak between tests.
2428
A necessary evil in acceptance testing.

.travis.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ script:
1313
- 'bundle exec rake $CHECK'
1414
bundler_args: --without system_tests
1515
rvm:
16-
- 2.4.4
16+
- 2.5.0
1717
env:
1818
global:
19-
- BEAKER_PUPPET_COLLECTION=puppet5 PUPPET_GEM_VERSION="~> 5.0"
19+
- BEAKER_PUPPET_COLLECTION=puppet6 PUPPET_GEM_VERSION="~> 6.0"
2020
matrix:
2121
fast_finish: true
2222
include:
2323
-
2424
env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
2525
-
2626
env: CHECK=parallel_spec
27+
-
28+
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
29+
rvm: 2.4.4
2730
-
2831
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
2932
rvm: 2.1.9

Gemfile

+7-15
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
22

33
def location_for(place_or_version, fake_version = nil)
4-
if place_or_version =~ %r{\A(git[:@][^#]*)#(.*)}
5-
[fake_version, { git: Regexp.last_match(1), branch: Regexp.last_match(2), require: false }].compact
6-
elsif place_or_version =~ %r{\Afile:\/\/(.*)}
7-
['>= 0', { path: File.expand_path(Regexp.last_match(1)), require: false }]
8-
else
9-
[place_or_version, { require: false }]
10-
end
11-
end
4+
git_url_regex = %r{\A(?<url>(https?|git)[:@][^#]*)(#(?<branch>.*))?}
5+
file_url_regex = %r{\Afile:\/\/(?<path>.*)}
126

13-
def gem_type(place_or_version)
14-
if place_or_version =~ %r{\Agit[:@]}
15-
:git
16-
elsif !place_or_version.nil? && place_or_version.start_with?('file:')
17-
:file
7+
if place_or_version && (git_url = place_or_version.match(git_url_regex))
8+
[fake_version, { git: git_url[:url], branch: git_url[:branch], require: false }].compact
9+
elsif place_or_version && (file_url = place_or_version.match(file_url_regex))
10+
['>= 0', { path: File.expand_path(file_url[:path]), require: false }]
1811
else
19-
:gem
12+
[place_or_version, { require: false }]
2013
end
2114
end
2215

@@ -36,7 +29,6 @@ group :development do
3629
end
3730

3831
puppet_version = ENV['PUPPET_GEM_VERSION']
39-
puppet_type = gem_type(puppet_version)
4032
facter_version = ENV['FACTER_GEM_VERSION']
4133
hiera_version = ENV['HIERA_GEM_VERSION']
4234

appveyor.yml

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ environment:
3030
PUPPET_GEM_VERSION: ~> 5.0
3131
RUBY_VERSION: 24-x64
3232
CHECK: parallel_spec
33+
-
34+
PUPPET_GEM_VERSION: ~> 6.0
35+
RUBY_VERSION: 25
36+
CHECK: parallel_spec
37+
-
38+
PUPPET_GEM_VERSION: ~> 6.0
39+
RUBY_VERSION: 25-x64
40+
CHECK: parallel_spec
3341
matrix:
3442
fast_finish: true
3543
install:

metadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@
8686
"monitoring"
8787
],
8888
"template-url": "file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git",
89-
"template-ref": "1.7.0-0-g57412ed",
90-
"pdk-version": "1.7.0"
89+
"template-ref": "1.7.1-0-g810b982",
90+
"pdk-version": "1.7.1"
9191
}

spec/default_facts.yml

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

0 commit comments

Comments
 (0)