premailer 1.26.0 → 1.27.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e50487681c955ef37736d8db83842cf9578b1f37eac290d77eded552410a92f
4
- data.tar.gz: 9fd8a34f3dc6e7c4c2b68cff6d6d1e3137f615e61814b72c2b47b39785f60be6
3
+ metadata.gz: 31108244f6afc74508eef1337a9b99adc7f2643b5412e2aacf808ecb8c520101
4
+ data.tar.gz: b2f10188d4b7143050eb86e04776c38fc220ebb834da7871e838fe47db5fe9c5
5
5
  SHA512:
6
- metadata.gz: cdfc41db2e437d4d713cf9698e6356626bd4ef1f646bb0aa57c05ca2685f7a79340a2ffeef4e0d85468d55e933e15b6862f8ee01bda497d21d81f31e7826337a
7
- data.tar.gz: f98c2f0b2318b547f9f506f136702ebcef4132652455eb9c2f3f7e03ffa1f9d201f1b97779c39c540881d4b86fedc147732441da7cf39997233eaa873d5006b9
6
+ metadata.gz: 4cd3655f0aa411da6d874dd50e2e1ab1c6f1cae4f9882cfa84a6ec2022174f5d9670d439527bb27618774f7f731f7ac24b35420c58926db159b4f81e85cb660d
7
+ data.tar.gz: aa583335ee3a7b0de99320aff3c162d233825c99fbfe287ae13f12790c4b54728b7b0460861f928efe9ddae07416aafb229058f698267214e8b740ff94ea20a8
@@ -63,7 +63,7 @@ class Premailer
63
63
  doc.search("*[@style]").each do |el|
64
64
  style = el.attributes['style'].to_s
65
65
 
66
- declarations = style.scan(/\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/).filter_map do |declaration|
66
+ declarations = style.scan(/\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/m).filter_map do |declaration|
67
67
  rs = Premailer::CachedRuleSet.new(block: declaration[1].to_s, specificity: declaration[0].to_i)
68
68
  rs.expand_shorthand!
69
69
  rs
@@ -68,7 +68,7 @@ class Premailer
68
68
  style = el.attributes['style'].to_s
69
69
 
70
70
  declarations = []
71
- style.scan(/\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/).each do |declaration|
71
+ style.scan(/\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/m).each do |declaration|
72
72
  begin
73
73
  rs = CssParser::RuleSet.new(block: declaration[1].to_s, specificity: declaration[0].to_i)
74
74
  declarations << rs
@@ -62,7 +62,7 @@ class Premailer
62
62
  style = el.attributes['style'].to_s
63
63
 
64
64
  declarations = []
65
- style.scan(/\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/).each do |declaration|
65
+ style.scan(/\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/m).each do |declaration|
66
66
  begin
67
67
  rs = CssParser::RuleSet.new(block: declaration[1].to_s, specificity: declaration[0].to_i)
68
68
  declarations << rs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  class Premailer
3
3
  # Premailer version.
4
- VERSION = '1.26.0'
4
+ VERSION = '1.27.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: premailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dunae
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-24 00:00:00.000000000 Z
11
+ date: 2024-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: css_parser