superbot 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +5 -1
- data/lib/superbot.rb +1 -1
- data/lib/superbot/cli/root_command.rb +4 -2
- data/lib/superbot/version.rb +1 -1
- data/superbot.gemspec +1 -0
- metadata +17 -3
- data/lib/superbot/cli/record_command.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4940d2f7afaf00ff7629ebf59d33a7d8de76f466c21e6730a996ec8fabc52c81
|
4
|
+
data.tar.gz: 43a61079c5913f7850803d51899300c5bc7ade3e3274d05188033ac6f6de607e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a51a9ef696608aabad2a357022c728704e35f326cf2be6f238817617b1a121ca60e810106480fb1538cab6df4e886109bf4263ae6f3ce009b14493917235e333
|
7
|
+
data.tar.gz: e5e00c3243928f6cebfe3eb143abf741f2b871bc6b02492b2bb396b34fbf32ccfdf4bfe453bd26a68ee1807332feb19ec969d1f28af674e4ab6b2e0e74e2fbea
|
data/Gemfile
CHANGED
@@ -11,4 +11,6 @@ unless ENV['SUPERBOT_USE_RUBYGEMS'] == "yes"
|
|
11
11
|
gem "superbot-cloud", path: "../superbot-cloud"
|
12
12
|
gem "superbot-runner", path: "../superbot-runner"
|
13
13
|
gem "superbot-runner-side", path: "../superbot-runner-side"
|
14
|
+
gem "superbot-record", path: "../superbot-record"
|
15
|
+
gem "superbot-record-chrome", path: "../superbot-record-chrome"
|
14
16
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
superbot (0.2.
|
4
|
+
superbot (0.2.1)
|
5
5
|
clamp (= 1.2.1)
|
6
6
|
kommando (~> 0.1)
|
7
7
|
launchy (= 2.4.3)
|
8
8
|
sinatra (= 2.0.4)
|
9
9
|
sinatra-silent (= 0.0.1)
|
10
10
|
superbot-cloud (~> 0.1.22)
|
11
|
+
superbot-record
|
11
12
|
superbot-runner
|
12
13
|
superbot-selenium-webdriver (~> 1.0.5)
|
13
14
|
superbot-teleport (~> 0.2.3)
|
@@ -130,6 +131,9 @@ GEM
|
|
130
131
|
superbot-cloud (0.1.22)
|
131
132
|
marcel (= 0.3.3)
|
132
133
|
multipart-post (= 2.0.0)
|
134
|
+
superbot-record (0.1.0)
|
135
|
+
superbot-record-chrome
|
136
|
+
superbot-record-chrome (0.1.0)
|
133
137
|
superbot-runner (0.1.0)
|
134
138
|
superbot-runner-side
|
135
139
|
superbot-runner-side (0.1.0)
|
data/lib/superbot.rb
CHANGED
@@ -45,7 +45,7 @@ Clamp.allow_options_after_parameters = true
|
|
45
45
|
|
46
46
|
require_relative "superbot/version"
|
47
47
|
require_relative "superbot/cli/validations"
|
48
|
-
%w(selenium cloud teleport runner).each do |microgem|
|
48
|
+
%w(selenium cloud teleport runner record).each do |microgem|
|
49
49
|
begin
|
50
50
|
require "superbot/#{microgem}"
|
51
51
|
rescue LoadError
|
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
require_relative "new_command"
|
4
4
|
require_relative "version_command"
|
5
|
-
require_relative "record_command"
|
6
5
|
|
7
6
|
module Superbot
|
8
7
|
module CLI
|
@@ -15,9 +14,12 @@ module Superbot
|
|
15
14
|
end
|
16
15
|
|
17
16
|
subcommand ["version"], "Show version information", VersionCommand
|
18
|
-
subcommand ["record"], "Open browser with selenium ide pre-loaded", RecordCommand if ENV['SUPERBOT_FEAT_RECORD'] == 'true'
|
19
17
|
subcommand ["new"], "Create a new project", NewCommand if ENV['SUPERBOT_FEAT_PROJECT'] == 'true'
|
20
18
|
|
19
|
+
if defined?(Superbot::Record::CLI::RootCommand)
|
20
|
+
subcommand ["record"], "Superbot recorder tools", ::Superbot::Record::CLI::RootCommand
|
21
|
+
end
|
22
|
+
|
21
23
|
if defined?(::Superbot::Runner::CLI::RootCommand)
|
22
24
|
subcommand ["run"], "Run superbot scripts", ::Superbot::Runner::CLI::RootCommand
|
23
25
|
end
|
data/lib/superbot/version.rb
CHANGED
data/superbot.gemspec
CHANGED
@@ -42,6 +42,7 @@ Gem::Specification.new do |spec|
|
|
42
42
|
spec.add_runtime_dependency "superbot-teleport", "~> 0.2.3"
|
43
43
|
spec.add_runtime_dependency "superbot-selenium-webdriver", "~> 1.0.5"
|
44
44
|
spec.add_runtime_dependency "superbot-runner"
|
45
|
+
spec.add_runtime_dependency "superbot-record"
|
45
46
|
|
46
47
|
spec.add_development_dependency "bundler", "~> 1.10"
|
47
48
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbots
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: superbot-record
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: bundler
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -307,7 +321,6 @@ files:
|
|
307
321
|
- lib/superbot.rb
|
308
322
|
- lib/superbot/cli.rb
|
309
323
|
- lib/superbot/cli/new_command.rb
|
310
|
-
- lib/superbot/cli/record_command.rb
|
311
324
|
- lib/superbot/cli/root_command.rb
|
312
325
|
- lib/superbot/cli/validations.rb
|
313
326
|
- lib/superbot/cli/version_command.rb
|
@@ -334,7 +347,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
334
347
|
- !ruby/object:Gem::Version
|
335
348
|
version: '0'
|
336
349
|
requirements: []
|
337
|
-
|
350
|
+
rubyforge_project:
|
351
|
+
rubygems_version: 2.7.7
|
338
352
|
signing_key:
|
339
353
|
specification_version: 4
|
340
354
|
summary: Superbot Testing
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'selenium-webdriver'
|
4
|
-
|
5
|
-
module Superbot
|
6
|
-
module CLI
|
7
|
-
class RecordCommand < Clamp::Command
|
8
|
-
def execute
|
9
|
-
open_superside
|
10
|
-
|
11
|
-
puts "Press [enter] to exit"
|
12
|
-
|
13
|
-
$stdin.gets
|
14
|
-
end
|
15
|
-
|
16
|
-
private
|
17
|
-
|
18
|
-
def open_superside
|
19
|
-
options = ::Selenium::WebDriver::Chrome::Options.new
|
20
|
-
options.add_argument("app=about:blank")
|
21
|
-
options.add_argument("no-sandbox")
|
22
|
-
options.add_extension(File.join(File.dirname(__dir__), '../..', 'bin', 'superside.crx'))
|
23
|
-
browser = ::Selenium::WebDriver.for :chrome, options: options
|
24
|
-
|
25
|
-
# close browser window when extension is loaded
|
26
|
-
sleep 1
|
27
|
-
browser.close
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|