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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff2fb3a13a5496da6770ba9bb14ecd45fcb419e7
4
- data.tar.gz: 9670b7048dda5d53f37c8bbb11192cd49cd09d23
3
+ metadata.gz: 2733717f9692c727f0ab682719aed8d0ee0d4774
4
+ data.tar.gz: 3e1c39b55266c0699876b259dba3defcd070c956
5
5
  SHA512:
6
- metadata.gz: 85c344a1488575ba237517c51ce6128762d905730b6feb2817ec54d06975a535ca95bbceac35ea44bb6da024ec64978b1805148c7282014e1728a610f69f1551
7
- data.tar.gz: ce34f8d0aaace9c6e2acbdb62d5b59396cc1eb973356dc8701073498d8fba49513a1c52f7cd8e198d8978e110b3be06713794ea5576ec3ab172730072a4ba9ca
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
- platform_versions = platforms.flat_map { |os, details| details[:versions] }.uniq.sort_by(&:to_f).reverse
74
-
75
- versions =
76
- if browser[:version].is_a?(Numeric) && browser[:version] < 0
77
- platform_versions.select { |v| v =~ /^\d/ }.first(browser[:version].abs.to_i)
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
@@ -1,5 +1,5 @@
1
1
  module Blade
2
2
  module SauceLabsPlugin
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
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-1877/lib/libevent.la /build/build/sc-build-1877/lib/libevent_openssl.la /build/build/sc-build-1877/lib/libcares.la /build/build/sc-build-1877/lib/libcurl.la /build/build/sc-build-1877/lib/libcares.la -lz -lrt /build/build/sc-build-1877/lib/libunwind.la -lc -lgcc -lssl -lcrypto -ldl'
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-1877/lib'
41
+ libdir='/build/build/sc-build-2010/lib'
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-1879/lib/libevent.la /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-1879/lib/libevent_openssl.la /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-1879/lib/libcares.la /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-1879/lib/libcurl.la /Users/travis/build/saucelabs/libsauceconnect/build/sc-build-1879/lib/libcares.la -lz -lssl -lcrypto -ldl'
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-1879/lib'
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.0
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-01-09 00:00:00.000000000 Z
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.4.5
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)