allure-rspec 2.13.8.2 → 2.13.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73aaf789a4f2dad6d1681e4fe8ca764158f9a94739380d57d109db2713dcd27d
4
- data.tar.gz: e8f7a74c004f18ae20f3c3a0e602e7342e4b4a6b8ac10ca6e62bb886b5dce67a
3
+ metadata.gz: 64cc3df4ca4fdc6d5c03ffd350636fdd1adf1d1b380adf676729baedf20cd558
4
+ data.tar.gz: 43b4c2d026e4d73ccd13c3389ac1094d9f87aa49b7daf3861b7b6c5ee275dacd
5
5
  SHA512:
6
- metadata.gz: ac2616d7aba707b9d9b0446e34ae29737a465ce79dc92382c32239809137a00e6a5e46c52de829c8874015e9bc2f79b5c37fe68e92006623026c62272e88d6db
7
- data.tar.gz: 944ed0ded513b4b97c8ecd3ddd59f6ed0f6e20fc71de6660bbfd9808e95ffdbc0d441f1c3920cd0067184fd6c2559770f779bad0ccb211f7998f3f825d4eb669
6
+ metadata.gz: 5bf9d35a82ab0f3a36d1bd134489ac02e16660d584fd42e076966de82e8ae7e6c2546024eee7851155f6cd06fc02ef4db93b828dcac2abd27b4dc9c2124175dc
7
+ data.tar.gz: ffcc4cc2d5907e2fee29de24648f39fdc8414b3f816a7ce0eb27a21786f241e60d4345b29f2f29a2d1a7f5213756dba948776d938d638528ae1f8cdae86dde5f
@@ -7,9 +7,9 @@ module AllureRspec
7
7
  # @param [Hash] metadata
8
8
  # @return [Array<Allure::Label>]
9
9
  def tag_labels(metadata)
10
- return [] unless metadata.keys.any? { |k| allure?(k) }
11
-
12
- metadata.select { |k| allure?(k) }.values.map { |v| Allure::ResultUtils.tag_label(v) }
10
+ metadata.reject { |k| RSPEC_IGNORED_METADATA.include?(k) }.map do |k, v|
11
+ allure?(k) ? Allure::ResultUtils.tag_label(v) : Allure::ResultUtils.tag_label(k.to_s)
12
+ end
13
13
  end
14
14
 
15
15
  # Get tms links
@@ -46,6 +46,28 @@ module AllureRspec
46
46
 
47
47
  private
48
48
 
49
+ RSPEC_IGNORED_METADATA = %i[
50
+ absolute_file_path
51
+ block
52
+ described_class
53
+ description
54
+ description_args
55
+ example_group
56
+ execution_result
57
+ file_path
58
+ full_description
59
+ last_run_status
60
+ line_number
61
+ location
62
+ rerun_file_path
63
+ retry
64
+ retry_attempts
65
+ retry_exceptions
66
+ scoped_id
67
+ shared_group_inclusion_backtrace
68
+ type
69
+ ].freeze
70
+
49
71
  # @param [Hash] metadata
50
72
  # @param [Symbol] type
51
73
  # @return [Array<Allure::Link>]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allure-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.8.2
4
+ version: 2.13.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrejs Cunskis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-16 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: allure-ruby-commons
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.13.8.2
19
+ version: 2.13.8.3
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: 2.13.8.2
26
+ version: 2.13.8.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-core
29
29
  requirement: !ruby/object:Gem::Requirement