s3_file_field 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/s3_file_field.js.coffee +1 -1
- data/lib/s3_file_field/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef07352fc0b375de126dd7c8a7ce16c49b795a21
|
4
|
+
data.tar.gz: 879af5858f21cf7d2786fa61bca981fad2d83f86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb1fa63304886f3b2942984b5f0d026ff5c49f4221713dd1d30fe8d1499a23cbb9b35a5e169cc52721fbc139e6ea083810e0fc5270859c2181381ca1fa81429a
|
7
|
+
data.tar.gz: 2e08953e3a376cfceea449b584630bbc16227f9d0ec7c730ddacbc8968d611d328f9c78914f418a8088e0031c330b03a5d47264188ad5253f2f535fa4f34a2ae
|
@@ -96,7 +96,7 @@ jQuery.fn.S3FileField = (options) ->
|
|
96
96
|
content = {}
|
97
97
|
|
98
98
|
if result # Use the S3 response to set the URL to avoid character encodings bugs
|
99
|
-
content.url = $(result).find("Location").text().replace(
|
99
|
+
content.url = $(result).find("Location").text().replace(/%2F/gi, "/").replace('http:', 'https:')
|
100
100
|
content.filepath = $('<a />').attr('href', content.url)[0].pathname
|
101
101
|
else # IE <= 9 returns null result so hack is necessary
|
102
102
|
domain = settings.url.replace(/\/+$/, '').replace(/^(https?:)?/, 'https:')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_file_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Stankiewicz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|