lineup 0.5.1 → 0.5.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lineup/version.rb +1 -1
  3. data/lib/lineup.rb +6 -16
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 000abfcc77946c2e2bc827f713f56404bc2b10fb
4
- data.tar.gz: e9e5a13fc812941143d2c9999f4866945260b1af
3
+ metadata.gz: fef12db42af79b96ca8998beae02319bf95d47aa
4
+ data.tar.gz: 080d552e625a913dd64a89fc55c2e5286833fe5f
5
5
  SHA512:
6
- metadata.gz: 33287678ea5296722d245c543e0ea6ca2414d405b82f995d30dd59a81c76d9eb9db953967f47263237a319fc42fb9095d244bdbeb277f0a159c21d216ca3a3e5
7
- data.tar.gz: 28f5fb83f09ee2f542513ca33f863853e3ec45c5d7563f09eb2ebf82920d9df1578ec4fa69a13c7affc61bc32c29f4a9f5fce4bf3e2c4330b2bd785b0d2159a4
6
+ metadata.gz: d42427ce1bb9db21d587e286645f4e8cb60020d22687910f620337cc4c55492b231c588d767d0810030c882c30f48e195f2904ae2a41f59130e975cbce0e0045
7
+ data.tar.gz: 1601351d06b6149fd308ac935a13b65106e2985cd63a7f37c4c051a3b9b354e603d0ffbaa3058aebff958e6892d00101603459595c0978582810929ed3691674
@@ -2,7 +2,7 @@ module Lineup
2
2
  class Version
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  class << self
8
8
  def to_s
data/lib/lineup.rb CHANGED
@@ -303,22 +303,12 @@ module Lineup
303
303
  cookies_merged.push(@cookie_for_experiment)
304
304
  end
305
305
 
306
- threads = []
307
- i=0
308
- @urls.each { |url|
309
- @resolutions.each { |resolution|
310
- threads[i] = Thread.new {
311
- browser = Browser.new(@baseurl, [url], [resolution], @screenshots_path, @headless, @wait_for_asynchron_pages, cookies_merged)
312
- # the only argument missing is if this is the "base" or "new" screenshot, this can be
313
- # passed as an argument. The value does not need to be "base" or "new", but can be anything
314
- browser.record(version)
315
- # this will close the browser and terminate the headless environment
316
- browser.end
317
- }
318
- i+=1;
319
- }
320
- }
321
- threads.each { |t| t.join }
306
+ browser = Browser.new(@baseurl, @urls, @resolutions, @screenshots_path, @headless, @wait_for_asynchron_pages, cookies_merged)
307
+ # the only argument missing is if this is the "base" or "new" screenshot, this can be
308
+ # passed as an argument. The value does not need to be "base" or "new", but can be anything
309
+ browser.record(version)
310
+ # this will close the browser and terminate the headless environment
311
+ browser.end
322
312
 
323
313
  # this flag is set, so that parameters like resolution or urls cannot be changed any more
324
314
  @got_base_screenshots = true
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.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-20 00:00:00.000000000 Z
12
+ date: 2016-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec