s3_file_field 1.1.0 → 1.2.0

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: 771a79d8a1002b47f2dfcf1f24022292a5212590
4
- data.tar.gz: 4ebc755adee94a38cd0baac8dfb6657b9f637a2d
3
+ metadata.gz: b1834c25462f15aa5c21a5904f8471aff5bb2c93
4
+ data.tar.gz: cffa20e2e91396a0e915ea11ef2e64385c3bd091
5
5
  SHA512:
6
- metadata.gz: d5e2da78facafbcd31cf7d597e5bed3cf335ae20efcfc2864b08a4035d2a6c4f18b60426bffe0d1437bb1354f29ce35256b8c8c8b48741e231e0979939807dc9
7
- data.tar.gz: cdd64aa49a7b27bb78974baab71c2796e41cb092ff3492e6298af99fe39d88902e3eccd3a03dbe0de19ea1a9240aef194acfada54d68bea25f7a78b635e2a764
6
+ metadata.gz: fdc44c07e83ae84e8afab1d9a0fc6f9f2a3a2df11cc842effa83f07865b881b19b85ada36cef11add713b1045039f3baea6775838b90441266f5a9f08008045d
7
+ data.tar.gz: d123412ced919a5e30370b0841115ebaf4f6418a6d57e6ad79d680e542a377744af0bda0c20f1caef1f2a40a98bfcdb8bda4907a2d4c60f0b7f3b1e8bc45f1fd
@@ -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()
99
+ content.url = $(result).find("Location").text().replace("%2F", "/").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:')
@@ -1,3 +1,3 @@
1
1
  module S3FileField
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_file_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Stankiewicz