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 +4 -4
- data/lib/css_parser/rule_set.rb +2 -1
- data/lib/css_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09aa105491fc4a0047380d522d09033787cabe34436e08bdb4ac7002ee2fbbde'
|
4
|
+
data.tar.gz: 17a8b0825e77ed66bdceb75fcda6b8d93574d8e5b3c1d4fc5586e34d87013d88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34a7782bab86eb88756ac8b90e8873dd8330f6895d852a151c8ad51ed1de93d3fcf1cf5c3a3764e5f9811a0fac995d740057a50856762b5d5aa738bee036fc63
|
7
|
+
data.tar.gz: 4cf1c27c7f13463ba549e66028622861cd00c9bc9434a40c39f2d1c44c16b37e739747dee0d058d56718360d6902d7fd464ff4da69fe455ef58c35d338c2fa1f
|
data/lib/css_parser/rule_set.rb
CHANGED
@@ -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
|
data/lib/css_parser/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|