spectre-core 1.14.6 → 1.15.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/exe/spectre +3 -9
- data/lib/spectre/assertion.rb +3 -1
- data/lib/spectre/logging.rb +1 -1
- data/lib/spectre/resources.rb +4 -0
- data/lib/spectre.rb +2 -2
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6020c89f880a4c5485a0b6a49cc262a895bc059b21e13b03e58292c0530268e
|
4
|
+
data.tar.gz: f7cfed9d59ec0dd71e45c4a3e924281981141becc9c1949e686cea9ded86c4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba2460aaecc2832bc4e4c6021da1140afd60d9ec8347ae7f92a84ac39b7a78f56e4c13a0269547e79fa160586caf420024e3af39b521ed2554da96f62d9fe82
|
7
|
+
data.tar.gz: 786517953ea35d0168a86d40e33854fcee5b3415a79f6411ace4fc7d6f56af5e33dcd74dce77e39c29511e7c0005dc9b3ef287e8e9c1f1377cb2b66212c94e97
|
data/exe/spectre
CHANGED
@@ -22,7 +22,6 @@ DEFAULT_CONFIG = {
|
|
22
22
|
'environment' => 'default',
|
23
23
|
'specs' => [],
|
24
24
|
'tags' => [],
|
25
|
-
'colored' => true,
|
26
25
|
'verbose' => false,
|
27
26
|
'log_file' => './logs/spectre_<date>.log',
|
28
27
|
'log_format' => {
|
@@ -46,7 +45,7 @@ DEFAULT_CONFIG = {
|
|
46
45
|
'env_patterns' => ['./environments/**/*.env.yml'],
|
47
46
|
'env_partial_patterns' => ['./environments/**/*.env.secret.yml'],
|
48
47
|
'resource_paths' => ['../common/resources', './resources'],
|
49
|
-
'
|
48
|
+
'default_modules' => [
|
50
49
|
'spectre/helpers',
|
51
50
|
'spectre/reporter/console',
|
52
51
|
'spectre/logging/console',
|
@@ -117,10 +116,6 @@ OptionParser.new do |opts|
|
|
117
116
|
cmd_options['env_patterns'] = env_patterns
|
118
117
|
end
|
119
118
|
|
120
|
-
opts.on('--no-color', 'Disable colored output') do
|
121
|
-
cmd_options['colored'] = false
|
122
|
-
end
|
123
|
-
|
124
119
|
opts.on('--ignore-failure', 'Always exit with code 0') do
|
125
120
|
cmd_options['ignore_failure'] = true
|
126
121
|
end
|
@@ -253,8 +248,6 @@ cfg.deep_merge! env if env
|
|
253
248
|
cfg.deep_merge! property_overrides
|
254
249
|
|
255
250
|
|
256
|
-
String.colored! if cfg['colored']
|
257
|
-
|
258
251
|
# Load environment exlicitly before loading specs to make it available in spec definition
|
259
252
|
require_relative '../lib/spectre/environment' unless cfg['exclude'].include? 'spectre/environment'
|
260
253
|
Spectre.configure(cfg)
|
@@ -325,8 +318,9 @@ if ['list', 'run'].include? action
|
|
325
318
|
|
326
319
|
# Load Modules
|
327
320
|
|
328
|
-
cfg['
|
321
|
+
cfg['default_modules']
|
329
322
|
.concat(cfg['include'])
|
323
|
+
.concat(cfg['modules'])
|
330
324
|
.select { |mod| !cfg['exclude'].include? mod }
|
331
325
|
.each do |mod|
|
332
326
|
begin
|
data/lib/spectre/assertion.rb
CHANGED
@@ -269,6 +269,8 @@ module Spectre
|
|
269
269
|
end
|
270
270
|
end
|
271
271
|
|
272
|
+
alias assert expect
|
273
|
+
|
272
274
|
def observe desc = nil
|
273
275
|
prefix = 'observing'
|
274
276
|
prefix += " '#{desc}'" if desc
|
@@ -303,6 +305,6 @@ module Spectre
|
|
303
305
|
@@debug = config['debug']
|
304
306
|
end
|
305
307
|
|
306
|
-
Spectre.delegate :expect, :observe, :success?, :fail_with, to: self
|
308
|
+
Spectre.delegate :expect, :assert, :observe, :success?, :fail_with, to: self
|
307
309
|
end
|
308
310
|
end
|
data/lib/spectre/logging.rb
CHANGED
data/lib/spectre/resources.rb
CHANGED
data/lib/spectre.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectre-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Neubauer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ectoplasm
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '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: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jsonpath
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
description: A DSL and command line tool to describe and run automated tests
|
42
42
|
email:
|
43
43
|
- christian.neubauer@ionos.com
|
@@ -72,7 +72,7 @@ metadata:
|
|
72
72
|
homepage_uri: https://github.com/ionos-spectre/spectre-core
|
73
73
|
source_code_uri: https://github.com/ionos-spectre/spectre-core
|
74
74
|
changelog_uri: https://github.com/ionos-spectre/spectre-core/blob/master/CHANGELOG.md
|
75
|
-
post_install_message:
|
75
|
+
post_install_message:
|
76
76
|
rdoc_options: []
|
77
77
|
require_paths:
|
78
78
|
- lib
|
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
|
-
rubygems_version: 3.3.
|
91
|
-
signing_key:
|
90
|
+
rubygems_version: 3.3.27
|
91
|
+
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Describe and run automated tests
|
94
94
|
test_files: []
|