Skip to content

Instantly share code, notes, and snippets.

@rubiii
rubiii / readme.md
Created July 24, 2012 09:15 — forked from phoet/readme.md
Señor Developer Competition at eurucamp 2012

Ever seen these T-Shirts?

Señor Developer T-Shirt

Want one?

Get one for free at eurucamp!

If you are an attendee of eurucamp 2012, you get the chance to win a FREE Señor Developer t-shirt.

@rubiii
rubiii / FortuneFormatter.rb
Created June 20, 2011 20:40 — forked from thilko/FortuneFormatter.rb
A fortune rspec formatter. Make all your specs pass to get a new fortune!
require 'rspec/core/formatters/progress_formatter'
require "net/http"
class FortuneFormatter < RSpec::Core::Formatters::ProgressFormatter
def stop
super
print_fortune if all_passed?
end
def all_passed?
@rubiii
rubiii / gemspec
Created May 13, 2010 18:12 — forked from defunkt/gemspec
#!/usr/bin/env ruby
# Usage: gemspec [-s] GEMNAME
#
# Prints a basic gemspec for GEMNAME based on your git-config info.
# If -s is passed, saves it as a GEMNAME.gemspec in the current
# directory. Otherwise prints to standard output.
#
# Once you check this gemspec into your project, releasing a new gem
# is dead simple:
#
This example shows how to setup an environment running Rails 3 beta 3 under 1.9.2-head with a 'rails3' gem set.
∴ rvm update --head
# ((Open a new shell)) or do 'rvm reload'
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install 1.9.2-head
# Switch to 1.9.2-head and gemset rails3, create if it doesn't exist.
∴ rvm --create use 1.9.2-head@rails3
This example shows how to setup an environment running Rails 3 beta 3 under 1.9.2-head with a 'rails3' gem set.
∴ rvm update --head
# ((Open a new shell)) or do 'rvm reload'
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install 1.9.2-head
# Switch to 1.9.2-head and gemset rails3, create if it doesn't exist.
∴ rvm --create use 1.9.2-head@rails3
require 'rack/utils'
module Rack
#
# EnforceSSL is a Rack middleware app that enforces that users visit
# specific paths via HTTPS. If a sensitive path is requested over
# plain-text HTTP, a 307 Redirect will be issued leading to the HTTPS
# version of the Requested URI.
#
# MIT License - Hal Brodigan (postmodern.mod3 at gmail.com)
@rubiii
rubiii / Gemfile
Created February 10, 2010 11:06 — forked from samgranieri/Gemfile
source :gemcutter
gem 'rails', '~> 2.3.5', :require => nil
@rubiii
rubiii / Gemfile
Created February 9, 2010 20:57 — forked from samgranieri/Gemfile
source :gemcutter
gem 'rails', '~> 2.3.5', :require => nil
require 'rack/utils'
module Rack
#
# EnforceSSL is a Rack middleware app that enforces that users visit
# specific paths via HTTPS. If a sensitive path is requested over
# plain-text HTTP, a 307 Redirect will be issued leading to the HTTPS
# version of the Requested URI.
#
# MIT License - Hal Brodigan (postmodern.mod3 at gmail.com)