acceptance_test 1.8.1 → 1.8.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGMxODc4NDY3OTdiZjAyNTYyMjI2MzlkN2Y1NjE0YWVjMGM4NjE4YQ==
4
+ NDZlYzM2Yjg1MDI0Mzk5NGU3YTg0OTI0NThkZDgxZTc0OWNhZmY4OQ==
5
5
  data.tar.gz: !binary |-
6
- ZmFjOTVmMzJlOWUzYTMwMGMzZGEyNjE4ODg3MTBmNGY1ZjBkZDA2Zg==
6
+ OTkzZDE2ZDI5NDdjMTVmZDEyMDhjZmU0MTA3NTRhNjU1NDRhZDU3MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODJhMzI1MTdjODJhYjdhMTVlNGVmOWZhYjhhMjk5OTllNTBmMjcxOTZkZjhj
10
- YzY3ZDYwNDdhN2I2MjBmY2VkNGVjZjc1YzRmZGM0MTY4OTJmOWU4MDQ2ZjJj
11
- N2E0OGNjOWQyMzRhOGRlN2ZhNmIxNzljZTFhZDJmMjUxZjI2ZjU=
9
+ YjkzZDBiODZjYjc4ZTM1OGMxMTgzMDIwODJkN2FhMmM2ODQ0OTkzMzc3M2Ex
10
+ MDVjZmYwYzVlODA4YjQ5NjY1ZDc4NzdmY2IxMGVmMTdkOWRlMWZlOTNiMjNj
11
+ ZDgzZGQxODM2MWNhZmMxMmUzZDAyZmY5NTNkMTcxMmI0ZDIwYjU=
12
12
  data.tar.gz: !binary |-
13
- NmE0YmU2NDI4NjI0ZTkyZTUzODkxN2VjZmM0YjM3OTRkZmIwMzA2YTgyZDQx
14
- ZjcxYTI4MzIyZGExMzAwMDZhYzExZjA0ODk1MDc5MDQ4YTk2MmQ0ZjI5MDdj
15
- ZDQ3MmM0MjhmYTljNTBmYThjMTAzODY5ZTQzMTQ2NGFhZGEyYzE=
13
+ YTEzYzZhZThlMmE0MTU2NGU3OWE1MzI3NzhjMzE3YTc5NTBiMDY3ZTM0Mjhj
14
+ NjM1ZWE0MmZjYzA1YTEyNDBlMDk5ZTE1ZmU0M2M3ZTgyZWJlZTIzMjQyMWQx
15
+ Y2ZkMzg1ZjJhYjE0MzkwNDQ3OWM1OTAxODQ4ZWFkMGQ1Y2YxNzQ=
data/CHANGES CHANGED
@@ -211,4 +211,8 @@
211
211
 
212
212
  == Version 1.8.1
213
213
 
214
- * Adding StepsGenerator class
214
+ * Adding StepsGenerator class
215
+
216
+ == Version 1.8.2
217
+
218
+ * Fix issue with encoding
@@ -28,11 +28,11 @@ class GherkinExt
28
28
  private
29
29
 
30
30
  def self.modify_source source
31
- if source =~ /file\s?:/
31
+ if check_file_tag(source)
32
32
  new_source = ""
33
33
 
34
34
  source.each_line do |line|
35
- if line =~ /file\s?:/ and line.strip[0] != "#"
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
 
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.8.1"
2
+ VERSION = "1.8.2"
3
3
  end
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.1
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-10-30 00:00:00.000000000 Z
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