Skip to content

Commit

Permalink
Merge pull request #721 from casperisfine/ruby-3.2
Browse files Browse the repository at this point in the history
Undefine uneeded T_DATA allocators
  • Loading branch information
robin850 authored Apr 2, 2022
2 parents 2488699 + 8bc6922 commit 50961ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ext/redcarpet/rc_markdown.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ void Init_redcarpet()
rb_mRedcarpet = rb_define_module("Redcarpet");

rb_cMarkdown = rb_define_class_under(rb_mRedcarpet, "Markdown", rb_cObject);
rb_undef_alloc_func(rb_cMarkdown);
rb_define_singleton_method(rb_cMarkdown, "new", rb_redcarpet_md__new, -1);
rb_define_method(rb_cMarkdown, "render", rb_redcarpet_md_render, 1);

Expand Down
6 changes: 3 additions & 3 deletions redcarpet.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Gem::Specification.new do |s|
s.executables = ["redcarpet"]
s.require_paths = ["lib"]

s.add_development_dependency "rake", "~> 12.2.1"
s.add_development_dependency "rake-compiler", "~> 1.0.3"
s.add_development_dependency "test-unit", "~> 3.2.3"
s.add_development_dependency "rake", "~> 13"
s.add_development_dependency "rake-compiler", "~> 1.1"
s.add_development_dependency "test-unit", "~> 3.5"
end

0 comments on commit 50961ad

Please sign in to comment.