First:
I had some Problems with every actual aspectr version (0.3.5 (aspectr), 0.3.6 (at rubyforge), 0.4.0 (aspectr-fork)) using ruby 1.8.5 on windows(cygwin) and Linux.
I modified some things to get it to work on my machines:
- type is deprecated: i replaced it with class - this only affects one exception-description.
- object_id is the new id: added object_id to @never_wrap. And replaced id with object_id in tests/atest_aspectr.rb
- the str[other_str] = new_str raises an error if not matching - contrary to the documentation. So i replaced it with a gsub statement.
- I dont understand the intricate construction in lines 204-205. My solution does the same or am i missing something?
- aspectr.rb should be installed in sitelibdir, not sitedir
Whats still missing:
- Tests are not running: Replacing with testsuite of aspectr-0-3-6 (which uses test/unit not runit) works flawless.
- Replace install.rb with that of aspectr-0-3-6 and change rubylibdir to sitelibdir is a much easier way of installing (without changing rights for parent dir etc).
resolves some issues with 0.4.0