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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 152431b82a33ccc7c729ed200fc00a0c12b75642
4
- data.tar.gz: 0b1969ee88b88446f680b153f20e9c85454fc4d0
3
+ metadata.gz: 78544f123acc76828d99b2cb7db97fffa72d43f6
4
+ data.tar.gz: 8565d4d58435f7aeff186004bf30905268a61c4d
5
5
  SHA512:
6
- metadata.gz: a98a611778858eeb9b0c28c62e2f81f3f4aa32084b20daf9f80c3874c041b3b8c921ed41f1b1b3f6c40cce77e6f434b2ee4b474520db380c7fbe1721ef4356b7
7
- data.tar.gz: f2f608ecda2d66a7c3d4f3cdc392c078d6f5abc5efb9185b57bfc488701cd7c2bd5cf98cef252355cecccd361b92ac0a502ecacbeade1a5fe87679d5ddff2283
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)
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Base64
3
- VERSION = "1.1"
3
+ VERSION = "1.2"
4
4
  end
5
5
  end
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.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 00:00:00.000000000 Z
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.2.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.