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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d9515daedfb284a4e7aedb97d26ba93c78c822b
4
- data.tar.gz: ffc0a25a56227a60011a2c1af03ba1cd4907bc2d
3
+ metadata.gz: 000abfcc77946c2e2bc827f713f56404bc2b10fb
4
+ data.tar.gz: e9e5a13fc812941143d2c9999f4866945260b1af
5
5
  SHA512:
6
- metadata.gz: 6e8b81e43e1201d21b61b796d2578c40cb4cea33f2e051fad98b339caea33191b3d763b7c253b0536a97f1146973e8320657ace203efec29dbd95386c8a5677f
7
- data.tar.gz: d0ed7dc370932a0f1e80eab7e3d0b907103ee813446e2d1bd1cfc7b4d09ec6b4a551ea4eb1c9329354ea5e58b610ed5aefd2789b22fa59c3a31b727d9800d2f3
6
+ metadata.gz: 33287678ea5296722d245c543e0ea6ca2414d405b82f995d30dd59a81c76d9eb9db953967f47263237a319fc42fb9095d244bdbeb277f0a159c21d216ca3a3e5
7
+ data.tar.gz: 28f5fb83f09ee2f542513ca33f863853e3ec45c5d7563f09eb2ebf82920d9df1578ec4fa69a13c7affc61bc32c29f4a9f5fce4bf3e2c4330b2bd785b0d2159a4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lineup (0.2.1)
4
+ lineup (0.5.1)
5
5
  chunky_png (~> 1.3)
6
6
  dimensions (~> 1.3)
7
7
  headless (~> 0.1)
@@ -68,4 +68,4 @@ DEPENDENCIES
68
68
  watir-webdriver
69
69
 
70
70
  BUNDLED WITH
71
- 1.11.2
71
+ 1.12.5
@@ -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
- @comparer.each { |c| c.difference }
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)
@@ -2,7 +2,7 @@ module Lineup
2
2
  class Version
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  class << self
8
8
  def to_s
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.0
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.2.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