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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05fc29838f6ca0180bff7c925fa9b4b96d66919c
4
- data.tar.gz: b8c5598dfe9acd5ce8b80642f45dd2b8a5096352
3
+ metadata.gz: d227855f99ea74fc7b13a202cca5d72689fd554c
4
+ data.tar.gz: 48e527165016fd379303bcca7913cb236b422f4e
5
5
  SHA512:
6
- metadata.gz: a01586a5f619729c4738a631ed4a2f2925d459ae12203f7063473ddf1fa02a2e4fe69ee92f6b8b9d0418b6072a356c8906fac8f1b97327426eb2a8c020f43105
7
- data.tar.gz: ebe4f4334de4ae3f011eb89db4496cefb94b0f4fcc4c928f02df11501242911e91cca8c05bcc9bb5a5d1ec3631bb2eb9695020a6e37acef9700427b518f10206
6
+ metadata.gz: b3d5d75d416021bb11f6c21cd60f807341198695080929c68fca7cde77a56740393310633850e7aa5972720642d6ba2210534d90be3ad74c11123c76b2d861b1
7
+ data.tar.gz: 18814fd631099783c7f05f37a9bdab996a3a47b67d540aaef16d736a83123da08cd2cd618e32f6bdfe6146a6faf0bf318fc488c193675c17a8db735e195d792d
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Neofiles
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
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.3
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: 2016-12-23 00:00:00.000000000 Z
11
+ date: 2017-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails