browserstack-local 0.2.0 → 1.0.0
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 +7 -7
- data/lib/browserstack/local.rb +26 -9
- metadata +27 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: 2adcec00f19d5e9687679b3ec3fb9ccd448bcc4e05230cc74eb6582314287a554b02c790f58f2f815401b771241b8cdc73feecaa4dcebaa889b7c5f61d848ae1
|
4
|
+
metadata.gz: 5801aac7b3530b43fb6b84c3a09b27ec5d545364c1b0a870f094c0df5ba6eb89c97fd7e4c84be7add9f5189d14b411bdebddc038d2eb3eb374e25f72d934f048
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: 1d4573e83ea68d036ba3107573e985be904804b8
|
7
|
+
metadata.gz: e905c1150b6803be0658ad0accc3f203fa2662fb
|
data/lib/browserstack/local.rb
CHANGED
@@ -29,18 +29,18 @@ class Local
|
|
29
29
|
elsif key == "forcelocal" && value.to_s != "false"
|
30
30
|
@force_local_flag = "-forcelocal"
|
31
31
|
elsif key == "localIdentifier"
|
32
|
-
@local_identifier_flag =
|
32
|
+
@local_identifier_flag = value
|
33
33
|
elsif key == "f"
|
34
34
|
@folder_flag = "-f"
|
35
|
-
@folder_path =
|
35
|
+
@folder_path = value
|
36
36
|
elsif key == "proxyHost"
|
37
|
-
@proxy_host =
|
37
|
+
@proxy_host = value
|
38
38
|
elsif key == "proxyPort"
|
39
|
-
@proxy_port =
|
39
|
+
@proxy_port = value
|
40
40
|
elsif key == "proxyUser"
|
41
|
-
@proxy_user =
|
41
|
+
@proxy_user = value
|
42
42
|
elsif key == "proxyPass"
|
43
|
-
@proxy_pass =
|
43
|
+
@proxy_pass = value
|
44
44
|
elsif key == "hosts"
|
45
45
|
@hosts = value
|
46
46
|
elsif key == "logfile"
|
@@ -53,7 +53,7 @@ class Local
|
|
53
53
|
if value.to_s.downcase.eql?("true")
|
54
54
|
@user_arguments << "-#{key}"
|
55
55
|
else
|
56
|
-
@user_arguments
|
56
|
+
@user_arguments += ["-#{key}", value]
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
@@ -122,11 +122,28 @@ class Local
|
|
122
122
|
end
|
123
123
|
|
124
124
|
def start_command
|
125
|
-
"#{@binary_path} -d start -logFile '#{@logfile}' #{@folder_flag} #{@key} #{@folder_path} #{@force_local_flag}
|
125
|
+
cmd = "#{@binary_path} -d start -logFile '#{@logfile}' #{@folder_flag} #{@key} #{@folder_path} #{@force_local_flag}"
|
126
|
+
cmd += " -localIdentifier #{@local_identifier_flag}" if @local_identifier_flag
|
127
|
+
cmd += " #{@only_flag} #{@only_automate_flag}"
|
128
|
+
cmd += " -proxyHost #{@proxy_host}" if @proxy_host
|
129
|
+
cmd += " -proxyPort #{@proxy_port}" if @proxy_port
|
130
|
+
cmd += " -proxyUser #{@proxy_user}" if @proxy_user
|
131
|
+
cmd += " -proxyPass #{@proxy_pass}" if @proxy_pass
|
132
|
+
cmd += " #{@force_proxy_flag} #{@force_flag} #{@verbose_flag} #{@hosts} #{@user_arguments.join(" ")} 2>&1"
|
133
|
+
cmd.strip
|
126
134
|
end
|
127
135
|
|
128
136
|
def start_command_args
|
129
|
-
args = [
|
137
|
+
args = [@binary_path, "-d", "start", "-logFile", @logfile, @key, @folder_flag, @folder_path, @force_local_flag]
|
138
|
+
args += ["-localIdentifier", local_identifier_flag] if @local_identifier_flag
|
139
|
+
args += [@only_flag, @only_automate_flag]
|
140
|
+
args += ["-proxyHost", @proxy_host] if @proxy_host
|
141
|
+
args += ["-proxyPort", @proxy_port] if @proxy_port
|
142
|
+
args += ["-proxyUser", @proxy_user] if @proxy_user
|
143
|
+
args += ["-proxyPass", @proxy_pass] if @proxy_pass
|
144
|
+
args += [@force_proxy_flag, @force_flag, @verbose_flag, @hosts]
|
145
|
+
args += @user_arguments
|
146
|
+
|
130
147
|
args = args.select {|a| a.to_s != "" }
|
131
148
|
args.push(:err => [:child, :out])
|
132
149
|
args
|
metadata
CHANGED
@@ -1,47 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: browserstack-local
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- BrowserStack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
11
|
+
|
12
|
+
date: 2016-07-06 00:00:00 Z
|
12
13
|
dependencies: []
|
14
|
+
|
13
15
|
description: Ruby bindings for BrowserStack Local
|
14
16
|
email: support@browserstack.com
|
15
17
|
executables: []
|
18
|
+
|
16
19
|
extensions: []
|
20
|
+
|
17
21
|
extra_rdoc_files: []
|
18
|
-
|
22
|
+
|
23
|
+
files:
|
19
24
|
- lib/browserstack/local.rb
|
20
25
|
- lib/browserstack/localbinary.rb
|
21
26
|
- lib/browserstack/localexception.rb
|
22
27
|
homepage: http://rubygems.org/gems/browserstack-local
|
23
|
-
licenses:
|
28
|
+
licenses:
|
24
29
|
- MIT
|
25
30
|
metadata: {}
|
31
|
+
|
26
32
|
post_install_message:
|
27
33
|
rdoc_options: []
|
28
|
-
|
34
|
+
|
35
|
+
require_paths:
|
29
36
|
- lib
|
30
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
-
|
33
|
-
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
version: '0'
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- &id001
|
40
|
+
- ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: "0"
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- *id001
|
40
46
|
requirements: []
|
47
|
+
|
41
48
|
rubyforge_project:
|
42
|
-
rubygems_version: 2.
|
49
|
+
rubygems_version: 2.0.14
|
43
50
|
signing_key:
|
44
51
|
specification_version: 4
|
45
52
|
summary: BrowserStack Local
|
46
53
|
test_files: []
|
54
|
+
|
47
55
|
has_rdoc:
|