puppet-lint-spaceship_operator_without_tag-check 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +33 -10
- data/spec/spec_helper.rb +4 -2
- metadata +32 -24
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZTZiNmFlNTEwYjMxZDdiMmExMjM3ZWU4YmEzNTk2MDc3ZjcxYzM3Yg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NjQ5MzZlODIxMmU4MzM0NGM1ZDkwNTAxNGUyMzg5M2UyZjc2NmE1YQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YWNmMDdlZDMzZTZmYjZjMGFjNGY5ZTUxZGE1OGYxYzU2YjhjZTViYzllNjhk
|
10
|
+
Y2UzNGJhNTFlZDBjYmJjZDU5ODYxNmI3MmNiNmE5YjdmZTNkYTcxZWMzOGRk
|
11
|
+
MzYxN2VlMzk5YjNiNWE4ZDE1Mjg2ZGU2MTdhNDlhOWY1NzEwOGE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NWVkZGU4MTYyMzBhN2M5OGQzZWViODFmZWQwNzY0ZjBhMzQ4MmRiNzc4NWYx
|
14
|
+
MTJkMTczZTQ0NmFjZDhmM2ZlZTkwOWUyM2M5NGI4MzUzNTk4YzJhOWQ5MTM0
|
15
|
+
NzVmMTQyZGVhODBmMzBlNjY4MjgzMDg4YmNiNDIwM2QxMjgyZGY=
|
data/README.md
CHANGED
@@ -1,19 +1,34 @@
|
|
1
1
|
puppet-lint-spaceship_operator_without_tag-check
|
2
|
-
|
2
|
+
================================================
|
3
3
|
|
4
|
-
[![Build Status](https://
|
5
|
-
[![
|
6
|
-
[![Gem
|
7
|
-
[![Coverage Status](https://img.shields.io/coveralls/
|
4
|
+
[![Build Status](https://img.shields.io/travis/puppet-community/puppet-lint-spaceship_operator_without_tag-check.svg)](https://travis-ci.org/puppet-community/puppet-lint-spaceship_operator_without_tag-check)
|
5
|
+
[![Gem Version](https://img.shields.io/gem/v/puppet-lint-spaceship_operator_without_tag-check.svg)](https://rubygems.org/gems/puppet-lint-spaceship_operator_without_tag-check)
|
6
|
+
[![Gem Downloads](https://img.shields.io/gem/dt/puppet-lint-spaceship_operator_without_tag-check.svg)](https://rubygems.org/gems/puppet-lint-spaceship_operator_without_tag-check)
|
7
|
+
[![Coverage Status](https://img.shields.io/coveralls/puppet-community/puppet-lint-spaceship_operator_without_tag-check.svg)](https://coveralls.io/r/puppet-community/puppet-lint-spaceship_operator_without_tag-check?branch=master)
|
8
|
+
[![Gemnasium](https://img.shields.io/gemnasium/puppet-community/puppet-lint-spaceship_operator_without_tag-check.svg)](https://gemnasium.com/puppet-community/puppet-lint-spaceship_operator_without_tag-check)
|
9
|
+
[![Donated by Camptocamp](https://img.shields.io/badge/donated%20by-camptocamp-fb7047.svg)](#transfer-notice)
|
8
10
|
|
9
11
|
A puppet-lint plugin to check that spaceship operator is called with a tag.
|
10
12
|
|
13
|
+
## Installing
|
14
|
+
|
15
|
+
### From the command line
|
16
|
+
|
17
|
+
```shell
|
18
|
+
$ gem install puppet-lint-spaceship_operator_without_tag-check
|
19
|
+
```
|
20
|
+
|
21
|
+
### In a Gemfile
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
gem 'puppet-lint-spaceship_operator_without_tag-check', :require => false
|
25
|
+
```
|
11
26
|
|
12
27
|
## Checks
|
13
28
|
|
14
29
|
### Spaceship operator without tag
|
15
30
|
|
16
|
-
Calling spaceship operator (<| |>) without tag can be dangerous because it will realise all virtual resources of that type.
|
31
|
+
Calling spaceship operator (<| |>) without tag can be dangerous because it will realise all virtual resources of that type (https://tickets.puppetlabs.com/browse/PUP-3825).
|
17
32
|
|
18
33
|
#### What you have done
|
19
34
|
|
@@ -24,19 +39,27 @@ Package <| |>
|
|
24
39
|
#### What you should have done
|
25
40
|
|
26
41
|
```puppet
|
27
|
-
Package <|
|
42
|
+
Package <| virtual == true |>
|
28
43
|
```
|
29
44
|
|
30
45
|
#### Disabling the check
|
31
46
|
|
32
|
-
To disable this check, you can add `--no-
|
47
|
+
To disable this check, you can add `--no-spaceship_operator_without_tag-check` to your puppet-lint command line.
|
33
48
|
|
34
49
|
```shell
|
35
|
-
$ puppet-lint --no-
|
50
|
+
$ puppet-lint --no-spaceship_operator_without_tag-check path/to/file.pp
|
36
51
|
```
|
37
52
|
|
38
53
|
Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your `Rakefile`.
|
39
54
|
|
40
55
|
```ruby
|
41
|
-
PuppetLint.configuration.send('
|
56
|
+
PuppetLint.configuration.send('disable_spaceship_operator_without_tag')
|
42
57
|
```
|
58
|
+
|
59
|
+
## Transfer Notice
|
60
|
+
|
61
|
+
This plugin was originally authored by [Camptocamp](http://www.camptocamp.com).
|
62
|
+
The maintainer preferred that Puppet Community take ownership of the module for future improvement and maintenance.
|
63
|
+
Existing pull requests and issues were transferred over, please fork and continue to contribute here instead of Camptocamp.
|
64
|
+
|
65
|
+
Previously: https://github.com/camptocamp/puppet-lint-spaceship_operator_without_tag-check
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,115 +1,123 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint-spaceship_operator_without_tag-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Puppet Community
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet-lint
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.0'
|
20
|
+
- - <
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.0'
|
30
|
+
- - <
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rspec
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- -
|
37
|
+
- - ~>
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: '3.0'
|
34
40
|
type: :development
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- -
|
44
|
+
- - ~>
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: '3.0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rspec-its
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '1.0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- -
|
58
|
+
- - ~>
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '1.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rspec-collection_matchers
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- -
|
65
|
+
- - ~>
|
60
66
|
- !ruby/object:Gem::Version
|
61
67
|
version: '1.0'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- -
|
72
|
+
- - ~>
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '1.0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: mime-types
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- -
|
79
|
+
- - ~>
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: '1.0'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
|
-
- -
|
86
|
+
- - ~>
|
81
87
|
- !ruby/object:Gem::Version
|
82
88
|
version: '1.0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: coveralls
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- -
|
93
|
+
- - ~>
|
88
94
|
- !ruby/object:Gem::Version
|
89
95
|
version: '0.7'
|
90
96
|
type: :development
|
91
97
|
prerelease: false
|
92
98
|
version_requirements: !ruby/object:Gem::Requirement
|
93
99
|
requirements:
|
94
|
-
- -
|
100
|
+
- - ~>
|
95
101
|
- !ruby/object:Gem::Version
|
96
102
|
version: '0.7'
|
97
103
|
- !ruby/object:Gem::Dependency
|
98
104
|
name: rake
|
99
105
|
requirement: !ruby/object:Gem::Requirement
|
100
106
|
requirements:
|
101
|
-
- -
|
107
|
+
- - ! '>='
|
102
108
|
- !ruby/object:Gem::Version
|
103
109
|
version: '0'
|
104
110
|
type: :development
|
105
111
|
prerelease: false
|
106
112
|
version_requirements: !ruby/object:Gem::Requirement
|
107
113
|
requirements:
|
108
|
-
- -
|
114
|
+
- - ! '>='
|
109
115
|
- !ruby/object:Gem::Version
|
110
116
|
version: '0'
|
111
|
-
description:
|
112
|
-
|
117
|
+
description: ! ' A puppet-lint plugin to check that spaceship operator is called
|
118
|
+
with a tag.
|
119
|
+
|
120
|
+
'
|
113
121
|
email: mickael.canevet@camptocamp.com
|
114
122
|
executables: []
|
115
123
|
extensions: []
|
@@ -120,7 +128,7 @@ files:
|
|
120
128
|
- lib/puppet-lint/plugins/check_spaceship_operator_without_tag.rb
|
121
129
|
- spec/puppet-lint/plugins/check_spaceship_operator_without_tag_spec.rb
|
122
130
|
- spec/spec_helper.rb
|
123
|
-
homepage: https://github.com/
|
131
|
+
homepage: https://github.com/puppet-community/puppet-lint-spaceship_operator_without_tag-check
|
124
132
|
licenses:
|
125
133
|
- Apache-2.0
|
126
134
|
metadata: {}
|
@@ -130,20 +138,20 @@ require_paths:
|
|
130
138
|
- lib
|
131
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
132
140
|
requirements:
|
133
|
-
- -
|
141
|
+
- - ! '>='
|
134
142
|
- !ruby/object:Gem::Version
|
135
143
|
version: '0'
|
136
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
145
|
requirements:
|
138
|
-
- -
|
146
|
+
- - ! '>='
|
139
147
|
- !ruby/object:Gem::Version
|
140
148
|
version: '0'
|
141
149
|
requirements: []
|
142
150
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.4.5
|
144
152
|
signing_key:
|
145
153
|
specification_version: 4
|
146
154
|
summary: A puppet-lint plugin to check that spaceship operator is called with a tag.
|
147
155
|
test_files:
|
148
|
-
- spec/spec_helper.rb
|
149
156
|
- spec/puppet-lint/plugins/check_spaceship_operator_without_tag_spec.rb
|
157
|
+
- spec/spec_helper.rb
|