blade-sauce_labs_plugin 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blade/sauce_labs_plugin/client.rb +24 -10
- data/lib/blade/sauce_labs_plugin/version.rb +1 -1
- data/support/sc-linux/bin/sc +0 -0
- data/support/sc-linux/include/sauceconnect.h +1 -0
- data/support/sc-linux/lib/libsauceconnect.a +0 -0
- data/support/sc-linux/lib/libsauceconnect.la +2 -2
- data/support/sc-osx/bin/sc +0 -0
- data/support/sc-osx/bin/sc.dSYM/Contents/Resources/DWARF/sc +0 -0
- data/support/sc-osx/include/sauceconnect.h +1 -0
- data/support/sc-osx/lib/libsauceconnect.a +0 -0
- data/support/sc-osx/lib/libsauceconnect.la +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2733717f9692c727f0ab682719aed8d0ee0d4774
|
4
|
+
data.tar.gz: 3e1c39b55266c0699876b259dba3defcd070c956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57434ce3d3b2ed0076ca5144f9b13ba4c10ed2af88658ce9c88d699b55f28bc520aa266e9cbb4c845618eff6c49c6ab91af91557ba2839befbcee9c66589dc74
|
7
|
+
data.tar.gz: 46cede3586837f693d622bff817d05a506c11adcfb82b7cc06fe490fedfe25a62d725aa0e2a1e015d886aa367ad5eb55ba51ad2ec5e964907de3edcada4cfc1c
|
@@ -70,19 +70,23 @@ module Blade::SauceLabsPlugin::Client
|
|
70
70
|
def platforms_for_browser(browser)
|
71
71
|
long_name = find_browser_long_name(browser[:name])
|
72
72
|
platforms = available_platforms_by_browser[long_name]
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
elsif browser[:version].present?
|
79
|
-
Array(browser[:version]).map(&:to_s)
|
80
|
-
else
|
81
|
-
platform_versions.first(1)
|
82
|
-
end
|
73
|
+
|
74
|
+
versions_by_os = {}
|
75
|
+
platforms.each do |os, details|
|
76
|
+
versions_by_os[os] = details[:versions].uniq.sort_by(&:to_f).reverse
|
77
|
+
end
|
83
78
|
|
84
79
|
if browser[:os].any?
|
85
80
|
browser[:os].flat_map do |browser_os|
|
81
|
+
versions =
|
82
|
+
if browser[:version].is_a?(Numeric) && browser[:version] < 0
|
83
|
+
versions_by_os[browser_os].select { |v| v =~ /^\d/ }.first(browser[:version].abs.to_i)
|
84
|
+
elsif browser[:version].present?
|
85
|
+
Array(browser[:version]).map(&:to_s)
|
86
|
+
else
|
87
|
+
versions_by_os[browser_os].first(1)
|
88
|
+
end
|
89
|
+
|
86
90
|
versions.map do |version|
|
87
91
|
os = platforms.keys.detect { |os| os =~ Regexp.new(browser_os, Regexp::IGNORECASE) }
|
88
92
|
platform = platforms[os][:api][version].first
|
@@ -90,6 +94,16 @@ module Blade::SauceLabsPlugin::Client
|
|
90
94
|
end
|
91
95
|
end
|
92
96
|
else
|
97
|
+
all_versions = versions_by_os.values.flatten.uniq
|
98
|
+
versions =
|
99
|
+
if browser[:version].is_a?(Numeric) && browser[:version] < 0
|
100
|
+
all_versions.select { |v| v =~ /^\d/ }.first(browser[:version].abs.to_i)
|
101
|
+
elsif browser[:version].present?
|
102
|
+
Array(browser[:version]).map(&:to_s)
|
103
|
+
else
|
104
|
+
all_versions.first(1)
|
105
|
+
end
|
106
|
+
|
93
107
|
versions.map do |version|
|
94
108
|
os = platforms.detect { |os, details| details[:api][version].any? }.first
|
95
109
|
platform = platforms[os][:api][version].first
|
data/support/sc-linux/bin/sc
CHANGED
Binary file
|
@@ -35,6 +35,7 @@ void sc_free(struct sc_ctx *ctx);
|
|
35
35
|
#define SC_PARAM_PROXY_USERPWD 0x0c /* char * */
|
36
36
|
#define SC_PARAM_RECONNECT 0x0d /* int */
|
37
37
|
#define SC_PARAM_DNS_SERVERS 0x0e /* char * */
|
38
|
+
#define SC_PARAM_MISS_ACKS 0x0f /* int */
|
38
39
|
int sc_get(struct sc_ctx *ctx, int param, void *value, size_t vlen);
|
39
40
|
int sc_set(struct sc_ctx *ctx, int param, void *value);
|
40
41
|
|
Binary file
|
@@ -17,7 +17,7 @@ old_library='libsauceconnect.a'
|
|
17
17
|
inherited_linker_flags=' -pthread'
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -L/build/build/Linux/openssl/lib -L/build/curl/ares /build/build/sc-build-
|
20
|
+
dependency_libs=' -L/build/build/Linux/openssl/lib -L/build/curl/ares /build/build/sc-build-2010/lib/libevent.la /build/build/sc-build-2010/lib/libevent_openssl.la /build/build/sc-build-2010/lib/libcares.la /build/build/sc-build-2010/lib/libcurl.la /build/build/sc-build-2010/lib/libcares.la -lz -lrt /build/build/sc-build-2010/lib/libunwind.la -lc -lgcc -lssl -lcrypto -ldl'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/build/build/sc-build-
|
41
|
+
libdir='/build/build/sc-build-2010/lib'
|
data/support/sc-osx/bin/sc
CHANGED
Binary file
|
Binary file
|
@@ -35,6 +35,7 @@ void sc_free(struct sc_ctx *ctx);
|
|
35
35
|
#define SC_PARAM_PROXY_USERPWD 0x0c /* char * */
|
36
36
|
#define SC_PARAM_RECONNECT 0x0d /* int */
|
37
37
|
#define SC_PARAM_DNS_SERVERS 0x0e /* char * */
|
38
|
+
#define SC_PARAM_MISS_ACKS 0x0f /* int */
|
38
39
|
int sc_get(struct sc_ctx *ctx, int param, void *value, size_t vlen);
|
39
40
|
int sc_set(struct sc_ctx *ctx, int param, void *value);
|
40
41
|
|
Binary file
|
@@ -17,7 +17,7 @@ old_library='libsauceconnect.a'
|
|
17
17
|
inherited_linker_flags=' -framework CoreFoundation -framework Security'
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -L/Users/travis/build/saucelabs/libsauceconnect/build/Darwin/openssl/lib -L/Users/travis/build/saucelabs/libsauceconnect/curl/ares /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-
|
20
|
+
dependency_libs=' -L/Users/travis/build/saucelabs/libsauceconnect/build/Darwin/openssl/lib -L/Users/travis/build/saucelabs/libsauceconnect/curl/ares /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-2011/lib/libevent.la /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-2011/lib/libevent_openssl.la /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-2011/lib/libcares.la /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-2011/lib/libcurl.la /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-2011/lib/libcares.la -lz -lssl -lcrypto -ldl'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/Users/travis/build/saucelabs/libsauceconnect/build/sc-build-
|
41
|
+
libdir='/Users/travis/build/saucelabs/libsauceconnect/build/sc-build-2011/lib'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blade-sauce_labs_plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javan Makhmali
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.5.1
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Blade Runner plugin for Sauce Labs (saucelabs.com)
|