Agilefreaks / Aquarium

An AOP library for Ruby
https://rubygems.org/gems/aquarium/
149 stars 24 forks source link

uninitialized constant error #43

Open ali-v-1985 opened 5 years ago

ali-v-1985 commented 5 years ago

When I create a pointcut like this: my_pointcuts = Pointcut.new :invocations_of => :all_methods, :on_types => MyClass

It keep giving me this error:

uninitialized constant MyClass (NameError)

Can you help me with that, please?

deanwampler commented 5 years ago

I'm traveling and won't be able to look at this before the weekend. It could be that Aquarium is incompatible with the version of Ruby you are using. I haven't updated Aquarium in a long time. See the compatibility information in the README.

deanwampler commented 5 years ago

I updated the project to use Ruby 2.6.3 and rehosted the docs here: https://deanwampler.github.io/open-source/aquarium/index.html (since RubyForge is dead).

You can download a new 0.7.1 gem from rubygems.org.