forest_liana 1.5.9 → 1.5.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 140da6cdc3170f48772f2bec03654ccd3538dec1
|
4
|
+
data.tar.gz: f9be7f154d6b0d2e90c43c8cec833711405f4fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f70948a98ca188dec096776f6bef958be2ffbefbeb7e07b73b1905a6a566724e032c24116bb0ef0a8ff0c581f0ee531c46cd16203c795270345615443450304
|
7
|
+
data.tar.gz: caca9e9de5a19d86d0f3939348b64016438ab5bd14449bfd3037cd2da027b41e778eb8cce0bd9cccd080e4ebc57ff80223760689036286459e8dcf27c1a3aace
|
@@ -77,7 +77,18 @@ module ForestLiana
|
|
77
77
|
paperclip_handler?(@params['data']['attributes'][attr])
|
78
78
|
end
|
79
79
|
|
80
|
-
|
80
|
+
if paperclip_attr
|
81
|
+
# NOTICE: Force to set the file_name attribute to support
|
82
|
+
# validates_attachment_file_name option
|
83
|
+
array_keys = paperclip_attr.keys
|
84
|
+
array_keys.each do |key|
|
85
|
+
extension = /\Adata:image\/([a-z]+);base64/.match(paperclip_attr[key])
|
86
|
+
.try(:[], 1)
|
87
|
+
paperclip_attr["#{key}_file_name"] = "image.#{extension}"
|
88
|
+
end
|
89
|
+
|
90
|
+
@attributes.merge!(paperclip_attr)
|
91
|
+
end
|
81
92
|
end
|
82
93
|
|
83
94
|
def extract_carrierwave
|
data/lib/forest_liana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|