carrierwave-base64 1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carrierwave/base64/orm/activerecord.rb +1 -1
- data/lib/carrierwave/base64/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78544f123acc76828d99b2cb7db97fffa72d43f6
|
4
|
+
data.tar.gz: 8565d4d58435f7aeff186004bf30905268a61c4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 100c500e057004e05ddb50017ecd187655190756298812248a20268d01d093d5a6dfdf10ddfa825ca3b8d5b5bd97d0090f02c90c41863029ebfd56fb8f4de0cd
|
7
|
+
data.tar.gz: 4292b7cb21d20148585c43b7f3428ecf2c57f539afb3ed5a50e988ae95507612705ca58b030bc37694b76dc5b53a90f43c1fd8ba8763fc59061e9a7b8aa158f1
|
@@ -7,7 +7,7 @@ module Carrierwave
|
|
7
7
|
mount_uploader attribute, uploader_class
|
8
8
|
|
9
9
|
define_method "#{attribute}=" do |data|
|
10
|
-
if data.present? && data.strip.end_with?("==")
|
10
|
+
if data.present? && data.is_a?(String) && data.strip.end_with?("==")
|
11
11
|
super(Carrierwave::Base64::Base64StringIO.new(data.strip))
|
12
12
|
else
|
13
13
|
super(data)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-base64
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Lebedev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
204
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
205
|
+
rubygems_version: 2.4.5
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Upload images encoded as base64 to carrierwave.
|