metadata-json-lint 2.0.0 → 2.0.1

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
  SHA1:
3
- metadata.gz: 656d4c9a85eceaa230fe84711819956a3d746a71
4
- data.tar.gz: 69c06229897d87ec0a65115b28b01eec85dfa5b2
3
+ metadata.gz: 14659a2f1f2f0cdbc342929c70ebe0e808cb01d1
4
+ data.tar.gz: 7dac64b05c3f98bd37b69982a73178c5cfa436eb
5
5
  SHA512:
6
- metadata.gz: 36c139d8de7c19a488b0e73ed06f2461e6a177c65c62abc548b58ce36a715e3b574d08edb62c765c357fccb35a8754972eca0a411ccff303e5b58aef38599de7
7
- data.tar.gz: 79a89a232bdae551740952c7827ebac93568006cce890f63eb913b5e3bf4fb111729a06bbfff4042659581ae0d11d390d30a399433c8b1d89d2e6a44fb6e8c3c
6
+ metadata.gz: a84b3571e974ecdfb133532eedcdbbcea5c4afb483f029ee2e0850b8605bb73acfbdb2af973f4b542a5ba131c05c902083f690f99c1a38889c5419b13ca12f19
7
+ data.tar.gz: 838914c262be020a5dd3df0837d404068be3eead05c973094bf938efaa7bb78c0c4a6494c323ca6368887250b196e9afdb787eb79aa8891d4db7253fe3be37db
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  /.bundle
5
5
  /vendor
6
6
  tests/*/last_*output
7
+ .idea/
@@ -10,6 +10,7 @@ rvm:
10
10
  - 2.0.0
11
11
  - 2.1.9
12
12
  - 2.3.1
13
+ - 2.4.1
13
14
 
14
15
  deploy:
15
16
  provider: rubygems
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
+ ## 2.0.1
9
+
10
+ ### Changes
11
+ * Puppet 4.9.0 and newer uses the vendored `semantic_puppet` packaged with Puppet.
12
+ * If using Puppet 4.8.x and earlier, adding `semantic_puppet` to your Gemfile is required
13
+ as the vendored `semantic_puppet` was not packaged with Puppet prior to `4.9.0`
14
+ * Add test environment for Ruby 2.4.1
15
+
8
16
  ## 2.0.0
9
17
 
10
18
  ### Changes
data/Gemfile CHANGED
@@ -1,7 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- group :test do
4
- gem 'semantic_puppet'
5
- end
6
-
7
3
  gemspec
data/README.md CHANGED
@@ -7,12 +7,9 @@ The metadata-json-lint tool validates and lints `metadata.json` files in Puppet
7
7
  metadata-json-lint is compatible with Ruby versions 2.0.0, 2.1.9, 2.3.1, and 2.4.1.
8
8
 
9
9
  ## Installation
10
- **NOTE: `metadata-json-lint` has a dependency on the `semantic_puppet` gem if you're on
11
- Puppet 4 or earlier. This dependency was removed from the gemspec file due to a conflict
12
- in Puppet 5 where the `semantic_puppet` ruby gem conflicts with a version of
13
- `semantic_puppet` bundled with the core Puppet 5 code.**
14
10
 
15
- ### Puppet 5
11
+ Puppet 4.9.0 and newer:
12
+
16
13
  via `gem` command:
17
14
  ``` shell
18
15
  gem install metadata-json-lint
@@ -23,7 +20,8 @@ via Gemfile:
23
20
  gem 'metadata-json-lint'
24
21
  ```
25
22
 
26
- ### Puppet 4 and earlier
23
+ **Puppet 4.8.x and older:**
24
+
27
25
  via `gem` command:
28
26
  ``` shell
29
27
  gem install metadata-json-lint semantic_puppet
@@ -32,7 +30,7 @@ gem install metadata-json-lint semantic_puppet
32
30
  via Gemfile:
33
31
  ``` ruby
34
32
  gem 'metadata-json-lint'
35
- gem 'semantic_puppet'
33
+ gem 'semantic_puppet
36
34
  ```
37
35
 
38
36
  ## Usage
@@ -1,4 +1,5 @@
1
- require 'semantic_puppet'
1
+ require 'puppet'
2
+ require 'semantic_puppet' unless Puppet.version >= '4.9.0'
2
3
 
3
4
  module MetadataJsonLint
4
5
  # Parses a string module version requirement with semantic_puppet and
@@ -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.0.0'
5
+ s.version = '2.0.1'
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'
@@ -19,16 +19,14 @@ Gem::Specification.new do |s|
19
19
  s.required_ruby_version = '>= 2.0.0'
20
20
  s.add_runtime_dependency 'spdx-licenses', '~> 1.0'
21
21
  s.add_runtime_dependency 'json-schema', '~> 2.8'
22
+ s.add_runtime_dependency 'puppet', '>= 4.7.0', '< 6.0.0'
22
23
  s.add_development_dependency 'rake'
23
24
  s.add_development_dependency 'rspec'
24
25
  s.add_development_dependency 'rubocop'
25
- s.requirements << 'semantic_puppet >= 0.1.2 < 2.0.0'
26
- s.post_install_message = <<-EOS
27
- -------------------------------------------------------------------
28
- If your puppet is <= 4.x, then the semantic_puppet gem MUST
29
- be in your Gemfile!!
30
-
31
- On puppet >= 5.x, semantic_puppet will break functionality!
32
- -------------------------------------------------------------------
33
- EOS
26
+ s.post_install_message = '
27
+ -------------------------------------------------
28
+ semantic_puppet must be installed within
29
+ your Gemfile if you use Puppet <= 4.8.x!!
30
+ -------------------------------------------------
31
+ '
34
32
  end
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: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
@@ -38,6 +38,26 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: puppet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 4.7.0
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: 6.0.0
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 4.7.0
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: 6.0.0
41
61
  - !ruby/object:Gem::Dependency
42
62
  name: rake
43
63
  requirement: !ruby/object:Gem::Requirement
@@ -169,13 +189,9 @@ homepage: http://github.com/voxpupuli/metadata-json-lint
169
189
  licenses:
170
190
  - Apache-2.0
171
191
  metadata: {}
172
- post_install_message: |2
173
- -------------------------------------------------------------------
174
- If your puppet is <= 4.x, then the semantic_puppet gem MUST
175
- be in your Gemfile!!
176
-
177
- On puppet >= 5.x, semantic_puppet will break functionality!
178
- -------------------------------------------------------------------
192
+ post_install_message: "\n -------------------------------------------------\n semantic_puppet
193
+ must be installed within\n your Gemfile if you use Puppet <= 4.8.x!!\n -------------------------------------------------\n
194
+ \ "
179
195
  rdoc_options: []
180
196
  require_paths:
181
197
  - lib
@@ -189,8 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
205
  - - ">="
190
206
  - !ruby/object:Gem::Version
191
207
  version: '0'
192
- requirements:
193
- - semantic_puppet >= 0.1.2 < 2.0.0
208
+ requirements: []
194
209
  rubyforge_project:
195
210
  rubygems_version: 2.4.5
196
211
  signing_key: