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
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d9a126bd6748256e5ad475fb1d435cb66f92998546102ec5befd9b13aa90f644
|
|
4
|
+
data.tar.gz: e61c0cb7db23d578608625c66f149899c69dd733a29cbde2dd4f136062f139db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64a8904b58db5c49867abee990adcb3d0facbce041d13868a4f60b36cdc8ca1d7fd414a2a81258a7a9b2e6e02cfac2823e40ed4671895814e9ded2bcb6c6a22d
|
|
7
|
+
data.tar.gz: bed6e7f623abdf1e4c44d6a4d66dc733177c0f71434704167ed1899c2d756ccf934c616ff74f89f699512296ad36bf5e0740c472bb299b8909438d62cc215549
|
data/lib/puppet-validator.rb
CHANGED
|
@@ -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'
|
|
@@ -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
|
|
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.
|
|
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:
|
|
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
|
-
|
|
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
|