puppet-lint 3.0.0 → 3.0.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
2
  SHA256:
3
- metadata.gz: c3145872a13b2c4172fee15300cb84292abf9e392aefdad373f1057c23b10746
4
- data.tar.gz: 83c92f2782692a888b69f7a0870c4864ec312a5f5076f9c7ec95cf1eda2ed112
3
+ metadata.gz: 780fb18c627fc4498cfbd056762846a70b2240619c52a23121d522b56aaec062
4
+ data.tar.gz: 59068f03812ef0d9b622fa6b9440567ba4e12f33a5349c1ddc9c642ac7dd51a5
5
5
  SHA512:
6
- metadata.gz: 630098266a24ef54967d6cf1f8274d25f8d875e406dc76c58ad48773b23deb49148b1835dab1503c0cbd7831ec44e73142bc1e5dcb40e9a4b6bd88eed46b9b10
7
- data.tar.gz: 9af230b95bb1f8a0d8d13be245903c6cd3546c8213632a50a35b880e51777d35911aead6e18fb7a6e98e4aab27e28892e132e19c96249f1251a3b2f73839bd37
6
+ metadata.gz: 32fb18937f47636f80535bcc8db5884aa63a6af9a86f148ee25a37b65890d13f275094ab2a81012a5ef7385d696195c59632d234eca805c94a2bc2d3b4d77905
7
+ data.tar.gz: 124a921b4ad50b3f923f7180d330a89f313f70c5b77d1dcf8060611a124171e1bf3ef06f8b3d4b27421cad4157c69699c12bc8acc8dd63461a61fb1aecacc14c
@@ -10,16 +10,13 @@ class PuppetLint::Plugins
10
10
  #
11
11
  # Returns nothing.
12
12
  def self.load_from_gems
13
- plugins_directories = gem_directories.select do |directory|
14
- (directory + 'puppet-lint/plugins').to_s if (directory + 'puppet-lint/plugins').directory?
15
- end
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
- plugin_files.each do |file|
22
- load(file)
17
+ Dir["#{path}/**/*.rb"].each do |file|
18
+ load(file)
19
+ end
23
20
  end
24
21
  end
25
22
 
@@ -1,3 +1,3 @@
1
1
  class PuppetLint
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '3.0.1'.freeze
3
3
  end
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.compile(['spec', 'unit', 'puppet-lint', 'plugins'].join('[\\\/]')),
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.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 00:00:00.000000000 Z
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"