tinymce_aws_file_upload 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66b640f22d94c7a9e77987b2e9c45104c31d10fa
|
4
|
+
data.tar.gz: 64a96ce9ef5a02bc0a28db5f0f199e14afeab429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c52732286883e610bd135a3a95f5a4b8a301c50030f89d12d1f25b2c1be0ffb8fbde1042601c0aa66d380c469a74dcc07c31583fd346920ab0c29a1a128655e
|
7
|
+
data.tar.gz: 5440f5c2406779e19ef438d02eafb26ded5eaf9263ab4497a01dbaba65983d976ac4ea8dc806fef06ecb9d60eed7507922462137719cf3b4cfc6b475d287a432
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module TinymceAwsFileUpload
|
2
2
|
class SignedUrlsController < ::ApplicationController
|
3
3
|
def index
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
respond_to do |format|
|
5
|
+
format.json do
|
6
|
+
render json: {
|
7
|
+
policy: s3_upload_policy_document,
|
8
|
+
signature: s3_upload_signature,
|
9
|
+
key: "uploads/#{SecureRandom.uuid}/#{params[:doc][:title]}",
|
10
|
+
success_action_redirect: "http://localhost:3000/",
|
11
|
+
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
|
12
|
+
bucket: ENV['AWS_BUCKET']
|
13
|
+
}
|
14
|
+
end
|
15
|
+
end
|
12
16
|
end
|
13
17
|
|
14
18
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tinymce_aws_file_upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariel Schvartz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|