Up to [cvs.NetBSD.org] / pkgsrc / www / ruby-css-parser
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7366 - requested by taca
www/ruby-css-parser: Security fix
Revisions pulled up:
- www/ruby-css-parser/Makefile 1.40-1.41
- www/ruby-css-parser/distinfo 1.42-1.43
---
Module Name: pkgsrc
Committed By: taca
Date: Thu Sep 24 05:16:16 UTC 2026
Modified Files:
pkgsrc/www/ruby-css-parser: Makefile distinfo
Log Message:
www/ruby-css-parser: update to 3.2.0
3.2.0 (2026-09-20)
* Fix ReDoS hang when expanding dimension shorthands containing unclosed CSS
functions (e.g. margin: x() calc(aaaa...)): RE_FUNCTIONS now uses
possessive quantifiers plus a 10ms regexp timeout with fallback to plain
whitespace splitting
---
Module Name: pkgsrc
Committed By: taca
Date: Sat Nov 7 15:47:48 UTC 2026
Modified Files:
pkgsrc/www/ruby-css-parser: Makefile distinfo
Log Message:
www/ruby-css-parser: update to 3.4.0
3.3.0 (2026-10-07)
* Fix Arbitrary local-file read via attacker-controlled @import
3.4.0 (2026-11-01)
* Speed up RuleSet::Declarations#to_s ~20x: its clean-up regexp matched the
empty string at every character ([\n\r\f\t]*), making gsub! replace at
every position; the unreachable \s+$ branch is dropped, output unchanged
* Allocate less in RuleSet: skip the downcased copy of already normalized
property names, and build dimension shorthands without enumerators
* Allocate less when expanding and creating dimension shorthands, and skip
the colour regexp on values without a comma
* Return already sanitized media types as-is from sanitize_media_query, and
allocate less when splitting selectors and counting ids
* Allocate less than half the objects when parsing and serializing
declarations: values are copied only when they need cleaning, and hashes
are iterated without building [key, value] pairs
www/ruby-css-parser: update to 3.4.0 3.3.0 (2026-10-07) * Fix Arbitrary local-file read via attacker-controlled @import 3.4.0 (2026-11-01) * Speed up RuleSet::Declarations#to_s ~20x: its clean-up regexp matched the empty string at every character ([\n\r\f\t]*), making gsub! replace at every position; the unreachable \s+$ branch is dropped, output unchanged * Allocate less in RuleSet: skip the downcased copy of already normalized property names, and build dimension shorthands without enumerators * Allocate less when expanding and creating dimension shorthands, and skip the colour regexp on values without a comma * Return already sanitized media types as-is from sanitize_media_query, and allocate less when splitting selectors and counting ids * Allocate less than half the objects when parsing and serializing declarations: values are copied only when they need cleaning, and hashes are iterated without building [key, value] pairs
www/ruby-css-parser: update to 3.2.0 3.2.0 (2026-09-20) * Fix ReDoS hang when expanding dimension shorthands containing unclosed CSS functions (e.g. margin: x() calc(aaaa...)): RE_FUNCTIONS now uses possessive quantifiers plus a 10ms regexp timeout with fallback to plain whitespace splitting
www/ruby-css-parser: update to 3.1.0 3.1.0 (2026-09-09) * Parser#load_uri! accepts an integrity: option (Subresource Integrity, https://www.w3.org/TR/SRI/) to verify a fetched remote stylesheet before it is parsed
www/ruby-css-parser: update to 3.0.0 pkgsrc change: add "USE_LANGUAGES= # none". 3.0.0 (2026-06-01) * Harden read_remote_file, use allow_local_network: true and allow_file_uris: true to bypass
www/ruby-css-parser: update to 2.2.0 2.2.0 (2026-05-07) * Accept CSS <number> values with an omitted integer part (e.g. .1) inside rgb()/rgba()/hsl()/hsla(). Previously RE_COLOUR_NUMERIC and RE_COLOUR_NUMERIC_ALPHA required at least one digit before the decimal point, which caused colours such as rgba(0,0,0,.1) to be silently dropped during shorthand expansion (background-color from background:, border-*-color from border:).
www/ruby-css-parser: update to 2.1.0 2.1.0 (2026-04-28) * Validate ssl when pulling files via https.
www/ruby-css-parser: update to 2.0.0 2.0.0 (2026-02-23) * Drop ruby <3.2, fix a memory leak
www/ruby-css-parser: update to 1.21.1 1.21.1 (2025-03-09) * Prefer !important rules over non-!important rules in the same ruleset * Minor performance improvements
www/ruby-css-parser: update to 1.21.0 1.21.0 (2024-12-13) * Minor performance improvements
www/ruby-css-parser: udpate to 1.20.0 1.20.0 (2024-12-12) * Remove iconv conditional require
www/ruby-css-parser: update to 1.19.1 1.19.1 (2024-10-14) * Fix error when parsing values consisting of !important only
www/ruby-css-parser: update to 1.19.0 1.19.0 (2024-08-24) * 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
www/ruby-css-parser: update to 1.17.1 1.17.1 (2024-04-07) * Improve security by using File.read instead of IO.read #149
www/ruby-css-parser: update to 1.17.0 1.17.0 (2024-04-06) * Added user_agent as an option to Parser #146
www/ruby-css-parser: update to 1.16.0 1.16.0 (2023-09-01) * Fix parsing space-less media query features like @media(width:123px) #141
www/ruby-css-parser: update to 1.14.0 1.14.0 (2023-01-09) * Fix parsing of multiline URL values for rule sets #97
www/ruby-css-parser: update to 1.13.0 1.13.0 (2022-12-29) * Move Regexp::new 3rd argument into 2nd
www/ruby-css-parser: update to 1.12.0 1.12.0 (2022-09-16) * Improve exception message for missing value #131 * :rule_set_exceptions option added #132
www/ruby-css-parser: update to 1.11.0 1.11.0 (2021-12-14) * Do not combine border styles width/color/style are not all present
www: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes Not committed (merge conflicts): www/nghttp2/distinfo Unfetchable distfiles (almost certainly fetched conditionally...): ./www/nginx-devel/distinfo array-var-nginx-module-0.05.tar.gz ./www/nginx-devel/distinfo echo-nginx-module-0.62.tar.gz ./www/nginx-devel/distinfo encrypted-session-nginx-module-0.08.tar.gz ./www/nginx-devel/distinfo form-input-nginx-module-0.12.tar.gz ./www/nginx-devel/distinfo headers-more-nginx-module-0.33.tar.gz ./www/nginx-devel/distinfo lua-nginx-module-0.10.19.tar.gz ./www/nginx-devel/distinfo naxsi-1.3.tar.gz ./www/nginx-devel/distinfo nginx-dav-ext-module-3.0.0.tar.gz ./www/nginx-devel/distinfo nginx-rtmp-module-1.2.2.tar.gz ./www/nginx-devel/distinfo nginx_http_push_module-1.2.10.tar.gz ./www/nginx-devel/distinfo ngx_cache_purge-2.5.1.tar.gz ./www/nginx-devel/distinfo ngx_devel_kit-0.3.1.tar.gz ./www/nginx-devel/distinfo ngx_http_geoip2_module-3.3.tar.gz ./www/nginx-devel/distinfo njs-0.5.0.tar.gz ./www/nginx-devel/distinfo set-misc-nginx-module-0.32.tar.gz ./www/nginx/distinfo array-var-nginx-module-0.05.tar.gz ./www/nginx/distinfo echo-nginx-module-0.62.tar.gz ./www/nginx/distinfo encrypted-session-nginx-module-0.08.tar.gz ./www/nginx/distinfo form-input-nginx-module-0.12.tar.gz ./www/nginx/distinfo headers-more-nginx-module-0.33.tar.gz ./www/nginx/distinfo lua-nginx-module-0.10.19.tar.gz ./www/nginx/distinfo naxsi-1.3.tar.gz ./www/nginx/distinfo nginx-dav-ext-module-3.0.0.tar.gz ./www/nginx/distinfo nginx-rtmp-module-1.2.2.tar.gz ./www/nginx/distinfo nginx_http_push_module-1.2.10.tar.gz ./www/nginx/distinfo ngx_cache_purge-2.5.1.tar.gz ./www/nginx/distinfo ngx_devel_kit-0.3.1.tar.gz ./www/nginx/distinfo ngx_http_geoip2_module-3.3.tar.gz ./www/nginx/distinfo njs-0.5.0.tar.gz ./www/nginx/distinfo set-misc-nginx-module-0.32.tar.gz
www: Remove SHA1 hashes for distfiles
www/ruby-css-parser: update to 1.10.0 1.10.0 (2021-07-27) * Allow CSS functions to be used in CssParser::RuleSet#expand_dimensions_shorthand! #126
www/ruby-css-parser: update to 1.9.0 1.9.0 (2021-02-04) * Misc cleanup #122
www/ruby-css-parser: update to 1.8.0 No release information nor changelog Please refer <https://github.com/premailer/css_parser/compare/v1.7.1...v1.8.0> in detail.
www/ruby-css-parser: Update to 1.7.1
Update ruby-css-parser to 1.7.1.
Version 1.7.1 (2019-12-01)
Force UTF-8 encoding; do not strip out UTF-8 chars. #106
Version 1.7.0 (2019-02-11)
No longer support ruby versions 1.9 2.0 2.1
Memory allocation improvements
Update ruby-css-parser to 1.6.0. Version 1.6.0 * Handles font-size/ line-height shorthand with spaces
Update ruby-css-parser to 1.5.0. Version 1.5.0 * Extended color keywords support (https://www.w3.org/TR/css3-color/). * remove_rule_set! method added. * :capture_offsets feature added.
Update ruby-css-parser to 1.4.10. 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.
Update ruby-css-parser to 1.4.6. * Handling nil order in split_declaration. * Normalize whitespace in selectors and queries.
Update ruby-css-parser to 1.4.5.
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
Add SHA512 digests for distfiles for www category Problems found locating distfiles: Package haskell-cgi: missing distfile haskell-cgi-20001206.tar.gz Package nginx: missing distfile array-var-nginx-module-0.04.tar.gz Package nginx: missing distfile encrypted-session-nginx-module-0.04.tar.gz Package nginx: missing distfile headers-more-nginx-module-0.261.tar.gz Package nginx: missing distfile nginx_http_push_module-0.692.tar.gz Package nginx: missing distfile set-misc-nginx-module-0.29.tar.gz Package nginx-devel: missing distfile echo-nginx-module-0.58.tar.gz Package nginx-devel: missing distfile form-input-nginx-module-0.11.tar.gz Package nginx-devel: missing distfile lua-nginx-module-0.9.16.tar.gz Package nginx-devel: missing distfile nginx_http_push_module-0.692.tar.gz Package nginx-devel: missing distfile set-misc-nginx-module-0.29.tar.gz Package php-owncloud: missing distfile owncloud-8.2.0.tar.bz2 Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
Update ruby-css-parser to 1.3.7. - Fix regex for some things being malformed, along with also putting in a few cases not specified for brackets
Update ruby-css-parser to 1.3.6. ### 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.
Update ruby-css-parserruby-css-parser to 1.3.5. Exact changes aren't available. Please refer change log in github.
Update ruby-css-parser to 1.3.4. Changes aren't available, please refer github's commit log.
Update ruby-css-parser to 1.2.6. Exact chagnes are unknown.
Update ruby-css-parser package to 1.2.5. (A package depending to version 1.1.* of this one dosen't exist any more.) Changes are unknown.
Revert previous update, it would be break a depending package.
Update ruby-css-parser package to 1.2.5. Changes are unknown.
Update ruby-css-parser pacakge to 1.1.9. Changes are unknown.
Update ruby-css-parser pacakge to 1.1.5. No changes are available.
Update ruby-css-parser pacakge to 1.1.4. === Ruby CSS Parser CHANGELOG === 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
Importing www/ruby-css-parser 1.0.1. A set of classes for parsing CSS in Ruby.
Initial revision