dbox 0.6.12 → 0.6.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +4 -0
  2. data/VERSION +1 -1
  3. data/bin/dbox +15 -2
  4. data/dbox.gemspec +2 -2
  5. metadata +4 -4
@@ -1,3 +1,7 @@
1
+ == 0.6.13 / 2012-06-04
2
+ * Bug Fixes
3
+ * Fixed issue with dbox delete command-line util.
4
+
1
5
  == 0.6.12 / 2012-06-01
2
6
  * Minor Enhancements
3
7
  * Added clone_or_pull operation for if you aren't sure if the local folder exists yet or not.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.12
1
+ 0.6.13
data/bin/dbox CHANGED
@@ -6,7 +6,7 @@ require "dbox"
6
6
  # usage line
7
7
  def usage
8
8
  <<_EOF
9
- Usage: dbox <commond> [<args>]
9
+ Usage: dbox <command> [<args>]
10
10
 
11
11
  Commands:
12
12
  authorize Generate auth keys
@@ -42,7 +42,7 @@ args = ARGV[1..-1]
42
42
  case command
43
43
  when "authorize"
44
44
  Dbox.authorize
45
- when "create", "clone", "clone_or_pull", "delete"
45
+ when "create", "clone", "clone_or_pull"
46
46
  unless args.size >= 1
47
47
  puts "Error: Please provide a remote path"
48
48
  print_usage_and_quit
@@ -74,6 +74,19 @@ when "move"
74
74
  # default to current directory
75
75
  local_path = args[1] || "."
76
76
 
77
+ Dbox.send(command, remote_path, local_path)
78
+ when "delete"
79
+ unless args.size >= 1
80
+ puts "Error: Please provide a remote path"
81
+ print_usage_and_quit
82
+ end
83
+
84
+ remote_path = args[0]
85
+
86
+ # default to creating a directory inside the current directory with
87
+ # the same name of the directory being created/cloned
88
+ local_path = args[1] || remote_path.split("/").last
89
+
77
90
  Dbox.send(command, remote_path, local_path)
78
91
  else
79
92
  print_usage_and_quit
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "dbox"
8
- s.version = "0.6.12"
8
+ s.version = "0.6.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ken Pratt"]
12
- s.date = "2012-06-01"
12
+ s.date = "2012-06-04"
13
13
  s.description = "An easy-to-use Dropbox client with fine-grained control over syncs."
14
14
  s.email = "ken@kenpratt.net"
15
15
  s.executables = ["dbox"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbox
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 12
10
- version: 0.6.12
9
+ - 13
10
+ version: 0.6.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ken Pratt
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-01 00:00:00 Z
18
+ date: 2012-06-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: multipart-post