phantom_svg 1.1.8 → 1.1.9

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: 97969b47cb157d5b24f02e6ab5b73e700c65d7b2
4
- data.tar.gz: 423b45aae2ca09f9d59525231392f6766ab6680d
3
+ metadata.gz: a5dbe9a47588ff6a851c6a3ee751c4821b84ed3c
4
+ data.tar.gz: a8b88a12c302ad5d390a9264e23242c406f1f1f9
5
5
  SHA512:
6
- metadata.gz: 49cd0d871b7e396bb231a6c9fa694153b2c2b56c0f6a6b96f1fc91adba3bb08a0966303e78c9369d31abb9791d79177a9ff6ceed552e3b3e7c26e4fa3e464af6
7
- data.tar.gz: 4ca05283e96a19e3bde8443df8d15689e4e32e9ea6be21133e243032349079c18cf634b1f95878bf8a182d017a299fe073193ed7ed314cadefadf80b2c809c19
6
+ metadata.gz: 4e72d460d5378c9530029b2ab2efad6afd98da4c16e7e8e74a458a302922e4acd09ad267f90f1daf4ba471d5cfe2633e44c7ffea1d95111c38f45309844c9115
7
+ data.tar.gz: 6bcbcdabd8d96a702eeacd0856a809b73c7d5571bf2b21cc45cc50a5fe0b5b1e836e8728ef0bfca4cb93fa9ca1fa0cd234dc9ffc7dbe4c83f4e95fc2b51f98cb
data/lib/phantom/svg.rb CHANGED
@@ -35,7 +35,7 @@ module Phantom
35
35
  end
36
36
 
37
37
  def load_file(file, options)
38
- case File.extname(file)
38
+ case File.extname(file).downcase
39
39
  when '.svg' then load_from_svg(file, options)
40
40
  when '.png' then load_from_png(file, options)
41
41
  when '.jpg' then load_from_jpeg(file, options)
data/phantom_svg.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'phantom_svg'
4
- s.version = '1.1.8'
4
+ s.version = '1.1.9'
5
5
  s.license = 'LGPL-3'
6
6
  s.summary = 'Hight end SVG manipulation tools for Ruby'
7
7
  s.description = 'Hight end SVG manipulation tools for Ruby.\n' \
@@ -514,6 +514,12 @@ describe Phantom::SVG::Base do
514
514
  @loader = Phantom::SVG::Base.new
515
515
  end
516
516
 
517
+ it 'loads reguardless of case' do
518
+ @loader.add_frame_from_file("#{SPEC_SOURCE_DIR}/uppercase.JPG")
519
+ write_size = @loader.save_svg("#{@destination_dir}/uppercase.svg")
520
+ expect(write_size).not_to eq(0)
521
+ end
522
+
517
523
  it 'loads frames.' do
518
524
  test_name = 'jpeg_test'
519
525
  @loader.add_frame_from_file("#{@source_dir}/*.jpg")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantom_svg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rika Yoshida