dropbox-api 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -11,6 +11,30 @@ Current state:
11
11
 
12
12
  First release, whole API covered.
13
13
 
14
+ Important!!!
15
+ ------------
16
+
17
+ From version 0.2.0, Dropbox::API::File#delete and Dropbox::API::Dir#delete *are gone*!!
18
+
19
+ The reason is that it's based on Hashie::Mash and was screwing Hash#delete.
20
+
21
+ It is replaced with Dropbox::API::File#destroy and Dropbox::API::Dir#destroy.
22
+
23
+ Installation
24
+ ------------
25
+
26
+ Dropbox::API is available on RubyGems, so:
27
+
28
+ ```
29
+ gem install dropbox-api
30
+ ```
31
+
32
+ Or in your Gemfile:
33
+
34
+ ```ruby
35
+ gem "dropbox-api"
36
+ ```
37
+
14
38
  Configuration
15
39
  -------------
16
40
 
@@ -215,12 +239,12 @@ Moves a file/directory to a new specified filename
215
239
  file.move 'newfilename.txt' # => #<Dropbox::API::File>
216
240
  ```
217
241
 
218
- ### Dropbox::API::File#delete | Dropbox::API::Dir#delete
242
+ ### Dropbox::API::File#destroy | Dropbox::API::Dir#destroy
219
243
 
220
244
  Deletes a file/directory
221
245
 
222
246
  ```ruby
223
- file.delete 'newfilename.txt' # => #<Dropbox::API::File>
247
+ file.destroy 'newfilename.txt' # => #<Dropbox::API::File>
224
248
  ```
225
249
 
226
250
 
@@ -13,7 +13,7 @@ module Dropbox
13
13
  self.update response
14
14
  end
15
15
 
16
- def delete(options = {})
16
+ def destroy(options = {})
17
17
  response = client.raw.delete({ :path => self.path }.merge(options))
18
18
  self.update response
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Dropbox
2
2
  module API
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -32,10 +32,10 @@ describe Dropbox::API::Dir do
32
32
 
33
33
  end
34
34
 
35
- describe "#delete" do
35
+ describe "#destroy" do
36
36
 
37
- it "deletes the dir properly" do
38
- @dir.delete
37
+ it "destroys the dir properly" do
38
+ @dir.destroy
39
39
  @dir.is_deleted.should == true
40
40
  end
41
41
 
@@ -32,10 +32,10 @@ describe Dropbox::API::File do
32
32
 
33
33
  end
34
34
 
35
- describe "#delete" do
35
+ describe "#destroy" do
36
36
 
37
- it "deletes the file properly" do
38
- @file.delete
37
+ it "destroys the file properly" do
38
+ @file.destroy
39
39
  @file.is_deleted.should == true
40
40
  end
41
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropbox-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-03 00:00:00.000000000 Z
12
+ date: 2012-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yajl-ruby
16
- requirement: &70118868905540 !ruby/object:Gem::Requirement
16
+ requirement: &70348446258240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70118868905540
24
+ version_requirements: *70348446258240
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: oauth
27
- requirement: &70118868903940 !ruby/object:Gem::Requirement
27
+ requirement: &70348446257500 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70118868903940
35
+ version_requirements: *70348446257500
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hashie
38
- requirement: &70118868948200 !ruby/object:Gem::Requirement
38
+ requirement: &70348446257040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70118868948200
46
+ version_requirements: *70348446257040
47
47
  description: To deliver a more Rubyesque experience when using the DropBox API.
48
48
  email:
49
49
  - marcin@futuresimple.com
@@ -97,18 +97,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  - - ! '>='
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
- segments:
101
- - 0
102
- hash: 1145444997854151183
103
100
  required_rubygems_version: !ruby/object:Gem::Requirement
104
101
  none: false
105
102
  requirements:
106
103
  - - ! '>='
107
104
  - !ruby/object:Gem::Version
108
105
  version: '0'
109
- segments:
110
- - 0
111
- hash: 1145444997854151183
112
106
  requirements: []
113
107
  rubyforge_project: dropbox-api
114
108
  rubygems_version: 1.8.10