You have disabled auto-rotation for stories. Re-enable?
Codeship is a hosted Continuous Deployment Service that just works.
Set up Continuous Integration in a few steps and automatically deploy when all your tests have passed. Integrate with GitHub and BitBucket and deploy to cloud services like Heroku and AWS, or your own servers.
Visit http://codeship.io/ruby5 and sign up for free. Use discount code RUBY5 for a 20% discount on any plan for 3 months.
Also check out the Codeship Blog!
Whether you test-drive or not, you should be excited about the release of RSpec 3 yesterday. Myron Marston — the project maintainer — wrote a humongous and deliciously detailed blog post about all these Notable Changes. First, RSpec 3.0 adds better support for Ruby 2.0 features like keyword arguments and Module prepending. That said they dropped Ruby 1.8.6 and 1.9.1 support, but at this point who cares.
The RSpec team provided version 2.99 which will output deprecation warnings for anything that changes in RSpec 3.0. It’s pretty great and if you’re worried that your build logs will be littered with deprecations, you can configure RSpec to dump those warnings into a separate file.
before(:each) has been aliased to before(:example) and before(:all) to before(:context) in order to make the scope of those hooks more explicit. Every method in the RSpec DSL now yields the RSpec example object instead of exposing an
example method that could interfere with your own specs. This version also brings an eagerly awaited Zero Monkey Patching mode which should silence one of the biggest criticisms of RSpec: that it monkey patched the Object class with tons of RSpec-specific methods. You can now use expect(object).to equal something, which to me reads quite well and allows for cleaner specs because it makes the expectation part of an example painfully obvious. Zero monkey patching also extends to rspec-mocks, so you now allow(object).to receive(:methodname).and_return(value). Same thing for stubs. You can even expose the RSpec DSL globally in order to avoid monkey patching Ruby’s
main and Module to call the describe method for example.
Felipe Contreras, took the time to decipher the Git developers’ cryptic prose to figure out what changed in Git 2.0.0 and why you should care.
Instead of pushing all branches that exist locally and on your remote, Git now defaults to “simple” pushing by only dealing with the branch currently checked out.
git add now defaults to also staging removed files so no need to add the uppercase
A flag to force it to add all changes.
git add with no arguments also has more predictable behavior now and will add anything that was modified within the repo.
In “Avoid Rails when generating JSON responses with Postgres” Dan McClain shows you all the steps that Rails has to typically go through to get data from Postgres and into your custom JSON format. Then he shows you how to craft a huge Postgres query that will generate pure JSON much quicker than Rails. Dan also created a new PostgresEXT-Serializers gem. This gem monkey patches ActiveModel Serializers and then everytime you try to serialize an ActiveRecord Relation it will take over and push the work down to Postgres. Only caveat is this is a VERY new library, so use with caution.
It was refreshing to see Xavier Shay from the Square team write about dealing with a weird serialization error with ActiveSupport. In the blog post titled Ruby Serialization & Enumeration, he praises the transparency of Ruby’s libraries, mentions how easy it is to pry them open, jump inside and twiddle stuff around to figure out what’s going wrong.
co: Yeah, if you’re never used debugger or pry to jump inside of some of the gems that you use every day, this post shows how useful it can be.
That, and it forces you to read more code written by other potentially more skilled developers.
If you're looking for a top Ruby job or for top Ruby talent, then you should check out Top Ruby Jobs. Top Ruby Jobs is a website dedicated to the best jobs available in the Ruby community.
Understanding the magic of routes in Rails, a simple rest-client, using PostGIS with Google Maps, setting up SSL with the latest toys, an examination of Rails vs. Sinatra, and how to get your developers blogging all in this episode of the Ruby5!
Some new stuff(Rspec3 rc1, ActiveJob), some cool stuff(Devise-two-factor, Camcorder), and some educational stuff (Teaching kids of Pis, Weirich on Exceptions) in this RubyLoco-powered edition of Ruby5!
Unexpected new Ruby, plenty of SMTP, Discovery Tests and their mocks, heroes building ROM, Windows longing for ExecJS, Napybaras, and dangerous :nodocs: this week on Ruby5.
A rich text editor that isn't awful, over one thousand free programming books, handle email subscriptions and track emails sent, super easy email unsubscribe, and a cheatsheet for OAuth exploits.
Looking to learn about Ruby? Take a look at the Ruby Path on Code School
This podcast is produced and distributed by Code School. Copyright © 2018 Code School LLC