The NetBSD Project

CVS log for pkgsrc/textproc/ruby-nori/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / textproc / ruby-nori

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jul 20 05:43:08 2026 UTC (3 months, 3 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, HEAD
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
textproc/ruby-nori: update to 2.9.1

2.9.0 (2026-07-05)

Changed

* The :standards profile no longer applies schema-less typing.  Under
  Nori.new(standards: true), :advanced_typecasting now defaults to false (an
  explicit advanced_typecasting: true still wins), and the bare
  un-namespaced type= and nil= attributes become ordinary attributes instead
  of casting instructions.  No more type= conversions (integer, date,
  decimal, array, file, ...), and only a prefixed xsi:nil="true" marks an
  element nil.  These conventions come from Rails' Hash.from_xml (inherited
  via crack and merb), not from any XML spec.  Without a schema, character
  data is just text.  Knowing that <id>123</id> holds an integer is the
  business of a schema-aware layer, not a guess from string shape.  Parsing
  without the profile is completely unchanged.

Added

* Add the :serializable profile option.  Nori.new(serializable: true)
  returns plain, directly-serializable data with no custom value classes.  A
  text node that also has attributes becomes a Hash in the XML JSON
  convention ({"#text" => content} merged with our existing @-prefixed
  attributes instead of a Nori::StringWithAttributes, and a text node
  without attributes becomes a plain String.  A type="file" node is no
  longer decoded into a Nori::StringIOFile, it folds into text and
  attributes like any other node, leaving the base64 content untouched for
  the caller to decode.  That type= decoding is a Rails/ActiveSupport
  Hash.from_xml convention Nori inherited via crack and merb, not part of
  any XML spec, which is why the plain-data profile drops it.  With this,
  values survive to_json, to_yaml, and Marshal.  Opt-in on the 2.x line,
  probably the default in Nori 3.0.  Reported by @ArnoldMEDLINQ (#107),
  thanks to @dub357 for pinpointing the cause and finding #106, and thanks
  to @ekzobrain whose hash-shape approach this builds on.


2.9.1 (2026-07-05)

Fixed

* Under :serializable, a typecast value no longer drops the node's
  attributes.  A text node whose content gets converted to a non-String (by
  :advanced_typecasting or a bare type= cast) now takes the same hash shape
  as string values: <status source="ldap">true</status> becomes {"#text" =>
  true, "@source" => "ldap"} instead of a bare true that silently lost
  @source.  This closes a data-dependent hole in the profile's
  no-silent-loss promise, where the same element kept or dropped its
  attributes depending on what its text happened to look like.  The value at
  #text is whatever the typecasting produced.  Combined with standards: true
  no typecasting happens and #text is always a string.

* The #text key of the :serializable hash shape now goes through
  :convert_tags_to like every other key.  Previously a key-converting
  formula (for example one that symbolizes keys) produced converted element
  and attribute keys next to a raw "#text" string key in the same hash.
  Nori's contract is that a :convert_tags_to formula sees every key it
  emits, which also means a caller who prefers a plain text key over the XML
  JSON convention can now map "#text" in their formula.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Sep 22 06:47:30 2024 UTC (2 years, 1 month ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
textproc/ruby-nori: update to ruby-nori to 2.7.1

2.7.1 (2024-07-28)

What's Changed

* Stop monkey-patching String with #snakecase by @mchu in #102

New Contributors

* @mchu made their first contribution in #102

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Feb 19 15:19:58 2024 UTC (2 years, 8 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
textproc/ruby-nori: update to 2.7.0

2.7.0 (2024-02-13)

* Added support for ruby 3.1, 3.2, 3.3. Dropped support for ruby 2.7 and
  below.
* Feature: Nori::Parser has a new option, :scrub_xml, which defaults to
  true, for scrubbing invalid characters (#72).  This should allow documents
  containing invalid characters to still be parsed.
* Fix: REXML parser changes &lt; inside CDATA to < (#94)
* Change: Object#blank? is no longer patched in.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jan 19 09:24:35 2020 UTC (6 years, 9 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
textproc/ruby-nori: add version 2.6.0 package

Add ruby-nori version 2.6.0 package.


Nori
====

Really simple XML parsing ripped from Crack which ripped it from Merb.
Nori was created to bypass the stale development of Crack, improve its XML
parser and fix certain issues.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>