Closed brendon closed 6 years ago
Hound is such a drag! ;)
Hi Brendon,
This is a great idea! I would skip fixing hound issues as they are more suggestions than things to abide by. Especially, I wouldn't apply any suggestions that prevent code from working on old Rubies. Once Travis CI is back in green I will merge!
Thanks @piotrmurach :) I think the travis test suite is brittle. The failures are due to rubies not installing etc... as far as I can see. I'll look into how we can get it more reliable. I'm a maintainer for acts_as_list
and we use travis reliably for that so hopefully it's something simple.
What a nightmare! However I think I've tidied things up and you should get a green suite provided we don't get any timeout issues which I noticed have happened a couple of times, but I think this is a problem on the travis end.
You'll see the travis.yml file has been overhauled. The exclusions weren't actually working, and the inclusions only tested those ruby versions against rails 3.2 so I've removed testing against head, and added jruby as a first-class citizen though it can only be tested on Rails 3.2 - 5.1.
I hope it's green, if you get a fail due to a timeout, can you re-run the suite for me?
Thanks, I do appreciate how frustrating the Travis testing setup is with all the Rails as I had quite a few issues setting it up in the first place. The latest build passes and I had a quick review of your changes and I think they are good to merge! I should have some time tomorrow to work on this, please hold tight!
Thanks @piotrmurach :) It was a fun change to make. Learned some new things such as instance_exec
! :) Thanks for looking to merge this. Would you be able to do a gem release shortly after? Then I can get on with integrating loaf into my application.
Great that this got implemented! Thanks :+1:
Thanks for ideas and work on this @brendon & @TheNeikos
Released v0.7.0
🍾 Enjoy!
Thanks @piotrmurach! :) Great to be able to add something helpful :D
When doing dynamic breadcrumb names and urls we can execute the Proc in the context of the controller so that it doesn't need to be explicity supplied.
Backward compatibility is maintained by checking for the block's arity and sending the controller if necessary.
Closes #21 and #20