superbot-cloud 0.1.4 → 0.1.5

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: fd0c4d6cdfa71453b3a3d85ba2406e150a4a2dcc98529552813db579d93c0227
4
- data.tar.gz: 0f8c1bb9c47fcb5b46f5e50835f95fb48660c353ae167633537effa4ff182dac
3
+ metadata.gz: ad8d57f93658bd49900d502cbd355763cce9837908caaad4ff30a652a472a57b
4
+ data.tar.gz: 191a490401c08be59898d5a5a6ca2ad489bd934c6084fd62954db3e4bb6d5714
5
5
  SHA512:
6
- metadata.gz: 6a88dd5ebe699c23cf248b326396eb94ba07244b8c58dcb8b7fc3f608bc2df604921febf3af791df9f3c022c6fcbcd834ce75c4093a3fb9f72b1609c3a5b501e
7
- data.tar.gz: 1283fec08898756281e349d204a2f4a9ec2f8d213d07cee95a7c6c968b341a5de3b30223e3c5be80fbbfe7ac43ea40c1fb5746ca2c809e3f5a02bf16862c097b
6
+ metadata.gz: 7e8428292eb1719005dc3074fa98c5f53eb0b6a3ce7d6364b2baa16f583fd56bf5566e317d67583a42c8f0fb757162c70c4be0a9db6c1df747140e4e595b3da3
7
+ data.tar.gz: 01e65c840d5fd722b6579316c3330ddb2b8bb9408e4204bd919cdc29469db2dbd2fe444fbfc6d0dbc61cf3cbecc2f054dc9f3901f8fe50d3ed74c48fb4f326cf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbot-cloud (0.1.4)
4
+ superbot-cloud (0.1.5)
5
5
  marcel (= 0.3.3)
6
6
  multipart-post (= 2.0.0)
7
7
 
@@ -10,12 +10,9 @@ module Superbot
10
10
  module Cloud
11
11
  module Test
12
12
  class UploadCommand < Clamp::Command
13
- include Superbot::Validations
14
13
  include Superbot::Cloud::Validations
15
14
 
16
- parameter "PATH", "the path to folder containing tests to upload" do |path|
17
- validates_project_path path
18
- end
15
+ parameter "PATH", "the path to folder containing tests to upload"
19
16
 
20
17
  option ["-o", "--org"], "ORGANIZATION", "Organization to upload tests for", attribute_name: :organization
21
18
 
@@ -25,8 +22,8 @@ module Superbot
25
22
  end
26
23
 
27
24
  def upload_tests
28
- Dir.glob(File.join(path, '*.rb')) do |test_file|
29
- puts "Uploading files from #{path}..."
25
+ puts "Uploading files from #{path}..."
26
+ Dir.glob(File.join(path, '*')) do |test_file|
30
27
  filename = File.basename(test_file)
31
28
  content_type = Marcel::MimeType.for(Pathname.new(test_file), name: filename)
32
29
 
@@ -11,8 +11,13 @@ module Superbot
11
11
  class CloudCommand < Clamp::Command
12
12
  subcommand ['version'], 'Superbot cloud version', Cloud::VersionCommand
13
13
  subcommand ['login'], 'Login to superbot cloud', Cloud::LoginCommand
14
- subcommand ['org'], 'Manage your organizations', Cloud::OrganizationCommand
15
- subcommand ['test'], "Manage your tests", Cloud::TestCommand
14
+ subcommand(['org'], 'Manage your organizations', Cloud::OrganizationCommand) if ENV['SUPERBOT_FEAT_CLOUD_ORG'] == 'true'
15
+ subcommand ['test'], "Manage your tests", Cloud::TestCommand if ENV['SUPERBOT_FEAT_CLOUD_TEST'] == 'true'
16
+
17
+ option ['-v', '--version'], :flag, "Show version information" do
18
+ puts Superbot::Cloud::VERSION
19
+ exit 0
20
+ end
16
21
 
17
22
  def self.run
18
23
  super
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Superbot
4
4
  module Cloud
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
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
4
+ version: 0.1.5
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-06 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post