puppet_rake_tasks 1.0.0 → 1.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 +5 -5
- data/.gitignore +7 -0
- data/Gemfile +2 -2
- data/Rakefile +2 -2
- data/lib/puppet_rake_tasks/depchecker/ignores.rb +3 -7
- data/lib/puppet_rake_tasks/version.rb +1 -1
- data/puppet_rake_tasks.gemspec +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 250045b0edc3c0665c474e972e9ddd9d98fd909e56caf54d287848f92f0ee582
|
4
|
+
data.tar.gz: b2c1ba487d87fb6b56e788102a3259534d4f2c492cc88f90171bb26923e92fd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 207b7b1de81cdf9315293187150454279aed65510c60bda8111fe927d9a1cbdd47546bc51930a9a4aedd57d3138a3585905d69971bae9774f17dd7e9daa2cfa5
|
7
|
+
data.tar.gz: 8c7e23afaa8db1a8162f8050eff8a564499807785bb443fc041faef2b1210e2e1c391efe3722b93b82bd61dbfe76d88cf4ae47982d2b6b4658288b3450158b21
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -6,8 +6,8 @@ group :development do
|
|
6
6
|
gem 'awesome_print'
|
7
7
|
gem 'rake', '~> 10.0'
|
8
8
|
gem 'rspec', '~> 3.5'
|
9
|
-
gem 'rubocop', '~> 0.
|
10
|
-
gem 'rubocop-rspec', '~> 1.
|
9
|
+
gem 'rubocop', '~> 0.52.1', require: false
|
10
|
+
gem 'rubocop-rspec', '~> 1.23.0'
|
11
11
|
end
|
12
12
|
|
13
13
|
group :documentation do
|
data/Rakefile
CHANGED
@@ -6,11 +6,11 @@ require 'yard/rake/yardoc_task'
|
|
6
6
|
|
7
7
|
desc 'Run rubocop'
|
8
8
|
RuboCop::RakeTask.new(:rubocop) do |task|
|
9
|
-
task.formatters = %w
|
9
|
+
task.formatters = %w[fuubar offenses]
|
10
10
|
task.fail_on_error = true
|
11
11
|
end
|
12
12
|
|
13
13
|
RSpec::Core::RakeTask.new(:spec)
|
14
14
|
YARD::Rake::YardocTask.new(:docs)
|
15
15
|
|
16
|
-
task default: [
|
16
|
+
task default: %i[rubocop spec]
|
@@ -65,9 +65,7 @@ module PuppetRakeTasks
|
|
65
65
|
# Returns ignore rules that might apply to the modulename and caches the result.
|
66
66
|
# @param modulename [String] module name to get ignore rules for in its simple form.
|
67
67
|
def ignores_for_module(modulename)
|
68
|
-
if (@ignores_for_module ||= {})[modulename].nil?
|
69
|
-
@ignores_for_module[modulename] ||= collect_ignores_for_module(modulename)
|
70
|
-
end
|
68
|
+
@ignores_for_module[modulename] ||= collect_ignores_for_module(modulename) if (@ignores_for_module ||= {})[modulename].nil?
|
71
69
|
@ignores_for_module[modulename]
|
72
70
|
end
|
73
71
|
|
@@ -79,7 +77,7 @@ module PuppetRakeTasks
|
|
79
77
|
# Look for a match, return true immediately, otherwise, false
|
80
78
|
loop_ignores.each do |ign|
|
81
79
|
this_ignore = true
|
82
|
-
ign.
|
80
|
+
ign.each_key do |k|
|
83
81
|
compare = Helpers.compare_values(ign[k], incident[k])
|
84
82
|
this_ignore = false unless compare
|
85
83
|
end
|
@@ -95,9 +93,7 @@ module PuppetRakeTasks
|
|
95
93
|
def collect_ignores_for_module(modulename)
|
96
94
|
tmp_ignores = []
|
97
95
|
ignores.each do |k, i|
|
98
|
-
if (k.is_a?(String) && k == modulename) || (k.is_a?(Regexp) && modulename =~ k)
|
99
|
-
tmp_ignores += i
|
100
|
-
end
|
96
|
+
tmp_ignores += i if (k.is_a?(String) && k == modulename) || (k.is_a?(Regexp) && modulename =~ k)
|
101
97
|
end
|
102
98
|
tmp_ignores
|
103
99
|
end
|
data/puppet_rake_tasks.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'puppet_rake_tasks/version'
|
@@ -10,9 +10,9 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['jan@vstone.eu']
|
11
11
|
|
12
12
|
spec.summary = 'Contains various rake tasks for your puppet tree.'
|
13
|
-
spec.description = <<-
|
13
|
+
spec.description = <<-DESCRIPTION
|
14
14
|
DepChecker: Creates a rake task that uses puppet module to check dependencies.'
|
15
|
-
|
15
|
+
DESCRIPTION
|
16
16
|
spec.homepage = 'https://github.com/vStone/rake-puppet_module_task'
|
17
17
|
spec.license = 'GPL-3'
|
18
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet_rake_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Vansteenkiste
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.7.6
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Contains various rake tasks for your puppet tree.
|