css_parser 1.19.0 → 1.19.1

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: 5597d8abc3bd6dac3e4f4c7bb241cc4e1110ee0bdae226870ec35ab7ba85ee4f
4
- data.tar.gz: 7191e6f6768060de7ddedc0420b0650046ca329bfbf5ef42444b342970eab752
3
+ metadata.gz: '09aa105491fc4a0047380d522d09033787cabe34436e08bdb4ac7002ee2fbbde'
4
+ data.tar.gz: 17a8b0825e77ed66bdceb75fcda6b8d93574d8e5b3c1d4fc5586e34d87013d88
5
5
  SHA512:
6
- metadata.gz: d8a71809154ea8535a22709a8877a6d8c7a93ada53a42e1a497ef8893292a261580fc1f2aa65c723d217498124278e2c226dafc69f2549cdbff0b6b4a7eb8895
7
- data.tar.gz: 8c644bed6fe56143c4ccc5fe02a29e98de9cc728efdc7881f1816a10e562faf0a4e67210ff329068d4b5a2bb377239cfcd25b5594527b893522fbd6ec7cfa994
6
+ metadata.gz: 34a7782bab86eb88756ac8b90e8873dd8330f6895d852a151c8ad51ed1de93d3fcf1cf5c3a3764e5f9811a0fac995d740057a50856762b5d5aa738bee036fc63
7
+ data.tar.gz: 4cf1c27c7f13463ba549e66028622861cd00c9bc9434a40c39f2d1c44c16b37e739747dee0d058d56718360d6902d7fd464ff4da69fe455ef58c35d338c2fa1f
@@ -31,6 +31,7 @@ module CssParser
31
31
  SEMICOLON = ';'.freeze
32
32
  LPAREN = '('.freeze
33
33
  RPAREN = ')'.freeze
34
+ IMPORTANT = '!important'.freeze
34
35
  class Declarations
35
36
  class Value
36
37
  attr_reader :value
@@ -667,7 +668,7 @@ module CssParser
667
668
  value = decs[(colon + 1)..]
668
669
  property.strip!
669
670
  value.strip!
670
- next if property.empty? || value.empty?
671
+ next if property.empty? || value.empty? || value.casecmp?(IMPORTANT)
671
672
 
672
673
  add_declaration!(property, value)
673
674
  continuation = nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CssParser
4
- VERSION = '1.19.0'.freeze
4
+ VERSION = '1.19.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.19.1
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-23 00:00:00.000000000 Z
11
+ date: 2024-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable