spectre-core 1.14.5 → 1.15.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 338caf54824ce03967eced5d5456e62bc634bcff544f75159c2e775c47fe2a99
4
- data.tar.gz: e4717d1f68ae3d47af657d6e088a1b61bba06fcc03da8ba023c3c59cd8c240fb
3
+ metadata.gz: cb690f31c5559e18bbea95c9d29855d13b78bc954b0144b2949e72e5c1205175
4
+ data.tar.gz: d731d7c93e66b62efa04b6c5a8f9f87bcbcb7ad13a61e2c6e3e1b4e0d53bc01e
5
5
  SHA512:
6
- metadata.gz: b2a12fcb6fde8f139fc28e2656c7e6a36dcc319fa27d05b94b0fcf1db9cd1b23935fb6d7cde0522f29910139033ce57f2a3afff5c444abda30ecfb8fd1d2a356
7
- data.tar.gz: b4862086c69bb6208237fcbe021d33694e62081e357bfaa07983239146465342f0a17e49cb67306aa383966010f9ab51005805e5d6419e276c95e74e44135367
6
+ metadata.gz: 799f33f7d995f8d0b5958da5ba60ec811da6b3d6cb68da21476e34c67f9a31a9bc8f53cbdb5fcf77b004aa0ea14c22c6e9def5a3acdc3136ff17ac0be7076d69
7
+ data.tar.gz: 8057de7ceb886b3f4d04ce54386f619e21684c8759320b9e762ed4e99357ca0930726211c487b26679219812a44457f18a31e7fdf7eb363aa103f4213213773a
data/exe/spectre CHANGED
@@ -8,6 +8,7 @@ require 'fileutils'
8
8
  require 'ectoplasm'
9
9
 
10
10
  require_relative '../lib/spectre'
11
+ require_relative '../lib/spectre/reporter'
11
12
 
12
13
  def load_yaml file_path
13
14
  yaml = File.read(file_path)
@@ -45,7 +46,7 @@ DEFAULT_CONFIG = {
45
46
  'env_patterns' => ['./environments/**/*.env.yml'],
46
47
  'env_partial_patterns' => ['./environments/**/*.env.secret.yml'],
47
48
  'resource_paths' => ['../common/resources', './resources'],
48
- 'modules' => [
49
+ 'default_modules' => [
49
50
  'spectre/helpers',
50
51
  'spectre/reporter/console',
51
52
  'spectre/logging/console',
@@ -324,8 +325,9 @@ if ['list', 'run'].include? action
324
325
 
325
326
  # Load Modules
326
327
 
327
- cfg['modules']
328
+ cfg['default_modules']
328
329
  .concat(cfg['include'])
330
+ .concat(cfg['modules'])
329
331
  .select { |mod| !cfg['exclude'].include? mod }
330
332
  .each do |mod|
331
333
  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
@@ -14,6 +14,8 @@ module Spectre
14
14
  end
15
15
 
16
16
  class ModuleLogger
17
+ attr_reader :logger
18
+
17
19
  def initialize config, name
18
20
  @name = name
19
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 = 5
4
+ MINOR = 15
5
+ TINY = 0
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.5
4
+ version: 1.15.0
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-03-20 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: []