voxpupuli-test 9.0.0 → 9.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f069b7c77b1b12a06412e4e12c2ecada41007a174301a6af4d96e556018709c
4
- data.tar.gz: e92c583e9d321d6de5fd99d6ab7d5491b0399a0b8dddeb800c48e6bcc1c9ff29
3
+ metadata.gz: de5c4c45c655748d32946dd4996b350123da84b4de37dcbdefad71d073a99f1e
4
+ data.tar.gz: 4688827b9faa18c63744ec5949051578e34e71496ca5e79cbf537231456bd425
5
5
  SHA512:
6
- metadata.gz: d9e326670942388f36b61164dc06dd83328d2fd1fe8a1f9d4db084a081e1c341b125658bbbf83d9ac2fc22263917333b6c2aa10bd87c4daa66f09eedae05ae0a
7
- data.tar.gz: c1557d2bf6d4df55cccbee2d75c647fb1328fb919b3dbf504d514419979c89987eaf351a643920d4b1d84d02b9fbf3b5b691d6c329b81c33d5855646d28a3f22
6
+ metadata.gz: 4812da35ffe384f2bf4a1914d26337be1a49bf0912a67d8170d1643783cb303bdef7016f66b3cb7631820aeebdd07d0d52dddac14b017b7ac62af1887dfc325b
7
+ data.tar.gz: 80cadbb87158f50124cde42336209ae013ffdc0d2862314a297c28b97c03395ccdfb6a24def7d85cf74ddb86773eb9b769419e49fe8b75323aa31234ed6e8501
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.1.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-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -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