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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1834c25462f15aa5c21a5904f8471aff5bb2c93
4
- data.tar.gz: cffa20e2e91396a0e915ea11ef2e64385c3bd091
3
+ metadata.gz: ef07352fc0b375de126dd7c8a7ce16c49b795a21
4
+ data.tar.gz: 879af5858f21cf7d2786fa61bca981fad2d83f86
5
5
  SHA512:
6
- metadata.gz: fdc44c07e83ae84e8afab1d9a0fc6f9f2a3a2df11cc842effa83f07865b881b19b85ada36cef11add713b1045039f3baea6775838b90441266f5a9f08008045d
7
- data.tar.gz: d123412ced919a5e30370b0841115ebaf4f6418a6d57e6ad79d680e542a377744af0bda0c20f1caef1f2a40a98bfcdb8bda4907a2d4c60f0b7f3b1e8bc45f1fd
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("%2F", "/").replace('http:', 'https:')
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:')
@@ -1,3 +1,3 @@
1
1
  module S3FileField
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2014-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails