This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.markdown | Sat Jul 25 00:25:34 -0700 2009 | |
| |
extconf.rb | Thu Feb 12 13:17:43 -0800 2009 | |
| |
mixology.c | Thu Aug 06 12:26:36 -0700 2009 | |
| |
mixology_test18.rb | Thu Feb 12 13:17:43 -0800 2009 | |
| |
mixology_test19.rb | Sun Feb 15 16:57:47 -0800 2009 |
README.markdown
Mixology with 1.9.1 compatibility
Mixology is a great C extension for Ruby that enables you to dynamically mix and unmix modules from classes. Unfortunately the official version has not yet been updated to work with Ruby 1.9.1 so I decided to update it myself. The 1.9.1 C API is not much different to 1.8.6, but it does come with a bunch of macros that make using it a touch easier than 1.8.6.
The mixology.c file in this repo is modified to work with Ruby 1.9.1, it also works out of the box with Ruby 1.8.6.
To compile mixology.c for 1.9.1
- Run extconf.rb with the Ruby 1.9.1 interpreter
- Type 'make'
- Run the 1.9.1 test file (mixology_test19.rb) with the 1.9.1 interpreter
To compile mixology.c for 1.8.6
- Run extconf.rb with the Ruby 1.8.6 interpreter
- Type 'make'
- Run the 1.8.6 test file (mixology_test18.rb) with the 1.8.6 interpreter
Other Mixology19 features:
- Error checking (raises an exception if it is not given a valid module parameter)
Acknowledgments:
Thanks to Pat Farley, anonymous z, Dan Manges, Clint Bishop for writing such a cool library.
Enjoy!







