emberb icon indicating copy to clipboard operation
emberb copied to clipboard

A guide to Ruby's C API

Results 10 emberb issues
Sort by recently updated
recently updated
newest added

As far as I understand, rb_define_global_function defines a public method and not a private one

`rb_get_kwargs` is useful with `rb_scan_args`

Creation of strings with certain encoding is documented in README.EXT but there's nothing on dealing with encoding. Having a section dedicated to that would be good.

enhancement

Mention the `ALLOC`/`ZALLOC`/`REALLOC` macros, what they're used for, why they are important.

enhancement

According to this [SO question](https://stackoverflow.com/questions/77492878/embedding-ruby-in-c-missing-class-method/77516294), just calling `ruby_init` no longer works in Ruby 3.2 and you have to call `ruby_options` prior to setting the load path. Figure out why that...

Latest stable Ruby is 3.3. Update the version here and verify that examples still work. Also check in the comments for any breaking changes reported by users.

Hello, I have a strange issue with the Time class. The method **now** is undefined ``` #include int main(int argc, char **argv) { ruby_init(); ruby_init_loadpath(); rb_eval_string("begin; p Time.now; rescue =>e;...

Bumps [rexml](https://github.com/ruby/rexml) from 3.2.5 to 3.2.8. Release notes Sourced from rexml's releases. REXML 3.2.8 - 2024-05-16 Fixes Suppressed a warning REXML 3.2.7 - 2024-05-16 Improvements Improve parse performance by using...

dependencies

Bumps [rexml](https://github.com/ruby/rexml) from 3.2.5 to 3.3.3. Release notes Sourced from rexml's releases. REXML 3.3.3 - 2024-08-01 Improvements Added support for detecting invalid XML that has unsupported content before root element...

dependencies

Hey. I'm a maintainer of Rice (https://github.com/ruby-rice/rice) and we ran into some weird segfaults with Ruby 3.4 in our test suite that [embeds ruby](https://github.com/ruby-rice/rice/blob/master/test/embed_ruby.cpp). Over the years I've definitely struggled...