Skip to content

Commit 92f86b6

Browse files
authored
Merge pull request #570 from voxpupuli/modulesync
modulesync 2.10.1
2 parents b009b63 + 839e13e commit 92f86b6

File tree

6 files changed

+11
-17
lines changed

6 files changed

+11
-17
lines changed

.msync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
modulesync_config_version: '2.9.0'
1+
modulesync_config_version: '2.10.1'

.rubocop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require: rubocop-rspec
22
AllCops:
3-
TargetRubyVersion: 1.9
3+
TargetRubyVersion: 2.1
44
Include:
55
- ./**/*.rb
66
Exclude:
@@ -545,4 +545,4 @@ RSpec/FilePath:
545545
Enabled: false
546546

547547
RSpec/MessageSpies:
548-
EnforcedStyle: receive
548+
EnforcedStyle: receive

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ dist: bionic
33
language: ruby
44
cache: bundler
55
before_install:
6-
- gem update --system
7-
- gem update bundler
6+
- yes | gem update --system
87
- bundle --version
98
script:
109
- 'bundle exec rake $CHECK'
@@ -37,6 +36,7 @@ branches:
3736
- /^v\d/
3837
notifications:
3938
email: false
39+
webhooks: https://voxpupu.li/incoming/travis
4040
irc:
4141
on_success: always
4242
on_failure: always

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ group :test do
2020
gem 'puppet-lint-classes_and_types_beginning_with_digits-check', :require => false
2121
gem 'puppet-lint-unquoted_string-check', :require => false
2222
gem 'puppet-lint-variable_contains_upcase', :require => false
23-
gem 'puppet-lint-absolute_classname-check', :require => false
23+
gem 'puppet-lint-absolute_classname-check', '>= 2.0.0', :require => false
2424
gem 'puppet-lint-topscope-variable-check', :require => false
2525
gem 'puppet-lint-legacy_facts-check', :require => false
2626
gem 'puppet-lint-anchor-check', :require => false

Rakefile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@ rescue LoadError
88
end
99

1010
PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
11-
PuppetLint.configuration.absolute_classname_reverse = true
12-
13-
exclude_paths = %w(
14-
pkg/**/*
15-
vendor/**/*
16-
.vendor/**/*
17-
spec/**/*
18-
)
19-
PuppetLint.configuration.ignore_paths = exclude_paths
20-
PuppetSyntax.exclude_paths = exclude_paths
2111

2212
desc 'Auto-correct puppet-lint offenses'
2313
task 'lint:auto_correct' do

spec/spec_helper.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@
4848
# Otherwise we need to match the correct facter version to the used puppet version.
4949
# as of 2019-10-31, puppet 5 ships facter 3.11 and puppet 6 ships facter 3.14
5050
# https://puppet.com/docs/puppet/5.5/about_agent.html
51+
#
52+
# The environment variable `PUPPET_VERSION` is available in our travis environment, but we cannot rely on it
53+
# if somebody runs the tests locally. For that case we should fallback the the puppet gem version.
5154
c.default_facter_version = if ENV['FACTERDB_FACTS_VERSION']
5255
ENV['FACTERDB_FACTS_VERSION']
5356
else
54-
Gem::Dependency.new('', ENV['PUPPET_VERSION']).match?('', '5') ? '3.11.0' : '3.14.0'
57+
puppet_version = ENV['PUPPET_VERSION'] ? ENV['PUPPET_VERSION'] : Gem.loaded_specs['puppet'].version.to_s
58+
Gem::Dependency.new('', puppet_version).match?('', '5') ? '3.11.0' : '3.14.0'
5559
end
5660

5761
# Coverage generation

0 commit comments

Comments
 (0)