1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
|
## Ruby CSS Parser CHANGELOG
### Unreleased
### Version v1.21.1
* Prefer `!important` rules over non-`!important` rules in the same ruleset
* Minor performance improvements
### Version v1.21.0
* Minor performance improvements
### Version v1.20.0
* Remove `iconv` conditional require
### Version v1.19.1
* Fix error when parsing values consisting of `!important` only
### Version v1.19.0
* Deprecate `load_uri!`, `load_file!` and `load_string!` positional arguments over keyword argument
* Deprecate `add_rule!` (positional arguments)and `add_rule_with_offsets!` for `add_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
### Version v1.18.0
* Drop Ruby 2.7 compatibility for parity with Premailer [#149](https://github.com/premailer/css_parser/pull/149)
### Version v1.17.1
* Improve security by using `File.read` instead of `IO.read` [#149](https://github.com/premailer/css_parser/pull/149)
### Version v1.17.0
* Added `user_agent` as an option to Parser [#146](https://github.com/premailer/css_parser/pull/146)
### Version v1.16.0
* Fix parsing space-less media query features like `@media(width:123px)` [#141](https://github.com/premailer/css_parser/pull/141)
### Version v1.15.0
* Fix parsing background shorthands in ruby 3.2 [#140](https://github.com/premailer/css_parser/pull/140)
### Version v1.14.0
* Fix parsing of multiline URL values for rule sets [#97](https://github.com/premailer/css_parser/pull/97)
### Version v1.13.0
* Drop suppor for EOL ruby versions
* fix regex deprecation
### Version v1.12.0
* Improve exception message for missing value [#131](https://github.com/premailer/css_parser/pull/131)
* `:rule_set_exceptions` option added [#132](https://github.com/premailer/css_parser/pull/132)
### Version 1.11.0
* Do not combine border styles width/color/style are not all present
### Version 1.10.0
* Allow CSS functions to be used in CssParser::RuleSet#expand_dimensions_shorthand! [#126](https://github.com/premailer/css_parser/pull/126)
### Version 1.9.0
* Misc cleanup [#122](https://github.com/premailer/css_parser/pull/122)
### Version 1.8.0
* Internal refactoring around ruleset [diff](https://github.com/premailer/css_parser/compare/v1.7.1...v1.8.0)
### Version 1.7.1
* Force UTF-8 encoding; do not strip out UTF-8 chars. [#106](https://github.com/premailer/css_parser/pull/106)
### Version 1.7.0
* No longer support ruby versions 1.9 2.0 2.1
* Memory allocation improvements
### Version 1.6.0
* Handles font-size/ line-height shorthand with spaces
### Version 1.5.0
* Extended color keywords support (https://www.w3.org/TR/css3-color/).
* `remove_rule_set!` method added.
* `:capture_offsets` feature added.
### Version 1.4.10
* Include uri in RemoteFileError message.
* Prevent to convert single declarations to their respective shorthand.
* Fix Ruby warnings.
### Version 1.4.9
* Support for vrem, vh, vw, vmin, vmax and vm box model units.
* Replace obsolete calls with actual ones.
* Fix some Ruby warnings.
### Version 1.4.8
* Allow to get CSS rules as Hash using `to_hash` method.
* Updates to support Ruby 1.9 and JRuby.
* utf-8 related update.
### Version 1.4.7
* background-position shorthand fix.
### Version 1.4.6
* Normalize whitespace in selectors and queries.
* Strip spaces from keys.
* More checks on ordering.
### Version 1.4.5
* Maintenance release.
### Version 1.4.4
* More robust redirection handling, refs #47.
### Version 1.4.3
* Look for redirects, MAX_REDIRECTS set to 3, refs #36.
* Fix border style expanding, refs #58.
* load_string! described, refs #70.
### Version 1.4.2
* Ship license with package, refs #69.
### Version 1.4.1
* Fix background shorthands, refs #66.
### Version 1.4.0
* Add support for background-size in the shorthand property @mitio
### Version 1.3.6
* 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.
### Version 1.3.5
* 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
### Version 1.3.4
* Enable code highlighting for tests @grosser
* Fix error in media query parsing @smgt
* Add test to missing cleaning of media type in parsing @smgt
### Version 1.3.3
* Require version before requiring classes that depend on it @morten
### Version 1.3.2
* Fix them crazy requires and only define version once @grosser
* Apply ocd @grosser
### Version 1.3.1
* More tests (and fixes) for background gradients @fortnightlabs
* Support declarations with `;` in them @flavorpill
* Stricter detection of !important @flavorpill
### Version 1.3.0
* 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
### Version 1.2.6
* JRuby and Ruby 1.9.3-preview1 compat
### Version 1.2.5
* Fix merging of multiple !important rules to match the spec
### Version 1.2.3
* First pass of media query support
### Version 1.2.2
* Fix merging of multiple !important rules to match the spec
### Version 1.2.1
* Better border shorthand handling
* List shorthand handling
* Malformed URI handling improvements
* Use Bundler
### Version 1.2.0
* Specificity improvements
* RGBA, HSL and HSLA support
* Bug fixes
### Version 1.1.9
* Add remove_declaration! to RuleSet
### Version 1.1.8
* Fix syntax error
### Version 1.1.7
* Automatically close missing braces at the end of a block
### Version 1.1.6
* Fix media type handling in add_block! and load_uri!
### Version 1.1.5
* Fix merging of !important declarations
### Version 1.1.4
* Ruby 1.9.2 compat
### Version 1.1.3
* allow limiting by media type in add_block!
### Version 1.1.2
* improve parsing of malformed declarations
* improve support for local files
* added support for loading over SSL
* added support for deflate
### Version 1.1.1
* Ruby 1.9 compatibility
* @import regexp updates
* various bug fixes
### Version 1.1.0
* Added support for local @import
* Better remote @import handling
### Version 1.0.1
* Fallback for declarations without sort order
### Version 1.0.0
* Various test fixes and udpate for Ruby 1.9 (thanks to Tyler Cunnion)
* Allow setting CSS declarations to nil
### Version 0.9
* Initial version forked from Premailer project
### TODO: Future
* re-implement caching on CssParser.merge
* correctly parse http://www.webstandards.org/files/acid2/test.html
|