abrandoned / heredity

gem to provide class inheritable attributes outside of rails and other framework integrated mechanisms
MIT License
1 stars 3 forks source link

Thread.exclusive is deprecated, use Mutex in InheritableClassInstanceVariables #5

Open liveh2o opened 8 years ago

liveh2o commented 8 years ago

It looks like Thread.exclusive is being deprecated in favor of a Mutex in Ruby:

Thread.exclusive is deprecated, use Mutex
/Users/ah/.rvm/gems/ruby-2.3.0@abacus/gems/heredity-0.1.1/lib/heredity/inheritable_class_instance_variables.rb:8:in `included'
/Users/ah/.rvm/gems/ruby-2.3.0@abacus/gems/heredity-0.1.1/lib/heredity.rb:9:in `include'
/Users/ah/.rvm/gems/ruby-2.3.0@abacus/gems/heredity-0.1.1/lib/heredity.rb:9:in `block in included'
/Users/ah/.rvm/gems/ruby-2.3.0@abacus/gems/heredity-0.1.1/lib/heredity.rb:8:in `class_eval'
/Users/ah/.rvm/gems/ruby-2.3.0@abacus/gems/heredity-0.1.1/lib/heredity.rb:8:in `included'

We should update Heredity to accommodate.

lenage commented 8 years ago

0.1.2 has been resolved this issue, see https://github.com/abrandoned/heredity/pull/7/files