ruby-box 1.10.1 → 1.10.2

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
- YWMyYTY1ZGRhNjVjODI1YTc5OWZhMzBmODBlNjhlOGI4ZTI4MGYzZA==
4
+ OWYwMGMxNjFiZjdjZGMwNjA2OGRhZWQwZDhmNjViNDJmMjM5NWEwZg==
5
5
  data.tar.gz: !binary |-
6
- ZDRhMGEwNWMwYjY5MzViODY0MTIxMDJiZDYzYTljMjZkYjhmYjg4MA==
6
+ YzQ5MWRmMzczN2ZjMGIzMTdhNmU3NjI5NzI4MGEwZGM3YzYxMDMyZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTg5MzA1MjFkZWE3ZmM0YjlmMjk1OWYzMTE3NTA2YzJmOWY2NjYzYTYxZTRi
10
- NDU2MzIyNWJhYjFlNmI3NmM2NzFmODczYzFkZjlkM2Y2YjA0M2I3ZTNkMjZj
11
- MDY1MzNlNjY1MTRkN2U2NTY5MTg5NTM5MDA5Mjg5NTE5YzM2Mjk=
9
+ OWY1NzBiNmZmNWQ0MGUyY2JlNjQwYTA2YzVmMmZlYTQyYmYyMzAwNTE1Mjli
10
+ YzdkMzY2NDk3MjcwNzk5MGE2NzRhNzkwNTJmYjdkNDM2ZmI4YjdmNWM2MTM5
11
+ ZmU5MzViNjM5NmE3YmE5ODk4OWNiM2NjYmQ3ODlkMTZiYmJjMjQ=
12
12
  data.tar.gz: !binary |-
13
- ZjI2ZThhNzI2YjUzZTMzOGJiMzFjYjEyMjFkZTJmY2U1MzFmNGJiNDM1YTMy
14
- NTA2YzIzZGQyMzg4OTczOTZiNTljMzE0MTVmMDNkZWVmMTE3OWQyYTdhYjY4
15
- ZWE3MTRmYmI2NWNmYTBjYWNiZmUxNWFkYjM2MzgwYmNmMDUyNTg=
13
+ OTQxMzE5YTk3NWRhY2IwMGIxYTA3ZTlkMjJmNDM2YzkxYjhlZWYwZWU4ODY3
14
+ OGIzYTZhMjIwY2RlYjMzNzRjOWU4NDRkZTQwOGYwYmEzZTZkMDkwNjgxODQw
15
+ YTExZmUxNDU3NjdiY2RiNGQ5NTg3YWVjZmU4MDUwMmNmNjVmMTk=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.1
1
+ 1.10.2
@@ -16,7 +16,7 @@ module RubyBox
16
16
  def upload_file(filename, data, overwrite=true)
17
17
  file = RubyBox::File.new(@session, {
18
18
  'name' => filename,
19
- 'parent' => RubyBox::User.new(@session, {'id' => id})
19
+ 'parent' => RubyBox::Folder.new(@session, {'id' => id})
20
20
  })
21
21
 
22
22
  begin
data/lib/ruby-box/user.rb CHANGED
@@ -1,10 +1,16 @@
1
1
  module RubyBox
2
2
  class User < Item
3
3
 
4
+ def enterprise
5
+ resp = @session.get( "#{RubyBox::API_URL}/users/#{id}?fields=enterprise" )
6
+ resp["enterprise"]
7
+ end
8
+
4
9
  private
5
10
 
6
11
  def resource_name
7
12
  'users'
8
13
  end
14
+
9
15
  end
10
16
  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.10.1"
8
+ s.version = "1.10.2"
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-08-08"
12
+ s.date = "2013-08-12"
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.10.1
4
+ version: 1.10.2
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-08-08 00:00:00.000000000 Z
11
+ date: 2013-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post