sauce_whisk 0.2.0 → 0.3.2

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: 1e054d13b0187277b77496a400e4fc801cdbbfaa
4
- data.tar.gz: 86c3c3b0421604c47ded59dfd13f325541ce86b8
3
+ metadata.gz: 90cb9dbe4266fabab40f60da2f5bdbe3c6f354fe
4
+ data.tar.gz: 7fb0cf509ab60486ff950c8dd74fd77e5506c887
5
5
  SHA512:
6
- metadata.gz: d841ca7bf1c4ac3a7bb9f3e651bdd3295c3a7512a3374a34aa8eb3a5f18226071899dc802054a3783ca8e0057089b2bc52cb5e3e1bcae5f03370db2519f353e0
7
- data.tar.gz: 7b42821bb29b03c17dd8aa812a03c74f7305d665bb572697e3ce61481cb61d09d63ba9451f68879cb71c419982d4b062b2b537506d2774024b07843082173af1
6
+ metadata.gz: c86f6d6572173fec8cce303c49668fa80a59dea66e3473936e0ffaf6c6877dc83f3096a7b0247de214aeba9ff2fd8d6826a63bac1531b81e8aac438a75c8d5fb
7
+ data.tar.gz: 017ef365807713a07732d569d31bb4134250bcb8c9b5e13c0534a324b048d74afa1d6cabc057d158cb6cf3a8cfc5de874b3bfda9a586023eabde2883e4bcff10
data/README.md CHANGED
@@ -30,7 +30,9 @@ You'll need a [Sauce Labs account](http://www.saucelabs.com/signup). They're fr
30
30
  As Sauce Labs now has two data centers, you'll need to select the DC your account is located in.
31
31
 
32
32
  Choose `:EU_VDC` for the European Data Center.
33
- Choose `:US_VDC` for the US Data Center.
33
+ Choose `:US_WEST` for the US West Coast Data Center.
34
+ Choose `:US_EAST` for the US East Coast Data Center (currently only in use with Headless).
35
+ Choose `:APAC` for the Australian Data Center.
34
36
 
35
37
  Read more about the data center options [here](https://wiki.saucelabs.com/display/DOCS/Accessing+the+API).
36
38
 
@@ -57,6 +59,8 @@ SauceWhisk.asset_fetch_retries = 5
57
59
  #### The Sauce gem
58
60
  If you have the Sauce gem required, the SauceWhisk gem will try to read its configuration from the Sauce gem's configuration.
59
61
 
62
+ NB: The Sauce gem is deprecated. We recommend using different configuration techniques.
63
+
60
64
  #### ondemand.yml
61
65
  If you have an ondemand.yml, the SauceWhisk gem will try to read its configuration from that file. The locations the gem looks for a ondemand.yml are, in order:
62
66
 
@@ -78,6 +82,9 @@ SAUCE_ACCESS_KEY=Your Access Key, found on the lower left of your Account page
78
82
  ### HTTP Proxies
79
83
  To configure a proxy, set the 'HTTP_PROXY' or 'http_proxy' environment variable. Proxies need to be a valid URI; HTTP Authentication can be included.
80
84
 
85
+ ## Support
86
+ For support, please visit [The Sauce Labs Community Hub](https://community.saucelabs.com)
87
+
81
88
  ## Usage
82
89
 
83
90
  ### Marking jobs passed or failed
data/changelog.markdown CHANGED
@@ -1,5 +1,13 @@
1
1
  # Major Version 0
2
2
  ## Minor Version 0.2
3
+ ### 0.2.2
4
+ * Fixed require in `lib\sauce-whisk` to refer to the correct file; Thanks @anthony-chu!
5
+
6
+ ### 0.2.1
7
+ * Added US_EAST option for headless
8
+ * Changed preferred value from US_VDC to US_WEST. US_VDC wil continue to work.
9
+ * @juandelgado added tunnel_identifier to Tunnels endpoint, closing #59; Thanks!
10
+
3
11
  ### 0.2.0
4
12
  * Added the ability to select between US & EU VDC
5
13
  * Made US VDC the default endpoint
data/lib/sauce-whisk.rb CHANGED
@@ -1 +1 @@
1
- require 'sauce-whisk'
1
+ require 'sauce_whisk'
@@ -49,7 +49,7 @@ module SauceWhisk
49
49
  end
50
50
 
51
51
  class Tunnel
52
- attr_reader :id, :owner, :status, :host, :creation_time, :ssh_port
52
+ attr_reader :id, :owner, :status, :host, :creation_time, :ssh_port, :tunnel_identifier
53
53
 
54
54
  def initialize(params)
55
55
  params.each do |param, val|
@@ -1,3 +1,3 @@
1
1
  module SauceWhisk
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/sauce_whisk.rb CHANGED
@@ -14,7 +14,18 @@ require 'logger'
14
14
  module SauceWhisk
15
15
 
16
16
  def self.base_url
17
- data_center == :US_VDC ? "https://saucelabs.com/rest/v1" : "https://eu-central-1.saucelabs.com/rest/v1"
17
+ case data_center
18
+ when :US_WEST
19
+ "https://saucelabs.com/rest/v1"
20
+ when :US_EAST
21
+ "https://us-east-1.saucelabs.com/rest/v1"
22
+ when :EU_VDC
23
+ "https://eu-central-1.saucelabs.com/rest/v1"
24
+ when :APAC
25
+ "https://apac-southeast-1.saucelabs.com/rest/v1"
26
+ else
27
+ raise ::ArgumentError.new "No Data Center Selected (Which should not happen?)"
28
+ end
18
29
  end
19
30
 
20
31
  def self.username= username
@@ -72,7 +83,7 @@ module SauceWhisk
72
83
 
73
84
  if configured_dc.nil?
74
85
  logger.warn "[DEPRECATED] You have not selected a REST API Endpoint - using US by default. This behaviour is deprecated and will be removed in an upcoming version. Please select a data center as described here: https://github.com/saucelabs/sauce_whisk#data-center"
75
- configured_dc = :US_VDC
86
+ configured_dc = :US_WEST
76
87
  end
77
88
 
78
89
  validated_dc = validate_dc configured_dc
@@ -84,13 +95,14 @@ module SauceWhisk
84
95
  end
85
96
 
86
97
  def self.validate_dc dc
87
- dc = :eu_vdc if dc == :eu
88
- dc = :us_vdc if dc == :us
98
+ dc = :eu_vdc if dc.to_s.upcase.to_sym == :EU
99
+ dc = :us_west if dc.to_s.upcase.to_sym == :US
100
+ dc = :us_west if dc.to_s.upcase.to_sym == :US_VDC
89
101
 
90
102
  ucdc = dc.to_s.upcase.to_sym
91
103
 
92
- if ![:EU_VDC, :US_VDC].include? ucdc
93
- raise ::ArgumentError.new("Invalid data center requested: #{ucdc}. Value values are :eu_vdc and :us_vdc.")
104
+ if ![:EU_VDC, :US_EAST, :US_WEST, :APAC].include? ucdc
105
+ raise ::ArgumentError.new("Invalid data center requested: #{ucdc}. Value values are :EU_VDC, :US_EAST and :US_WEST.")
94
106
  end
95
107
 
96
108
  @data_center = ucdc
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sauce_whisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Lacey
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-08 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -127,7 +127,7 @@ homepage: http://www.github.com/saucelabs/sauce_whisk
127
127
  licenses:
128
128
  - MIT
129
129
  metadata: {}
130
- post_install_message:
130
+ post_install_message:
131
131
  rdoc_options: []
132
132
  require_paths:
133
133
  - lib
@@ -142,9 +142,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubyforge_project:
146
- rubygems_version: 2.6.11
147
- signing_key:
145
+ rubyforge_project:
146
+ rubygems_version: 2.6.8
147
+ signing_key:
148
148
  specification_version: 4
149
149
  summary: Sauce_Whisk lets you mix extra data into your Sauce test results! Fetch and
150
150
  update Job details, screenshots, videos and logs.