- Fix error when parsing values consisting of
!important
only
- Deprecate
load_uri!
,load_file!
andload_string!
positional arguments over keyword argument - Deprecate
add_rule!
(positional arguments)andadd_rule_with_offsets!
foradd_rule!
(keyword argument) - RuleSet initialize now takes keyword argument, positional arguments are still supported but deprecated
- Removed OffsetAwareRuleSet, it's a RuleSet with optional attributes filename and offset
- Improved performance of block parsing by using StringScanner
- Improve
RuleSet#parse_declarations!
performance by using substring search istead of regexps - Fix error when parsing values consisting of
!important
only
- Drop Ruby 2.7 compatibility for parity with Premailer #149
- Improve security by using
File.read
instead ofIO.read
#149
- Added
user_agent
as an option to Parser #146
- Fix parsing space-less media query features like
@media(width:123px)
#141
- Fix parsing background shorthands in ruby 3.2 #140
- Fix parsing of multiline URL values for rule sets #97
- Drop suppor for EOL ruby versions
- fix regex deprecation
- Do not combine border styles width/color/style are not all present
- Allow CSS functions to be used in CssParser::RuleSet#expand_dimensions_shorthand! #126
- Misc cleanup #122
- Internal refactoring around ruleset diff
- Force UTF-8 encoding; do not strip out UTF-8 chars. #106
- No longer support ruby versions 1.9 2.0 2.1
- Memory allocation improvements
- Handles font-size/ line-height shorthand with spaces
- Extended color keywords support (https://www.w3.org/TR/css3-color/).
remove_rule_set!
method added.:capture_offsets
feature added.
- Include uri in RemoteFileError message.
- Prevent to convert single declarations to their respective shorthand.
- Fix Ruby warnings.
- Support for vrem, vh, vw, vmin, vmax and vm box model units.
- Replace obsolete calls with actual ones.
- Fix some Ruby warnings.
- Allow to get CSS rules as Hash using
to_hash
method. - Updates to support Ruby 1.9 and JRuby.
- utf-8 related update.
- background-position shorthand fix.
- Normalize whitespace in selectors and queries.
- Strip spaces from keys.
- More checks on ordering.
- Maintenance release.
- More robust redirection handling, refs #47.
- Look for redirects, MAX_REDIRECTS set to 3, refs #36.
- Fix border style expanding, refs #58.
- load_string! described, refs #70.
- Ship license with package, refs #69.
- Fix background shorthands, refs #66.
- Add support for background-size in the shorthand property @mitio
- Fix bug not setting general rules after media query @jievans.
- We doesn't support Ruby 1.8 anymore.
- Run tests on Ruby 2.0 and Ruby 2.1.
- Respect the :import option.
- Use URI#request_uri instead of URI#path @duckinator.
- Media_query_support @mzsanford
- Don't require open-uri @aripollak
- Symbols not sortable on 1.8.7 @morten
- Improve create_dimensions_shorthand performance @aaronjensen
- Fixes hash ordering in tests @morten
- Enable code highlighting for tests @grosser
- Fix error in media query parsing @smgt
- Add test to missing cleaning of media type in parsing @smgt
- Require version before requiring classes that depend on it @morten
- Fix them crazy requires and only define version once @grosser
- Apply ocd @grosser
- More tests (and fixes) for background gradients @fortnightlabs
- Support declarations with
;
in them @flavorpill - Stricter detection of !important @flavorpill
- Updates of gem by @grosser
- Multiple selectors should properly calculate specificity @alexdunae
- Specificity: The selector with the highest specificity may be in a compound selector statement? @morten
- Selectors should not be registered with surrounding whitespace. @morten
- Fix RE_GRADIENT reference @alexdunae
- Add load_string! method tests @alexdunae
- Gradient regexp tests @alexdunae
- Edited rule set @mccuskk
- JRuby and Ruby 1.9.3-preview1 compat
- Fix merging of multiple !important rules to match the spec
- First pass of media query support
- Fix merging of multiple !important rules to match the spec
- Better border shorthand handling
- List shorthand handling
- Malformed URI handling improvements
- Use Bundler
- Specificity improvements
- RGBA, HSL and HSLA support
- Bug fixes
- Add remove_declaration! to RuleSet
- Fix syntax error
- Automatically close missing braces at the end of a block
- Fix media type handling in add_block! and load_uri!
- Fix merging of !important declarations
- Ruby 1.9.2 compat
- allow limiting by media type in add_block!
- improve parsing of malformed declarations
- improve support for local files
- added support for loading over SSL
- added support for deflate
- Ruby 1.9 compatibility
- @import regexp updates
- various bug fixes
- Added support for local @import
- Better remote @import handling
- Fallback for declarations without sort order
- Various test fixes and udpate for Ruby 1.9 (thanks to Tyler Cunnion)
- Allow setting CSS declarations to nil
- Initial version forked from Premailer project
- re-implement caching on CssParser.merge
- correctly parse http://www.webstandards.org/files/acid2/test.html