phantom_svg 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/phantom/svg.rb +1 -1
- data/phantom_svg.gemspec +1 -1
- data/spec/phantom/svg_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5dbe9a47588ff6a851c6a3ee751c4821b84ed3c
|
4
|
+
data.tar.gz: a8b88a12c302ad5d390a9264e23242c406f1f1f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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' \
|
data/spec/phantom/svg_spec.rb
CHANGED
@@ -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")
|