puppet-lint-global_resource-check 0.2.0 → 0.3.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 092b9a28b7052290fd318dad84cfecd90cfdca1b
|
4
|
+
data.tar.gz: fa08073c8f94e28b435179f478e295f82dc83ca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9097f7e38c68d20bcca2ea2c0685b01a429957f90eec053b005f162a23a9fe2be41479bdc7f9edc2aa64ba5b3703219ad11f4a7b17ddc9bd82d0f3a2b5fd2ca5
|
7
|
+
data.tar.gz: bf53f5dc1ec2392145e169a9f3cb85f5dbaaddc4639b25cc811475afc6194e9719007ad77f110562153cacad33a728392a2eba240feb25cd61d8df102293a1a8
|
data/README.md
CHANGED
@@ -1,12 +1,20 @@
|
|
1
1
|
# puppet-lint global resource check
|
2
2
|
|
3
|
+
[](https://travis-ci.org/ninech/puppet-lint-global_resource-check)
|
4
|
+
|
3
5
|
## Installation
|
4
6
|
|
5
7
|
To use this plugin, add the following like to the Gemfile in your Puppet code
|
6
8
|
base and run `bundle install`.
|
7
9
|
|
8
10
|
```ruby
|
9
|
-
gem 'puppet-lint-global_resource-check'
|
11
|
+
gem 'puppet-lint-global_resource-check', '~> '0.3.0'
|
12
|
+
```
|
13
|
+
|
14
|
+
For puppet-lint version 1.1
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem 'puppet-lint-global_resource-check', '~> '0.2.0'
|
10
18
|
```
|
11
19
|
|
12
20
|
## Usage
|
@@ -5,11 +5,6 @@ PuppetLint.new_check(:global_resource) do
|
|
5
5
|
|
6
6
|
class_indexes.each { |c| secure << [c[:start], c[:end]] }
|
7
7
|
defined_type_indexes.each { |d| secure << [d[:start], d[:end]] }
|
8
|
-
|
9
|
-
# node_indexes will be in the next puppet-lint version
|
10
|
-
unless defined? node_indexes
|
11
|
-
node_indexes = PuppetLint::Data.definition_indexes(:NODE)
|
12
|
-
end
|
13
8
|
node_indexes.each { |n| secure << [n[:start], n[:end]] }
|
14
9
|
|
15
10
|
resource_indexes.each do |r|
|
@@ -1,6 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'global_resource' do
|
4
|
+
|
5
|
+
before do
|
6
|
+
# Bugfix/Workaround for https://github.com/rodjek/puppet-lint/pull/569
|
7
|
+
PuppetLint::Data.instance_variable_set '@node_indexes', nil
|
8
|
+
end
|
4
9
|
|
5
10
|
context 'just a class' do
|
6
11
|
let(:code) { "class test { file { 'file': } }" }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint-global_resource-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marius Rieder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet-lint
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,8 +80,8 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
84
|
-
|
83
|
+
description: " Extends puppet-lint to ensure that your manifests have no global
|
84
|
+
resources.\n"
|
85
85
|
email: marius.rieder@nine.ch
|
86
86
|
executables: []
|
87
87
|
extensions: []
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.5.1
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: puppet-lint global_resource check
|