puppet-lint 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppet-lint/plugins.rb +6 -9
- data/lib/puppet-lint/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 780fb18c627fc4498cfbd056762846a70b2240619c52a23121d522b56aaec062
|
4
|
+
data.tar.gz: 59068f03812ef0d9b622fa6b9440567ba4e12f33a5349c1ddc9c642ac7dd51a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32fb18937f47636f80535bcc8db5884aa63a6af9a86f148ee25a37b65890d13f275094ab2a81012a5ef7385d696195c59632d234eca805c94a2bc2d3b4d77905
|
7
|
+
data.tar.gz: 124a921b4ad50b3f923f7180d330a89f313f70c5b77d1dcf8060611a124171e1bf3ef06f8b3d4b27421cad4157c69699c12bc8acc8dd63461a61fb1aecacc14c
|
data/lib/puppet-lint/plugins.rb
CHANGED
@@ -10,16 +10,13 @@ class PuppetLint::Plugins
|
|
10
10
|
#
|
11
11
|
# Returns nothing.
|
12
12
|
def self.load_from_gems
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
plugin_files = plugins_directories.each do |directory|
|
18
|
-
Dir["#{directory}/**/*.rb"]
|
19
|
-
end
|
13
|
+
gem_directories.each do |directory|
|
14
|
+
path = directory + 'puppet-lint/plugins'
|
15
|
+
next unless path.directory?
|
20
16
|
|
21
|
-
|
22
|
-
|
17
|
+
Dir["#{path}/**/*.rb"].each do |file|
|
18
|
+
load(file)
|
19
|
+
end
|
23
20
|
end
|
24
21
|
end
|
25
22
|
|
data/lib/puppet-lint/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -134,7 +134,7 @@ RSpec.configure do |config|
|
|
134
134
|
config.include(
|
135
135
|
RSpec::LintExampleGroup,
|
136
136
|
type: :lint,
|
137
|
-
file_path: Regexp.
|
137
|
+
file_path: Regexp.new('spec[\\\/](unit[\\\/])?puppet-lint[\\\/]plugins'),
|
138
138
|
)
|
139
139
|
|
140
140
|
config.expect_with(:rspec) do |c|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Sharpe
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-10-
|
13
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: " Checks your Puppet manifests against the Puppetlabs style guide
|
16
16
|
and alerts you to any discrepancies.'\n"
|