rubiojr-iorb 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/iorb.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{iorb}
3
- s.version = "0.5.1"
3
+ s.version = "0.5.2"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Sergio RubioSergio Rubio"]
data/lib/iorb.rb CHANGED
@@ -15,7 +15,7 @@ class Dropio::Asset
15
15
  end
16
16
  end
17
17
  module IORB
18
- VERSION = "0.5.1"
18
+ VERSION = "0.5.2"
19
19
  module Util
20
20
  # Code stolen from:
21
21
  # http://evan.tiggerpalace.com/2008/04/26/pastie-from-the-mac-clipboard/
@@ -41,7 +41,7 @@ command :send_to_drop do |c|
41
41
  asset = nil
42
42
  if options.target_drop.nil?
43
43
  $stderr.puts '--target-drop not specified'
44
- break
44
+ abort
45
45
  end
46
46
  if param =~ /^\w+:.*/
47
47
  drop_name, asset = param.split(':')
@@ -8,8 +8,14 @@ command :update do |c|
8
8
  c.option '--admin-password PASSWORD', String, 'Admin password to manage this drop (defaut: none)'
9
9
  c.option '--password PASSWORD', String, 'Password to access this drop (defaut: none)'
10
10
  c.option '--premium-code CODE', String, 'Premium code to apply to the drop (defaut: none)'
11
+ c.syntax = 'Usage: iorb update <drop_name> [options]'
11
12
  c.when_called do |args, drop_options|
12
13
  drop_name = args.first
14
+ if drop_name.nil?
15
+ $stderr.puts 'Invalid drop name'
16
+ $stderr.puts c.syntax
17
+ abort
18
+ end
13
19
  begin
14
20
  details = IORB::DropManager.find(drop_name)
15
21
  drop = Drop.find(drop_name, details.admin_token )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubiojr-iorb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio RubioSergio Rubio