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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Nzg0YTUyMjlmMzA1NjE1ZTg2YWNmY2Q1N2MyOTAyZDEzMjYxZjY1MQ==
4
+ YTcwZjU5NzFkMTQ2NWIyZWNjZjE0MzI5OTU0OGQ0ODZjOTI3MmYzZA==
5
5
  data.tar.gz: !binary |-
6
- ZTMyOGVjZDE5NGFiZWE4NmIyM2E1NDRiZTMxZjE2Y2JhMGU0MmFkYw==
6
+ N2RjYjZlNzA3MTU0YWQ3NmYwYjZjNzc3NzM4M2YwMmY4YjkwZWFlOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NWU5YmUwMTA0MzAzMjA5ZmIwNjc0YzUwNDU5OTdhMzc1NmVhYzQ2MmM3YWM1
10
- Njc4MGRiNjFhMDBhMThmZGE2NzAxY2FkYmY0NzQ0YzY2MGMxYzRiYWVmNjc0
11
- NzMzMWM2Mjg5ZmEwYmZkNzg3NTg2YjM1MWZkOWE5MDkwNmVmODg=
9
+ NDQyZDJkNWNhOTYyYzRiMDg2Yzk2MDI5YjAxMjk1YjAwOWIzODU1MzQ0YWM0
10
+ ZGY5NWFkM2U0OGI3OTYwODE4ODE2ZDBjZmVlY2ZiMjJiOTEyOGRiODkyYTRm
11
+ NGY1Njk3MWQ5OTRmNzAzNzM3ZWQ1NmRiMGZmNTk5NGFjM2ExNzM=
12
12
  data.tar.gz: !binary |-
13
- YTRjYzc3ODRmZDIxMWVkMTVjMjc1MDYzZTdiOTQ3YmFhNjgzMDU0NGRkNTRi
14
- ZTA5YWM2YWY5NTg1ZmEyOWZhZTJkODAzZGY5ODg4NTE2ODE1NDIzZWQ1MTY3
15
- MzU2NGNlNmY4NjYwYmU5NDljNDNiMmQ3NjI5MmQ3ZGIwZTY4YzY=
13
+ OTI2MjgzN2RmYWUwYjBlYWQ0NDVkYzY0YjYzOGYzNTNhZDNlOGY4MzU2NjY2
14
+ NDU3OWRlYTdiMmZiYmNiMjQ0MTI4NWVhNjU1ODU1MWU0N2U4Y2FlMmVjNzJj
15
+ NzY2YjhlZTJjMWJhMDVmMjk3MDJiMThlMTFiNWJiZDUwNWY1YmU=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -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
- folder = new_folder ? new_folder : folder.create_subfolder(folder_name)
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
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ruby-box"
8
- s.version = "1.0.4"
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-03-26"
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
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-03-26 00:00:00.000000000 Z
11
+ date: 2013-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post