cucumber-sentences 0.0.17 → 0.0.18
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 +5 -5
- data/cucumber-sentences.gemspec +1 -1
- data/lib/cucumber-sentences.rb +10 -6
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ef17cac075852e880a5196fb6a98a640d72fbf2272f6ee14682e6db083efc540
|
4
|
+
data.tar.gz: 4feff82875bbc5478a2c5afcf75d0e895472f5a54998d95d63e0b7741beb04ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b023200552a73a15cf1bf75908acedb786d7ef7592b39cd3e8f8ff9513a3821f7937f841fe39cb8aae937c0e5df050ee6acf4acf413a51a2deaf6fca003dcb2
|
7
|
+
data.tar.gz: e7d0525ebc94f98959b27dfdb0567ef79edde617b9295d52c839b18bb86c0e6cc33cebb39f525a52f1665b5d732652718680efca81681d53d23c89461d884ce4
|
data/cucumber-sentences.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'cucumber-sentences'
|
5
|
-
s.version = '0.0.
|
5
|
+
s.version = '0.0.18'
|
6
6
|
s.license = 'MIT'
|
7
7
|
s.summary = "Pre-built sentences for your cucumber tests"
|
8
8
|
s.description = "Pre-built sentences for your cucumber tests"
|
data/lib/cucumber-sentences.rb
CHANGED
@@ -481,14 +481,18 @@ class Fakable
|
|
481
481
|
@@memorized_strings = {}
|
482
482
|
|
483
483
|
def self.fake_if_needed(value)
|
484
|
-
regexp = /@\('(
|
485
|
-
|
486
|
-
|
484
|
+
regexp = /@\('([^\']+)', '([^\']+)', '([^\']+)'\)/;
|
485
|
+
parts = value.scan(regexp)
|
486
|
+
|
487
487
|
if 0 == parts.length
|
488
488
|
return value
|
489
|
-
|
490
|
-
|
491
|
-
|
489
|
+
end
|
490
|
+
|
491
|
+
parts.each { | part |
|
492
|
+
value = value.gsub("@('#{part[0]}', '#{part[1]}', '#{part[2]}')", Fakable.fake(part[0], part[1], part[2]))
|
493
|
+
}
|
494
|
+
|
495
|
+
return value
|
492
496
|
end
|
493
497
|
|
494
498
|
def self.fake(category, type, mem)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-sentences
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DonkeyCode
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Pre-built sentences for your cucumber tests
|
15
15
|
email: cedric@donkeycode.com
|
@@ -41,8 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
requirements: []
|
44
|
-
|
45
|
-
rubygems_version: 2.6.11
|
44
|
+
rubygems_version: 3.0.3
|
46
45
|
signing_key:
|
47
46
|
specification_version: 4
|
48
47
|
summary: Pre-built sentences for your cucumber tests
|