cucumber-expressions 5.0.2 → 5.0.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
  SHA1:
3
- metadata.gz: 1b93d7591ff82e0ec09175c47292a33d6d041d0c
4
- data.tar.gz: d4e77ed502f076ead3284e4a7fa85ebe54f78c30
3
+ metadata.gz: 2f6d1d92f85498715647c16f17c01f4781820134
4
+ data.tar.gz: 62e68065f30a37035524028e31291d37d761830b
5
5
  SHA512:
6
- metadata.gz: 48e16677255b11ddacf57728dfaff31baadd659459faef5f0fb72b85af3ee3a62b105b5c3c92915872d158d21b9c6361c7435b339148720bb7405d1db70f42c0
7
- data.tar.gz: b04c0d61e0fbc80a1f748188d9b1047d5add1657e454a0a00a1e6cb94a906fc40cd8fbdd9f9e824c0117d2fee8a75d8572a1368407b50a36ee1a1c6ebc5ec961
6
+ metadata.gz: 596176ff170ac4f68362dc8a44264dc9c1e3f2334b65c3aefdfb293497b440ade4e5ab4aba46c14ad0ac69081bb9d3f923055a45622d4974a5a66bf9c5185496
7
+ data.tar.gz: cbae0a9a49e9538b9768e2f985599898681b12d4a98b3922eb1b311dc1020c6defd92cb45f53b107e35686db64167f7ba026ca0738e95c84457257f74638cee5
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'cucumber-expressions'
4
- s.version = '5.0.2'
4
+ s.version = '5.0.3'
5
5
  s.authors = ["Aslak Hellesøy"]
6
6
  s.description = 'Cucumber Expressions - a simpler alternative to Regular Expressions'
7
7
  s.summary = "cucumber-expressions-#{s.version}"
@@ -54,12 +54,18 @@ module Cucumber
54
54
  end
55
55
 
56
56
  it 'captures non capturing groups with capturing groups inside' do
57
- tr = TreeRegexp.new("the stdout(?: from \"(.*?)\")?")
57
+ tr = TreeRegexp.new(/the stdout(?: from "(.*?)")?/)
58
58
  group = tr.match("the stdout")
59
59
  expect(group.value).to eq("the stdout")
60
60
  expect(group.children[0].value).to eq(nil)
61
61
  expect(group.children.length).to eq(1)
62
62
  end
63
+
64
+ it 'works with flags' do
65
+ tr = TreeRegexp.new(/HELLO/i)
66
+ group = tr.match("hello")
67
+ expect(group.value).to eq("hello")
68
+ end
63
69
  end
64
70
  end
65
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-expressions
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
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: 2017-10-20 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,7 +130,7 @@ rubyforge_project:
130
130
  rubygems_version: 2.6.8
131
131
  signing_key:
132
132
  specification_version: 4
133
- summary: cucumber-expressions-5.0.2
133
+ summary: cucumber-expressions-5.0.3
134
134
  test_files:
135
135
  - spec/capture_warnings.rb
136
136
  - spec/coverage.rb