API changed?
maran opened this issue · comments
I've just ran an bundle update (I probably shouldn't have but that's an other discussion ;) and I can't get spawnling to work anymore.
Taking the basic example from the readme:
Spawnling.new do
logger.info("I feel sleepy...")
sleep 11
logger.info("Time to wake up!")
end
Must give block of code to be spawned (RuntimeError)
from ~/.rvm/gems/ruby-2.0.0-p353@newbysh/gems/spawnling-2.1.2/lib/spawnling.rb:94:in `initialize'
I've tried to look at the code but I'm seriously confused how it's suppose to work at this point. I appreciate any tips anybody could give.
I have the same error, reverted to 2.1.1
Sadly it's still not working for me @mnoack. Using the example above.
NoMethodError: undefined method `fork_it' for Spawnling:Class
from ~/.rvm/gems/ruby-1.9.3-p286/gems/spawnling-2.1.3/lib/spawnling.rb:117:in `run'
from ~/.rvm/gems/ruby-1.9.3-p286/gems/spawnling-2.1.3/lib/spawnling.rb:94:in `initialize'
@maran 2.1.4 released (this one with fork/thread tests).