acceptance_test 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGES +5 -1
- data/lib/acceptance_test/gherkin_ext.rb +8 -2
- data/lib/acceptance_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDZlYzM2Yjg1MDI0Mzk5NGU3YTg0OTI0NThkZDgxZTc0OWNhZmY4OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTkzZDE2ZDI5NDdjMTVmZDEyMDhjZmU0MTA3NTRhNjU1NDRhZDU3MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjkzZDBiODZjYjc4ZTM1OGMxMTgzMDIwODJkN2FhMmM2ODQ0OTkzMzc3M2Ex
|
10
|
+
MDVjZmYwYzVlODA4YjQ5NjY1ZDc4NzdmY2IxMGVmMTdkOWRlMWZlOTNiMjNj
|
11
|
+
ZDgzZGQxODM2MWNhZmMxMmUzZDAyZmY5NTNkMTcxMmI0ZDIwYjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTEzYzZhZThlMmE0MTU2NGU3OWE1MzI3NzhjMzE3YTc5NTBiMDY3ZTM0Mjhj
|
14
|
+
NjM1ZWE0MmZjYzA1YTEyNDBlMDk5ZTE1ZmU0M2M3ZTgyZWJlZTIzMjQyMWQx
|
15
|
+
Y2ZkMzg1ZjJhYjE0MzkwNDQ3OWM1OTAxODQ4ZWFkMGQ1Y2YxNzQ=
|
data/CHANGES
CHANGED
@@ -28,11 +28,11 @@ class GherkinExt
|
|
28
28
|
private
|
29
29
|
|
30
30
|
def self.modify_source source
|
31
|
-
if source
|
31
|
+
if check_file_tag(source)
|
32
32
|
new_source = ""
|
33
33
|
|
34
34
|
source.each_line do |line|
|
35
|
-
if line
|
35
|
+
if check_file_tag(line) and line.strip[0] != "#"
|
36
36
|
part1, part2 = line.split(",")
|
37
37
|
|
38
38
|
source_path = part1.gsub('file:', '').gsub('|', '').strip
|
@@ -58,6 +58,12 @@ class GherkinExt
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
+
def self.check_file_tag text
|
62
|
+
encoded_text = text.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')
|
63
|
+
|
64
|
+
encoded_text =~ /file\s?:/
|
65
|
+
end
|
66
|
+
|
61
67
|
def self.build_data_section values
|
62
68
|
buffer = ""
|
63
69
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acceptance_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shvets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gemspec_deps_gen
|