echo_uploads 0.0.0 → 0.0.1
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/file.rb +9 -1
- 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: 4e65bbb9b899f8a3cd419761cf5166a932a57e24
|
4
|
+
data.tar.gz: 86788f880e33a403a1be30d2af07b9c6d3e4a290
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d08e267fced64cc44f0212d81a36e4b79a709f734cdf5f8568d2883fc1ae5cc636a8d80d5fcf4d968dd20f89329f8058ef02a6423a79b005b1c7cd014454f36
|
7
|
+
data.tar.gz: 9a48ac94ec4d61ece3aae321ee88fe41bc09fe6a81112204d13919d4ded551756b9af34144673f9dd68c4ed1f048683a449dfb86a71e0ba41cc347020c531cc3
|
data/lib/echo_uploads/file.rb
CHANGED
@@ -70,7 +70,15 @@ module EchoUploads
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def storage
|
73
|
-
|
73
|
+
class_from_string(storage_type).new
|
74
|
+
end
|
75
|
+
|
76
|
+
private
|
77
|
+
|
78
|
+
def class_from_string(name)
|
79
|
+
name.split('::').inject(Object) do |mod, klass|
|
80
|
+
mod.const_get klass
|
81
|
+
end
|
74
82
|
end
|
75
83
|
end
|
76
84
|
end
|
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.1
|
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-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|