puppet-validator 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 42c7dd8c42d525d1d2b73688beeb01b3595477a1
4
- data.tar.gz: d121433916a22680ae5692e59ece41a8f60c9eb4
2
+ SHA256:
3
+ metadata.gz: d9a126bd6748256e5ad475fb1d435cb66f92998546102ec5befd9b13aa90f644
4
+ data.tar.gz: e61c0cb7db23d578608625c66f149899c69dd733a29cbde2dd4f136062f139db
5
5
  SHA512:
6
- metadata.gz: d8a6b17cef56ab2112e0414d97cfc31e501dc64c6fa9a5f358417cedc0be2ea47b8bcc9ba951367b6aa67c083af72d9ab659c557b2b0ec2645ae5545f02d62cc
7
- data.tar.gz: 077da604c15b3beb0cde4513b63f9e01cd4eef89c5b42f91e0135f1f2e582d13f30cbf1a8f1fbdd0fbf2078dfde51eaa97e78b099a26cef3f8471ed0a6cec471
6
+ metadata.gz: 64a8904b58db5c49867abee990adcb3d0facbce041d13868a4f60b36cdc8ca1d7fd414a2a81258a7a9b2e6e02cfac2823e40ed4671895814e9ded2bcb6c6a22d
7
+ data.tar.gz: bed6e7f623abdf1e4c44d6a4d66dc733177c0f71434704167ed1899c2d756ccf934c616ff74f89f699512296ad36bf5e0740c472bb299b8909438d62cc215549
@@ -86,7 +86,7 @@ class PuppetValidator < Sinatra::Base
86
86
  uri = location.downcase.start_with?('http') ? URI.parse(location) : URI.parse("https://#{location}")
87
87
 
88
88
  case uri.host
89
- when 'gist.github.com'
89
+ when 'gist.github.com', 'paste.fedoraproject.org'
90
90
  path = uri.path.end_with?('/raw') ? uri : "#{uri}/raw"
91
91
 
92
92
  when 'pastebin.com', 'hastebin.com'
@@ -32,9 +32,10 @@ class PuppetValidator::Validators::Lint
32
32
  linter.code = data
33
33
  linter.run
34
34
  linter.print_problems
35
+ linter.problems
35
36
  rescue => detail
36
37
  @logger.warn detail.message
37
- nil
38
+ []
38
39
  end
39
40
  end
40
41
 
@@ -13,7 +13,7 @@ class PuppetValidator::Validators::Syntax
13
13
  require 'puppet/parser'
14
14
 
15
15
  Puppet.initialize_settings rescue nil
16
- Puppet.settings[:app_management] = true if Gem::Version.new(Puppet.version) >= Gem::Version.new('4.3.2')
16
+ Puppet.settings[:app_management] = true if Puppet.settings.include? :app_management
17
17
 
18
18
  # set up the base environment
19
19
  Puppet.push_context(Puppet.base_context(Puppet.settings), 'Setup for Puppet Validator') rescue nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Ford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-29 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -127,8 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubyforge_project:
131
- rubygems_version: 2.6.10
130
+ rubygems_version: 3.0.3
132
131
  signing_key:
133
132
  specification_version: 4
134
133
  summary: Puppet code validator as a service