dbox 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. data/History.txt +4 -0
  2. data/README.md +10 -3
  3. data/VERSION +1 -1
  4. data/bin/dbox +7 -1
  5. data/dbox.gemspec +1 -1
  6. metadata +3 -3
@@ -1,3 +1,7 @@
1
+ == 0.6.1 / 2011-11-24
2
+ * Bug Fixes
3
+ * Fixed sync command in command-line client.
4
+
1
5
  == 0.6.0 / 2011-11-24
2
6
  * Major Enhancements
3
7
  * Upgrade from Dropbox API v0 to v1.
data/README.md CHANGED
@@ -1,11 +1,18 @@
1
1
  dbox
2
2
  ====
3
3
 
4
- Dropbox integration made easy.
4
+ Dropbox integration made easy. This robust client gives you control over what, where, and when you sync with Dropbox.
5
5
 
6
- Push and pull your Dropbox folders, with fine-grained control over what folder you are syncing, where you are syncing it to, and when you are doing it.
6
+ Available as both a command-line client and a Ruby API.
7
7
 
8
- Take your pick: a command-line client or a Ruby API.
8
+ ```sh
9
+ $ cd /tmp
10
+ $ dbox clone Public
11
+ $ cd Public
12
+ $ echo "Hello World" > hello.txt
13
+ $ dbox sync
14
+ [INFO] Uploading /Public/hello2.txt
15
+ ```
9
16
 
10
17
  **IMPORTANT:** This is **not** an automated Dropbox client. It will exit after sucessfully pushing/pulling, so if you want regular updates, you can run it in cron, a loop, etc. If you do want to run it in a loop, take a look at [sample_polling_script.rb](http://github.com/kenpratt/dbox/blob/master/sample_polling_script.rb). You get deterministic control over what you want Dropbox to do and when you want it to happen.
11
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
data/bin/dbox CHANGED
@@ -54,12 +54,18 @@ when "create", "clone"
54
54
 
55
55
  res = Dbox.send(command, remote_path, local_path)
56
56
  exit 1 if res[:failed].size > 0
57
- when "pull", "push", "sync"
57
+ when "pull", "push"
58
58
  # default to current directory
59
59
  local_path = args[0] || "."
60
60
 
61
61
  res = Dbox.send(command, local_path)
62
62
  exit 1 if res[:failed].size > 0
63
+ when "sync"
64
+ # default to current directory
65
+ local_path = args[0] || "."
66
+
67
+ res = Dbox.sync(local_path)
68
+ exit 1 if res[:pull][:failed].size > 0 || res[:push][:failed].size > 0
63
69
  when "move"
64
70
  remote_path = args[0]
65
71
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "dbox"
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
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"]
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ken Pratt