3.5 KiB
Crass Change History
1.0.6 (2020-01-12)
-
Number values are now limited to a maximum of
Float::MAXand a minimum of negativeFloat::MAX. (#11) -
Added project metadata to the gemspec. (#9 - @orien)
1.0.5 (2019-10-15)
- Removed test files from the gem. (#8 - @t-richards)
1.0.4 (2018-04-08)
- Fixed whitespace warnings. (#7 - @yahonda)
1.0.3 (2017-11-13)
- Added support for frozen string literals. (#3 - @flavorjones)
1.0.2 (2015-04-17)
- Fixed: An at-rule immediately followed by a
{}simple block would have the block (and subsequent tokens until a semicolon) incorrectly appended to its prelude. This was super dumb and made me very sad.
1.0.1 (2014-11-16)
- Fixed: Modifications made to the block of an
:at_rulenode in a parse tree weren't reflected when that node was stringified. This was a regression introduced in 1.0.0.
1.0.0 (2014-11-16)
-
Many parsing and tokenization tweaks to bring us into full compliance with the 14 November 2014 editor's draft of the CSS syntax spec. The most significant outwardly visible change is that quoted URLs like
url("foo")are now returned as:functiontokens and not:urltokens due to a change in the tokenization spec. -
Teensy tiny speed and memory usage improvements that you almost certainly won't notice.
-
Fixed: A semicolon following a
@charsetrule would be omitted during serialization. -
Fixed: A multibyte char at the beginning of an id token could trigger an encoding error because
StringScanner#peekis a jerkface.
0.2.1 (2014-07-22)
- Fixed: Error when the last property of a rule has no value and no terminating semicolon. #2
0.2.0 (2013-10-10)
-
Added a
:childrenfield to:propertynodes. It's an array containing all the nodes that make up the property's value. -
Fixed: Incorrect value was given for
:propertynodes whose values contained functions. -
Fixed: When parsing the value of an at-rule's block as a list of rules, a selector containing a function (such as
#foo:not(.bar)) would cause that property and the rest of the token stream to be discarded.
0.1.0 (2013-10-04)
-
Tokenization is a little over 50% faster.
-
Added tons of unit tests.
-
Added
Crass.parse_propertiesandCrass::Parser.parse_properties, which can be used to parse the contents of an HTML element'sstyleattribute. -
Added
Crass::Parser.parse_rules, which can be used to parse the contents of an:at_ruleblock like@mediathat may contain style rules. -
Fixed:
Crass::Parser#consume_at_ruleand#consume_qualified_ruledidn't properly handle already-parsed:simple_blocknodes in the input, which occurs when parsing rules in the value of an:at_ruleblock. -
Fixed: On
:propertynodes,:importantis now set totruewhen the property is followed by an "!important" declaration. -
Fixed: "!important" is no longer included in the value of a
:propertynode. -
Fixed: A variety of tokenization bugs uncovered by tests.
-
Fixed: Added a workaround for a possible spec bug when an
:at_keywordis encountered while consuming declarations.
0.0.2 (2013-09-30)
- Fixed:
:at_rulenodes now have a:namekey.
0.0.1 (2013-09-27)
- Initial release.