21 April 2014

The Ruby Reflector



  Source Favicon
By Mike Gunderloy of A Fresh Cup over 2 years ago.

…3.1, MongoDB, MongoMapper, Devise, CanCan, OmniAuth, and Twitter Bootstrap.

Moxy - " Programmable mock proxy", that is, a Rack-based server that lets you tell it what to return for testing purposes.

Felix's Node.js Guide - Lots of material here, including a beginner's guide and a style guide.

snowday - Test result formatter for RSpec featuring snowmen.

Jenx - OS X monitor for Jenkins with Growl integration. …

afreshcup.com Read
  Source Favicon
By Peter Cooper of Ruby Inside over 2 years ago.

Example Rails 3.1.1 App using Mongoid and OmniAuth 1.0

With OmniAuth 1.0 out just last week, it's great to see Daniel Kehoe has updated his popular Rails 3.1 example app to the latest and greatest. If you want to see how to bring Mongoid and OmniAuth together with Rails 3.1, this is a great place to start.

RBzip2: A Pure Ruby Implementation of the bzip2 ( De)Compression Algorithm

Sinatra-Static: Turn a Sinatra App into a Static Site

rubyinside.com Read
  Source Favicon

…thoughtbot/clearance-twitter was a Twitter OAuth library that played nicely with Clearance. Omniauth is the bomb and should be used instead.

Deleting forks

Some projects were forks where we needed to add additional functionality or fix bugs. We're deleting those repos and mentioning them here with alternatives in case you were ever using one of our forks.

Ancestry allows the records of a Ruby on Rails ActiveRecord model to be organised as a tree structure (or …

robots.thoughtbot.com Read
  Source Favicon
By Nick Plante of Zerosum Dirt(nap) 3 years ago.

OAuth integration testing to be easy, you'll want to make sure you're using the OmniAuth 0.2.0 or later. Among it's many fine features is a new integration test_mode that makes testing OAuth logins less sucky than it's ever been before. Fortunately for us, Capybara and OmniAuth go together like giant chocholate swamp rat and creamy peanut butter. It pretty much works right out of the box.

To demonstrate, let's add a nice little integration auth helper …

blog.zerosum.org Read
  Source Favicon
By Trevor of Trevor Turk 3 years ago.

Musings from Boulder - Testing OmniAuth based login via Cucumber

This morning we needed to write a Cucumber scenario to test that a user could log into the system using Google Apps.

Tabs - Interface Icons for iOS & Designers

rmm5t/jquery-timeago - GitHub

Timeago is a jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. "4 minutes ago").

A Few ObjectId Tricks // MongoTips by John Nunemaker …

almosteffortless.com Read
  Source Favicon
On SD Ruby Podcast 3 years ago.

Kevin Ball shows how the traditional model of username/password authentication is dying, and how Omniauth makes it all rainbows and sunshine going forward.

sdruby.org Read
  Source Favicon

Step One: OmniAuth Up and Running

First we'll need to include OmniAuth in our Gemfile . Just add it like so: gem 'omniauth'

Next, we should configure OmniAuth for our Google Apps login. Note that you can add this even if you're already using a different Google Apps strategy for OmniAuth. Create the file config/initializers/omniauth.rb and put this in it: Rails.application.config.middleware.use OmniAuth::Builder do |b| provider :google_apps, :domain => …

intridea.com Read
  Source Favicon
By Kevin Gisi of Intridea - Company Blog over 3 years ago.

Flexible Authentication with OmniAuth

Our Director of Product Innovation, Michael Bleigh , was hard at work this year writing a Ruby library to simplify all of the different logging-in strategies that today's web applications try to leverage. Whether it's Twitter, Facebook, or even FourSquare, the OmniAuth library handles it all with ease. The library was used heavily in the 2010 Rails Rumble competition. Here's what Michael had to say about …

intridea.com Read
  Source Favicon
By Rodrigo Flores of Plataformatec Blog over 3 years ago.

…internals, because it is already tested in gem's tests, so we go to the next step: testing the OmniAuth callback.

Testing OmniAuth callbacks is in general cumbersome but for OAuth2 providers it is a bit easier as it uses Faraday internally to connect to the provider. With Faraday, we can configure a test adapter and stub calls to return what we want.

The OmniAuth strategy provides an entry point to the Faraday connection, but we don't have an access to the strategy …

blog.plataformatec.com.br Read
  Source Favicon
By jeff of Comments on: blog over 3 years ago.

Interesting tidbits from around the web (December 16th):

sferik/rails_admin - GitHub - a Rails 3 admin interface (think MerbAdmin or Typus) built as a rails engine

Multiple Applications with Devise, Omniauth and Single Sign On « Josh Software - Where Programming is an Art! - Gautam shows how to stand up a couple rails apps that share single sign on with devise and omniauth

blog.thequeue.net Read