s3_relay 0.5.0 → 0.5.1

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: 6f7808fa908073f00317199da6e43b9821c7d827
4
- data.tar.gz: 896e7707ba3031b0a5074bf1322d8c62ffc715f0
3
+ metadata.gz: afc5415d8757f11bbbfce2dc39e1e185eee3a2f7
4
+ data.tar.gz: f9855a56037d0a2822a2cc888e9e5edd26ace1f1
5
5
  SHA512:
6
- metadata.gz: 65db04a3d352ff2dee8d812450eb20f2065c8cc1c727dc8c278dc914c0a08879038241d96e6371414a0211d25c0f0e4177cf227e82492b666c604a9dc5f1b57a
7
- data.tar.gz: 10239435d5ca2a5df99b4bf963ced838f2fd3561b03cfa2f5ec6941809575eab7cbcdfc93a257a9a0417d52c607738294a937ad3b9336ffdbfe10e46374a9aca
6
+ metadata.gz: ed0dd8dd182bc57118b2e8e7828b4894fda0350c81bbbf5e1889548faad285d80c263e6bd9ab6cee51869210277cc1993c5c5f3e06b0dc76dd44fa4bc8662b8f
7
+ data.tar.gz: 7ee20e055833c5eb99528b6874c16a441f552ea9dcfce3cd07e2c30191650d72f4e2dace956741eeb60377224bf92309960c7af389534ca5eb95c82eb9a89a54
@@ -46,13 +46,13 @@ uploadFiles = (container) ->
46
46
  uploadFile = (container, file) ->
47
47
  fileName = file.name
48
48
 
49
- # Assign unique id to each file to pass as get parameter so Safari doesn't
50
- # consolidate the requests
51
- $(file).uniqueId()
49
+ # Assign unique value to each request so Safari doesn't consolidate them
50
+ @s3r_upload_index ||= 0
51
+ @s3r_upload_index += 1
52
52
 
53
53
  $.ajax
54
54
  type: "GET"
55
- url: "/s3_relay/uploads/new?unique_id=#{file.id}"
55
+ url: "/s3_relay/uploads/new?s3r_upload_index=#{s3r_upload_index}"
56
56
  success: (data, status, xhr) ->
57
57
  formData = new FormData()
58
58
  xhr = new XMLHttpRequest()
@@ -1,3 +1,3 @@
1
1
  module S3Relay
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_relay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenny Johnston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-30 00:00:00.000000000 Z
11
+ date: 2017-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails