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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6902a2d266e64ff5d2c933024386e1be9c1b868d
4
- data.tar.gz: 2bee64144cbda271d538ce30fd544f866df4fbc4
3
+ metadata.gz: ac3f22b16f601648d7c3f23f4eeeee0f8c95fd4d
4
+ data.tar.gz: 874151754e3bb63530cf3d7c90eca079c2334f02
5
5
  SHA512:
6
- metadata.gz: e1387590cf3812dd3dad9b062d636e9796b03ab28715e5e4360123b9128265aeaba137a1b552a80c14990a0f48abe79492f29a906a188ac22bfbb57b7f540eb5
7
- data.tar.gz: b24122bd496f1787691411b3d72c3892ac3b139374fed7f0588e10a2e603e28b65ab02b736a3c4b02641503ecd504aceb55840e7e935eb0613157cc2204176b9
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>$/m
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>}
@@ -1,3 +1,3 @@
1
1
  module Svgeez
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
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.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-05 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen