superbot-cloud 0.1.22 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +20 -12
- data/lib/superbot/cloud/cli/logout_command.rb +14 -0
- data/lib/superbot/cloud/cli/root_command.rb +4 -2
- data/lib/superbot/cloud/version.rb +1 -1
- data/lib/superbot/cloud.rb +6 -0
- data/superbot-cloud.gemspec +1 -1
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19bbd2c960d6aa5d1568b2466d3aa330bf3a83df27778f0d94443feb29359f4a
|
4
|
+
data.tar.gz: 5378ef953d8a0179fbfae3eeab75fc82d66ffdd58dd3acf77493f4b07fee49ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cc5c6baa79028c830533b1bedbcc85012efe39e9514a745483b03278494599cd3709a357a558b56048d0cd338a55adc80e5b8a062466e4b6dc39b2cd4883f9c
|
7
|
+
data.tar.gz: 33f7cf07f72ff70ba63d5a9993545ee449fdf8b038cdf03557776f03cb2c3d49f8f2f80b12668c61f691bd8962455be9e820b6c00351d6e7c4d93bb101e18cf1
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
superbot-cloud
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.1
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
superbot-cloud (0.
|
4
|
+
superbot-cloud (0.2.0)
|
5
5
|
marcel (= 0.3.3)
|
6
6
|
multipart-post (= 2.0.0)
|
7
7
|
|
@@ -29,12 +29,12 @@ GEM
|
|
29
29
|
addressable (~> 2.3)
|
30
30
|
marcel (0.3.3)
|
31
31
|
mimemagic (~> 0.3.2)
|
32
|
-
mimemagic (0.3.
|
33
|
-
mini_portile2 (2.
|
32
|
+
mimemagic (0.3.3)
|
33
|
+
mini_portile2 (2.4.0)
|
34
34
|
multipart-post (2.0.0)
|
35
35
|
mustermann (1.0.3)
|
36
|
-
nokogiri (1.
|
37
|
-
mini_portile2 (~> 2.
|
36
|
+
nokogiri (1.9.1)
|
37
|
+
mini_portile2 (~> 2.4.0)
|
38
38
|
parallel (1.12.1)
|
39
39
|
parser (2.5.1.2)
|
40
40
|
ast (~> 2.4.0)
|
@@ -77,20 +77,28 @@ GEM
|
|
77
77
|
rack-protection (= 2.0.4)
|
78
78
|
tilt (~> 2.0)
|
79
79
|
sinatra-silent (0.0.1)
|
80
|
-
superbot (0.1
|
80
|
+
superbot (0.2.1)
|
81
81
|
clamp (= 1.2.1)
|
82
82
|
kommando (~> 0.1)
|
83
83
|
launchy (= 2.4.3)
|
84
84
|
sinatra (= 2.0.4)
|
85
85
|
sinatra-silent (= 0.0.1)
|
86
|
-
superbot-cloud (~> 0.1.
|
87
|
-
superbot-
|
88
|
-
superbot-
|
86
|
+
superbot-cloud (~> 0.1.22)
|
87
|
+
superbot-record
|
88
|
+
superbot-runner
|
89
|
+
superbot-selenium-webdriver (~> 1.0.5)
|
90
|
+
superbot-teleport (~> 0.2.3)
|
89
91
|
zaru (= 0.2.0)
|
90
|
-
superbot-
|
92
|
+
superbot-record (0.1.0)
|
93
|
+
superbot-record-chrome
|
94
|
+
superbot-record-chrome (0.1.0)
|
95
|
+
superbot-runner (0.1.0)
|
96
|
+
superbot-runner-side
|
97
|
+
superbot-runner-side (0.1.0)
|
98
|
+
superbot-selenium-webdriver (1.0.5)
|
91
99
|
chromedriver-helper (= 2.1.0)
|
92
100
|
selenium-webdriver (= 3.141.0)
|
93
|
-
superbot-teleport (0.2.
|
101
|
+
superbot-teleport (0.2.3)
|
94
102
|
excon
|
95
103
|
tilt (2.0.9)
|
96
104
|
unicode-display_width (1.4.0)
|
@@ -104,7 +112,7 @@ DEPENDENCIES
|
|
104
112
|
rake (~> 10.0)
|
105
113
|
rspec (~> 3.0)
|
106
114
|
rubocop (~> 0.53)
|
107
|
-
superbot
|
115
|
+
superbot
|
108
116
|
superbot-cloud!
|
109
117
|
|
110
118
|
BUNDLED WITH
|
@@ -1,8 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative 'validations'
|
4
|
-
require_relative 'login_command'
|
5
4
|
require_relative 'version_command'
|
5
|
+
require_relative 'login_command'
|
6
|
+
require_relative 'logout_command'
|
6
7
|
require_relative 'organization_command'
|
7
8
|
require_relative 'test_command'
|
8
9
|
require_relative 'webdriver_command'
|
@@ -13,7 +14,8 @@ module Superbot
|
|
13
14
|
module CLI
|
14
15
|
class RootCommand < Clamp::Command
|
15
16
|
subcommand ['version'], 'Superbot cloud version', VersionCommand
|
16
|
-
subcommand ['login'], '
|
17
|
+
subcommand ['login'], 'Authorize superbot to access cloud API with Superbot Cloud user credentials', LoginCommand
|
18
|
+
subcommand ['logout'], 'Revoke credentials for an account', LogoutCommand
|
17
19
|
subcommand(['org'], 'Manage your organizations', OrganizationCommand)
|
18
20
|
subcommand ['test'], "Manage your tests", TestCommand
|
19
21
|
subcommand ['webdriver'], "Manage your webdriver sessions", WebdriverCommand
|
data/lib/superbot/cloud.rb
CHANGED
@@ -28,6 +28,12 @@ module Superbot
|
|
28
28
|
File.write CREDENTIALS_FILE_PATH, all_credentials.to_json
|
29
29
|
puts "Logged in as %<username>s (%<email>s)" % credentials.slice(:username, :email)
|
30
30
|
end
|
31
|
+
|
32
|
+
def self.remove_credentials
|
33
|
+
abort "You are not logged in yet." unless credentials
|
34
|
+
all_credentials.delete(Superbot::DOMAIN.to_sym)
|
35
|
+
File.write CREDENTIALS_FILE_PATH, all_credentials.to_json
|
36
|
+
end
|
31
37
|
end
|
32
38
|
end
|
33
39
|
|
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"
|
39
|
+
spec.add_development_dependency "superbot"
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbots
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: superbot
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '0'
|
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
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,6 +120,8 @@ files:
|
|
120
120
|
- ".rspec"
|
121
121
|
- ".rubocop.relaxed.yml"
|
122
122
|
- ".rubocop.yml"
|
123
|
+
- ".ruby-gemset"
|
124
|
+
- ".ruby-version"
|
123
125
|
- ".travis.yml"
|
124
126
|
- CODE_OF_CONDUCT.md
|
125
127
|
- Gemfile
|
@@ -135,6 +137,7 @@ files:
|
|
135
137
|
- lib/superbot/cloud/api.rb
|
136
138
|
- lib/superbot/cloud/cli.rb
|
137
139
|
- lib/superbot/cloud/cli/login_command.rb
|
140
|
+
- lib/superbot/cloud/cli/logout_command.rb
|
138
141
|
- lib/superbot/cloud/cli/member/add_command.rb
|
139
142
|
- lib/superbot/cloud/cli/member/base_command.rb
|
140
143
|
- lib/superbot/cloud/cli/member/list_command.rb
|