cucumber-tag-expressions 5.0.1 → 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: 1b87b10d114d0d91e9e548b5a8ebeb09a6d7fc380055ad0af94b953381ee22a2
4
- data.tar.gz: e6df815ca32a4a5bc2df23b8ea98c3796568d91884f1c9692ea01bc2c1ddee72
3
+ metadata.gz: 2312b78c7cff8f3e217b2d1bf5ed62d3d19a10d589f07af122ab60a99f673b0c
4
+ data.tar.gz: 7ffb987ae6e9f033bcdb32ad41d4c69ca425b63f091ce8a2ce628fc4855fe123
5
5
  SHA512:
6
- metadata.gz: 79fcd2ef736b91c4205df3db03fb1d7ae7a8747c221f47fa7fd8e500d900a524fdbc1a9a6f97b173f0e342a3b42ddcdf1a525bae96bb2a4b80b8616c618eb4b4
7
- data.tar.gz: 1a26467d3099321245017a68b59143d64076269cc360f039d6e328a01ebe8adea01c1695e6c3debf2cb173f81c0421a447aa203235e1e6e5d228868810f9741a
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.1
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-03 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.1
95
+ summary: cucumber-tag-expressions-5.0.2
96
96
  test_files:
97
97
  - spec/errors_spec.rb
98
98
  - spec/evaluations_spec.rb