svgeez 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/svgeez/sprite_builder.rb +1 -1
- data/lib/svgeez/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: ac3f22b16f601648d7c3f23f4eeeee0f8c95fd4d
|
4
|
+
data.tar.gz: 874151754e3bb63530cf3d7c90eca079c2334f02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6130b06476da4bc883ee8a18b7427383b6959511b36d04b62f28a6a77abde5107c1d2bcef1b75d2d723868b9e4df5059d5085da040741a456dc9802feab593f1
|
7
|
+
data.tar.gz: 3b03fc34d9d1c40b69d0ade3cb921dac7e3c4cc71d2132582be3703a1d2c014e851c448b83aa50b1178643029241731b0d8ccfe5725a70b3e485d046adeca908
|
@@ -38,7 +38,7 @@ module Svgeez
|
|
38
38
|
# Loop over all input files, grabbing their content, and appending to `output_file_contents`
|
39
39
|
input_file_paths.each do |file_path|
|
40
40
|
file_contents = use_svgo? ? `svgo -i #{file_path} -o -` : IO.read(file_path)
|
41
|
-
pattern = /^<svg.*?(?<viewbox>viewBox=".*?").*?>(?<content>.*?)<\/svg
|
41
|
+
pattern = /^<svg.*?(?<viewbox>viewBox=".*?").*?>(?<content>.*?)<\/svg>/m
|
42
42
|
|
43
43
|
file_contents.match(pattern) do |matches|
|
44
44
|
output_file_contents << %{<symbol id="#{source_basename}-#{File.basename(file_path, '.svg').downcase}" #{matches[:viewbox]}>#{matches[:content]}</symbol>}
|
data/lib/svgeez/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svgeez
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|