echo_uploads 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/echo_uploads/perm_file_saving.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5f3c3877293549591cb0b210da8b75841d3efb
|
4
|
+
data.tar.gz: 8715dbd533d79b3aa94b36bab80084d025510b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad94175bf8c3bb5a456953dbca2823a11d4b764a85ef765adfb4ba0681aa50495b7c0b45972d5774c0737dce5a8fcb405ad7fbc23d420f1c1c8959375e2c5014
|
7
|
+
data.tar.gz: fd37684f880e8ad4e8a9534054cb4a7a3a4719cdd5ecff0852d4a901b2fecb1ecee8d661a0edcaf1ea55b62c33ce1708399e0819a7080da8df1b9ea65595af02
|
@@ -39,6 +39,12 @@ module EchoUploads
|
|
39
39
|
)
|
40
40
|
end
|
41
41
|
send("#{attr}_metadatas=", metas)
|
42
|
+
elsif options[:map]
|
43
|
+
mapped_files = send("mapped_#{attr}")
|
44
|
+
metas = [::EchoUploads::File.new(
|
45
|
+
owner: model, temporary: false, file: mapped_files.first
|
46
|
+
)]
|
47
|
+
send("#{attr}_metadata=", metas.first)
|
42
48
|
else
|
43
49
|
metas = [::EchoUploads::File.new(
|
44
50
|
owner: model, temporary: false, file: send(attr)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: echo_uploads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarrett Colby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|