true_automation 0.3.14 → 0.3.16

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
- SHA256:
3
- metadata.gz: f74933439507bf53b0b63ffc2f61c9fb1dbd459772bbbe50c7af5929f5f96c99
4
- data.tar.gz: 3fcf260be97dc3bf8f98ac2f2c0b67620d29d8589553759dfef406e8a22382f2
2
+ SHA1:
3
+ metadata.gz: 214917eeb0eee6fe8ab1740df78278f750d97577
4
+ data.tar.gz: 2651817bd828b6f936fea128c944a15d5f0f75fc
5
5
  SHA512:
6
- metadata.gz: 3ace762129d35a4f9eb21229c1af9b0e9bac2826335148ba4a74c9f52dcfd92e4b1da7ec9cf9e1e41291e85102cbc916bce1eff838b71b4c0d10d7c312a9ff46
7
- data.tar.gz: 342f0dba3fd190c5403749cc6113cf77b73cf2d7d6d5e55e63b5cabf93c8d17831bf632dc9dc7fb93c4781b6b288865a12e02fd186556eea0d7cc5be0bcd9e18
6
+ metadata.gz: deaaffe75582b9de72a052cd9e668b2afd7188ec3c13c0341c055b196d55bbbcbb937c767365ae85cb68872e9787e2cf6d2ec36abd6496567aa8f989f15461c8
7
+ data.tar.gz: e115bef20d7f1c56a6504384d5db92f60c19fe4af9d3f9f3b331c59b772dd3574410f2dc4dddbb57d636e94181f964e83ee9d7b84a25afff5b84794650bdabdc
@@ -10,6 +10,7 @@ module TrueAutomation
10
10
  def start(options)
11
11
 
12
12
  @port = options[:port] || 9515
13
+ remote = options[:remote]
13
14
  @executable = ENV['TRUEAUTOMATION_EXEC'] || 'trueautomation'
14
15
 
15
16
  if find_executable(@executable).nil?
@@ -22,7 +23,7 @@ module TrueAutomation
22
23
  Dir.mkdir('log') unless File.exist?('log')
23
24
  logfile = "log/trueautomation-#{Time.now.strftime('%Y%m%dT%H%M%S')}.log"
24
25
 
25
- @pid = spawn("#{@executable} --log-file #{logfile} --port #{@port}")
26
+ @pid = spawn("#{@executable} --log-file #{logfile} --port #{@port} #{remote}")
26
27
  puts "Started TrueAutomation.IO client with pid #{@pid} listening to port #{@port}"
27
28
 
28
29
  @pid
@@ -11,6 +11,7 @@ module TrueAutomation
11
11
  super(app, options)
12
12
 
13
13
  @ta_client = TrueAutomation::Client.new
14
+ @remote = ''
14
15
 
15
16
  options ||= {}
16
17
  ta_url = options[:ta_url] || "http://localhost:#{@port}/"
@@ -21,8 +22,9 @@ module TrueAutomation
21
22
  if options and options[:browser] == :remote
22
23
  raise 'Remote driver URL is not specified' unless options[:url]
23
24
  capabilities[:taRemoteUrl] = options[:url]
25
+ @remote = '--remote'
24
26
  else
25
- capabilities[:browser] = :chrome
27
+ capabilities[:browser] = options[:browser] || :chrome
26
28
  end
27
29
 
28
30
  @options.merge!(browser: :remote,
@@ -32,7 +34,7 @@ module TrueAutomation
32
34
 
33
35
  def browser
34
36
  unless @browser
35
- @ta_client.start(port: @port)
37
+ @ta_client.start(port: @port, remote: @remote)
36
38
 
37
39
  @ta_client.wait_until_start
38
40
 
@@ -1,3 +1,3 @@
1
1
  module TrueAutomation
2
- VERSION = '0.3.14'
2
+ VERSION = '0.3.16'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: true_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.14
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrueAutomation.IO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-31 00:00:00.000000000 Z
11
+ date: 2018-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.7.3
112
+ rubygems_version: 2.6.13
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: TrueAutomation.IO