t6d / smart_properties

Ruby accessors on steroids
MIT License
177 stars 20 forks source link

Smart Properties 1.13.0 does not work with Ruby 2.4 #61

Closed alexcoco closed 3 years ago

alexcoco commented 7 years ago

@t6d

While updating an app to Ruby 2.4 I noticed that my tests no longer pass due to strange behaviour with instance_exec in Property#convert.

I believe it's related to this instance_exec regression in Ruby 2.4:

When executing instance_exec with symbol.to_proc, it ignores first argument.

https://bugs.ruby-lang.org/issues/13074

alexcoco commented 7 years ago

Ah, I see that it was addressed by #57 but is not released.