We have a Sinatra app mounted on Rails. If we raise an error in the Sinatra app, it doesn’t show anywhere. Can we attach the Rails logger somehow?
Code Climate Blog: Rails Insecure Defaults
Rubymine 5.4 EAP: Rails 4, JRuby Nailgun support, and a feature requested by pivotallabs!
Check out the release announcement here: http://blog.jetbrains.com/ruby/2013/03/rubymine-ichii-early-access-is-open/
This release also includes a small feature requested by the CloudPlanner team here at Pivotal Labs! When you create a new localization property from a view, the dialog will now default your localization file to the last one used: http://youtrack.jetbrains.com/issue/RUBY-13368
Thanks to the two Pivots who up voted our feature requests (Ken Mayer and Justin Richard)! And if you never got around to up voting our team’s RubyMine feature requests, please do so now! It only takes a sec:
Ruby 1.8.7 end of life – No security fixes after June
More here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/47201
.ruby-version (& .ruby-gemset)
The community appears to be converging on .ruby-version as a standard way to convey a project’s Ruby version. This as opposed to .rvmrc or .rbenv
If you use RVM you can also use .ruby-gemset to specify a gemset.
See https://gist.github.com/fnichol/1912050 for more info.
Backbonejs 1.0 is out
Not a great deal of changes compared to 0.9x – mostly small behavior adjustments on Collection#set & Model#save.
Upgrading instructions: http://backbonejs.org/#upgrading
Mocking XHRs in Capybara
How do you mock AJAX requests in Capybara tests?
New column shows up as the wrong type on Heroku
We created a new migration that added a non-string column. After pushing to heroku and running the migration, the column shows up as string.
- you should restart your heroku app after every migration.
Ensures that a given process is only running once. Keeps scheduled tasks from overlapping. Uses lock PID files. https://github.com/rjackson/singleton_process
Security on Steroids
The list of security monitoring services continues to grow. In addition to the holepicker gem and the private beta code climate service, Gemnasium is now offering "Security on Steroids."
Lobot needs YOU
The Lobot project is recruiting team members. Mostly that means that when scheduling permits, you’ll work on Lobot as a project. Contact Ken (the new PM), or Davis.
How do RubyMine inspections work?
I have a module that creates methods dynamically, but I want Command-B to work for those methods.
before_save on: :create fails silently
before_save and after_save will happily take an on: :create option, and then completely ignore it. before_validation takes an on: :create option, and actually works, which is why it feels natural to put on: :create after a before or after save.
The right answer, apparently, is to use before_create or after_create.
See also: http://grokbase.com/t/gg/rubyonrails-core/12bda67vx2/rails-core-suggestion-%60before-save-on-create%60-should-either-work-or-raise-an-exception
Resque worker shutting down on Heroku – solved
We recently added the resque-pool gem which does alias_method on the resque worker shutdown? method to look at the pid of the process being shutdown. On Heroku this always evaluates to true.
Takeaway message don’t add resque-pool gem to your gemfile for an heroku application.
Weekly email of curated links from hacker news. Recommended by Rajan.
Thoughtbot is writing a book
Ruby Science: https://learn.thoughtbot.com/products/13-ruby-science
Any Good iOS Analytics Tools?
Has anyone tried/prefer any particular iOS analytics tools? We’re looking at Google Analytics, Flurry, and Mixpanel. Per-user drill downs would be nice and all features we need are supported by all three (custom events with extra data and session tracking).
Dying Heroku Resque Worker
We’ve got a resque worker on Heroku that dies instantly without any error. When we created one in a rails console it looked as though it was receiving a shutdown signal.
Remove unused bluetooth devices from your workstation
Do us all a solid and remove those ghost devices from your bluetooth settings pane. This will make it easier for others to pair them up with a new workstation.
GitGutter for Sublime Text
Do you use Sublime Text? Would you like to see a git line change indicator alongside your files?
Bonus: there’s a vim version! https://github.com/tpope/vim-fugitive
Twitter have release a js plugin for typeaheads:
Wednesday: Saturday Pair Exchange
Come take part in the the special new extended Pair Exchange event on Saturday from 12:30 – 5:30.
Tuesday: Tech Talk: Colin Shield on using Chef Server and Rails
Tuesday: is Extreme: Host Required
Host wanted for tonight’s Extreme Tuesday. Acquire within. Talk to Gavin, Andrew, Edgar, or anyone else involved.