bstack_wrapper 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/user_account.rb +3 -3
  2. metadata +3 -3
data/lib/user_account.rb CHANGED
@@ -42,9 +42,9 @@ class UserAccount
42
42
 
43
43
  def get_worker_status options
44
44
  required_params = %w(worker_id)
45
- options_params = []
46
- options.reject! { |o| !require_params.include?(o) && !optional_params.include?(o) }
47
- require_params.each { |param| raise Exception, "Parameter #{param} is required." if !options.include?(param) }
45
+ optional_params = []
46
+ options.reject! { |o| !required_params.include?(o) && !optional_params.include?(o) }
47
+ required_params.each { |param| raise Exception, "Parameter #{param} is required." if !options.include?(param) }
48
48
  uri = "http://api.browserstack.com/3/worker#{options["worker_id"]}"
49
49
  response = get_from_browser_stack uri
50
50
  return JSON.parse(response.body)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bstack_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mandy