probatio_diabolica 0.1.0 → 0.1.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 +4 -4
- data/README.md +22 -0
- data/bin/prd +2 -0
- data/lib/pr_d/version.rb +1 -1
- data/lib/pr_d.rb +6 -0
- data/probatio_diabolica.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a46ed1b10870332ab3c8312d822de9e1f90b4345fc52fef489999c022db48feb
|
|
4
|
+
data.tar.gz: 4434e7f69ced51a3e01c01c3b80c6383c7e53043705f2cf6f1ff37b23da5d488
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e99f0c3343aa6ab0bc31f18a7682935d30e0f7471f6e4ade41756d2758fc013e2c294a438046e4f4265ab62909a8cc6a1929debe6b66ded9ab11983029d4a322
|
|
7
|
+
data.tar.gz: 0be79d64e70f33e9c39d3eb272289d23e1d77039d53e43cf2f3b7ff152936100f09d704d3b855e42b9c9a72409e0ea069d4e0589844ddeb60c9b5af380847051
|
data/README.md
CHANGED
|
@@ -56,6 +56,28 @@ gem build probatio_diabolica.gemspec
|
|
|
56
56
|
gem install ./probatio_diabolica-*.gem
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
## Release workflow
|
|
60
|
+
|
|
61
|
+
Use the release helper to bump version, refresh `Gemfile.lock`, create commit/tag, and push:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# explicit version
|
|
65
|
+
bin/release --version 0.2.0
|
|
66
|
+
|
|
67
|
+
# or env-style
|
|
68
|
+
VERSION=0.2.0 bin/release
|
|
69
|
+
|
|
70
|
+
# semantic bump from current version
|
|
71
|
+
bin/release --bump patch
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Useful options:
|
|
75
|
+
|
|
76
|
+
- `--dry-run` preview all actions without modifying files/git
|
|
77
|
+
- `--no-push` create commit/tag locally only
|
|
78
|
+
- `--skip-tests` skip `bundle exec ruby bin/prd spec --mode synthetic`
|
|
79
|
+
- `--allow-dirty` bypass clean-working-tree guard
|
|
80
|
+
|
|
59
81
|
After installation, you can run:
|
|
60
82
|
|
|
61
83
|
```bash
|
data/bin/prd
CHANGED
|
@@ -79,4 +79,6 @@ serializers = {
|
|
|
79
79
|
formatter = formatter_class.new(io:, serializers:, mode: mode.to_sym)
|
|
80
80
|
runtime = PrD::Runtime.new(formatter:, output_dir: options[:out], config_file: options[:config])
|
|
81
81
|
runtime.run(tests)
|
|
82
|
+
exit_status = runtime.success? ? 0 : 1
|
|
82
83
|
io.close if io != STDOUT
|
|
84
|
+
exit(exit_status)
|
data/lib/pr_d/version.rb
CHANGED
data/lib/pr_d.rb
CHANGED
|
@@ -69,6 +69,8 @@ module PrD
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
attr_reader :passed_count, :failed_count
|
|
73
|
+
|
|
72
74
|
def describe(description, model: nil, &block)
|
|
73
75
|
context(description, model: model, &block)
|
|
74
76
|
@formatter.result(@passed_count, @failed_count)
|
|
@@ -185,6 +187,10 @@ module PrD
|
|
|
185
187
|
@formatter.flush
|
|
186
188
|
end
|
|
187
189
|
|
|
190
|
+
def success?
|
|
191
|
+
@failed_count.zero?
|
|
192
|
+
end
|
|
193
|
+
|
|
188
194
|
private
|
|
189
195
|
|
|
190
196
|
def formatted_time
|
data/probatio_diabolica.gemspec
CHANGED
|
@@ -10,13 +10,13 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
|
|
11
11
|
spec.summary = "A Ruby DSL testing framework with classic and LLM-powered matchers."
|
|
12
12
|
spec.description = "Probatio Diabolica runs custom *_spec.rb files with a DSL inspired by RSpec and supports text/image/PDF reporting."
|
|
13
|
-
spec.homepage = "https://github.com/
|
|
13
|
+
spec.homepage = "https://github.com/mathieulaporte/probatio_diabolica"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
spec.required_ruby_version = ">= 3.1"
|
|
16
16
|
|
|
17
17
|
spec.metadata = {
|
|
18
|
-
"source_code_uri" => "https://github.com/
|
|
19
|
-
"changelog_uri" => "https://github.com/
|
|
18
|
+
"source_code_uri" => "https://github.com/mathieulaporte/probatio_diabolica",
|
|
19
|
+
"changelog_uri" => "https://github.com/mathieulaporte/probatio_diabolica/releases"
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
spec.files = Dir[
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: probatio_diabolica
|
|
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
|
- Laporte Mathieu
|
|
@@ -111,12 +111,12 @@ files:
|
|
|
111
111
|
- lib/pr_d/version.rb
|
|
112
112
|
- lib/probatio_diabolica.rb
|
|
113
113
|
- probatio_diabolica.gemspec
|
|
114
|
-
homepage: https://github.com/
|
|
114
|
+
homepage: https://github.com/mathieulaporte/probatio_diabolica
|
|
115
115
|
licenses:
|
|
116
116
|
- MIT
|
|
117
117
|
metadata:
|
|
118
|
-
source_code_uri: https://github.com/
|
|
119
|
-
changelog_uri: https://github.com/
|
|
118
|
+
source_code_uri: https://github.com/mathieulaporte/probatio_diabolica
|
|
119
|
+
changelog_uri: https://github.com/mathieulaporte/probatio_diabolica/releases
|
|
120
120
|
rdoc_options: []
|
|
121
121
|
require_paths:
|
|
122
122
|
- lib
|