lib/sauce_whisk.rb in sauce_whisk-0.2.2 vs lib/sauce_whisk.rb in sauce_whisk-0.3.2

- old
+ new

@@ -19,10 +19,12 @@ "https://saucelabs.com/rest/v1" when :US_EAST "https://us-east-1.saucelabs.com/rest/v1" when :EU_VDC "https://eu-central-1.saucelabs.com/rest/v1" + when :APAC + "https://apac-southeast-1.saucelabs.com/rest/v1" else raise ::ArgumentError.new "No Data Center Selected (Which should not happen?)" end end @@ -97,10 +99,10 @@ dc = :us_west if dc.to_s.upcase.to_sym == :US dc = :us_west if dc.to_s.upcase.to_sym == :US_VDC ucdc = dc.to_s.upcase.to_sym - if ![:EU_VDC, :US_EAST, :US_WEST].include? ucdc + if ![:EU_VDC, :US_EAST, :US_WEST, :APAC].include? ucdc raise ::ArgumentError.new("Invalid data center requested: #{ucdc}. Value values are :EU_VDC, :US_EAST and :US_WEST.") end @data_center = ucdc end \ No newline at end of file