dbox 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/History.txt +4 -0
  3. data/VERSION +1 -1
  4. data/bin/dbox +9 -1
  5. data/dbox.gemspec +5 -4
  6. metadata +18 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e49a895f77896ac4bb63c9aeb1020781b3aad03
4
- data.tar.gz: 626e7b5468f35121249e3835b62953763577dcfc
3
+ metadata.gz: 16835a087c2e3aa0a1524a294085016ef894bc0c
4
+ data.tar.gz: 818d95727db80dd4e988d1bf05265d53c0c8a20a
5
5
  SHA512:
6
- metadata.gz: 00992b3234f8ca4ed45236c7797d9c8dec093c68bccc23efa42e515818cc1f66ab814c3fe9da9fe0e4d68e54d2431d6d556a7e736ef34f529f0aa24df58bb36b
7
- data.tar.gz: b325e40651306776dbbe65321667381730a4c4958998686dad40f34022a40e83b7806b33da0956440745b97b74952e7e33a7139645330356418a9406503c18e3
6
+ metadata.gz: dd46f87fafee35abb1ec18edb0ab19a6491011af0796f45e7067b95b6b761af8a2f960944bf22ffa6232359a7a33ff6e1d05d04e573d3bb37838c0c21be767e2
7
+ data.tar.gz: 080c4e75ab193f22003ecd9460dedea503ece897b2ff8169b0fcfd4709319958585315b6a8dda70f0b964671f7d8d74e2fd99c356aa85845ed8f99f08b649230
@@ -1,3 +1,7 @@
1
+ == 0.8.3 / 2015-03-02
2
+ * Minor Enhancements
3
+ * Added dbox list command (Thanks, mzywiol)
4
+
1
5
  == 0.8.2 / 2014-04-16
2
6
  * Bug Fixes
3
7
  * Eliminitated duplicate dependencies from gemspec.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.2
1
+ 0.8.3
data/bin/dbox CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  $:.unshift File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))
4
4
  require "dbox"
5
+ require "json"
5
6
 
6
7
  # usage line
7
8
  def usage
@@ -11,8 +12,9 @@ Usage: dbox <command> [<args>]
11
12
  Commands:
12
13
  authorize Generate auth keys
13
14
  create <remote_path> [<local_path>] Create a new Dropbox folder
15
+ list <remote_path> List files and directories in Dropbox folder
14
16
  clone <remote_path> [<local_path>] Clone an existing Dropbox folder
15
- pull [<local_path>] Pull chonges from Dropbox
17
+ pull [<local_path>] Pull changes from Dropbox
16
18
  push [<local_path>] Push changes to Dropbox
17
19
  sync [<local_path>] Sync changes to Dropbox
18
20
  move <new_remote_path> [<local_path>] Move the remote Dropbox folder to a new location
@@ -93,6 +95,12 @@ when "metadata"
93
95
  remote_path = args[0]
94
96
  res = Dbox.metadata(remote_path)
95
97
  puts res.inspect
98
+ when "list"
99
+ remote_path = args[0]
100
+ files = Dbox.metadata(remote_path)
101
+ files['contents'].each do |file|
102
+ puts file['path'][/[^\/]+$/]
103
+ end
96
104
  else
97
105
  print_usage_and_quit
98
106
  end
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: dbox 0.8.3 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "dbox"
8
- s.version = "0.8.2"
9
+ s.version = "0.8.3"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Ken Pratt"]
12
- s.date = "2014-04-16"
14
+ s.date = "2015-03-03"
13
15
  s.description = "An easy-to-use Dropbox client with fine-grained control over syncs. Think of it as halfway point between the developer API and a normal client, which gives you control over what and when Dropbox syncs but handles all the details."
14
16
  s.email = "ken@kenpratt.net"
15
17
  s.executables = ["dbox"]
@@ -42,8 +44,7 @@ Gem::Specification.new do |s|
42
44
  ]
43
45
  s.homepage = "http://github.com/kenpratt/dbox"
44
46
  s.licenses = ["MIT"]
45
- s.require_paths = ["lib"]
46
- s.rubygems_version = "2.0.14"
47
+ s.rubygems_version = "2.2.2"
47
48
  s.summary = "Dropbox made easy."
48
49
 
49
50
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Pratt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-16 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.1.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.1.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: oauth
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.4.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.4.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.5.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.5.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.3.3
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.3.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: dropbox-sdk
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.6.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.6.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: jeweler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: An easy-to-use Dropbox client with fine-grained control over syncs. Think
@@ -105,7 +105,7 @@ extra_rdoc_files:
105
105
  - LICENSE.txt
106
106
  - README.md
107
107
  files:
108
- - .document
108
+ - ".document"
109
109
  - Gemfile
110
110
  - History.txt
111
111
  - LICENSE.txt
@@ -136,17 +136,17 @@ require_paths:
136
136
  - lib
137
137
  required_ruby_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
- - - '>='
139
+ - - ">="
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - '>='
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.0.14
149
+ rubygems_version: 2.2.2
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Dropbox made easy.