bridgetown-svg-inliner 1.0.1 → 1.0.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
  SHA256:
3
- metadata.gz: 964d74439f0fd8c14d7d7633b9b1953df0123a6707cefa3a602a4f424b735353
4
- data.tar.gz: 56481641cecf8e75c8778703e2044726badbe265c7ab9bf69f673fdfefb1731a
3
+ metadata.gz: 2785f35194c07cb26a8da4c2964d774a6065f7b3f7effa6529ba1d2a5325738d
4
+ data.tar.gz: 8cc75f96de9a1510e698fa132343c21314783f45180cebef1a84f7fba19c0788
5
5
  SHA512:
6
- metadata.gz: e7a6f33e78f191a5b5d7d3dfae248ffac50cca0d8d1d06108e91f1a9194eee56ea7af5b6a0b1d18d1ae3ef38f80db85b440149c8c4534ba1887579dad2ffb154
7
- data.tar.gz: 9eb69fe8e5ec19c2441d8e5f692acb1092b7f5d0b1946c8595b07d4b78a5bac54ef80fcde24418d806f506833567998e7b821c973f5d8caae48b1ea01e563841
6
+ metadata.gz: 1ec8695273c48a1395850fb203e87ab7e3571a89dd66f25a52304bf24c0ab970891a3e6f8d08aec3ab5a510cf1a4bdbd45da8f3343858744ed3e6980244d0e0c
7
+ data.tar.gz: 340afa0a624d83e31e7bc0c8defb45634c805606f881f538203324b556c1359d3cece86d98723d48d0490b6a837c9393ef2ef67ac7fcd4ccf76d673c2b78c791
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  strategy:
15
15
  matrix:
16
- ruby_version: [2.6.6, 2.7.3, 3.0.0]
16
+ ruby_version: [2.6.6, 2.7.3, 3.0.1]
17
17
  continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
18
18
  # Has to be top level to cache properly
19
19
  env:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # main
2
2
 
3
+ # 1.0.2 / 25-06-2021
4
+
5
+ * Fix the parsing of attributes with a dash so data attributes or similar can be set on the svg.
6
+
3
7
  # 1.0.1 / 21-06-2021
4
8
 
5
9
  * Fix an issue where attributes were not added to SVG markup using the ERB helper in Ruby 3.
@@ -8,7 +8,7 @@ module BridgetownSvgInliner
8
8
  path, args = attributes.split(",", 2)
9
9
 
10
10
  @path = unescape_string(path)
11
- @args = args.scan(Liquid::TagAttributes).map do |arg|
11
+ @args = args.scan(%r{([a-zA-Z0-9_\-]+)\s*:\s*(#{Liquid::QuotedFragment})}o).map do |arg|
12
12
  [arg[0], unescape_string(arg[1])]
13
13
  end.to_h if args.present?
14
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownSvgInliner
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-svg-inliner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ayush Newatia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-21 00:00:00.000000000 Z
11
+ date: 2021-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bridgetown