diff --git a/.gitignore b/.gitignore index 8894657..a861129 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ pkg/ Gemfile.lock vendor/ +.vendor/ spec/fixtures/ .vagrant/ .bundle/ diff --git a/.travis.yml b/.travis.yml index 8fec36e..d208022 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,19 +9,17 @@ script: matrix: fast_finish: true include: - - rvm: 1.9.3 + - rvm: jruby-19mode env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test - - rvm: 2.1.8 + - rvm: jruby-19mode + env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test + - rvm: 2.1 env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test - - rvm: 1.9.3 - env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test FUTURE_PARSER=yes - - rvm: 2.1.8 - env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test FUTURE_PARSER=yes - - rvm: 2.1.8 + - rvm: 2.1 env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test - - rvm: 2.2.4 + - rvm: 2.2 env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test - - rvm: 2.2.4 + - rvm: 2.3.0 env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=rubocop - rvm: 2.3.0 env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test diff --git a/.yardopts b/.yardopts new file mode 100644 index 0000000..29c933b --- /dev/null +++ b/.yardopts @@ -0,0 +1 @@ +--markup markdown diff --git a/Gemfile b/Gemfile index 66ed713..f244141 100644 --- a/Gemfile +++ b/Gemfile @@ -14,12 +14,13 @@ group :test do gem 'rake', :require => false gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git' gem 'puppet-lint', :require => false, :git => 'https://github.com/rodjek/puppet-lint.git' + gem 'puppet-strings', :require => false, :git => 'https://github.com/puppetlabs/puppetlabs-strings.git' gem 'metadata-json-lint', :require => false gem 'rspec-puppet-facts', :require => false gem 'rspec', :require => false gem 'puppet-blacksmith', :require => false, :git => 'https://github.com/voxpupuli/puppet-blacksmith.git' gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem.git' - gem 'rubocop', '~> 0.38', :require => false + gem 'rubocop', '~> 0.39', :require => false gem 'rspec-puppet-utils', :require => false gem 'puppetlabs_spec_helper', :require => false gem 'puppet-lint-absolute_classname-check', :require => false @@ -58,7 +59,7 @@ else gem 'facter', :require => false, :groups => [:test] end -ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 3.0' : puppetversion = ENV['PUPPET_VERSION'].to_s +ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 4.0' : puppetversion = ENV['PUPPET_VERSION'].to_s gem 'puppet', puppetversion, :require => false, :groups => [:test] # vim:ft=ruby diff --git a/Rakefile b/Rakefile index 0ffcb86..2e18119 100644 --- a/Rakefile +++ b/Rakefile @@ -5,6 +5,7 @@ require 'metadata-json-lint/rake_task' require 'puppet_blacksmith/rake_tasks' require 'voxpupuli/release/rake_tasks' require 'rubocop/rake_task' +require 'puppet-strings/rake_tasks' RuboCop::RakeTask.new