ruby-box 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/ruby-box/client.rb +6 -1
- data/ruby-box.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTcwZjU5NzFkMTQ2NWIyZWNjZjE0MzI5OTU0OGQ0ODZjOTI3MmYzZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2RjYjZlNzA3MTU0YWQ3NmYwYjZjNzc3NzM4M2YwMmY4YjkwZWFlOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDQyZDJkNWNhOTYyYzRiMDg2Yzk2MDI5YjAxMjk1YjAwOWIzODU1MzQ0YWM0
|
10
|
+
ZGY5NWFkM2U0OGI3OTYwODE4ODE2ZDBjZmVlY2ZiMjJiOTEyOGRiODkyYTRm
|
11
|
+
NGY1Njk3MWQ5OTRmNzAzNzM3ZWQ1NmRiMGZmNTk5NGFjM2ExNzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTI2MjgzN2RmYWUwYjBlYWQ0NDVkYzY0YjYzOGYzNTNhZDNlOGY4MzU2NjY2
|
14
|
+
NDU3OWRlYTdiMmZiYmNiMjQ0MTI4NWVhNjU1ODU1MWU0N2U4Y2FlMmVjNzJj
|
15
|
+
NzY2YjhlZTJjMWJhMDVmMjk3MDJiMThlMTFiNWJiZDUwNWY1YmU=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
data/lib/ruby-box/client.rb
CHANGED
@@ -56,7 +56,12 @@ module RubyBox
|
|
56
56
|
folder_names = split_path(path)
|
57
57
|
folder_names.each do |folder_name|
|
58
58
|
new_folder = folder.folders(folder_name).first
|
59
|
-
|
59
|
+
begin
|
60
|
+
new_folder = folder.create_subfolder(folder_name)
|
61
|
+
rescue RubyBox::ItemNameInUse => e
|
62
|
+
new_folder = folder.folders(folder_name).first
|
63
|
+
end
|
64
|
+
folder = new_folder ? new_folder : folder.folders(folder_name).first
|
60
65
|
end
|
61
66
|
folder
|
62
67
|
end
|
data/ruby-box.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ruby-box"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Attachments.me"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-04-01"
|
13
13
|
s.description = "ruby gem for box.com 2.0 api"
|
14
14
|
s.email = "ben@attachments.me"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Attachments.me
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multipart-post
|