uploadbox 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b14b3a91e04db2760f426eff8cb487bf999b2625
4
- data.tar.gz: 8b3d1c63566a298ca49e67e7560d1953ded27d5b
3
+ metadata.gz: f08638e9f1603367e279ce8a511d2c1d145ce038
4
+ data.tar.gz: 77e23362af2e4a451212c183578a9e748136ba69
5
5
  SHA512:
6
- metadata.gz: aab6b6bd767354eb9e9ac395360fc8ff2227de136febc4b6ab776647a70fc353a41c6d014f68f3c0c90e5c3e75a9cd07db321ab4fac9efc237da3c4a623b0231
7
- data.tar.gz: 86522a625c4bf37beefcc5dbeb6985e4278e6aa138b5c5b6171058605c8cb9e348f38d5d428fcfff7f1c993bd52610049f64675b8669153c7c0996e416bf8b4d
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[:aws_access_key_id],
12
+ CarrierWave::Uploader::Base.fog_credentials[:aws_secret_access_key],
13
13
  s3_policy
14
14
  )
15
15
  ).gsub("\n", "")
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
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.23
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: 2013-12-19 00:00:00.000000000 Z
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.0.6
459
+ rubygems_version: 2.1.11
460
460
  signing_key:
461
461
  specification_version: 4
462
462
  summary: Ajax file uploader for Rails applications.