crabfarm 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 030c725a1c534204a13f928cce6fec5cd7c7c7f1
4
- data.tar.gz: f8d9528e1a4abf6e5bd26b208bd9583e8b24b917
3
+ metadata.gz: 4d125e666643d25a2a8ec454491bbbff92cf7f08
4
+ data.tar.gz: 20e33641d3f93933b304ef6aae3b3872f4eff6f9
5
5
  SHA512:
6
- metadata.gz: f4f8946d0db0cb5256c6b52acbd60e2b33b12330288333ad41038aa79f3cdcdbb505667670391e5ccc67df567bca4b4babb5bdef9feec1bebfd3b6e56d540a1f
7
- data.tar.gz: f2597b1b0e086f12db1cf6ff18ae222c842ec7195b10c21f60b933cf1c0308e7a42e19e315717d4f9de7f65490d1095768081c32ffeb07784cdd2664594eb322
6
+ metadata.gz: 275850f791673c8a6357092d5a88ce63caeb18daf5e93446eee809181a258aa5e8309a604ce1e70401e66b4072be5a86377f576407da1414d02a02f3a8346416
7
+ data.tar.gz: d28ed53ade466f34d05564be93486cab3b48fb94ad4e94799bf81afe3516a1ff2a974963e758841dfc87562f1490e9c42c1f3b01eead193feb51ceaa333c3d9e
@@ -25,11 +25,9 @@ module Crabfarm
25
25
  crabtrap.start
26
26
 
27
27
  begin
28
- driver_config = Crabfarm.config.driver_config
29
- driver_config[:name] = Crabfarm.config.recorder_driver
30
- driver_config[:proxy] = "127.0.0.1:#{crabtrap.port}"
31
-
32
- driver = DefaultDriverFactory.new(driver_config).build_driver nil
28
+ browser_name = Crabfarm.config.recorder_driver
29
+ browser_factory = Strategies.load(:browser, browser_name).new "127.0.0.1:#{crabtrap.port}"
30
+ driver = browser_factory.build_driver nil
33
31
 
34
32
  begin
35
33
  puts "Press Ctrl-C or close browser to stop #{_replay ? 'playback' : 'capturing'}."
@@ -37,7 +35,7 @@ module Crabfarm
37
35
  driver.current_url
38
36
  sleep 1.0
39
37
  end
40
- rescue Selenium::WebDriver::Error::WebDriverError, SystemExit, Interrupt
38
+ rescue Exception => e
41
39
  # noop
42
40
  end
43
41
 
@@ -1,3 +1,3 @@
1
1
  module Crabfarm
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crabfarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas