sf-dropbox-ext 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/dropbox_ext/items_controller.rb +5 -1
- data/lib/dropbox_ext/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6fd94d9ca55c06cefb30804a8652a17b8d685c8
|
4
|
+
data.tar.gz: 4c209a3ddb878eb1f76270eb3a4742b517b9b35f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dbb478dedc6299d00e768967c9fafd04329e6c5d8b9349920edb3cd8e6be8a132f7705ec135677031a9791882950d00f674259f786097dbd97dd4825125b589
|
7
|
+
data.tar.gz: 6eb2142e27d34666089d7eaace42e57fcbaa2066977a3258b43a76661cda87f55a22bc96dbf2613d094160ca4bc1a28d82533c344cc281ae7688d4445dbe2841
|
@@ -14,9 +14,13 @@ module DropboxExt
|
|
14
14
|
|
15
15
|
def sync
|
16
16
|
items = params[:items]
|
17
|
+
auth_params = params[:auth_params]
|
18
|
+
|
17
19
|
if items && items.length > 0
|
18
20
|
items.each do |item|
|
19
|
-
|
21
|
+
payload = { "items" => [item]}
|
22
|
+
payload["auth_params"] = auth_params if auth_params != nil
|
23
|
+
dropbox.upload("/data/#{item[:content_type]}-#{item[:uuid]}.txt", "#{JSON.pretty_generate(payload.as_json)}", {:mode => "overwrite"})
|
20
24
|
end
|
21
25
|
end
|
22
26
|
|
data/lib/dropbox_ext/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sf-dropbox-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Standard File
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|