# Package: `ruby`

# Complain

> [semifree] json module has nonfree CVTUTF code; replace with pure Ruby implementation


# Patches

Patches fail on latest codebase. So had to reproduce 3 patches from [Parabola](https://git.parabola.nu/abslibre.git/tree/libre/ruby) `{add-json_pure,json-libre,remove-json-ext}.patch`. When reproducing `json-libre.patch`, `lib/json.rb` has changed to `ext/json/lib/json.rb`.

`json-libre.patch` does not need `.patch.args` file because it is applied from template. For others, `.patch.args` has been added.


# Template

Added pure Ruby implementation of json. Some code in the `post_patch()` function has been taken and modified from Parabola [PKGBUILD](https://git.parabola.nu/abslibre.git/tree/libre/ruby/PKGBUILD).

template changes are stored in `l_template_changes.patch`.
