voxpupuli-test 9.0.0 → 9.2.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -1
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f069b7c77b1b12a06412e4e12c2ecada41007a174301a6af4d96e556018709c
4
- data.tar.gz: e92c583e9d321d6de5fd99d6ab7d5491b0399a0b8dddeb800c48e6bcc1c9ff29
3
+ metadata.gz: 71c6e08123426c8d07b50efe5c35be89b9f1416177be3bec4ae4609ec0d30b32
4
+ data.tar.gz: f9c3b2f225a0702629f16ad8e8e9b5e54e9d83ac347cb6c79e7c0c07a9870268
5
5
  SHA512:
6
- metadata.gz: d9e326670942388f36b61164dc06dd83328d2fd1fe8a1f9d4db084a081e1c341b125658bbbf83d9ac2fc22263917333b6c2aa10bd87c4daa66f09eedae05ae0a
7
- data.tar.gz: c1557d2bf6d4df55cccbee2d75c647fb1328fb919b3dbf504d514419979c89987eaf351a643920d4b1d84d02b9fbf3b5b691d6c329b81c33d5855646d28a3f22
6
+ metadata.gz: 7c0797dc532f84a4889d5f281f34247ea471d32315930e4c517dbf33538d0963c2d424f3e2e07ebc591dd5f4dbd34f7180982756fb779c6b75d48de050c926a5
7
+ data.tar.gz: 7ff8d8b75a3e8b76b512436d36639c87042553c0da85acf70da1cedc109daf12202cc339fd7f7e3e91b3be1448988caaed57c53238c551a53a8ab3c4c382e8f5
data/README.md CHANGED
@@ -7,7 +7,9 @@
7
7
  [![RubyGem Version](https://img.shields.io/gem/v/voxpupuli-test.svg)](https://rubygems.org/gems/voxpupuli-test)
8
8
  [![RubyGem Downloads](https://img.shields.io/gem/dt/voxpupuli-test.svg)](https://rubygems.org/gems/voxpupuli-test)
9
9
 
10
- This is a helper Gem to test the various Vox Pupuli Puppet modules. This Gem provides common functionality for rspec-puppet based testing. The aim is to reduce the boiler plate and need for modulesync.
10
+ This is a helper Gem to test the various Vox Pupuli Puppet modules.
11
+ This Gem provides common functionality for rspec-puppet based testing and static code analysis.
12
+ The aim is to reduce the boiler plate and need for modulesync.
11
13
 
12
14
  ## Usage
13
15
 
@@ -36,6 +38,43 @@ inherit_gem:
36
38
  voxpupuli-test: rubocop.yml
37
39
  ```
38
40
 
41
+ To run the linter, the syntax checker and the unit tests:
42
+
43
+ ```sh
44
+ bundle exec rake test
45
+ ```
46
+
47
+ To run your all the unit tests:
48
+
49
+ ```sh
50
+ bundle exec rake spec
51
+ ```
52
+
53
+ To run a specific spec test set the `SPEC` variable:
54
+
55
+ ```sh
56
+ SPEC=spec/classes/foo_spec.rb bundle exec rake spec
57
+ ```
58
+
59
+ To run all the static code analysis and linting:
60
+
61
+ ```sh
62
+ bundle exec rake validate lint check rubocop
63
+ ```
64
+
65
+
66
+ To autocorrect Puppet files:
67
+
68
+ ```sh
69
+ bundle exec rake lint_fix
70
+ ```
71
+
72
+ To autocorrect Ruby files:
73
+
74
+ ```sh
75
+ bundle exec rake rubocop:autocorrect
76
+ ```
77
+
39
78
  ## Rake tasks
40
79
 
41
80
  ### `check:trailing_whitespace`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voxpupuli-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0
4
+ version: 9.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '7.3'
81
+ version: '8.0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '7.3'
88
+ version: '8.0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: puppet-strings
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '4.0'
109
+ version: '5.0'
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '4.0'
116
+ version: '5.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: rspec-puppet-facts
119
119
  requirement: !ruby/object:Gem::Requirement