uploadbox 0.0.23 → 0.0.24
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: f08638e9f1603367e279ce8a511d2c1d145ce038
|
4
|
+
data.tar.gz: 77e23362af2e4a451212c183578a9e748136ba69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 956015e0fe26df3ebddbf7d086d2640d405e597768db74c2da4119d7e8517ec88156230095840638c0e9af6b5f06101001ad8f94b5b6947f5cdd3296d0a10f05
|
7
|
+
data.tar.gz: 4215098324e2e7290cc6c29a2823c7cdd985143babbab507cc3667b3fa2c0f497d5cf70cd560ab514884960f025447c308147f271a69a94dc129e3bd917c5804
|
@@ -7,7 +7,7 @@ class @ImageUploader
|
|
7
7
|
@idInput = @container.find('[data-item="id"]')
|
8
8
|
@container.find('a.btn.fileupload-exists').bind('ajax:success', @delete)
|
9
9
|
@thumbContainer = @container.find('.fileupload-preview.thumbnail')
|
10
|
-
|
10
|
+
|
11
11
|
@fileInput.show()
|
12
12
|
|
13
13
|
@fileInput.fileupload
|
@@ -27,7 +27,7 @@ class @ImageUploader
|
|
27
27
|
|
28
28
|
if @loader
|
29
29
|
@loader.detach()
|
30
|
-
|
30
|
+
|
31
31
|
if @verifyProcessingInterval
|
32
32
|
clearInterval(@verifyProcessingInterval)
|
33
33
|
|
@@ -60,15 +60,15 @@ class @ImageUploader
|
|
60
60
|
$.ajax
|
61
61
|
type: 'POST'
|
62
62
|
url: @fileInput.data('callback-url')
|
63
|
-
data:
|
63
|
+
data:
|
64
64
|
'image[remote_file_url]': @fileInput.data('url') + @filePath
|
65
65
|
'image[imageable_type]': @typeInput.val()
|
66
66
|
'image[upload_name]': @uploadNameInput.val()
|
67
67
|
'image[secure_random]': @fileInput.data('secure-random')
|
68
|
-
|
68
|
+
|
69
69
|
complete: =>
|
70
70
|
@verifyProcessingInterval = setInterval(@verifyProcessing, 5000)
|
71
|
-
|
71
|
+
|
72
72
|
error: =>
|
73
73
|
@loader.detach()
|
74
74
|
@container.find('.fileupload').removeClass('uploading').removeClass('processing')
|
@@ -91,7 +91,7 @@ class @ImageUploader
|
|
91
91
|
if data.responseJSON.hasOwnProperty('id')
|
92
92
|
clearInterval(@verifyProcessingInterval)
|
93
93
|
@showThumb(data.responseJSON)
|
94
|
-
|
94
|
+
|
95
95
|
error: =>
|
96
96
|
@loader.detach()
|
97
97
|
@container.find('.fileupload').removeClass('uploading').removeClass('processing')
|
@@ -9,7 +9,7 @@ module Uploadbox
|
|
9
9
|
Base64.encode64(
|
10
10
|
OpenSSL::HMAC.digest(
|
11
11
|
OpenSSL::Digest::Digest.new('sha1'),
|
12
|
-
CarrierWave::Uploader::Base.fog_credentials[:
|
12
|
+
CarrierWave::Uploader::Base.fog_credentials[:aws_secret_access_key],
|
13
13
|
s3_policy
|
14
14
|
)
|
15
15
|
).gsub("\n", "")
|
data/lib/uploadbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uploadbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julio Protzek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -456,7 +456,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
456
456
|
version: '0'
|
457
457
|
requirements: []
|
458
458
|
rubyforge_project:
|
459
|
-
rubygems_version: 2.
|
459
|
+
rubygems_version: 2.1.11
|
460
460
|
signing_key:
|
461
461
|
specification_version: 4
|
462
462
|
summary: Ajax file uploader for Rails applications.
|