superbot-cloud 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/superbot/cloud/cli/cloud/webdriver/list_command.rb +8 -4
- data/lib/superbot/cloud/version.rb +1 -1
- data/superbot-cloud.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fb1c9b07574d814298c45682877013348a7915d974478df1e720d2bbe25bcac
|
4
|
+
data.tar.gz: 35258cf7c427a781d5925c68af3f80c4730f03ef3a8a522196fcf7dc3ca1d949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c9f068fd91b3b917a27c7299c86084362c4152057a32510d4c2e10621811f670ebae048a1b2349181e00ebc191edf11cff269f62af487920b6aff41f5a107d
|
7
|
+
data.tar.gz: 1835a015a48dc819e8d57af3b32786a9d2bd9d818b27009672b4c5d478ba384e44e4e56d29aa120cebfa5d1a1c82104ded7802d53fe1c702202e9fdb1fdb2bcd
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
superbot-cloud (0.1.
|
4
|
+
superbot-cloud (0.1.18)
|
5
5
|
marcel (= 0.3.3)
|
6
6
|
multipart-post (= 2.0.0)
|
7
7
|
|
@@ -67,16 +67,16 @@ GEM
|
|
67
67
|
rack-protection (= 2.0.3)
|
68
68
|
tilt (~> 2.0)
|
69
69
|
sinatra-silent (0.0.1)
|
70
|
-
superbot (0.1.
|
70
|
+
superbot (0.1.23)
|
71
71
|
clamp (= 1.2.1)
|
72
72
|
kommando (~> 0.1)
|
73
73
|
launchy (= 2.4.3)
|
74
74
|
selenium-webdriver (~> 3.14, >= 3.14.0)
|
75
75
|
sinatra (= 2.0.3)
|
76
76
|
sinatra-silent (= 0.0.1)
|
77
|
-
superbot-cloud (~> 0.1.
|
77
|
+
superbot-cloud (~> 0.1.17)
|
78
78
|
zaru (= 0.2.0)
|
79
|
-
tilt (2.0.
|
79
|
+
tilt (2.0.9)
|
80
80
|
unicode-display_width (1.4.0)
|
81
81
|
zaru (0.2.0)
|
82
82
|
|
@@ -88,7 +88,7 @@ DEPENDENCIES
|
|
88
88
|
rake (~> 10.0)
|
89
89
|
rspec (~> 3.0)
|
90
90
|
rubocop (~> 0.53)
|
91
|
-
superbot (~> 0.1.
|
91
|
+
superbot (~> 0.1.23)
|
92
92
|
superbot-cloud!
|
93
93
|
|
94
94
|
BUNDLED WITH
|
@@ -6,6 +6,11 @@ module Superbot
|
|
6
6
|
module Webdriver
|
7
7
|
class ListCommand < Clamp::Command
|
8
8
|
include Superbot::Cloud::Validations
|
9
|
+
OUTPUT_HEADERS = {
|
10
|
+
session_id: "Session ID",
|
11
|
+
created_at: "Created at",
|
12
|
+
updated_at: "Last activity"
|
13
|
+
}.freeze
|
9
14
|
|
10
15
|
option %w[-q --quiet], :flag, "Only show webdriver session IDs"
|
11
16
|
option %w[-a --all], :flag, "Show all the sessions (including finished)"
|
@@ -25,11 +30,10 @@ module Superbot
|
|
25
30
|
if quiet?
|
26
31
|
puts(api_response[:webdriver_sessions].map { |session| session[:session_id] })
|
27
32
|
else
|
28
|
-
|
29
|
-
puts
|
30
|
-
puts ''.ljust(35 * headers.length, '-')
|
33
|
+
puts OUTPUT_HEADERS.values.map { |header| header.ljust(35) }.join
|
34
|
+
puts ''.ljust(35 * OUTPUT_HEADERS.length, '-')
|
31
35
|
api_response[:webdriver_sessions].each do |webdriver_session|
|
32
|
-
puts webdriver_session.values.map { |v| v.to_s.ljust(35) }.join
|
36
|
+
puts webdriver_session.slice(*OUTPUT_HEADERS.keys).values.map { |v| v.to_s.ljust(35) }.join
|
33
37
|
end
|
34
38
|
end
|
35
39
|
end
|
data/superbot-cloud.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_runtime_dependency "multipart-post", "2.0.0"
|
37
37
|
spec.add_runtime_dependency "marcel", "0.3.3"
|
38
38
|
|
39
|
-
spec.add_development_dependency "superbot", "~> 0.1.
|
39
|
+
spec.add_development_dependency "superbot", "~> 0.1.23"
|
40
40
|
spec.add_development_dependency "bundler", "~> 1.16"
|
41
41
|
spec.add_development_dependency "rake", "~> 10.0"
|
42
42
|
spec.add_development_dependency "rspec", "~> 3.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbot-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbots
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.1.
|
47
|
+
version: 0.1.23
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.1.
|
54
|
+
version: 0.1.23
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|