effective_assets 1.12.1 → 1.12.2

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
  SHA256:
3
- metadata.gz: f65f48554e7a828db12f7dee36c5b88664d05d62e9cef510ce45bbd63087d01c
4
- data.tar.gz: 110be6a9d526d749485332af287a9ed78b392dc48f0f4790f8d90764e91b7530
3
+ metadata.gz: 8fc2ceb913a834e2d5a6c163e8aeccac4fd57f116239b59f1956c51c3a90053a
4
+ data.tar.gz: 6f24ae8f628864f2da0ab6ef66fb3cd9737c99fc3769c11c02e3aa9b7977a1bf
5
5
  SHA512:
6
- metadata.gz: '019b6aa40e1af5d85d48eea6b80b0d7a89c981412099a500908235233cfec771f11c3447f69979555a78c90f4ba808ddaf863875fdf8eb0869608dda0881dea7'
7
- data.tar.gz: eb176c764207dca6bb761df0a08bfb3bdfd945cc493284273e6db43adc5df3410ba5826359c560133eb775816151b7113295ec2f3fa79ecd0cd4588a4661e495
6
+ metadata.gz: 4fc658672d3da2b57f573d3c3558d68028df4924e8982c8ac068d5dabddefaa5cd87942afeffbc95a2b7930310b23e8adac8eb21226cb29cba60b7fdafb008cf
7
+ data.tar.gz: b9690fd04a64c874d37d34453776ef065293461eb67b01ad1fa4019275151ab73c15973376425e36d370df898d21cea2d8e348fad7289524e0715bc520337d54
@@ -4,6 +4,7 @@
4
4
  # 2. Remove the acts_as_asset_box
5
5
 
6
6
  require 'timeout'
7
+ require 'cgi'
7
8
 
8
9
  module Effective
9
10
  class AssetReplacer
@@ -69,7 +70,7 @@ module Effective
69
70
  Timeout.timeout(TIMEOUT) do
70
71
  attachable.send(box).attach(
71
72
  io: URI.open(asset.url),
72
- filename: asset.file_name,
73
+ filename: CGI.unescape(asset.file_name.to_s),
73
74
  content_type: asset.content_type.presence,
74
75
  identify: (asset.content_type.blank?)
75
76
  )
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.12.1'.freeze
2
+ VERSION = '1.12.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect