actionverb_s3_direct_upload 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f90bbc7145b4048c5c0bf8989a9d309d9cf455fb
4
+ data.tar.gz: 7aaf4fedd67424def3acb816a0f98f82e7fef748
5
+ SHA512:
6
+ metadata.gz: 561e3bd62e7c28a0e0d558b96bf76ed89e2f721578b36ab0963e1a069b383233918e946eebbd9be56ae8368f5d97838f99b11898296e081471f6ba617d9170ff
7
+ data.tar.gz: ad6833bf17aa8c103fa89f92acb03acf8b45494066102409a011734ae8c5c736415558342d9dd49ba28996bb15a98ca1f7c238b042069cfb86f24bc04fd69ba3
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Wayne
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,201 @@
1
+ # S3DirectUpload
2
+
3
+ Easily generate a form that allows you to upload directly to Amazon S3.
4
+ Multi file uploading supported by jquery-fileupload.
5
+
6
+ Code extracted from Ryan Bates' [gallery-jquery-fileupload](https://github.com/railscasts/383-uploading-to-amazon-s3/tree/master/gallery-jquery-fileupload).
7
+
8
+ ## Installation
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 's3_direct_upload'
12
+
13
+ Then add a new initalizer with your AWS credentials:
14
+
15
+ **config/initalizers/s3_direct_upload.rb**
16
+ ```ruby
17
+ S3DirectUpload.config do |c|
18
+ c.access_key_id = "" # your access key id
19
+ c.secret_access_key = "" # your secret access key
20
+ c.bucket = "" # your bucket name
21
+ end
22
+ ```
23
+
24
+ Make sure your AWS S3 CORS settings for your bucket look something like this:
25
+ ```xml
26
+ <CORSConfiguration>
27
+ <CORSRule>
28
+ <AllowedOrigin>http://0.0.0.0:3000</AllowedOrigin>
29
+ <AllowedMethod>GET</AllowedMethod>
30
+ <AllowedMethod>POST</AllowedMethod>
31
+ <AllowedMethod>PUT</AllowedMethod>
32
+ <MaxAgeSeconds>3000</MaxAgeSeconds>
33
+ <AllowedHeader>*</AllowedHeader>
34
+ </CORSRule>
35
+ </CORSConfiguration>
36
+ ```
37
+ In production the AllowedOrigin key should be your domain.
38
+
39
+ Add the following js and css to your asset pipeline:
40
+
41
+ **application.js.coffee**
42
+ ```coffeescript
43
+ #= require s3_direct_upload
44
+ ```
45
+
46
+ **application.css**
47
+ ```css
48
+ //= require s3_direct_upload_progress_bars
49
+ ```
50
+
51
+ ## Usage
52
+ Create a new view that uses the form helper `s3_uploader_form`:
53
+ ```ruby
54
+ <%= s3_uploader_form post: model_url, as: "model[image_url]", id: "myS3Uploader" do %>
55
+ <%= file_field_tag :file, multiple: true %>
56
+ <% end %>
57
+ ```
58
+
59
+ Then in your application.js.coffee, call the S3Uploader jQuery plugin on the element you created above:
60
+ ```coffeescript
61
+ jQuery ->
62
+ $("#myS3Uploader").S3Uploader()
63
+ ```
64
+
65
+ Optionally, you can also place this template in the same view for the progress bars:
66
+ ```js+erb
67
+ <script id="template-upload" type="text/x-tmpl">
68
+ <div class="upload">
69
+ {%=o.name%}
70
+ <div class="progress"><div class="bar" style="width: 0%"></div></div>
71
+ </div>
72
+ </script>
73
+ ```
74
+
75
+ ## Options for form helper
76
+ * `post:` url in which is POST'd to after file is uploaded to S3. If you don't specify this option, no callback to the server will be made after the file has uploaded to S3.
77
+ * `as:` parameter value for the POST in which the key will be the URL of the file on S3. If for example this is set to "model[image_url]" then the data posted would be `model[image_url] : http://bucketname.s3.amazonws.com/filename.ext`
78
+ * `key:` key on s3. defaults to `"uploads/#{SecureRandom.hex}/${filename}"`. needs to be at least `"${filename}"`.
79
+ * `acl:` acl for files uploaded to s3, defaults to "public-read"
80
+ * `max_file_size:` maximum file size, defaults to 500.megabytes
81
+ * `id:` html id for the form, its recommended that you give the form an id so you can reference with the jQuery plugin.
82
+ * `class:` optional html class for the form.
83
+ * `data:` Optional html data
84
+
85
+ ### Persisting the S3 url
86
+ It is recommended that you persist the image_url that is sent back from the POST request (to the url given to the `post` option and as the key given in the `as` option). So to access your files later.
87
+
88
+ One way to do this is to make sure you have `resources model` in your routes file, and add the `image_url` (or whatever you would like to name it) attribute to your model, and then make sure you have the create action in your controller for that model.
89
+
90
+ You could then have your create action render a javascript file like this:
91
+ **create.js.erb**
92
+ ```ruby
93
+ <% if @model.new_record? %>
94
+ alert("Failed to upload model: <%= j @model.errors.full_messages.join(', ').html_safe %>");
95
+ <% else %>
96
+ $("#container").append("<%= j render(@model) %>");
97
+ <% end %>
98
+ ```
99
+ So that javascript code would be executed after the model instance is created, without a page refresh. See [@rbates's gallery-jquery-fileupload](https://github.com/railscasts/383-uploading-to-amazon-s3/tree/master/gallery-jquery-fileupload)) for an example of that method.
100
+
101
+ Note: the POST request to the rails app also includes the following parameters `filesize`, `filetype`, `filename` and `filepath`.
102
+
103
+ ### Advanced Customizations
104
+ Feel free to override the styling for the progress bars in s3_direct_upload_progress_bars.css, look at the source for inspiration.
105
+
106
+ Also feel free to write your own js to interface with jquery-file-upload. You might want to do this to do custom validations on the files before it is sent to S3 for example.
107
+ To do this remove `s3_direct_upload` from your application.js and include the necessary jquery-file-upload scripts in your asset pipeline (they are included in this gem automatically):
108
+ ```cofeescript
109
+ #= require jquery-fileupload/basic
110
+ #= require jquery-fileupload/vendor/tmpl
111
+ ```
112
+ Use the javascript in `s3_direct_upload` as a guide.
113
+
114
+
115
+ ## Options for S3Upload jQuery Plugin
116
+
117
+ * `path:` manual path for the files on your s3 bucket. Example: `path/to/my/files/on/s3`
118
+ Note: the file path in your s3 bucket will effectively be `path + key`.
119
+ * `additional_data:` You can send additional data to your rails app in the persistence POST request. This would be accessable in your params hash as `params[:key][:value]`
120
+ Example: `{key: value}`
121
+ * `remove_completed_progress_bar:` By default, the progress bar will be removed once the file has been successfully uploaded. You can set this to `false` if you want to keep the progress bar.
122
+ * `before_add:` Callback function that executes before a file is added to the queue. It is passed file object and expects `true` or `false` to be returned. This could be useful if you would like to validate the filenames of files to be uploaded for example. If true is returned file will be uploaded as normal, false will cancel the upload.
123
+ * `progress_container`: This jQuery container will have the compiled '#template-upload' appended to it during upload.
124
+
125
+ ### Example with all options.
126
+ ```coffeescript
127
+ jQuery ->
128
+ $("#myS3Uploader").S3Uploader
129
+ path: 'path/to/my/files/on/s3'
130
+ additional_data: {key: 'value'}
131
+ remove_completed_progress_bar: false
132
+ before_add: myCallBackFunction() # must return true or false if set
133
+ ```
134
+
135
+ ### Public methods
136
+ You can change the settings on your form later on by accessing the jQuery instance:
137
+
138
+ ```coffeescript
139
+ jQuery ->
140
+ v = $("#myS3Uploader").S3Uploader()
141
+ ...
142
+ v.path("new/path/")
143
+ v.additional_data("newdata")
144
+ ```
145
+
146
+ ### Javascript Events Hooks
147
+
148
+ #### Successfull upload
149
+ When a file has been successfully to S3, the `s3_upload_complete` is triggered on the form. A `content` object is passed along with the following attributes :
150
+
151
+ * `url` The full URL to the uploaded file on S3.
152
+ * `filename` The original name of the uploaded file.
153
+ * `filepath` The path to the file (without the filename or domain)
154
+ * `filesize` The size of the uploaded file.
155
+ * `filetype` The type of the uploaded file.
156
+
157
+ This hook could be used for example to fill a form hidden field with the returned S3 url :
158
+ ```coffeescript
159
+ $('#myS3Uploader').bind "s3_upload_complete", (e, content) ->
160
+ $('#someHiddenField').val(content.url)
161
+ ```
162
+
163
+ #### Failed upload
164
+ When an error occured during the transferm the `s3_upload_failed` is triggered on the form with the same `content` object is passed for the successful upload with the addition of the `error_thrown` attribute. The most basic way to handle this error would be to display an alert message to the user in case the upload fails :
165
+ ```coffeescript
166
+ $('#myS3Uploader').bind "s3_upload_failed", (e, content) ->
167
+ alert("#{content.filename} failed to upload : #{content.error_thrown}")
168
+ ```
169
+
170
+ #### All uploads completed
171
+ When all uploads finish in a batch an `s3_uploads_complete` event will be triggered on `document`, so you could do something like:
172
+ ```coffeescript
173
+ $(document).bind 's3_uploads_complete', ->
174
+ alert("All Uploads completed")
175
+ ```
176
+
177
+ #### First upload started
178
+ Fired `s3_uploads_start` once when any batch of uploads is starting.
179
+ ```coffeescript
180
+ $('#myS3Uploader').bind 's3_uploads_start', (e) ->
181
+ $('uploadArea').show()
182
+ ```
183
+
184
+ ## Contributing / TODO
185
+ This is just a simple gem that only really provides some javascript and a form helper.
186
+ This gem could go all sorts of ways based on what people want and how people contribute.
187
+ Ideas:
188
+ * More specs!
189
+ * More options to control file types, ability to batch upload.
190
+ * More convention over configuration on rails side
191
+ * Create generators.
192
+ * Model methods.
193
+ * Model method to delete files from s3
194
+
195
+
196
+ ## Credit
197
+ This gem is basically a small wrapper around code that [Ryan Bates](http://github.com/rbates) wrote for [Railscast#383](http://railscasts.com/episodes/383-uploading-to-amazon-s3). Most of the code in this gem was extracted from [gallery-jquery-fileupload](https://github.com/railscasts/383-uploading-to-amazon-s3/tree/master/gallery-jquery-fileupload).
198
+
199
+ Thank you Ryan Bates!
200
+
201
+ This code also uses the excellecnt [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload), which is included in this gem by its rails counterpart [jquery-fileupload-rails](https://github.com/tors/jquery-fileupload-rails)
@@ -0,0 +1,78 @@
1
+ #= require jquery-fileupload/basic
2
+ #= require jquery-fileupload/vendor/tmpl
3
+
4
+ $ = jQuery
5
+
6
+ $.fn.S3Uploader = (options) ->
7
+
8
+ # support multiple elements
9
+ if @length > 1
10
+ @each ->
11
+ $(this).S3Uploader options
12
+
13
+ return this
14
+
15
+ $uploadForm = this
16
+
17
+ settings =
18
+ path: ''
19
+ additional_data: null
20
+ remove_completed_progress_bar: true
21
+ progress_container: $uploadForm
22
+
23
+
24
+ $.extend settings, options
25
+
26
+ current_files = []
27
+
28
+ setUploadForm = ->
29
+ $uploadForm.fileupload
30
+
31
+ start: (e) ->
32
+ $uploadForm.trigger("s3_uploads_start", [e])
33
+
34
+ add: (e, data) ->
35
+ current_files.push data
36
+ if current_files.length == data.originalFiles.length
37
+ $uploadForm.trigger("s3_uploads_queued", [current_files])
38
+
39
+ progress: (e, data) ->
40
+ progress = parseInt(data.loaded / data.total * 100, 10)
41
+ data.context.find('.bar').css('width', progress + '%')
42
+
43
+ done: (e, data) ->
44
+ data.context.remove() if data.context && settings.remove_completed_progress_bar # remove progress bar
45
+ $uploadForm.trigger("s3_upload_complete", [data])
46
+
47
+ current_files.splice($.inArray(data, current_files), 1) # remove that element from the array
48
+ if current_files.length == 0
49
+ $(document).trigger("s3_uploads_complete")
50
+
51
+
52
+
53
+ formData: (form) ->
54
+ data = form.serializeArray()
55
+ fileType = ""
56
+ if "type" of @files[0]
57
+ fileType = @files[0].type
58
+ data.push
59
+ name: "Content-Type"
60
+ value: fileType
61
+
62
+ data[1].value = settings.path + data[1].value
63
+
64
+ data
65
+
66
+
67
+ #public methods
68
+ @initialize = ->
69
+ setUploadForm()
70
+ this
71
+
72
+ @path = (new_path) ->
73
+ settings.path = new_path
74
+
75
+ @additional_data = (new_data) ->
76
+ settings.additional_data = new_data
77
+
78
+ @initialize()
@@ -0,0 +1,76 @@
1
+ // Generated by CoffeeScript 1.6.3
2
+ var $;
3
+
4
+ $ = jQuery;
5
+
6
+ $.fn.S3Uploader = function(options) {
7
+ var $uploadForm, current_files, setUploadForm, settings;
8
+ if (this.length > 1) {
9
+ this.each(function() {
10
+ return $(this).S3Uploader(options);
11
+ });
12
+ return this;
13
+ }
14
+ $uploadForm = this;
15
+ settings = {
16
+ path: '',
17
+ additional_data: null,
18
+ remove_completed_progress_bar: true,
19
+ progress_container: $uploadForm
20
+ };
21
+ $.extend(settings, options);
22
+ current_files = [];
23
+ setUploadForm = function() {
24
+ return $uploadForm.fileupload({
25
+ start: function(e) {
26
+ return $uploadForm.trigger("s3_uploads_start", [e]);
27
+ },
28
+ add: function(e, data) {
29
+ current_files.push(data);
30
+ if (current_files.length === data.originalFiles.length) {
31
+ return $uploadForm.trigger("s3_uploads_queued", [current_files]);
32
+ }
33
+ },
34
+ progress: function(e, data) {
35
+ var progress;
36
+ progress = parseInt(data.loaded / data.total * 100, 10);
37
+ return data.context.find('.bar').css('width', progress + '%');
38
+ },
39
+ done: function(e, data) {
40
+ if (data.context && settings.remove_completed_progress_bar) {
41
+ data.context.remove();
42
+ }
43
+ $uploadForm.trigger("s3_upload_complete", [data]);
44
+ current_files.splice($.inArray(data, current_files), 1);
45
+ if (current_files.length === 0) {
46
+ return $(document).trigger("s3_uploads_complete");
47
+ }
48
+ },
49
+ formData: function(form) {
50
+ var data, fileType;
51
+ data = form.serializeArray();
52
+ fileType = "";
53
+ if ("type" in this.files[0]) {
54
+ fileType = this.files[0].type;
55
+ }
56
+ data.push({
57
+ name: "Content-Type",
58
+ value: fileType
59
+ });
60
+ data[1].value = settings.path + data[1].value;
61
+ return data;
62
+ }
63
+ });
64
+ };
65
+ this.initialize = function() {
66
+ setUploadForm();
67
+ return this;
68
+ };
69
+ this.path = function(new_path) {
70
+ return settings.path = new_path;
71
+ };
72
+ this.additional_data = function(new_data) {
73
+ return settings.additional_data = new_data;
74
+ };
75
+ return this.initialize();
76
+ };
@@ -0,0 +1,17 @@
1
+ .upload {
2
+ border-top: solid 1px #CCC;
3
+ width: 400px;
4
+ padding-top: 10px;
5
+ margin-top: 10px;
6
+
7
+ .progress {
8
+ margin-top: 8px;
9
+ border: solid 1px #555;
10
+ border-radius: 3px;
11
+ -moz-border-radius: 3px;
12
+ .bar {
13
+ height: 10px;
14
+ background: #3EC144;
15
+ }
16
+ }
17
+ }
@@ -0,0 +1 @@
1
+ require File.dirname(__FILE__)+'/s3_direct_upload'
@@ -0,0 +1,12 @@
1
+ require 's3_direct_upload/version'
2
+ require 'jquery-fileupload-rails' if defined?(Rails)
3
+
4
+ require 'base64'
5
+ require 'openssl'
6
+ require 'digest/sha1'
7
+
8
+ require 's3_direct_upload/config_aws'
9
+ require 's3_direct_upload/form_helper'
10
+ require 's3_direct_upload/engine' if defined?(Rails)
11
+
12
+ ActionView::Base.send(:include, S3DirectUpload::UploadHelper) if defined?(ActionView::Base)
@@ -0,0 +1,18 @@
1
+ require "singleton"
2
+
3
+ module S3DirectUpload
4
+ class Config
5
+ include Singleton
6
+
7
+ ATTRIBUTES = [:access_key_id, :secret_access_key, :bucket]
8
+
9
+ attr_accessor *ATTRIBUTES
10
+ end
11
+
12
+ def self.config
13
+ if block_given?
14
+ yield Config.instance
15
+ end
16
+ Config.instance
17
+ end
18
+ end
@@ -0,0 +1,4 @@
1
+ module S3DirectUpload
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,95 @@
1
+ module S3DirectUpload
2
+ module UploadHelper
3
+ def s3_uploader_form(options = {}, &block)
4
+ uploader = S3Uploader.new(options)
5
+ form_tag(uploader.url, uploader.form_options) do
6
+ uploader.fields.map do |name, value|
7
+ hidden_field_tag(name, value)
8
+ end.join.html_safe + capture(&block)
9
+ end
10
+ end
11
+
12
+ class S3Uploader
13
+ def initialize(options)
14
+ @additional_headers = options[:additional_headers] || []
15
+ @options = options.reverse_merge(
16
+ aws_access_key_id: S3DirectUpload.config.access_key_id,
17
+ aws_secret_access_key: S3DirectUpload.config.secret_access_key,
18
+ bucket: S3DirectUpload.config.bucket,
19
+ acl: "public-read",
20
+ expiration: 10.hours.from_now.utc.iso8601,
21
+ max_file_size: 64.gigabytes,
22
+ as: "file",
23
+ key: key
24
+ )
25
+ end
26
+
27
+ def form_options
28
+ {
29
+ id: @options[:id],
30
+ class: @options[:class],
31
+ method: "post",
32
+ authenticity_token: false,
33
+ multipart: true,
34
+ data: {
35
+ post: @options[:post],
36
+ as: @options[:as]
37
+ }.reverse_merge(@options[:data] || {})
38
+ }
39
+ end
40
+
41
+ def fields
42
+ fields = {
43
+ :key => @options[:key] || key,
44
+ :acl => @options[:acl],
45
+ :policy => policy,
46
+ :signature => signature,
47
+ "AWSAccessKeyId" => @options[:aws_access_key_id],
48
+ success_action_status: "201"
49
+ }
50
+ @additional_headers.each do |header|
51
+ fields[header[0]]=header[1]
52
+ end
53
+ fields
54
+ end
55
+
56
+ def key
57
+ @key ||= "uploads/#{SecureRandom.hex}/${filename}"
58
+ end
59
+
60
+ def url
61
+ "https://s3.amazonaws.com/#{@options[:bucket]}/"
62
+ end
63
+
64
+ def policy
65
+ Base64.encode64(policy_data.to_json).gsub("\n", "")
66
+ end
67
+
68
+ def policy_data
69
+ header_conditions = @additional_headers.map { |header| { header[0] => header[1] } }
70
+ conditions = [
71
+ ["starts-with", "$utf8", ""],
72
+ ["starts-with", "$key", ""],
73
+ ["content-length-range", 0, @options[:max_file_size]],
74
+ ["starts-with","$Content-Type",""],
75
+ {bucket: @options[:bucket]},
76
+ {acl: @options[:acl]},
77
+ {success_action_status: "201"}
78
+ ].concat(header_conditions)
79
+ {
80
+ expiration: @options[:expiration],
81
+ conditions: conditions
82
+ }
83
+ end
84
+
85
+ def signature
86
+ Base64.encode64(
87
+ OpenSSL::HMAC.digest(
88
+ OpenSSL::Digest::Digest.new('sha1'),
89
+ @options[:aws_secret_access_key], policy
90
+ )
91
+ ).gsub("\n", "")
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,3 @@
1
+ module S3DirectUpload
2
+ VERSION = "0.0.14"
3
+ end
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: actionverb_s3_direct_upload
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.14
5
+ platform: ruby
6
+ authors:
7
+ - Wayne Hoover
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-06-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: coffee-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.2.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 3.2.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: sass-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 3.2.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 3.2.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: jquery-fileupload-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.3.5
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 0.3.5
69
+ description: Direct Upload to Amazon S3 With CORS and jquery-file-upload
70
+ email:
71
+ - w@waynehoover.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - lib/actionverb_s3_direct_upload.rb
77
+ - lib/s3_direct_upload.rb
78
+ - lib/s3_direct_upload/form_helper.rb
79
+ - lib/s3_direct_upload/engine.rb
80
+ - lib/s3_direct_upload/version.rb
81
+ - lib/s3_direct_upload/config_aws.rb
82
+ - app/assets/stylesheets/s3_direct_upload_progress_bars.css.scss
83
+ - app/assets/javascripts/s3_direct_upload.js.js
84
+ - app/assets/javascripts/s3_direct_upload.js.coffee
85
+ - LICENSE
86
+ - README.md
87
+ homepage: ''
88
+ licenses: []
89
+ metadata: {}
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 2.0.0
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: Gives a form helper for Rails which allows direct uploads to s3. Based on
110
+ RailsCast#383
111
+ test_files: []