metadata-json-lint 2.4.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39ea4bb8245d43d512bfe5836736e3f75169e607e96cb3e4648ece6acad15682
4
- data.tar.gz: 15bd5d92e4fc67f302dea753e152b535855304f9e981e3dc3d53aaa09a76bb11
3
+ metadata.gz: a1036e4f4179fccfbd7488937108d8f438994c29db5f0cfbd6e84db74bd31dc4
4
+ data.tar.gz: dfefd1e61975162c0823543f2a7a514e2b62039c605db8901536ea212cc44b29
5
5
  SHA512:
6
- metadata.gz: '090f8e01dbb74ac8cf3e50169127a9d7f91ec7c7b74163a2d34850f1ac138976f45a946aea9250611b8c9011f905edb7f11f463891cab97d0ebf1289209cd88b'
7
- data.tar.gz: 7ff331f16fa434fbf026e2713542b14e959a468e2e944846cffd058db57e80bf60642541c347bb4ce9813c4a52bd8de9f094019a13650ded29de8075ab18c93f
6
+ metadata.gz: 1523f620322d4de61fd91244623aa0bf6230bbad016486ed17bb414ccd96e6320ba27b94cb9ac549d599771f10870d8f72f18d92125702a4ec64f3024915e1f0
7
+ data.tar.gz: 2374ddb87307f429f6c16510360984d50acebe8aeeb61b563d02f3682a8cf99372379b01900791ae77f8812d2d8d1f7f0eb6207f3cf420d055df10eadcf6dce2
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "13:00"
8
+ open-pull-requests-limit: 10
@@ -0,0 +1,32 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ if: github.repository_owner == 'voxpupuli'
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Install Ruby 3.0
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: '3.0'
18
+ env:
19
+ BUNDLE_WITHOUT: release
20
+ - name: Build gem
21
+ run: gem build *.gemspec
22
+ - name: Publish gem to rubygems.org
23
+ run: gem push *.gem
24
+ env:
25
+ GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
26
+ - name: Setup GitHub packages access
27
+ run: |
28
+ mkdir -p ~/.gem
29
+ echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
30
+ chmod 0600 ~/.gem/credentials
31
+ - name: Publish gem to GitHub packages
32
+ run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
@@ -0,0 +1,36 @@
1
+ name: Test
2
+
3
+ on:
4
+ - pull_request
5
+ - push
6
+
7
+ env:
8
+ BUNDLE_WITHOUT: release
9
+
10
+ jobs:
11
+ rspec:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: true
15
+ matrix:
16
+ include:
17
+ - ruby: "2.4"
18
+ - ruby: "2.5"
19
+ - ruby: "2.6"
20
+ - ruby: "2.7"
21
+ - ruby: "3.0"
22
+ coverage: "yes"
23
+ env:
24
+ COVERAGE: ${{ matrix.coverage }}
25
+ name: RSpec - Ruby ${{ matrix.ruby }}
26
+ steps:
27
+ - uses: actions/checkout@v2
28
+ - name: Install Ruby ${{ matrix.ruby }}
29
+ uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby }}
32
+ bundler-cache: true
33
+ - name: spec tests
34
+ run: bundle exec rake test
35
+ - name: Verify gem builds
36
+ run: gem build *.gemspec
data/.rubocop.yml CHANGED
@@ -27,3 +27,9 @@ Metrics/PerceivedComplexity:
27
27
 
28
28
  Metrics/ModuleLength:
29
29
  Max: 185
30
+
31
+ Style/TrailingCommaInHashLiteral:
32
+ EnforcedStyleForMultiline: consistent_comma
33
+
34
+ Style/AccessModifierDeclarations:
35
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,10 +1,39 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ ## [3.0.2](https://github.com/voxpupuli/metadata-json-lint/tree/3.0.2) (2022-05-03)
4
4
 
5
- ## [v2.4.0](https://github.com/voxpupuli/metadata-json-lint/tree/v2.4.0) (2020-06-12)
5
+ [Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/3.0.1...3.0.2)
6
6
 
7
- [Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/2.3.0...v2.4.0)
7
+ **Merged pull requests:**
8
+
9
+ - Update json-schema requirement from ~\> 2.8 to \>= 2.8, \< 4.0 [\#121](https://github.com/voxpupuli/metadata-json-lint/pull/121) ([dependabot[bot]](https://github.com/apps/dependabot))
10
+
11
+ ## [3.0.1](https://github.com/voxpupuli/metadata-json-lint/tree/3.0.1) (2021-08-13)
12
+
13
+ [Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/3.0.0...3.0.1)
14
+
15
+ **Closed issues:**
16
+
17
+ - For the license: missing a file and license headers in source files [\#115](https://github.com/voxpupuli/metadata-json-lint/issues/115)
18
+ - one test fails against ruby 2.7 when semantic\_puppet is not present [\#114](https://github.com/voxpupuli/metadata-json-lint/issues/114)
19
+ - Missing possibility to set options via spec\_helper.rb like rspec [\#18](https://github.com/voxpupuli/metadata-json-lint/issues/18)
20
+
21
+ **Merged pull requests:**
22
+
23
+ - Update rubocop requirement from ~\> 0.50.0 to ~\> 0.57.2 [\#117](https://github.com/voxpupuli/metadata-json-lint/pull/117) ([dependabot[bot]](https://github.com/apps/dependabot))
24
+ - Add GitHub actions + badges [\#116](https://github.com/voxpupuli/metadata-json-lint/pull/116) ([bastelfreak](https://github.com/bastelfreak))
25
+
26
+ ## [3.0.0](https://github.com/voxpupuli/metadata-json-lint/tree/3.0.0) (2020-11-24)
27
+
28
+ [Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/2.4.0...3.0.0)
29
+
30
+ **Merged pull requests:**
31
+
32
+ - Require Ruby 2.1 and drop post\_install\_message [\#112](https://github.com/voxpupuli/metadata-json-lint/pull/112) ([ekohl](https://github.com/ekohl))
33
+
34
+ ## [2.4.0](https://github.com/voxpupuli/metadata-json-lint/tree/2.4.0) (2020-06-12)
35
+
36
+ [Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/2.3.0...2.4.0)
8
37
 
9
38
  **Merged pull requests:**
10
39
 
data/Gemfile CHANGED
@@ -5,3 +5,8 @@ gemspec
5
5
  group :release do
6
6
  gem 'github_changelog_generator', :require => false
7
7
  end
8
+
9
+ group :coverage, optional: ENV['COVERAGE'] != 'yes' do
10
+ gem 'codecov', :require => false
11
+ gem 'simplecov-console', :require => false
12
+ end
data/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # metadata-json-lint
2
2
 
3
+ [![License](https://img.shields.io/github/license/voxpupuli/metadata-json-lint.svg)](https://github.com/voxpupuli/metadata-json-lint/blob/master/LICENSE)
4
+ [![Test](https://github.com/voxpupuli/metadata-json-lint/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/metadata-json-lint/actions/workflows/test.yml)
5
+ [![codecov](https://codecov.io/gh/voxpupuli/metadata-json-lint/branch/master/graph/badge.svg)](https://codecov.io/gh/voxpupuli/metadata-json-lint)
6
+ [![Release](https://github.com/voxpupuli/metadata-json-lint/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/metadata-json-lint/actions/workflows/release.yml)
7
+ [![RubyGem Version](https://img.shields.io/gem/v/metadata-json-lint.svg)](https://rubygems.org/gems/metadata-json-lint)
8
+ [![RubyGem Downloads](https://img.shields.io/gem/dt/metadata-json-lint.svg)](https://rubygems.org/gems/metadata-json-lint)
9
+
3
10
  The metadata-json-lint tool validates and lints `metadata.json` files in Puppet modules against style guidelines from the [Puppet Forge module metadata](https://docs.puppet.com/puppet/latest/modules_publishing.html#write-a-metadatajson-file) recommendations.
4
11
 
5
12
  ## Compatibility
@@ -63,21 +70,63 @@ MetadataJsonLint.options.strict_license = false
63
70
  * `--[no-]fail-on-warnings`: Whether to fail on warnings. Defaults to `true`.
64
71
  * `--[no-]strict-puppet-version`: Whether to fail if Puppet version requirements are open-ended or no longer supported. Defaults to `false`.
65
72
 
73
+ ## Contributors
74
+
75
+ A big thank you to the [contributors](https://github.com/voxpupuli/metadata-json-lint/graphs/contributors).
76
+
77
+ ## Making a new release
66
78
 
67
- ## Make a new release
79
+ How to make a new release?
68
80
 
69
- To make a new release, we need to install the release gem group:
81
+ * update the gemspec file with the desired version
70
82
 
71
- ```sh
72
- bundle install --path .vendor/ --with release
83
+ ```console
84
+ $ git diff
85
+ diff --git a/metadata-json-lint.gemspec b/metadata-json-lint.gemspec
86
+ index c86668e..6a3ad38 100644
87
+ --- a/metadata-json-lint.gemspec
88
+ +++ b/metadata-json-lint.gemspec
89
+ @@ -2,7 +2,7 @@ require 'date'
90
+
91
+ Gem::Specification.new do |s|
92
+ s.name = 'metadata-json-lint'
93
+ - s.version = '2.4.0'
94
+ + s.version = '2.5.0'
95
+ s.date = Date.today.to_s
96
+ s.summary = 'metadata-json-lint /path/to/metadata.json'
97
+ s.description = 'Utility to verify Puppet metadata.json files'
73
98
  ```
74
99
 
75
- Afterwards export a GitHub access token (otherwise you might run into API rate limits):
100
+ * export a GitHub access token as environment variable:
76
101
 
77
- ```sh
78
- export CHANGELOG_GITHUB_TOKEN=...
102
+ ```console
103
+ export CHANGELOG_GITHUB_TOKEN=*token*
79
104
  ```
80
105
 
81
- ## Contributors
106
+ * Install deps and generate the changelog
107
+
108
+ ```console
109
+ $ bundle install --path .vendor/ --jobs=$(nproc) --with release
110
+ $ bundle exec rake changelog
111
+ Found 25 tags
112
+ Fetching tags dates: 25/25
113
+ Sorting tags...
114
+ Received issues: 103
115
+ Pull Request count: 77
116
+ Filtered pull requests: 72
117
+ Filtered issues: 26
118
+ Fetching events for issues and PR: 98
119
+ Fetching closed dates for issues: 98/98
120
+ Fetching SHAs for tags: 25
121
+ Associating PRs with tags: 72/72
122
+ Generating entry...
123
+ Done!
124
+ Generated log placed in ~/metadata-json-lint/CHANGELOG.md
125
+ ```
82
126
 
83
- A big thank you to the [contributors](https://github.com/voxpupuli/metadata-json-lint/graphs/contributors).
127
+ * Check the diff for `CHANGELOG.md`. Does it contain a breaking change but the
128
+ new version is only a minor bump? Does the new release only contains bug fixes?
129
+ Adjust the version properly while honouring semantic versioning. If required,
130
+ regenerate the `CHANGELOG.md`. Afterwards submit it as a PR.
131
+
132
+ * If it gets approved, merge the PR, create a git tag on that and push it.
data/Rakefile CHANGED
@@ -2,7 +2,18 @@ desc 'Run all tests'
2
2
  task :test => %i[rubocop spec test:acceptance]
3
3
 
4
4
  require 'rubocop/rake_task'
5
- RuboCop::RakeTask.new
5
+ RuboCop::RakeTask.new(:rubocop) do |task|
6
+ # These make the rubocop experience maybe slightly less terrible
7
+ task.options = ['-D', '-S', '-E']
8
+
9
+ # Use Rubocop's Github Actions formatter if possible
10
+ if ENV['GITHUB_ACTIONS'] == 'true'
11
+ rubocop_spec = Gem::Specification.find_by_name('rubocop')
12
+ if Gem::Version.new(rubocop_spec.version) >= Gem::Version.new('1.2')
13
+ task.formatters << 'github'
14
+ end
15
+ end
16
+ end
6
17
 
7
18
  namespace :test do
8
19
  desc 'Acceptance suite under test/ which runs metadata-json-lint against sample files with expected output'
@@ -15,15 +26,15 @@ require 'rspec/core/rake_task'
15
26
  RSpec::Core::RakeTask.new(:spec)
16
27
 
17
28
  begin
29
+ require 'rubygems'
18
30
  require 'github_changelog_generator/task'
19
-
31
+ rescue LoadError # rubocop:disable Lint/HandleExceptions
32
+ else
20
33
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
21
- config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
22
34
  config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]
23
35
  config.user = 'voxpupuli'
24
36
  config.project = 'metadata-json-lint'
25
- config.future_release = "v#{Gem::Specification.load("#{config.project}.gemspec").version}"
37
+ gem_version = Gem::Specification.load("#{config.project}.gemspec").version
38
+ config.future_release = gem_version
26
39
  end
27
- rescue LoadError
28
- puts 'no github_changelog_generator gem available'
29
40
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- lib = File.expand_path('../../lib', __FILE__)
3
+ lib = File.expand_path('../lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  require 'metadata_json_lint'
@@ -9,7 +9,6 @@ module MetadataJsonLint
9
9
  class Schema
10
10
  # Based on https://docs.puppet.com/puppet/latest/modules_metadata.html
11
11
  #
12
- # rubocop:disable Style/TrailingCommaInLiteral # easier to modify individual lines
13
12
  def schema
14
13
  {
15
14
  '$schema' => 'http://json-schema.org/draft-04/schema#',
@@ -101,7 +100,7 @@ module MetadataJsonLint
101
100
  'tags' => {
102
101
  'type' => 'array',
103
102
  'items' => {
104
- 'type' => 'string'
103
+ 'type' => 'string',
105
104
  },
106
105
  },
107
106
  'version' => {
@@ -121,7 +120,6 @@ module MetadataJsonLint
121
120
  ],
122
121
  }
123
122
  end
124
- # rubocop:enable Style/TrailingCommaInLiteral
125
123
 
126
124
  def validate(data, options = {})
127
125
  JSON::Validator.register_format_validator('semver', method(:semver_validator))
@@ -166,3 +164,4 @@ module MetadataJsonLint
166
164
  end
167
165
  end
168
166
  end
167
+ # rubocop:enable Metrics/ClassLength
@@ -2,7 +2,7 @@ require 'date'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'metadata-json-lint'
5
- s.version = '2.4.0'
5
+ s.version = '3.0.2'
6
6
  s.date = Date.today.to_s
7
7
  s.summary = 'metadata-json-lint /path/to/metadata.json'
8
8
  s.description = 'Utility to verify Puppet metadata.json files'
@@ -13,22 +13,15 @@ Gem::Specification.new do |s|
13
13
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
14
14
  s.test_files = s.files.grep(%r{^(tests|spec)/})
15
15
 
16
- s.homepage = 'http://github.com/voxpupuli/metadata-json-lint'
16
+ s.homepage = 'https://github.com/voxpupuli/metadata-json-lint'
17
17
  s.license = 'Apache-2.0'
18
18
 
19
- s.required_ruby_version = '>= 2.0.0'
19
+ s.required_ruby_version = '>= 2.1.0'
20
+ s.add_runtime_dependency 'json-schema', '>= 2.8', '< 4.0'
20
21
  s.add_runtime_dependency 'spdx-licenses', '~> 1.0'
21
- s.add_runtime_dependency 'json-schema', '~> 2.8'
22
22
  s.add_development_dependency 'pry'
23
23
  s.add_development_dependency 'rake'
24
- s.add_development_dependency 'semantic_puppet'
25
24
  s.add_development_dependency 'rspec'
26
- s.add_development_dependency 'rubocop', '~> 0.50.0'
27
- s.post_install_message = '
28
- ----------------------------------------------------------
29
- For the most accurate results, the semantic_puppet
30
- gem should be included within your Gemfile if you
31
- use Puppet <= 4.8.x
32
- ----------------------------------------------------------
33
- '.gsub(/^ /, '')
25
+ s.add_development_dependency 'rubocop', '~> 0.57.2'
26
+ s.add_development_dependency 'semantic_puppet'
34
27
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,27 @@
1
+ begin
2
+ require 'simplecov'
3
+ require 'simplecov-console'
4
+ require 'codecov'
5
+ rescue LoadError # rubocop:disable Lint/HandleExceptions
6
+ else
7
+ SimpleCov.start do
8
+ track_files 'lib/**/*.rb'
9
+
10
+ add_filter '/spec'
11
+
12
+ enable_coverage :branch
13
+
14
+ # do not track vendored files
15
+ add_filter '/vendor'
16
+ add_filter '/.vendor'
17
+ end
18
+
19
+ SimpleCov.formatters = [
20
+ SimpleCov::Formatter::Console,
21
+ SimpleCov::Formatter::Codecov
22
+ ]
23
+ end
24
+
1
25
  require 'metadata_json_lint'
2
26
 
3
27
  # This file was generated by the `rspec --init` command
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
data/tests/no_pe/Rakefile CHANGED
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,4 +1,4 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
3
3
 
4
4
  task :test => %i[metadata_lint success]
@@ -1,4 +1,4 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
3
3
  MetadataJsonLint.options.strict_license = false
4
4
  MetadataJsonLint.options.fail_on_warnings = false
@@ -1,4 +1,4 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata_json_lint'
3
3
  MetadataJsonLint.options.fail_on_warnings = false
4
4
 
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
data/tests/types/Rakefile CHANGED
@@ -1,2 +1,2 @@
1
- $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
1
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __dir__))
2
2
  require 'metadata-json-lint/rake_task'
metadata CHANGED
@@ -1,43 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata-json-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-12 00:00:00.000000000 Z
11
+ date: 2022-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: spdx-licenses
14
+ name: json-schema
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '2.8'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '4.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '1.0'
29
+ version: '2.8'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '4.0'
27
33
  - !ruby/object:Gem::Dependency
28
- name: json-schema
34
+ name: spdx-licenses
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '2.8'
39
+ version: '1.0'
34
40
  type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '2.8'
46
+ version: '1.0'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: pry
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +73,7 @@ dependencies:
67
73
  - !ruby/object:Gem::Version
68
74
  version: '0'
69
75
  - !ruby/object:Gem::Dependency
70
- name: semantic_puppet
76
+ name: rspec
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
79
  - - ">="
@@ -81,33 +87,33 @@ dependencies:
81
87
  - !ruby/object:Gem::Version
82
88
  version: '0'
83
89
  - !ruby/object:Gem::Dependency
84
- name: rspec
90
+ name: rubocop
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - ">="
93
+ - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '0'
95
+ version: 0.57.2
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - ">="
100
+ - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '0'
102
+ version: 0.57.2
97
103
  - !ruby/object:Gem::Dependency
98
- name: rubocop
104
+ name: semantic_puppet
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
- - - "~>"
107
+ - - ">="
102
108
  - !ruby/object:Gem::Version
103
- version: 0.50.0
109
+ version: '0'
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
- - - "~>"
114
+ - - ">="
109
115
  - !ruby/object:Gem::Version
110
- version: 0.50.0
116
+ version: '0'
111
117
  description: Utility to verify Puppet metadata.json files
112
118
  email: voxpupuli@groups.io
113
119
  executables:
@@ -115,11 +121,13 @@ executables:
115
121
  extensions: []
116
122
  extra_rdoc_files: []
117
123
  files:
124
+ - ".github/dependabot.yml"
125
+ - ".github/workflows/release.yml"
126
+ - ".github/workflows/test.yml"
118
127
  - ".gitignore"
119
128
  - ".rspec"
120
129
  - ".rubocop.yml"
121
130
  - ".rubocop_todo.yml"
122
- - ".travis.yml"
123
131
  - CHANGELOG.md
124
132
  - Gemfile
125
133
  - HISTORY.md
@@ -205,17 +213,11 @@ files:
205
213
  - tests/types/Rakefile
206
214
  - tests/types/expected
207
215
  - tests/types/metadata.json
208
- homepage: http://github.com/voxpupuli/metadata-json-lint
216
+ homepage: https://github.com/voxpupuli/metadata-json-lint
209
217
  licenses:
210
218
  - Apache-2.0
211
219
  metadata: {}
212
- post_install_message: |2
213
-
214
- ----------------------------------------------------------
215
- For the most accurate results, the semantic_puppet
216
- gem should be included within your Gemfile if you
217
- use Puppet <= 4.8.x
218
- ----------------------------------------------------------
220
+ post_install_message:
219
221
  rdoc_options: []
220
222
  require_paths:
221
223
  - lib
@@ -223,15 +225,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
225
  requirements:
224
226
  - - ">="
225
227
  - !ruby/object:Gem::Version
226
- version: 2.0.0
228
+ version: 2.1.0
227
229
  required_rubygems_version: !ruby/object:Gem::Requirement
228
230
  requirements:
229
231
  - - ">="
230
232
  - !ruby/object:Gem::Version
231
233
  version: '0'
232
234
  requirements: []
233
- rubyforge_project:
234
- rubygems_version: 2.7.7
235
+ rubygems_version: 3.2.33
235
236
  signing_key:
236
237
  specification_version: 4
237
238
  summary: metadata-json-lint /path/to/metadata.json
data/.travis.yml DELETED
@@ -1,32 +0,0 @@
1
- ---
2
- language: ruby
3
-
4
- script:
5
- - bundle exec rake test
6
-
7
- sudo: false
8
-
9
- rvm:
10
- - 2.1.9
11
- - 2.4.3
12
- - 2.4.4
13
- - 2.5.1
14
- - 2.7
15
-
16
- deploy:
17
- provider: rubygems
18
- api_key:
19
- secure: Rm6j/fS5n4TyqmqftwMj2Ebw0avsuDbuI9wVX4exUNiuQRru967QPrQinMuAwBGLCNYMs69ZHFBMkpk61khQGC3W7d5Yr/25HabnQBFpfO2llHhKKgM/Ckyqur+ku88EVJH9nRCDqOprJtC4RGHIA833ENL8xVP/VOvfiKG0Q14=
20
- gem: metadata-json-lint
21
- on:
22
- tags: true
23
- rvm: 2.5.1
24
- repo: voxpupuli/metadata-json-lint
25
-
26
- notifications:
27
- email: false
28
- irc:
29
- on_success: always
30
- on_failure: always
31
- channels:
32
- - "chat.freenode.org#voxpupuli-notifications"