cucumber-cucumber-expressions 10.2.1 → 10.2.2

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: 5bba8569a4b4b7ae2a05e97b5d2e5f7b8c455b6843175475a6d55d4fb58fe8e5
4
- data.tar.gz: 443f0d744039bdd83e4aff50ef3e71738222e3436d8c094195b1e916f33078cd
3
+ metadata.gz: 5f6e54987a67d95d7c35141dc8956493e6296d510030350c5faafaa616a80c75
4
+ data.tar.gz: c52783e660007e7c9229566a9ccc2e3a790ae30bd9305fb3a6a4549fd5b6ca2e
5
5
  SHA512:
6
- metadata.gz: 3548b8ae4d3ac5f91f8a5ad31bda608cf3bdf1d24150bb0c95206966e6e5ace38506830cdda614a1b0957e257a6be78607037ddba77e73521da05011eabdb84c
7
- data.tar.gz: 89b1992ef048d7bdcf5c62aaa0038508bf80fbb5d5383a1cd96746c9f6dcf50223f44b7ddf5ac943d0e51515da2f631d6e03cce662c52660f59617c0eb822081
6
+ metadata.gz: d0e349576811fa2fa0c99b7461d020dc8b0dc4320e0cfead5adc3fddd237c2a3b99b1d6c85729ee5d05c9d1b0fd74b89553b381da514c149fe62bb7d7b813a27
7
+ data.tar.gz: 47b74fb77924ee62e500a526094f57057bc1b1d997d1944c4559115ddc36febe3f36dcd71730458ee1285c30879b6997570bf7a31d411dd56cedda4c99ffc635
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.2.1
1
+ 10.2.2
data/default.mk CHANGED
@@ -3,6 +3,10 @@ RUBY_SOURCE_FILES = $(shell find . -name "*.rb")
3
3
  GEMSPEC = $(shell find . -name "*.gemspec")
4
4
  LIBNAME := $(shell basename $$(dirname $$(pwd)))
5
5
  GEM := cucumber-$(LIBNAME)-$(NEW_VERSION).gem
6
+ IS_TESTDATA = $(findstring -testdata,${CURDIR})
7
+
8
+ # https://stackoverflow.com/questions/2483182/recursive-wildcards-in-gnu-make
9
+ rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
6
10
 
7
11
  default: .tested
8
12
  .PHONY: default
@@ -45,17 +49,25 @@ pre-release: remove-local-dependencies update-version update-dependencies gem
45
49
  .PHONY: pre-release
46
50
 
47
51
  update-version:
52
+ ifeq ($(IS_TESTDATA),-testdata)
53
+ # no-op
54
+ else
48
55
  ifdef NEW_VERSION
49
56
  @echo "$(NEW_VERSION)" > VERSION
50
57
  endif
58
+ endif
51
59
  .PHONY: update-version
52
60
 
53
61
  publish: gem
62
+ ifeq ($(IS_TESTDATA),-testdata)
63
+ # no-op
64
+ else
54
65
  ifneq (,$(GEMSPEC))
55
66
  gem push $(GEM)
56
67
  else
57
68
  @echo "Not publishing because there is no gemspec"
58
69
  endif
70
+ endif
59
71
  .PHONY: publish
60
72
 
61
73
  post-release:
@@ -33,3 +33,7 @@ I have 22 cukes in my belly now
33
33
  /^a (pre-commercial transaction |pre buyer fee model )?purchase(?: for \$(\d+))?$/
34
34
  a purchase for $33
35
35
  [null,33]
36
+ ---
37
+ Some ${float} of cukes at {int}° Celsius
38
+ Some $3.50 of cukes at 42° Celsius
39
+ [3.5,42]
@@ -47,12 +47,12 @@ module Cucumber
47
47
 
48
48
  def space_before_match_or_sentence_start?
49
49
  match_begin = @match.begin(0)
50
- match_begin == 0 || @text[match_begin - 1].match(/\s|\p{P}/)
50
+ match_begin == 0 || @text[match_begin - 1].match(/\p{Z}|\p{P}|\p{S}/)
51
51
  end
52
52
 
53
53
  def space_after_match_or_sentence_end?
54
54
  match_end = @match.end(0)
55
- match_end == @text.length || @text[match_end].match(/\s|\p{P}/)
55
+ match_end == @text.length || @text[match_end].match(/\p{Z}|\p{P}|\p{S}/)
56
56
  end
57
57
  end
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-cucumber-expressions
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.2.1
4
+ version: 10.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -126,7 +126,7 @@ requirements: []
126
126
  rubygems_version: 3.1.2
127
127
  signing_key:
128
128
  specification_version: 4
129
- summary: cucumber-expressions-10.2.1
129
+ summary: cucumber-expressions-10.2.2
130
130
  test_files:
131
131
  - spec/capture_warnings.rb
132
132
  - spec/cucumber/cucumber_expressions/argument_spec.rb