symilaa 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/symilaa/comparison_support.rb +6 -3
- data/lib/symilaa/version.rb +1 -1
- metadata +13 -13
@@ -114,6 +114,10 @@ module Symilaa
|
|
114
114
|
page.driver.browser.save_screenshot screenshot_path
|
115
115
|
end
|
116
116
|
|
117
|
+
def difference_file_path generated_screenshot_path
|
118
|
+
"#{generated_screenshot_path}_difference.gif".gsub('screenshots_generated_this_run', 'differences_in_screenshots_this_run')
|
119
|
+
end
|
120
|
+
|
117
121
|
def check_screen_against_reference_shot target_sub_directory
|
118
122
|
create_directories %w[screenshots_generated_this_run differences_in_screenshots_this_run]
|
119
123
|
create_screenshot_directory target_sub_directory
|
@@ -121,13 +125,12 @@ module Symilaa
|
|
121
125
|
generated_screenshot_path = create_screenshot_filename target_sub_directory
|
122
126
|
screenshot_name = File.basename generated_screenshot_path
|
123
127
|
reference_path = File.join reference_screenshots, target_sub_directory, scenario_name, screenshot_name
|
124
|
-
difference_file =
|
128
|
+
difference_file = difference_file_path generated_screenshot_path
|
125
129
|
|
126
130
|
save_screenshot generated_screenshot_path
|
127
131
|
|
128
132
|
unless same? reference_path, generated_screenshot_path
|
129
|
-
|
130
|
-
FileUtils.mkdir_p path
|
133
|
+
File.mkdir_p File.dirname(difference_file)
|
131
134
|
|
132
135
|
produce_gif_showing_the_difference_between reference_path, generated_screenshot_path, difference_file
|
133
136
|
|
data/lib/symilaa/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: symilaa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-11-15 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
16
|
-
requirement: &
|
16
|
+
requirement: &24293140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *24293140
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: guard-minitest
|
27
|
-
requirement: &
|
27
|
+
requirement: &24292340 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *24292340
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &24291920 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *24291920
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rb-inotify
|
49
|
-
requirement: &
|
49
|
+
requirement: &24291360 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *24291360
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rmagick
|
60
|
-
requirement: &
|
60
|
+
requirement: &24263540 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *24263540
|
69
69
|
description: ! "Using the wonders of RMagick, this wonderful gem will produce a boolean
|
70
70
|
result based on the computed similarity\n of the two images passed."
|
71
71
|
email:
|
@@ -113,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
segments:
|
115
115
|
- 0
|
116
|
-
hash:
|
116
|
+
hash: -1810338840445348464
|
117
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
segments:
|
124
124
|
- 0
|
125
|
-
hash:
|
125
|
+
hash: -1810338840445348464
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project: symilaa
|
128
128
|
rubygems_version: 1.8.10
|