metadata-json-lint 2.2.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +8 -0
  3. data/.github/workflows/release.yml +32 -0
  4. data/.github/workflows/test.yml +36 -0
  5. data/.gitignore +2 -1
  6. data/.rubocop.yml +7 -1
  7. data/CHANGELOG.md +55 -4
  8. data/Gemfile +8 -1
  9. data/HISTORY.md +107 -0
  10. data/LICENSE +174 -9
  11. data/README.md +65 -1
  12. data/Rakefile +26 -1
  13. data/bin/metadata-json-lint +1 -1
  14. data/lib/metadata-json-lint/schema.rb +2 -3
  15. data/lib/metadata_json_lint.rb +14 -0
  16. data/metadata-json-lint.gemspec +6 -13
  17. data/spec/spec_helper.rb +24 -0
  18. data/tests/bad_license/Rakefile +1 -1
  19. data/tests/broken/Rakefile +1 -1
  20. data/tests/duplicate-dep/Rakefile +1 -1
  21. data/tests/duplicate-requirement/Rakefile +2 -0
  22. data/tests/duplicate-requirement/expected +1 -0
  23. data/tests/duplicate-requirement/metadata.json +87 -0
  24. data/tests/json_format/Rakefile +1 -1
  25. data/tests/long_summary/Rakefile +1 -1
  26. data/tests/missing_version_requirement/Rakefile +1 -1
  27. data/tests/mixed_version_syntax/Rakefile +1 -1
  28. data/tests/multiple_problems/Rakefile +1 -1
  29. data/tests/no_dependencies/Rakefile +1 -1
  30. data/tests/no_pe/Rakefile +1 -1
  31. data/tests/no_version_range/Rakefile +1 -1
  32. data/tests/non_array_requirements/Rakefile +1 -1
  33. data/tests/noname/Rakefile +1 -1
  34. data/tests/open_ended_dependency/Rakefile +1 -1
  35. data/tests/perfect/Rakefile +1 -1
  36. data/tests/proprietary/Rakefile +1 -1
  37. data/tests/rake_chaining/Rakefile +1 -1
  38. data/tests/rake_global_options/Rakefile +1 -1
  39. data/tests/rake_multiple_json_options/Rakefile +1 -1
  40. data/tests/requirements_eol_version/Rakefile +1 -1
  41. data/tests/tags_no_array/Rakefile +1 -1
  42. data/tests/tags_with_array/Rakefile +1 -1
  43. data/tests/test.sh +3 -0
  44. data/tests/types/Rakefile +1 -1
  45. metadata +33 -31
  46. data/.travis.yml +0 -25
@@ -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/test.sh CHANGED
@@ -147,6 +147,9 @@ test "non_array_requirements" $FAILURE
147
147
  # Run against a metadata.json with an unsupported minimum Puppet version for the requirements
148
148
  test "requirements_eol_version" $FAILURE --strict-puppet-version
149
149
 
150
+ # Run a broken one, expect FAILURE
151
+ test "duplicate-requirement" $FAILURE
152
+
150
153
  # Test running without specifying file to parse
151
154
  cd perfect
152
155
  bundle exec metadata-json-lint
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,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata-json-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-26 00:00:00.000000000 Z
11
+ date: 2021-08-13 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
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2.8'
27
27
  - !ruby/object:Gem::Dependency
28
- name: json-schema
28
+ name: spdx-licenses
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.8'
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.8'
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: semantic_puppet
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,33 +81,33 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 0.57.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 0.57.2
97
97
  - !ruby/object:Gem::Dependency
98
- name: rubocop
98
+ name: semantic_puppet
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 0.50.0
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 0.50.0
110
+ version: '0'
111
111
  description: Utility to verify Puppet metadata.json files
112
112
  email: voxpupuli@groups.io
113
113
  executables:
@@ -115,13 +115,16 @@ executables:
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".github/dependabot.yml"
119
+ - ".github/workflows/release.yml"
120
+ - ".github/workflows/test.yml"
118
121
  - ".gitignore"
119
122
  - ".rspec"
120
123
  - ".rubocop.yml"
121
124
  - ".rubocop_todo.yml"
122
- - ".travis.yml"
123
125
  - CHANGELOG.md
124
126
  - Gemfile
127
+ - HISTORY.md
125
128
  - LICENSE
126
129
  - README.md
127
130
  - Rakefile
@@ -145,6 +148,9 @@ files:
145
148
  - tests/duplicate-dep/Rakefile
146
149
  - tests/duplicate-dep/expected
147
150
  - tests/duplicate-dep/metadata.json
151
+ - tests/duplicate-requirement/Rakefile
152
+ - tests/duplicate-requirement/expected
153
+ - tests/duplicate-requirement/metadata.json
148
154
  - tests/json_format/Rakefile
149
155
  - tests/json_format/expected
150
156
  - tests/json_format/metadata.json
@@ -201,17 +207,11 @@ files:
201
207
  - tests/types/Rakefile
202
208
  - tests/types/expected
203
209
  - tests/types/metadata.json
204
- homepage: http://github.com/voxpupuli/metadata-json-lint
210
+ homepage: https://github.com/voxpupuli/metadata-json-lint
205
211
  licenses:
206
212
  - Apache-2.0
207
213
  metadata: {}
208
- post_install_message: |2
209
-
210
- ----------------------------------------------------------
211
- For the most accurate results, the semantic_puppet
212
- gem should be included within your Gemfile if you
213
- use Puppet <= 4.8.x
214
- ----------------------------------------------------------
214
+ post_install_message:
215
215
  rdoc_options: []
216
216
  require_paths:
217
217
  - lib
@@ -219,15 +219,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
- version: 2.0.0
222
+ version: 2.1.0
223
223
  required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  requirements:
225
225
  - - ">="
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubyforge_project:
230
- rubygems_version: 2.7.7
229
+ rubygems_version: 3.2.22
231
230
  signing_key:
232
231
  specification_version: 4
233
232
  summary: metadata-json-lint /path/to/metadata.json
@@ -245,6 +244,9 @@ test_files:
245
244
  - tests/duplicate-dep/Rakefile
246
245
  - tests/duplicate-dep/expected
247
246
  - tests/duplicate-dep/metadata.json
247
+ - tests/duplicate-requirement/Rakefile
248
+ - tests/duplicate-requirement/expected
249
+ - tests/duplicate-requirement/metadata.json
248
250
  - tests/json_format/Rakefile
249
251
  - tests/json_format/expected
250
252
  - tests/json_format/metadata.json
data/.travis.yml DELETED
@@ -1,25 +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
-
15
- deploy:
16
- provider: rubygems
17
- api_key:
18
- secure: Rm6j/fS5n4TyqmqftwMj2Ebw0avsuDbuI9wVX4exUNiuQRru967QPrQinMuAwBGLCNYMs69ZHFBMkpk61khQGC3W7d5Yr/25HabnQBFpfO2llHhKKgM/Ckyqur+ku88EVJH9nRCDqOprJtC4RGHIA833ENL8xVP/VOvfiKG0Q14=
19
- gem: metadata-json-lint
20
- on:
21
- tags: true
22
- repo: voxpupuli/metadata-json-lint
23
-
24
- notifications:
25
- email: false