From f3b056680faa8687a96b5bb4de203fe4fca10cf5 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Mon, 31 Oct 2016 11:32:08 -0700 Subject: [PATCH 1/5] Release 1.0.0 This little tool has been around for a while. It's interface has been very stable and we can commit to not changing it without warning. --- README.md | 13 +++++++++++-- metadata-json-lint.gemspec | 4 ++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c483a9a..e9b1cef 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,17 @@ rake metadata_lint A Big thank you to the code contributors: -* Richard Pijnenburg +* Spencer Krum +* Rob Nelson +* Matthew Haughton * Dominic Cleal +* Tim Meusel * Igor Galić +* Richard Pijnenburg +* Djuri Baars +* Joseph (Jy) Yaworski * Mike Arnold - +* Nan Liu +* Raphaël Pinson +* Sebastien Badia +* William Van Hevelingen diff --git a/metadata-json-lint.gemspec b/metadata-json-lint.gemspec index b686450..513af48 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' From 3169332dd15632f2d07085cbc67eda7d93a21e02 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Mon, 31 Oct 2016 15:17:16 -0400 Subject: [PATCH 2/5] Do not limit our dependencies to pre v1 quality --- metadata-json-lint.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata-json-lint.gemspec b/metadata-json-lint.gemspec index 513af48..d7628cb 100644 --- a/metadata-json-lint.gemspec +++ b/metadata-json-lint.gemspec @@ -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 From 0d5fbcb0b5b39b72723faab01dec65da41881923 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Mon, 31 Oct 2016 15:18:07 -0400 Subject: [PATCH 3/5] Be explicit on supported platforms. --- .travis.yml | 18 +++++++++++++----- README.md | 5 +++++ 2 files changed, 18 insertions(+), 5 deletions(-) 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 e9b1cef..cf2ab76 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 From d6ab786cac3d02f9aab39a1d9d3ef7af57712c56 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Mon, 31 Oct 2016 15:18:23 -0400 Subject: [PATCH 4/5] Be verbose with tests. --- tests/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test.sh b/tests/test.sh index bf0af07..bdeeeae 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 .. From af3851c153aa9535697b4f79edcae4a72da7ee27 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Mon, 31 Oct 2016 15:20:08 -0400 Subject: [PATCH 5/5] Use GitHub's contributor list in README to prevent missing anyone --- README.md | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index cf2ab76..067e631 100644 --- a/README.md +++ b/README.md @@ -48,19 +48,5 @@ rake metadata_lint ## Contributors -A Big thank you to the code contributors: - -* Spencer Krum -* Rob Nelson -* Matthew Haughton -* Dominic Cleal -* Tim Meusel -* Igor Galić -* Richard Pijnenburg -* Djuri Baars -* Joseph (Jy) Yaworski -* Mike Arnold -* Nan Liu -* Raphaël Pinson -* Sebastien Badia -* William Van Hevelingen +A Big thank you to the +[contributors](https://github.com/voxpupuli/metadata-json-lint/graphs/contributors)