dropbox-api 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,11 @@ module Dropbox
14
14
  end
15
15
  end
16
16
 
17
+ def direct_url(options = {})
18
+ response = client.raw.shares({ :path => self.path, :short_url => false }.merge(options))
19
+ Dropbox::API::Object.init(response, client)
20
+ end
21
+
17
22
  end
18
23
 
19
24
  end
@@ -15,16 +15,6 @@ module Dropbox
15
15
  self.update response
16
16
  end
17
17
 
18
- def share_url(options = {})
19
- response = client.raw.shares({ :path => self.path }.merge(options))
20
- Dropbox::API::Object.init(response, client)
21
- end
22
-
23
- def direct_url(options = {})
24
- response = client.raw.media({ :path => self.path }.merge(options))
25
- Dropbox::API::Object.init(response, client)
26
- end
27
-
28
18
  def thumbnail(options = {})
29
19
  client.raw.thumbnails({ :path => self.path }.merge(options))
30
20
  end
@@ -38,6 +28,11 @@ module Dropbox
38
28
  client.download(self.path)
39
29
  end
40
30
 
31
+ def direct_url(options = {})
32
+ response = client.raw.media({ :path => self.path }.merge(options))
33
+ Dropbox::API::Object.init(response, client)
34
+ end
35
+
41
36
  end
42
37
 
43
38
  end
@@ -22,6 +22,11 @@ module Dropbox
22
22
  self['path'].sub(/^\//, '')
23
23
  end
24
24
 
25
+ def share_url(options = {})
26
+ response = client.raw.shares({ :path => self.path }.merge(options))
27
+ Dropbox::API::Object.init(response, client)
28
+ end
29
+
25
30
  end
26
31
 
27
32
  end
@@ -1,5 +1,5 @@
1
1
  module Dropbox
2
2
  module API
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,55 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropbox-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Marcin Bunsch
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-09-04 00:00:00.000000000 Z
12
+ date: 2013-09-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: multi_json
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: oauth
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: hashie
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  description: To deliver a more Rubyesque experience when using the DropBox API.
@@ -96,26 +103,33 @@ files:
96
103
  - spec/support/jpeg.rb
97
104
  homepage: http://github.com/futuresimple/dropbox-api
98
105
  licenses: []
99
- metadata: {}
100
106
  post_install_message:
101
107
  rdoc_options: []
102
108
  require_paths:
103
109
  - lib
104
110
  required_ruby_version: !ruby/object:Gem::Requirement
111
+ none: false
105
112
  requirements:
106
- - - '>='
113
+ - - ! '>='
107
114
  - !ruby/object:Gem::Version
108
115
  version: '0'
116
+ segments:
117
+ - 0
118
+ hash: -720354913055572093
109
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
+ none: false
110
121
  requirements:
111
- - - '>='
122
+ - - ! '>='
112
123
  - !ruby/object:Gem::Version
113
124
  version: '0'
125
+ segments:
126
+ - 0
127
+ hash: -720354913055572093
114
128
  requirements: []
115
129
  rubyforge_project: dropbox-api
116
- rubygems_version: 2.0.5
130
+ rubygems_version: 1.8.25
117
131
  signing_key:
118
- specification_version: 4
132
+ specification_version: 3
119
133
  summary: A Ruby client for the DropBox REST API.
120
134
  test_files:
121
135
  - spec/connection.sample.yml
@@ -129,4 +143,3 @@ test_files:
129
143
  - spec/spec_helper.rb
130
144
  - spec/support/config.rb
131
145
  - spec/support/jpeg.rb
132
- has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 0b39a154cb174d0b3520dc9388ada41a6f240663
4
- data.tar.gz: 46bfdad313fdc0d25ff8ab582a881991f4df4c90
5
- SHA512:
6
- metadata.gz: b506b52182090323076304f8f3218083e010862d6cdf0f23a501982a9fcf5e00b4675fea6df1d867de327384e899c9eb31869447ac33108348c3f506d42e8a03
7
- data.tar.gz: 047377b42883b1b505c0a62955cb5c6d3f111d74fb16ac9839b79e5f20ba062f77faa51b8615dd735ae8d585ca97a385e1bedbd3792cc437223fd0487bc41b21