dropbox 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  pkg/
2
2
  .DS_Store
3
3
  *.gem
4
+ dropbox.gemspec
data/ChangeLog.rdoc CHANGED
@@ -1,7 +1,10 @@
1
+ == 0.0.8 (March 12, 2010):
2
+ * Fixed bug with empty stats
3
+
1
4
  == 0.0.7 (March 11, 2010):
2
5
  * Fixed stats
3
6
  * Added some additional documentation
4
7
  * Running into issue creating files, anyone else?
5
8
 
6
- == 0.0.6:
9
+ == 0.0.6 (March 4, 2010);
7
10
  * Explicit minimum dependency versions
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = DropBox
2
2
 
3
- A simple Ruby API for DropBox.
3
+ A simple stop-gap Ruby API for DropBox. Hopefully DropBox will release a real API soon!
4
4
 
5
5
  * Don't have a dropbox account? Well you should! You can "donate" to this project by signing up with this referral url: https://www.dropbox.com/referrals/NTI0MDI3MzU5
6
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -155,10 +155,10 @@ class DropBox
155
155
  }[0]
156
156
 
157
157
  regular_data = stats_page.at('span.bar-graph-legend.bar-graph-normal').next.content.scan(/\((\d+(?:\.\d+)?)([MG])B/)[0]
158
- stats[:regular_used] = regular_data[0].to_f * ((regular_data[1] == "G") ? 1024 : 1)
158
+ stats[:regular_used] = regular_data[0].to_f * ((regular_data[1] == "G") ? 1024 : 1) unless regular_data.nil?
159
159
 
160
160
  shared_data = stats_page.at('span.bar-graph-legend.bar-graph-shared').next.content.scan(/\((\d+(?:\.\d+)?)([MG])B/)[0]
161
- stats[:shared_used] = shared_data[0].to_f * ((shared_data[1] == "G") ? 1024 : 1)
161
+ stats[:shared_used] = shared_data[0].to_f * ((shared_data[1] == "G") ? 1024 : 1) unless regular_data.nil?
162
162
 
163
163
  return stats
164
164
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tys von Gaza
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-03-11 00:00:00 -07:00
20
+ date: 2010-03-12 00:00:00 -07:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency