Files
Yukihiro "Matz" Matsumoto 74bdae9e4c mruby-encoding: add Poorman's Encoding gem
The difference from CRuby's Encoding:

- Encoding is a module, instead of a class
- each Encoding (e.g. `Encoding::UTF_8) is a string instead of Encoding object
- only supports  `UTF-8` and `ASCII-8BIT` (and its alias `BINARY`)

Using this gem automatically turn on `MRB_UTF8_STRING` support.
2025-01-16 08:52:41 +09:00

9 lines
307 B
Ruby

MRuby::Gem::Specification.new('mruby-encoding') do |spec|
spec.license = 'MIT'
spec.author = 'mruby developers'
spec.summary = "Poorman's Encoding for mruby"
spec.build.defines << "HAVE_MRUBY_ENCODING_GEM"
spec.build.defines << "MRB_UTF8_STRING"
spec.add_test_dependency 'mruby-string-ext'
end