Skip to content

Commit

Permalink
A better way to provide backwards compatibility for enumerator.so
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviershay committed May 31, 2011
1 parent 1b251b2 commit 20e2b5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions enumerator.c
Expand Up @@ -1171,6 +1171,4 @@ Init_Enumerator(void)
id_rewind = rb_intern("rewind");
id_each = rb_intern("each");
sym_each = ID2SYM(id_each);

rb_provide("enumerator.so"); /* for backward compatibility */
}
3 changes: 3 additions & 0 deletions lib/enumerator.rb
@@ -0,0 +1,3 @@
# This class is now defined entirely in enumerator.c and is always available.
# This file needs to remain here for backwards compatibility, so that `require
# "enumerator"` will not raise an exception.

0 comments on commit 20e2b5c

Please sign in to comment.