Skip to content

Instantly share code, notes, and snippets.

@roothybrid7
Created October 1, 2011 07:58
Show Gist options
  • Save roothybrid7/1255744 to your computer and use it in GitHub Desktop.
Save roothybrid7/1255744 to your computer and use it in GitHub Desktop.
fixed gem dependency of rightresource.
#!/usr/bin/env ruby
# coding: utf-8
require 'rubygems'
gem 'crack', '~>0.1.0'
require 'crack'
#gem 'rightresource', '=0.4.5' # with crack 0.1.8
#require 'right_resource'
# Core extensions of Hash
def test_params(id, params)
p params.to_params
#=> "server_settings=true"
end
test_params(1, :server_settings => 'true')
#!/bin/bash
gem uninstall rightresource
gem install rightresource
:001 > require 'rubygems'
=> false
:002 > require 'cap-rightscale'
=> true
:005 > {}.to_params
=> ""
:006 >
$ gem list
cap-rightscale (0.6.3)
capistrano (2.9.0)
crack (0.3.1, 0.1.8)
highline (1.6.2)
hoe (2.12.3)
json (1.6.1)
mime-types (1.16)
net-scp (1.0.4)
net-sftp (2.0.5)
net-ssh (2.2.1)
net-ssh-gateway (1.1.0)
rake (0.8.7)
rest-client (1.6.7)
rightresource (0.4.5)
wirble (0.1.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment