box-api 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/Gemfile.lock +1 -1
  2. data/box-api.gemspec +1 -1
  3. data/doc/Box.html +108 -0
  4. data/doc/Box/Account.html +1099 -0
  5. data/doc/Box/Api.html +3428 -0
  6. data/doc/Box/Api/AccountExceeded.html +130 -0
  7. data/doc/Box/Api/EmailInvalid.html +141 -0
  8. data/doc/Box/Api/EmailTaken.html +130 -0
  9. data/doc/Box/Api/ErrorStatus.html +130 -0
  10. data/doc/Box/Api/Exception.html +120 -0
  11. data/doc/Box/Api/Generic.html +130 -0
  12. data/doc/Box/Api/InvalidFolder.html +141 -0
  13. data/doc/Box/Api/InvalidInput.html +130 -0
  14. data/doc/Box/Api/InvalidName.html +130 -0
  15. data/doc/Box/Api/NameTaken.html +130 -0
  16. data/doc/Box/Api/NoAccess.html +130 -0
  17. data/doc/Box/Api/NoParent.html +130 -0
  18. data/doc/Box/Api/NotAuthorized.html +130 -0
  19. data/doc/Box/Api/Restricted.html +141 -0
  20. data/doc/Box/Api/SizeExceeded.html +130 -0
  21. data/doc/Box/Api/Unknown.html +130 -0
  22. data/doc/Box/Api/UnknownResponse.html +141 -0
  23. data/doc/Box/Api/UploadFailed.html +141 -0
  24. data/doc/Box/File.html +580 -0
  25. data/doc/Box/Folder.html +1078 -0
  26. data/doc/Box/Item.html +1884 -0
  27. data/doc/_index.html +342 -0
  28. data/doc/class_list.html +47 -0
  29. data/doc/css/common.css +1 -0
  30. data/doc/css/full_list.css +53 -0
  31. data/doc/css/style.css +320 -0
  32. data/doc/file.README.html +98 -0
  33. data/doc/file_list.html +49 -0
  34. data/doc/frames.html +13 -0
  35. data/doc/index.html +98 -0
  36. data/doc/js/app.js +205 -0
  37. data/doc/js/full_list.js +150 -0
  38. data/doc/js/jquery.js +16 -0
  39. data/doc/method_list.html +574 -0
  40. data/doc/top-level-namespace.html +103 -0
  41. data/examples/login.rb +4 -4
  42. data/lib/box/account.rb +168 -51
  43. data/lib/box/api.rb +174 -16
  44. data/lib/box/api/exceptions.rb +4 -0
  45. data/lib/box/file.rb +17 -4
  46. data/lib/box/folder.rb +85 -30
  47. data/lib/box/item.rb +89 -20
  48. data/spec/account_spec.rb +0 -4
  49. data/spec/folder_spec.rb +3 -9
  50. metadata +42 -4
@@ -77,8 +77,8 @@ describe Box::Folder do
77
77
  file.should be nil
78
78
  end
79
79
 
80
- it "finds specified criteria" do
81
- file = @root.find(:type => 'file', :sha1 => 'f7379ffe883fdc355fbe47e8a4b3073f21ac0f6d', :recursive => true).first
80
+ it "finds multiple criteria" do
81
+ file = @root.find(:type => 'file', :id => '61669270', :recursive => true).first
82
82
  file.id.should == '61669270'
83
83
  file.name.should == 'file.pdf'
84
84
  end
@@ -88,14 +88,8 @@ describe Box::Folder do
88
88
  file.should == nil
89
89
  end
90
90
 
91
- it "finds multiple criteria" do
92
- file = @root.find(:updated => 1304959908, :size => 20372, :recursive => true).first
93
- file.id.should == '61679546'
94
- file.name.should == 'expected.3.swf'
95
- end
96
-
97
91
  it "requires both criteria" do
98
- file = @root.find(:updated => 1304, :size => 20372, :recursive => true).first
92
+ file = @root.find(:id => 7068024, :name => "notswf", :recursive => true).first
99
93
  file.should be nil
100
94
  end
101
95
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: box-api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.7
5
+ version: 0.1.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Box.net
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-07-29 00:00:00 -04:00
14
+ date: 2011-08-15 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -75,6 +75,44 @@ files:
75
75
  - README.md
76
76
  - Rakefile
77
77
  - box-api.gemspec
78
+ - doc/Box.html
79
+ - doc/Box/Account.html
80
+ - doc/Box/Api.html
81
+ - doc/Box/Api/AccountExceeded.html
82
+ - doc/Box/Api/EmailInvalid.html
83
+ - doc/Box/Api/EmailTaken.html
84
+ - doc/Box/Api/ErrorStatus.html
85
+ - doc/Box/Api/Exception.html
86
+ - doc/Box/Api/Generic.html
87
+ - doc/Box/Api/InvalidFolder.html
88
+ - doc/Box/Api/InvalidInput.html
89
+ - doc/Box/Api/InvalidName.html
90
+ - doc/Box/Api/NameTaken.html
91
+ - doc/Box/Api/NoAccess.html
92
+ - doc/Box/Api/NoParent.html
93
+ - doc/Box/Api/NotAuthorized.html
94
+ - doc/Box/Api/Restricted.html
95
+ - doc/Box/Api/SizeExceeded.html
96
+ - doc/Box/Api/Unknown.html
97
+ - doc/Box/Api/UnknownResponse.html
98
+ - doc/Box/Api/UploadFailed.html
99
+ - doc/Box/File.html
100
+ - doc/Box/Folder.html
101
+ - doc/Box/Item.html
102
+ - doc/_index.html
103
+ - doc/class_list.html
104
+ - doc/css/common.css
105
+ - doc/css/full_list.css
106
+ - doc/css/style.css
107
+ - doc/file.README.html
108
+ - doc/file_list.html
109
+ - doc/frames.html
110
+ - doc/index.html
111
+ - doc/js/app.js
112
+ - doc/js/full_list.js
113
+ - doc/js/jquery.js
114
+ - doc/method_list.html
115
+ - doc/top-level-namespace.html
78
116
  - examples/app_data.yml
79
117
  - examples/files.rb
80
118
  - examples/login.rb
@@ -108,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
146
  requirements:
109
147
  - - ">="
110
148
  - !ruby/object:Gem::Version
111
- hash: -2887608171974797695
149
+ hash: 2606524952571599279
112
150
  segments:
113
151
  - 0
114
152
  version: "0"
@@ -117,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
155
  requirements:
118
156
  - - ">="
119
157
  - !ruby/object:Gem::Version
120
- hash: -2887608171974797695
158
+ hash: 2606524952571599279
121
159
  segments:
122
160
  - 0
123
161
  version: "0"