carrierwave-base64 2.1 → 2.1.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: bd170fa5ae07d088cbe54f9553c9497db056d54a
4
- data.tar.gz: a6edda1a04bc09277a61832ed170e4ea0bcc41d3
3
+ metadata.gz: d032e99ce5a7ab784425d490fb650bc02a8e3326
4
+ data.tar.gz: 8ae1855f19ba0ed58439c29676d60bf019f56e38
5
5
  SHA512:
6
- metadata.gz: ff0a8c13748d7aaabec2cdb064a082653bde2bcd17be7aa4ab3f027ef2b5235cdc69dd2f66f5b8249f3e8e711694b3b85d46020967c70ec368e25f8eff691b80
7
- data.tar.gz: e7e46931cc24bebfa3b5d1984e24fe58ee9c374634026445bed2176d245f2f1556c771a20bcbbcd1f2c48f16a4def054fee262385451072d653dd02527785a94
6
+ metadata.gz: 631c8be3c99323a21f79b4ba4eb1b800b991a34873b579dd061066ef18dde3a1370f302a6775c107c933e6eb8a503b20694616d75bdd8da28860055bb6fe1ee4
7
+ data.tar.gz: d15751f539aa4310024de40c5534802cf36b66a4af4866a911100d71c3bab2a43a08a2a84f84a5515e9a502a8adaeb69ef20faee3738e663f1b074bf4df79ef9
@@ -5,9 +5,7 @@ module Carrierwave
5
5
  mount_uploader attribute, uploader_class, options
6
6
 
7
7
  define_method "#{attribute}=" do |data|
8
- if data.present? && send("#{attribute}").blank?
9
- send "#{attribute}_will_change!"
10
- end
8
+ send "#{attribute}_will_change!" if data.present?
11
9
 
12
10
  if data.present? && data.is_a?(String) && data.strip.start_with?("data")
13
11
  super(Carrierwave::Base64::Base64StringIO.new(data.strip))
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Base64
3
- VERSION = "2.1"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-base64
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.1'
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Lebedev