lineup 0.5.0 → 0.5.1
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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/lineup.rb +9 -7
- data/lib/lineup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 000abfcc77946c2e2bc827f713f56404bc2b10fb
|
|
4
|
+
data.tar.gz: e9e5a13fc812941143d2c9999f4866945260b1af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33287678ea5296722d245c543e0ea6ca2414d405b82f995d30dd59a81c76d9eb9db953967f47263237a319fc42fb9095d244bdbeb277f0a159c21d216ca3a3e5
|
|
7
|
+
data.tar.gz: 28f5fb83f09ee2f542513ca33f863853e3ec45c5d7563f09eb2ebf82920d9df1578ec4fa69a13c7affc61bc32c29f4a9f5fce4bf3e2c4330b2bd785b0d2159a4
|
data/Gemfile.lock
CHANGED
data/lib/lineup.rb
CHANGED
|
@@ -332,23 +332,25 @@ module Lineup
|
|
|
332
332
|
# as "variable" in the method "record_screenshot"!
|
|
333
333
|
# all other information are constants and are passed along
|
|
334
334
|
|
|
335
|
-
threads = []
|
|
336
|
-
i=0
|
|
335
|
+
#threads = []
|
|
336
|
+
#i=0
|
|
337
337
|
@urls.each { |url|
|
|
338
338
|
@resolutions.each { |resolution|
|
|
339
|
-
threads[i] = Thread.new {
|
|
339
|
+
#threads[i] = Thread.new {
|
|
340
340
|
@comparer.push(Comparer.new(base, new, @difference_path, @baseurl, [url], [resolution], @screenshots_path))
|
|
341
|
-
}
|
|
342
|
-
i+=1;
|
|
341
|
+
#}
|
|
342
|
+
#i+=1;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
threads.each { |t| t.join }
|
|
345
|
+
#threads.each { |t| t.join } //TODO Fix multithreading issue with 3rd party lib
|
|
346
346
|
|
|
347
347
|
# this gives back an array, which as one element for each difference image.
|
|
348
348
|
# [ {diff_1}, {diff_2}, ...]
|
|
349
349
|
# while each diff is a hash with keys:
|
|
350
350
|
# {url: <url>, width: <width in px>, difference: <%of changed pixel>, base_file: <file path>, new_file: <file path>, diff_file: <file path>}
|
|
351
|
-
|
|
351
|
+
merged_differences = []
|
|
352
|
+
@comparer.each { |c| merged_differences += c.difference }
|
|
353
|
+
return merged_differences;
|
|
352
354
|
end
|
|
353
355
|
|
|
354
356
|
def save_json(path)
|
data/lib/lineup/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lineup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Finn
|
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
180
180
|
version: '0'
|
|
181
181
|
requirements: []
|
|
182
182
|
rubyforge_project:
|
|
183
|
-
rubygems_version: 2.
|
|
183
|
+
rubygems_version: 2.4.8
|
|
184
184
|
signing_key:
|
|
185
185
|
specification_version: 4
|
|
186
186
|
summary: lineup will help you in your automated design regression testing
|