Ruby5 Roundup - Episode 385
Last week I released another episode of the Ruby5 podcast with my old friend, Matthew Conway. Here is a quick roundup of this episode.
We've seen a lot of changes in rspec over the years. Last week version 2.14 was released and marks the end of the 2.x line. It also comes with some cool new features like spies, mock support for the new expectation syntax, new configurations, and some bug fixes. Upgrading should not impact your existing test suite, so do it today and start spying!
Rails Security Course
CodeClimate is offering a free month-long Rails security course via email. It promises to contain some tips not in the official guides, explanations of how things we thought were taken care of aren't exactly, and tricks you thought were cool but are actually really dangerous. Did I mention this is all free?
Heroku released a new labs feature called pipelines. If you have staging and production environments, it lets you hook them together then promote the slug from staging to production. It should reduce deployment times and help to streamline your deployment process. You can also diff the two servers to see what would be deployed.
Bogus is a gem that provides some safely to the world of mocking and stubbing. It lets you make test doubles that have the same interface as the class it is doubling and can alert you if you stub a method that doesn't actually exist.
The best part of RubyMotion is the strong ecosystem around the technology. Another new addition is Drink Menu, which lets you build OS X menu bar applications with RubyMotion. That means nicer DSLs, easier development and testing, and no Objective-C!
Vimscript And You!
Fellow Rocketeer Jonathan Jackson wrote a blog post explaining how to use RSpec to test your vim plugins. It leverages a library called
vimrunner by Andrew Radev to link everything together. I never thought testing vim plugins could be this easy, but you'll see in this blog post's TDD'd example that it is!
So that's it for this episode of Ruby5. If you haven't already, subscribe to the podcast and keep yourself up to date. Thanks for listening!