Skip to content

Commit 210702b

Browse files
authored
Merge pull request #1025 from puppetlabs/maint_modsync_1d81b6a
(maint) - modulesync 1d81b6a
2 parents 5463378 + e5b7a45 commit 210702b

File tree

7 files changed

+13
-15
lines changed

7 files changed

+13
-15
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ matrix:
2222
script: bundle exec rake beaker
2323
services: docker
2424
sudo: required
25-
- rvm: 2.4.0
25+
- rvm: 2.4.1
2626
bundler_args: --without system_tests
2727
env: PUPPET_GEM_VERSION="~> 5.0"
2828
- rvm: 2.1.9
2929
bundler_args: --without system_tests
3030
env: PUPPET_GEM_VERSION="~> 4.0"
3131
- rvm: 2.1.9
32-
script: bundle exec rubocop lib
32+
script: bundle exec rake rubocop
3333
notifications:
3434
email: false

Gemfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ end
3131
supports_windows = false
3232
ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
3333
minor_version = "#{ruby_version_segments[0]}.#{ruby_version_segments[1]}"
34+
3435
group :development do
3536
gem "puppet-module-posix-default-r#{minor_version}", :require => false, :platforms => "ruby"
3637
gem "puppet-module-win-default-r#{minor_version}", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
@@ -44,16 +45,12 @@ end
4445
group :system_tests do
4546
gem "puppet-module-posix-system-r#{minor_version}", :require => false, :platforms => "ruby"
4647
gem "puppet-module-win-system-r#{minor_version}", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
47-
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '>= 3')
48+
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '>= 3')
4849
gem "beaker-pe", :require => false
49-
gem "beaker-rspec", *location_for(ENV['BEAKER_RSPEC_VERSION'])
50+
gem "beaker-rspec", *location_for(ENV['BEAKER_RSPEC_VERSION'])
5051
gem "beaker-hostgenerator", *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
51-
gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')
52+
gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')
5253
gem "puppet-blacksmith", '~> 3.4', :require => false
53-
gem "puppet-lint-i18n"
54-
gem "puppet_pot_generator"
55-
gem "rubocop-i18n", '~> 1.0'
56-
gem "beaker-i18n_helper"
5754
end
5855

5956
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require 'puppetlabs_spec_helper/rake_tasks'
22
require 'puppet-lint/tasks/puppet-lint'
3-
require 'puppet_pot_generator/rake_tasks' if Bundler.rubygems.find_name('puppet_pot_generator').any?
43
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
54

65
PuppetLint.configuration.fail_on_warnings = true

locales/config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ gettext:
2222
# Patterns for +Dir.glob+ used to find all files that might contain
2323
# translatable content, relative to the project root directory
2424
source_files:
25-
- './lib/**/*.rb'
25+
- './lib/**/*.rb'
26+

spec/acceptance/sql_task_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class { 'mysql::server': root_password => 'password' }
1111
}
1212
EOS
1313

14-
it "sets up a mysql instance" do
14+
it 'sets up a mysql instance' do
1515
apply_manifest(pp, catch_failures: true)
1616
end
1717

spec/spec_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
# put local configuration and setup into spec_helper_local
55
begin
66
require 'spec_helper_local'
7-
rescue LoadError
7+
rescue LoadError => loaderror
8+
puts "Could not require spec_helper_local: #{loaderror.message}"
89
end

tasks/sql.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def get(sql, database, user, password)
88
cmd_string << " --database=#{database}" unless database.nil?
99
cmd_string << " --user=#{user}" unless user.nil?
1010
cmd_string << " --password=#{password}" unless password.nil?
11-
stdout, stderr, status = Open3.capture3(cmd_string)
12-
raise Puppet::Error, _("stderr: '#{stderr}'") if status != 0
11+
stdout, _stderr, status = Open3.capture3(cmd_string)
12+
raise Puppet::Error, _("stderr: ' %{stderr}') % { stderr: stderr }") if status != 0
1313
{ status: stdout.strip }
1414
end
1515

0 commit comments

Comments
 (0)