Permalink
Browse files

- iobuffer.rb added (so version.rb can be loaded and we

  get IO::Buffer::VERSION in runtime.
- iobuffer.c now creates iobuffer/iobuffer_ext.so extension
  which is loaded by iobuffer.rb.
  • Loading branch information...
1 parent d842200 commit 07003e66ddafe0433f0d2a83545a88e28e7e1faf @ibc ibc committed Feb 13, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 ext/extconf.rb
  2. +1 −1 ext/iobuffer.c
  3. +1 −1 iobuffer.gemspec
View
@@ -6,4 +6,4 @@
have_struct_member("rb_io_t", "fd", "rubyio.h")
end
-create_makefile("iobuffer")
+create_makefile("iobuffer/iobuffer_ext")
View
@@ -81,7 +81,7 @@ static int buffer_write_to(struct buffer * buf, int fd);
* Ruby IO objects.
*/
void
-Init_iobuffer()
+Init_iobuffer_ext()
{
cIO_Buffer = rb_define_class_under(rb_cIO, "Buffer", rb_cObject);
rb_define_alloc_func(cIO_Buffer, IO_Buffer_allocate);
View
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
gem.required_rubygems_version = '>= 1.3.6'
- gem.files = Dir['README.md', 'lib/**/*', 'ext/**/*.{c,rb}']
+ gem.files = Dir['README.md', 'lib/iobuffer', 'lib/**/*', 'ext/**/*.{c,rb}']
gem.require_path = 'lib'
gem.extensions = ["ext/extconf.rb"]

0 comments on commit 07003e6

Please sign in to comment.