metadata-json-lint 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -0
  3. data/.rspec +1 -0
  4. data/.rubocop.yml +24 -0
  5. data/.rubocop_todo.yml +18 -0
  6. data/.travis.yml +24 -0
  7. data/Gemfile +3 -0
  8. data/LICENSE +13 -0
  9. data/README.md +63 -0
  10. data/Rakefile +15 -0
  11. data/lib/metadata-json-lint/version_requirement.rb +35 -0
  12. data/metadata-json-lint.gemspec +25 -0
  13. data/spec/spec_helper.rb +36 -0
  14. data/spec/version_requirement_spec.rb +28 -0
  15. data/tests/bad_license/Rakefile +2 -0
  16. data/tests/bad_license/expected +1 -0
  17. data/tests/bad_license/metadata.json +83 -0
  18. data/tests/broken/Rakefile +2 -0
  19. data/tests/broken/expected +1 -0
  20. data/tests/broken/metadata.json +87 -0
  21. data/tests/duplicate-dep/Rakefile +2 -0
  22. data/tests/duplicate-dep/expected +1 -0
  23. data/tests/duplicate-dep/metadata.json +91 -0
  24. data/tests/json_format/Rakefile +2 -0
  25. data/tests/json_format/expected +1 -0
  26. data/tests/json_format/metadata.json +83 -0
  27. data/tests/long_summary/Rakefile +2 -0
  28. data/tests/long_summary/expected +1 -0
  29. data/tests/long_summary/metadata.json +24 -0
  30. data/tests/missing_version_requirement/Rakefile +2 -0
  31. data/tests/missing_version_requirement/expected +1 -0
  32. data/tests/missing_version_requirement/metadata.json +27 -0
  33. data/tests/mixed_version_syntax/Rakefile +2 -0
  34. data/tests/mixed_version_syntax/expected +1 -0
  35. data/tests/mixed_version_syntax/metadata.json +30 -0
  36. data/tests/multiple_problems/Rakefile +2 -0
  37. data/tests/multiple_problems/expected +3 -0
  38. data/tests/multiple_problems/metadata.json +86 -0
  39. data/tests/no_dependencies/Rakefile +2 -0
  40. data/tests/no_dependencies/metadata.json +66 -0
  41. data/tests/no_files/.gitkeep +0 -0
  42. data/tests/no_files/expected +1 -0
  43. data/tests/no_pe/Rakefile +2 -0
  44. data/tests/no_pe/metadata.json +31 -0
  45. data/tests/no_version_range/Rakefile +2 -0
  46. data/tests/no_version_range/metadata.json +34 -0
  47. data/tests/noname/Rakefile +2 -0
  48. data/tests/noname/expected +1 -0
  49. data/tests/noname/metadata.json +86 -0
  50. data/tests/open_ended_dependency/Rakefile +2 -0
  51. data/tests/open_ended_dependency/expected +1 -0
  52. data/tests/open_ended_dependency/metadata.json +30 -0
  53. data/tests/perfect/Rakefile +2 -0
  54. data/tests/perfect/metadata.json +91 -0
  55. data/tests/proprietary/Rakefile +2 -0
  56. data/tests/proprietary/metadata.json +79 -0
  57. data/tests/rake_global_options/Rakefile +4 -0
  58. data/tests/rake_global_options/expected +1 -0
  59. data/tests/rake_global_options/metadata.json +79 -0
  60. data/tests/rake_multiple_json_options/Rakefile +14 -0
  61. data/tests/rake_multiple_json_options/metadata_license.json +79 -0
  62. data/tests/rake_multiple_json_options/metadata_ok.json +79 -0
  63. data/tests/tags_no_array/Rakefile +2 -0
  64. data/tests/tags_no_array/expected +1 -0
  65. data/tests/tags_no_array/metadata.json +96 -0
  66. data/tests/tags_with_array/Rakefile +2 -0
  67. data/tests/tags_with_array/metadata.json +92 -0
  68. data/tests/test.sh +157 -0
  69. data/tests/types/Rakefile +2 -0
  70. data/tests/types/expected +1 -0
  71. data/tests/types/metadata.json +88 -0
  72. metadata +131 -2
@@ -0,0 +1,2 @@
1
+ $LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
2
+ require 'metadata-json-lint/rake_task'
@@ -0,0 +1 @@
1
+ Deprecated field 'types' found in metadata.json.
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "puppetlabs-postgresql",
3
+ "types": "balls",
4
+ "version": "3.4.1",
5
+ "author": "Inkling/Puppet Labs",
6
+ "summary": "PostgreSQL defined resource types",
7
+ "license": "Apache-2.0",
8
+ "source": "git://github.com/puppetlabs/puppet-postgresql.git",
9
+ "project_page": "https://github.com/puppetlabs/puppet-postgresql",
10
+ "issues_url": "https://github.com/puppetlabs/puppet-postgresql/issues",
11
+ "operatingsystem_support": [
12
+ {
13
+ "operatingsystem": "RedHat",
14
+ "operatingsystemrelease": [
15
+ "5",
16
+ "6",
17
+ "7"
18
+ ]
19
+ },
20
+ {
21
+ "operatingsystem": "CentOS",
22
+ "operatingsystemrelease": [
23
+ "5",
24
+ "6",
25
+ "7"
26
+ ]
27
+ },
28
+ {
29
+ "operatingsystem": "OracleLinux",
30
+ "operatingsystemrelease": [
31
+ "5",
32
+ "6",
33
+ "7"
34
+ ]
35
+ },
36
+ {
37
+ "operatingsystem": "Scientific",
38
+ "operatingsystemrelease": [
39
+ "5",
40
+ "6",
41
+ "7"
42
+ ]
43
+ },
44
+ {
45
+ "operatingsystem": "Debian",
46
+ "operatingsystemrelease": [
47
+ "6",
48
+ "7"
49
+ ]
50
+ },
51
+ {
52
+ "operatingsystem": "Ubuntu",
53
+ "operatingsystemrelease": [
54
+ "10.04",
55
+ "12.04",
56
+ "14.04"
57
+ ]
58
+ }
59
+ ],
60
+ "requirements": [
61
+ {
62
+ "name": "pe",
63
+ "version_requirement": ">= 3.2.0 < 3.4.0"
64
+ },
65
+ {
66
+ "name": "puppet",
67
+ "version_requirement": "3.x"
68
+ }
69
+ ],
70
+ "dependencies": [
71
+ {
72
+ "name": "puppetlabs/stdlib",
73
+ "version_requirement": "4.x"
74
+ },
75
+ {
76
+ "name": "puppetlabs/firewall",
77
+ "version_requirement": ">= 0.0.4"
78
+ },
79
+ {
80
+ "name": "puppetlabs/apt",
81
+ "version_requirement": ">=1.1.0 <2.0.0"
82
+ },
83
+ {
84
+ "name": "puppetlabs/concat",
85
+ "version_requirement": ">= 1.1.0 <2.0.0"
86
+ }
87
+ ]
88
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata-json-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
@@ -107,9 +107,79 @@ executables:
107
107
  extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
+ - ".gitignore"
111
+ - ".rspec"
112
+ - ".rubocop.yml"
113
+ - ".rubocop_todo.yml"
114
+ - ".travis.yml"
115
+ - Gemfile
116
+ - LICENSE
117
+ - README.md
118
+ - Rakefile
110
119
  - bin/metadata-json-lint
111
120
  - lib/metadata-json-lint/rake_task.rb
121
+ - lib/metadata-json-lint/version_requirement.rb
112
122
  - lib/metadata_json_lint.rb
123
+ - metadata-json-lint.gemspec
124
+ - spec/spec_helper.rb
125
+ - spec/version_requirement_spec.rb
126
+ - tests/bad_license/Rakefile
127
+ - tests/bad_license/expected
128
+ - tests/bad_license/metadata.json
129
+ - tests/broken/Rakefile
130
+ - tests/broken/expected
131
+ - tests/broken/metadata.json
132
+ - tests/duplicate-dep/Rakefile
133
+ - tests/duplicate-dep/expected
134
+ - tests/duplicate-dep/metadata.json
135
+ - tests/json_format/Rakefile
136
+ - tests/json_format/expected
137
+ - tests/json_format/metadata.json
138
+ - tests/long_summary/Rakefile
139
+ - tests/long_summary/expected
140
+ - tests/long_summary/metadata.json
141
+ - tests/missing_version_requirement/Rakefile
142
+ - tests/missing_version_requirement/expected
143
+ - tests/missing_version_requirement/metadata.json
144
+ - tests/mixed_version_syntax/Rakefile
145
+ - tests/mixed_version_syntax/expected
146
+ - tests/mixed_version_syntax/metadata.json
147
+ - tests/multiple_problems/Rakefile
148
+ - tests/multiple_problems/expected
149
+ - tests/multiple_problems/metadata.json
150
+ - tests/no_dependencies/Rakefile
151
+ - tests/no_dependencies/metadata.json
152
+ - tests/no_files/.gitkeep
153
+ - tests/no_files/expected
154
+ - tests/no_pe/Rakefile
155
+ - tests/no_pe/metadata.json
156
+ - tests/no_version_range/Rakefile
157
+ - tests/no_version_range/metadata.json
158
+ - tests/noname/Rakefile
159
+ - tests/noname/expected
160
+ - tests/noname/metadata.json
161
+ - tests/open_ended_dependency/Rakefile
162
+ - tests/open_ended_dependency/expected
163
+ - tests/open_ended_dependency/metadata.json
164
+ - tests/perfect/Rakefile
165
+ - tests/perfect/metadata.json
166
+ - tests/proprietary/Rakefile
167
+ - tests/proprietary/metadata.json
168
+ - tests/rake_global_options/Rakefile
169
+ - tests/rake_global_options/expected
170
+ - tests/rake_global_options/metadata.json
171
+ - tests/rake_multiple_json_options/Rakefile
172
+ - tests/rake_multiple_json_options/metadata_license.json
173
+ - tests/rake_multiple_json_options/metadata_ok.json
174
+ - tests/tags_no_array/Rakefile
175
+ - tests/tags_no_array/expected
176
+ - tests/tags_no_array/metadata.json
177
+ - tests/tags_with_array/Rakefile
178
+ - tests/tags_with_array/metadata.json
179
+ - tests/test.sh
180
+ - tests/types/Rakefile
181
+ - tests/types/expected
182
+ - tests/types/metadata.json
113
183
  homepage: http://github.com/voxpupuli/metadata-json-lint
114
184
  licenses:
115
185
  - Apache-2.0
@@ -134,4 +204,63 @@ rubygems_version: 2.4.5
134
204
  signing_key:
135
205
  specification_version: 4
136
206
  summary: metadata-json-lint /path/to/metadata.json
137
- test_files: []
207
+ test_files:
208
+ - spec/spec_helper.rb
209
+ - spec/version_requirement_spec.rb
210
+ - tests/bad_license/Rakefile
211
+ - tests/bad_license/expected
212
+ - tests/bad_license/metadata.json
213
+ - tests/broken/Rakefile
214
+ - tests/broken/expected
215
+ - tests/broken/metadata.json
216
+ - tests/duplicate-dep/Rakefile
217
+ - tests/duplicate-dep/expected
218
+ - tests/duplicate-dep/metadata.json
219
+ - tests/json_format/Rakefile
220
+ - tests/json_format/expected
221
+ - tests/json_format/metadata.json
222
+ - tests/long_summary/Rakefile
223
+ - tests/long_summary/expected
224
+ - tests/long_summary/metadata.json
225
+ - tests/missing_version_requirement/Rakefile
226
+ - tests/missing_version_requirement/expected
227
+ - tests/missing_version_requirement/metadata.json
228
+ - tests/mixed_version_syntax/Rakefile
229
+ - tests/mixed_version_syntax/expected
230
+ - tests/mixed_version_syntax/metadata.json
231
+ - tests/multiple_problems/Rakefile
232
+ - tests/multiple_problems/expected
233
+ - tests/multiple_problems/metadata.json
234
+ - tests/no_dependencies/Rakefile
235
+ - tests/no_dependencies/metadata.json
236
+ - tests/no_files/.gitkeep
237
+ - tests/no_files/expected
238
+ - tests/no_pe/Rakefile
239
+ - tests/no_pe/metadata.json
240
+ - tests/no_version_range/Rakefile
241
+ - tests/no_version_range/metadata.json
242
+ - tests/noname/Rakefile
243
+ - tests/noname/expected
244
+ - tests/noname/metadata.json
245
+ - tests/open_ended_dependency/Rakefile
246
+ - tests/open_ended_dependency/expected
247
+ - tests/open_ended_dependency/metadata.json
248
+ - tests/perfect/Rakefile
249
+ - tests/perfect/metadata.json
250
+ - tests/proprietary/Rakefile
251
+ - tests/proprietary/metadata.json
252
+ - tests/rake_global_options/Rakefile
253
+ - tests/rake_global_options/expected
254
+ - tests/rake_global_options/metadata.json
255
+ - tests/rake_multiple_json_options/Rakefile
256
+ - tests/rake_multiple_json_options/metadata_license.json
257
+ - tests/rake_multiple_json_options/metadata_ok.json
258
+ - tests/tags_no_array/Rakefile
259
+ - tests/tags_no_array/expected
260
+ - tests/tags_no_array/metadata.json
261
+ - tests/tags_with_array/Rakefile
262
+ - tests/tags_with_array/metadata.json
263
+ - tests/test.sh
264
+ - tests/types/Rakefile
265
+ - tests/types/expected
266
+ - tests/types/metadata.json