superbara 0.3.0 → 0.4.0

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
  SHA256:
3
- metadata.gz: a71b7472f0e04259d7a88bf3996ed8dd4da4e99e9205364a9f6e4eaa48f06481
4
- data.tar.gz: 2977c0895d9b2f0bc8b9d325d333abcb9d2c88abf0f239fa48b7671b5fac8a42
3
+ metadata.gz: 9a5338960b317550f65d54f67f8af899eb49d083bc15a26cc31496c077b02f21
4
+ data.tar.gz: de1524aec67cf1591eda557cd57a135f4d0444df93253190f0c6484bfd125f93
5
5
  SHA512:
6
- metadata.gz: 85c65b401aa1315c7e81a4cab106651688d0b7d02669149f4a597cddfd7eb9e9332099f9f92ba9370855874197755d456bf742260557a22911e51fc3c52aba7d
7
- data.tar.gz: 902595d9e177b8cdab6617a29c030f4bc4177b993d821164fdb6bc18d5c13694aab08ee8fed54d265bdbb67f707aca903564b861b0cd869a31e244d995f8d0ef
6
+ metadata.gz: 59942a1db43e610fd0ab177d74a5d79a8bbf715ee9cadb8713ab133579c4bc609594e183ecf850f0c469aea3859b1f21547159bf078b585c7a099abe221de1bd
7
+ data.tar.gz: 80cecbde5d3c1e63bc8aff5718cb384bc5dc4b964bbcb0fff86a14c1be76f6ae5aad023845bb157d7f29922f5fdaa8bd5a18d234d9450675132bff2ea771cd36
@@ -4,6 +4,6 @@ kung rc superbara
4
4
  kung stop chrome superbara
5
5
 
6
6
  kung rc chrome
7
- export CHROME_HOST=localhost CHROME_PORT=14444
7
+ export CHROME_URL=http://localhost:14444/wd/hub
8
8
  echo q | exe/superbara run e2e
9
9
  kung stop
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbara (0.3.0)
4
+ superbara (0.4.0)
5
5
  binding_of_caller (~> 0.8, >= 0.8.0)
6
6
  capybara (~> 3.0, >= 3.0.0)
7
7
  chromedriver-helper (~> 1.2.0, >= 1.2.0)
data/e2e/main.rb CHANGED
@@ -1,4 +1,4 @@
1
- if ENV["CHROME_HOST"]
1
+ if ENV["CHROME_URL"]
2
2
  Capybara.default_driver = :chrome_remote
3
3
  end
4
4
 
@@ -26,10 +26,12 @@ module Superbara; module Chrome
26
26
  end
27
27
 
28
28
  Capybara.register_driver :chrome_remote do
29
+ chrome_url = ENV['CHROME_URL'] || "http://chrome:4444/wd/hub"
30
+
29
31
  Capybara::Selenium::Driver.new(nil,
30
32
  browser: :remote,
31
33
  desired_capabilities: capabilities,
32
- url: "http://#{ENV['CHROME_HOST'] || 'chrome'}:#{ENV['CHROME_PORT'] || '4444'}/wd/hub"
34
+ url: chrome_url
33
35
  )
34
36
  end
35
37
 
@@ -1,3 +1,3 @@
1
1
  module Superbara
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superbara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matti Paksula
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-07 00:00:00.000000000 Z
11
+ date: 2018-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize