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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87aae75383dacde0c5edd3ad5b9220b377a3bf4c5864789c7c290fda5ec46d99
4
- data.tar.gz: 7071402cb891a696c05cef503150bbb063f0d7cec0482edf9bfa9f2a180d0d88
3
+ metadata.gz: d6020c89f880a4c5485a0b6a49cc262a895bc059b21e13b03e58292c0530268e
4
+ data.tar.gz: f7cfed9d59ec0dd71e45c4a3e924281981141becc9c1949e686cea9ded86c4f8
5
5
  SHA512:
6
- metadata.gz: 4049a9d337f258ffc3e4bf44fe1db19d4451ad4d86ff573962fa65a2abb771288e01235a564e19d57884d93618af923ec2920cace0e2d1a488f733f4bd323e08
7
- data.tar.gz: 2a9d89cc19ffca8ad91615bdcad206fcb9a7276e12d34be1f354b62c119d92c23fe75229c3688646298e1bd77880bbb70e5d11aaee3bababb929c8c16747467e
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
- 'modules' => [
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['modules']
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
@@ -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
@@ -15,7 +15,7 @@ module Spectre
15
15
 
16
16
  class ModuleLogger
17
17
  attr_reader :logger
18
-
18
+
19
19
  def initialize config, name
20
20
  @name = name
21
21
  @debug = config['debug']
@@ -18,6 +18,10 @@ module Spectre
18
18
 
19
19
  @items[name]
20
20
  end
21
+
22
+ def key? name
23
+ @items.key? name
24
+ end
21
25
  end
22
26
 
23
27
  class << self
data/lib/spectre.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  module Spectre
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 14
5
- TINY = 6
4
+ MINOR = 15
5
+ TINY = 1
6
6
  end
7
7
 
8
8
  VERSION = [Version::MAJOR, Version::MINOR, Version::TINY].compact * '.'
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.14.6
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: 2024-04-03 00:00:00.000000000 Z
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: 1.2.3
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: 1.2.3
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: 1.1.0
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: 1.1.0
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.26
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: []