neofiles 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/neofiles/file.rb +4 -0
- data/lib/neofiles/version.rb +1 -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: d227855f99ea74fc7b13a202cca5d72689fd554c
|
4
|
+
data.tar.gz: 48e527165016fd379303bcca7913cb236b422f4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3d5d75d416021bb11f6c21cd60f807341198695080929c68fca7cde77a56740393310633850e7aa5972720642d6ba2210534d90be3ad74c11123c76b2d861b1
|
7
|
+
data.tar.gz: 18814fd631099783c7f05f37a9bdab996a3a47b67d540aaef16d736a83123da08cd2cd618e32f6bdfe6146a6faf0bf318fc488c193675c17a8db735e195d792d
|
data/app/models/neofiles/file.rb
CHANGED
@@ -255,6 +255,8 @@ class Neofiles::File
|
|
255
255
|
content_type = 'image/' + ext.sub(/jpg/, 'jpeg')
|
256
256
|
elsif ext == 'swf'
|
257
257
|
content_type = 'application/x-shockwave-flash'
|
258
|
+
elsif ext == 'svg'
|
259
|
+
content_type = 'image/svg+xml'
|
258
260
|
else
|
259
261
|
content_type = nil
|
260
262
|
end
|
@@ -277,6 +279,8 @@ class Neofiles::File
|
|
277
279
|
#
|
278
280
|
def self.class_by_content_type(content_type)
|
279
281
|
case content_type
|
282
|
+
when 'image/svg+xml'
|
283
|
+
::Neofiles::File
|
280
284
|
when /\Aimage\//
|
281
285
|
::Neofiles::Image
|
282
286
|
when 'application/x-shockwave-flash'
|
data/lib/neofiles/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neofiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konanykhin Ilya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|