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: a7721887fbdced3a74f986a26f70483bd53d984d
4
- data.tar.gz: 2daa0c440d477d48ecedccb12d8872c7ca3a8fa9
3
+ metadata.gz: 66b640f22d94c7a9e77987b2e9c45104c31d10fa
4
+ data.tar.gz: 64a96ce9ef5a02bc0a28db5f0f199e14afeab429
5
5
  SHA512:
6
- metadata.gz: 97d508ba65b3fd95cfa9d95fcedc62389bb47b3afb9a1da588dd40939f57872da7ba4b13d337a92639685e70a1e9efcd448b397a272468f82af94d4294c925c1
7
- data.tar.gz: e1c93737c25a06299d9791d6d855f0c723afb467319a8edbb7f8b92709a07d1cc70e87541b628a2077c4d912a052b3ed4835f324ee835bb3ec3e174a30370ad3
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
- render json: {
5
- policy: s3_upload_policy_document,
6
- signature: s3_upload_signature,
7
- key: "uploads/#{SecureRandom.uuid}/#{params[:doc][:title]}",
8
- success_action_redirect: "http://localhost:3000/",
9
- access_key_id: ENV['AWS_ACCESS_KEY_ID'],
10
- bucket: ENV['AWS_BUCKET']
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
@@ -1,3 +1,3 @@
1
1
  module TinymceAwsFileUpload
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-09 00:00:00.000000000 Z
11
+ date: 2014-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler