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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ef9fec0857b5b9421d9f56eabfdaa3c484557006
4
- data.tar.gz: a26b2269b6a71246c62eb4e4e738478553d77e3a
2
+ SHA256:
3
+ metadata.gz: 250045b0edc3c0665c474e972e9ddd9d98fd909e56caf54d287848f92f0ee582
4
+ data.tar.gz: b2c1ba487d87fb6b56e788102a3259534d4f2c492cc88f90171bb26923e92fd7
5
5
  SHA512:
6
- metadata.gz: a0e96bd4317c56f951dc3d23ce392d23c61340f91796816d9c2a8e817b6b00bfce4b456e27f1d785769b993c4a42df5d121d9d7f3de23a93b1f8fe752b09aa7f
7
- data.tar.gz: 20b349f7dac886dc741a54f01ee3b9032cc63acc3bc0445daf1b2c58f50386e5a38d7a95b43b8a299f0b2e095a48f629346f27923c8d637500aa51980df0dae8
6
+ metadata.gz: 207b7b1de81cdf9315293187150454279aed65510c60bda8111fe927d9a1cbdd47546bc51930a9a4aedd57d3138a3585905d69971bae9774f17dd7e9daa2cfa5
7
+ data.tar.gz: 8c7e23afaa8db1a8162f8050eff8a564499807785bb443fc041faef2b1210e2e1c391efe3722b93b82bd61dbfe76d88cf4ae47982d2b6b4658288b3450158b21
data/.gitignore CHANGED
@@ -35,3 +35,10 @@
35
35
  [._]sw[a-p]
36
36
  # temporary
37
37
  *~
38
+
39
+ #-------------------------------------------------------------------------------
40
+ # ___ _ _
41
+ # | | \ |_
42
+ # _|_ |_/ |_
43
+ #
44
+ .idea/
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.47.1'
10
- gem 'rubocop-rspec', '~> 1.10.0'
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(fuubar offenses)
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: [:rubocop, :spec]
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.keys.each do |k|
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
@@ -1,5 +1,5 @@
1
1
 
2
2
  module PuppetRakeTasks
3
3
  # The current version.
4
- VERSION = '1.0.0'.freeze
4
+ VERSION = '1.0.1'.freeze
5
5
  end
@@ -1,4 +1,4 @@
1
- # coding: utf-8
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 = <<-EODESC
13
+ spec.description = <<-DESCRIPTION
14
14
  DepChecker: Creates a rake task that uses puppet module to check dependencies.'
15
- EODESC
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.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: 2017-03-21 00:00:00.000000000 Z
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.5.1
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.