has_s3_attachment 0.1.2 → 0.1.3

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: 942d0f9ab19156656a9d7c244b6dee878ad79e9b
4
- data.tar.gz: 72e3f43be20eac0276020bbbecdca0077c06d128
3
+ metadata.gz: e4f91c06591780db539dd531998dcdad2bcea5f4
4
+ data.tar.gz: fbc18d99bab0cdf159821f3f0e2603f84042c9e7
5
5
  SHA512:
6
- metadata.gz: 1c6a537bd736f3f9eff9d794043c22a7e8460b50bf0cc4b5d536ac6c29f66b42be5c28f807ca06d9bc55c0ea91b55c532423cd6757b6d000bc19ac15f32a8f51
7
- data.tar.gz: 7295c37666d66b24e27a68d8591d59b041664de3ed96041f7fe38f434b7ef4351db994c6c06671ab89f48daaca351d2e92a8fe5bf9e88fb1cef4006dde4139ea
6
+ metadata.gz: 7fb679dde8b4ca859f5094852cd5386d275e66757a0df504e0cf1924ba3838ada5d877ab4048f01c7b00a7b8c0e55720a85f953dc579e59279fb28501fc8d0f1
7
+ data.tar.gz: 3e3af3ad46fc1809ce721ab0a848d339767eef2072fee7a9466c22105cc7e1ea513547e58c4f233e379becca883c0189966cef7ad36f745f403ba5bb93347f63
@@ -21,7 +21,7 @@ module HasS3Attachment
21
21
  ssl = args[0] && args[0].key?(:ssl) ? args[0][:ssl] : true
22
22
  url_str = URI::HTTP.build(
23
23
  host: host_alias,
24
- path: URI.escape(s3_path, '[]')
24
+ path: URI.escape(URI.escape(s3_path), '[]')
25
25
  ).to_s
26
26
 
27
27
  url_str.gsub!(/http/, 'https') if ssl && url_str
@@ -1,3 +1,3 @@
1
1
  module HasS3Attachment
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_s3_attachment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavlo Osadchyi