cucumber-tag-expressions 5.0.0 → 5.0.2

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: c0642b9d453a4744506946b51bbde89b079a8db597c0f0f67122340283c98c07
4
- data.tar.gz: 9a5e50d412b6b352b6ee9c8276941471fa29b183edf76eedc59482671c40a732
3
+ metadata.gz: 2312b78c7cff8f3e217b2d1bf5ed62d3d19a10d589f07af122ab60a99f673b0c
4
+ data.tar.gz: 7ffb987ae6e9f033bcdb32ad41d4c69ca425b63f091ce8a2ce628fc4855fe123
5
5
  SHA512:
6
- metadata.gz: c6dad5df3a70282c263c30ca2c89335752843f34960e89e49ff3d90490a3d15f1574cf14a6e2ac49016f6f682dce0abb66151bc8a45700d48c691864da516907
7
- data.tar.gz: ce5a050cd9b6c2ae6f907cf5de61ec0a77c724a4361da2d46bfe507f9114bcec3ba2ae271105f41d1fc9a3d1c6684ab19348f6dc4bd5bd393afed8c78be44dfe
6
+ metadata.gz: d482565331f707b19b224d9a67dbaeeca84b8707e53abf653274b465afc18d8cc36f20d93a6d644d631171ec1073eabc4a634bac8f1826db7bf48af1323fa044
7
+ data.tar.gz: 78cf8ecaf1a210a8a4374b608305256f8565274993f388f819060da2ec0c1483e7966e3bd7b952fbe3d655f5408369b515d542fab53a1a5f8acef7afc1883c38
@@ -30,7 +30,12 @@ module Cucumber
30
30
  end
31
31
 
32
32
  def to_s
33
- "not ( #{@expression} )"
33
+ if @expression.is_a?(And)|| @expression.is_a?(Or)
34
+ # -- HINT: Binary operatos provides already "( ... )"
35
+ "not #{@expression}"
36
+ else
37
+ "not ( #{@expression} )"
38
+ end
34
39
  end
35
40
  end
36
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-tag-expressions
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Nodari
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-01-02 00:00:00.000000000 Z
12
+ date: 2023-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -92,7 +92,7 @@ requirements: []
92
92
  rubygems_version: 3.2.22
93
93
  signing_key:
94
94
  specification_version: 4
95
- summary: cucumber-tag-expressions-5.0.0
95
+ summary: cucumber-tag-expressions-5.0.2
96
96
  test_files:
97
97
  - spec/errors_spec.rb
98
98
  - spec/evaluations_spec.rb