acceptance_test 1.7.13 → 1.7.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjI3YTg0NzY4YjYwMjY0YTUzZTEwOTU1MjQ2ZDk5NjBhYTU4ZTliMg==
4
+ ODIwYmRkYjAwZWQzNDJhNzRlN2RkOTNhNmUwNWRmMmY3YzkzMDdiMQ==
5
5
  data.tar.gz: !binary |-
6
- YjgwMGM3YjcxYTM2YzgxY2YxZDEyMWVjYzA4MDJmZWJhNTdlYWZmNg==
6
+ YzA1Zjc0MTdjNjRjOTQ2NTRjNmZmZmQ5YjBlOWQyZGJmNWY2Y2M3NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzliYmI5M2UwMjFhOTZhZDkzNzlkNGY5ZWUzYmFhMWE1MGY4ODhjZDgyZDU2
10
- MzIxZmNlMTdjOWZhZDc0M2JiYjIxZTYwNDdlNGZkMzlmMjk2MTE2ZTNhMTdj
11
- ZWE2ZjVlYWQ0M2I4OTY5NDVkZGUyNWU5ZDc3MGE5YjQ1NGFmMmI=
9
+ YWI0NmIwMmU1MDM3YTM1OWE0OGY3NzZkNDM5ZjlmMTI1MDZkMGYwMjg1YTM3
10
+ ZTZhMmJiNWUwMmNkNGJjZTY1ZGJjM2ExNmJjMzQwNzQ0MWQ3MjY5MDMyYTky
11
+ YTEyMzFmZDNkNzM1ODFkMDQyNDkzZTc1MDA1OThlNDNjOWQ4ZTI=
12
12
  data.tar.gz: !binary |-
13
- NjNiYjVlYjQzZGM5MWFkNjhiMjAyNjFmMTUzM2RmM2UzOTNmY2QxMGE0Nzkz
14
- MWE3NzQxYTdiY2RhNGFmYjIxZjAxYWE0ZDI2ZmI0Yzg2YmEwYTU4MDg2YmQx
15
- MjMyNzU5Mzg5Y2MzNmUyN2QwODBlNThlYmM5OGQ0MzNmMmYwMGY=
13
+ ZjM0ZjAzY2EzNjk2NmZjYzFmMDE2NjI2M2Q1NjJjN2EzZWYzMWU5OGRhMjU2
14
+ ZjI1MWFkOTMzMjNmM2JlNGI1ODZhM2YzNTI5ZjM0MDhkYzIzMmU1M2QwYzll
15
+ MDhmOTU3YzFhNGEyYTAwMDM3MTUwODgyYzZjNWJmYjQxMTA5MzQ=
data/CHANGES CHANGED
@@ -195,4 +195,8 @@
195
195
 
196
196
  == Version 1.7.13
197
197
 
198
+ * Bug fix
199
+
200
+ == Version 1.7.14
201
+
198
202
  * Bug fix
@@ -38,16 +38,21 @@ class ScreenshotMaker
38
38
 
39
39
  def build_name path
40
40
  full_path = File.expand_path(path)
41
- extension = File.extname(path)
42
41
 
43
- index1 = full_path.index("/spec")
44
- index2 = full_path.index(extension)
42
+ spec_index = full_path.index("/spec")
45
43
 
46
- name = full_path[index1+1..index2-1].gsub("/", "_")
44
+ if spec_index
45
+ extension = File.extname(path)
46
+ ext_index = extension.size == 0 ? -1 : full_path.index(extension)-1
47
47
 
48
- name = name[5..-1] if name =~ /^spec_/
49
- name = name[9..-1] if name =~ /^features_/
50
- name = name[11..-1] if name =~ /^acceptance_/
48
+ name = full_path[spec_index+1..ext_index].gsub("/", "_")
49
+
50
+ name = name[5..-1] if name =~ /^spec_/
51
+ name = name[9..-1] if name =~ /^features_/
52
+ name = name[11..-1] if name =~ /^acceptance_/
53
+ else
54
+ name = path
55
+ end
51
56
 
52
57
  name
53
58
  end
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.7.13"
2
+ VERSION = "1.7.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.13
4
+ version: 1.7.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets