records that we’re spending time in a function, it can also record the whole call stack so we can blame the callers too. To do this it needs a little help from us when we compile the program we’re profiling, i.e. the Ruby interpreter — we need to pass the -pg option to gcc . Unfortuna...
Here at Elabs, we’ve been using CanCan for authorization in a number of applications. Ryan Bates managed to build an authorization system which is both simple and powerful. A step away from the bloated role based system available at the time, yet more sophisticated than simply tacking...
describe '正しいユーザIDとパスワードを渡して認証した場合' before do @user_id = 'user_id_1' @password = 'password_1' @name = 'name_1' # ここから user_mock = mock('User') user_mock.should_receive(:id).and_return(@user_id) user_mock.should_receive(:name).and_return(@name) User.should_receive(:authenticate) .with(...
Here at Elabs, we’ve been using CanCan for authorization in a number of applications. Ryan Bates managed to build an authorization system which is both simple and powerful. A step away from the bloated role based system available at the time, yet more sophisticated than simply tacking...
require 'spec_helper' describe Modules::ResourceDestroyer do subject { Modules::ResourceDestroyer } describe :destroy_with_pusher do let(:resource) { mock('Resource', class: stub(Class, name: 'Resource')) } let(:retrospective) { mock(Retrospective) } let(:socket_id) { "1" } context 'w...
Project ID: 2691560 Project Type: Fixed Project Description: Come join four passionate guys in the early stages of our company before we begin to seek Angel funding. We've all worked at Silicon Valley venture-backed companies - one sold, one gone IPO - and know what it takes to succee...
sportdb/console - Try sport.db w/ Interactive Ruby Console Posted by geraldbauer on November 20, 2012 — 0 comments I've added support for the interactive Ruby console (irb) to the open sports database gem. Use irb -r sportdb/console and you're ready to go. Try en = Country.find_by_key...
My 2012 Mac setup for Ruby Development Posted by kfaustino on November 20, 2012 — 0 comments I just bought a new Macbook Air and decided to share my setup for Ruby development with Mountain Lion Comments Post a Comment Comment abilities for non registered users are currently deact...
November 16th, 2012 Despite Dave's raspy voice sounding like one of Marge Simpson's sisters, the show must go on! In the episode we cover speeding up your rails tests, a compilation of Rails 4 news, a way to win 1 million yen, request recorder, Chrome dev tools, and much much more. No...
Two weeks ago, JRuby 1.7.0 was officially released. Here are a few reasons why you might want to upgrade: Bug fixes JRuby 1.7.0 fixes many compatibility issues with ruby 1.9. Also, JRuby 1.6.8 is no longer being maintained so fixes from 1.7.0 are not getting backported. Support for in...
Pour accompagner notre croissance intersidérale, nous proposons le stage suivant : Stage Padawan Développeur Ruby on Rails (H/F) - à partir de Février ou Mars 2013 - « Why join the Navy if you can be a pirate ? » Rejoignez une startup d’une quinzaine de personnes, où vous serez au con...
Please try to keep submissions on topic and of high quality. Just because it has a computer in it doesn't make it programming. Memes and image macros are not acceptable forms of content. If there is no code in your link, it probably doesn't belong here. App demos should include code a...
Mid of October, the wonderful Ruby on Rails Team set foot to Munich. The free (!) workshop offered the possibility to I would say 50 participants, to build a webpage-application together. Starting at step A (downloading the necessary software) to step Z (deployment of the webpage – so...
Active Record Identity Map Posted by gravis on November 20, 2012 — 1 comment AR Identity Map makes it easier to stub Model dependencies, learn how it helps to test your controllers with ease here Comments Wont IdentityMap be gone with Rails 4?rmoriz - November 20, 2012 09:41 P...
Full-stack Application Tracing: follow distributed transactions from the browser, to the load balancer, to the web application, across service calls, to databases—you get the picture. Anywhere your app goes, TraceView performance monitoring follows. We’re way beyond averages: slice-an...
Pour accompagner notre croissance intersidérale, nous proposons le stage suivant : Stage Padawan Développeur Ruby on Rails (H/F) - à partir de Février ou Mars 2013 - « Why join the Navy if you can be a pirate ? » Rejoignez une startup d’une quinzaine de personnes, où vous serez au con...