superbot-teleport 0.2.3 → 0.2.4

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
  SHA256:
3
- metadata.gz: 4644e685086aa0266f66efff80dd699a4c104a3c179c477a37334e581cb501c2
4
- data.tar.gz: 7dc4aaf614cb60f8199a68a1eb2a5eb00977f651822c2456a49c4ca2c375da07
3
+ metadata.gz: 5513cea443337574c106e6a48dab2c5f599464fcf9e533e3f1e4559c4517ece3
4
+ data.tar.gz: 1ba69a1abd7d310ef8bc679143635fddac83d6f4f8d9e7d17ff2aedc66855e85
5
5
  SHA512:
6
- metadata.gz: a1d9ad49fb4305eb133c47ae1fa8dfe7fa25f454a075270db1a5b2069e7ce87d9e082d2b619f16309176bc6f9acc3979ac5b946bd1ea1dcbb4a64d329f31b3cf
7
- data.tar.gz: 9406cc7d3623ae47040db04e257139dea6e4b30b1d09f35a9f962e33627e9877d7a7f0e22892017d7dae2e1f75a572aceffd001e4e96425a8b4cdf87b5803414
6
+ metadata.gz: '09918e207347e5c44ee075f53dd8840ca1ffc56236bd2d52e57625d75150cfc0b763284d89b97efdb450cac73467c6eadb7298df96be2af7e278c5d39f02bf5e'
7
+ data.tar.gz: 99dda527a27fe9311408df79ba30325243b2a00f30a7706fb379c93f9d33bf8638faaee072aa12df1583b8d68a8c0b804d2d16dedefa1497fb72ea5e768112b5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbot-teleport (0.2.3)
4
+ superbot-teleport (0.2.4)
5
5
  excon
6
6
 
7
7
  GEM
@@ -28,12 +28,12 @@ GEM
28
28
  marcel (0.3.3)
29
29
  mimemagic (~> 0.3.2)
30
30
  method_source (0.9.2)
31
- mimemagic (0.3.2)
32
- mini_portile2 (2.3.0)
31
+ mimemagic (0.3.3)
32
+ mini_portile2 (2.4.0)
33
33
  multipart-post (2.0.0)
34
34
  mustermann (1.0.3)
35
- nokogiri (1.8.5)
36
- mini_portile2 (~> 2.3.0)
35
+ nokogiri (1.9.1)
36
+ mini_portile2 (~> 2.4.0)
37
37
  pry (0.12.2)
38
38
  coderay (~> 1.1.0)
39
39
  method_source (~> 0.9.0)
@@ -65,20 +65,28 @@ GEM
65
65
  rack-protection (= 2.0.4)
66
66
  tilt (~> 2.0)
67
67
  sinatra-silent (0.0.1)
68
- superbot (0.1.30)
68
+ superbot (0.2.2)
69
69
  clamp (= 1.2.1)
70
70
  kommando (~> 0.1)
71
71
  launchy (= 2.4.3)
72
72
  sinatra (= 2.0.4)
73
73
  sinatra-silent (= 0.0.1)
74
- superbot-cloud (~> 0.1.20)
75
- superbot-selenium-webdriver (~> 1.0.1)
76
- superbot-teleport (~> 0.2.2)
74
+ superbot-cloud (~> 0.2.0)
75
+ superbot-record
76
+ superbot-runner
77
+ superbot-selenium-webdriver (~> 1.0.5)
78
+ superbot-teleport (~> 0.2.3)
77
79
  zaru (= 0.2.0)
78
- superbot-cloud (0.1.21)
80
+ superbot-cloud (0.2.0)
79
81
  marcel (= 0.3.3)
80
82
  multipart-post (= 2.0.0)
81
- superbot-selenium-webdriver (1.0.1)
83
+ superbot-record (0.1.0)
84
+ superbot-record-chrome
85
+ superbot-record-chrome (0.1.0)
86
+ superbot-runner (0.1.1)
87
+ superbot-runner-side
88
+ superbot-runner-side (0.1.0)
89
+ superbot-selenium-webdriver (1.0.5)
82
90
  chromedriver-helper (= 2.1.0)
83
91
  selenium-webdriver (= 3.141.0)
84
92
  tilt (2.0.9)
@@ -92,7 +100,7 @@ DEPENDENCIES
92
100
  pry
93
101
  rake (~> 11.2)
94
102
  rspec (~> 3.8)
95
- superbot (~> 0.1.30)
103
+ superbot (~> 0.2.2)
96
104
  superbot-selenium-webdriver (~> 1.0.1)
97
105
  superbot-teleport!
98
106
 
@@ -16,6 +16,7 @@ module Superbot
16
16
  validates_browser_type browser
17
17
  end
18
18
  option ['--region'], 'REGION', 'Region for remote webdriver'
19
+ option ['--org'], 'ORGANIZATION', 'Name of organization to take action', attribute_name: :organization
19
20
 
20
21
  def execute
21
22
  require_login unless browser == 'local'
@@ -29,7 +30,7 @@ module Superbot
29
30
  @chromedriver = Kommando.run_async "#{chromedriver_path} --silent --port=9515 --url-base=wd/hub"
30
31
  end
31
32
 
32
- @web = Superbot::Web.run!(webdriver_type: browser, region: region)
33
+ @web = Superbot::Web.run!(webdriver_type: browser, region: region, organization: organization)
33
34
  ensure
34
35
  close_teleport
35
36
  end
@@ -1,5 +1,5 @@
1
1
  module Superbot
2
2
  module Teleport
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -58,6 +58,8 @@ module Superbot
58
58
  when "session"
59
59
  parsed_body = safe_parse_json request.body, on_error: {}
60
60
 
61
+ parsed_body['organization_name'] = settings.organization
62
+
61
63
  if settings.region && parsed_body.dig('desiredCapabilities', 'superOptions', 'region').nil?
62
64
  parsed_body['desiredCapabilities'] ||= {}
63
65
  parsed_body['desiredCapabilities']['superOptions'] ||= {}
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency "rspec", "~> 3.8"
29
29
  spec.add_development_dependency "pry"
30
30
 
31
- spec.add_development_dependency "superbot", "~> 0.1.30"
31
+ spec.add_development_dependency "superbot", "~> 0.2.2"
32
32
  spec.add_development_dependency "superbot-selenium-webdriver", "~> 1.0.1"
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superbot-teleport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Superbot HQ
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-12 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.1.30
89
+ version: 0.2.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.1.30
96
+ version: 0.2.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: superbot-selenium-webdriver
99
99
  requirement: !ruby/object:Gem::Requirement