diff --git a/.travis.yml b/.travis.yml index 79703af..0771acb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,17 @@ -notifications: - email: false +--- language: ruby + script: -- bundle exec rubocop -- tests/test.sh + - bundle exec rubocop + - tests/test.sh + sudo: false + rvm: -- 2.2 + - 2.0.0 + - 2.1.9 + - 2.3.1 + deploy: provider: rubygems api_key: @@ -15,3 +20,6 @@ deploy: on: tags: true repo: voxpupuli/metadata-json-lint + +notifications: + email: false diff --git a/README.md b/README.md index c483a9a..067e631 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ Simple tool to validate and lint `metadata.json` files in Puppet modules as recommended in Puppet Forge style guidelines from [Puppet forge metadata style quide](https://docs.puppetlabs.com/puppet/latest/reference/modules_publishing.html#write-a-metadatajson-file) +## Compatibility + +metadata-json-lint is compatible with Ruby versions 2.0.0, 2.1.9 and +2.3.1. + ## Installation ```shell @@ -43,10 +48,5 @@ rake metadata_lint ## Contributors -A Big thank you to the code contributors: - -* Richard Pijnenburg -* Dominic Cleal -* Igor Galić -* Mike Arnold - +A Big thank you to the +[contributors](https://github.com/voxpupuli/metadata-json-lint/graphs/contributors) diff --git a/metadata-json-lint.gemspec b/metadata-json-lint.gemspec index b686450..d7628cb 100644 --- a/metadata-json-lint.gemspec +++ b/metadata-json-lint.gemspec @@ -1,10 +1,10 @@ Gem::Specification.new do |s| s.name = 'metadata-json-lint' - s.version = '0.0.19' + s.version = '1.0.0' s.date = '2016-10-19' s.summary = 'metadata-json-lint /path/to/metadata.json' s.description = 'Utility to verify Puppet metadata.json files' - s.authors = ['Spencer Krum', 'Vox Pupuli'] + s.authors = ['Vox Pupuli'] s.email = 'voxpupuli@groups.io' s.files = ['bin/metadata-json-lint', 'lib/metadata_json_lint.rb', 'lib/metadata-json-lint/rake_task.rb'] s.executables << 'metadata-json-lint' @@ -13,7 +13,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'spdx-licenses', '~> 1.0' s.add_runtime_dependency 'json' - s.add_runtime_dependency 'semantic_puppet', '>= 0.1.2', '< 1.0.0' + s.add_runtime_dependency 'semantic_puppet', '>= 0.1.2', '< 2.0.0' s.add_development_dependency 'rake' s.add_development_dependency 'rubocop' end diff --git a/tests/test.sh b/tests/test.sh index 9d4fb8d..e795c16 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -21,6 +21,8 @@ test() { RESULT=$? if [ $RESULT -ne $expect ]; then fail "Failing Test '${name}' (bin)" + else + echo "Successful Test '${name}' (bin)" fi # Only check the Rakefile when no additional arguments were passed to metadata-json-lint. @@ -30,6 +32,8 @@ test() { RESULT=$? if [ $RESULT -ne $expect ]; then fail "Failing Test '${name}' (rake)" + else + echo "Successful Test '${name}' (rake)" fi fi cd ..