Created
October 1, 2011 07:58
-
-
Save roothybrid7/1255744 to your computer and use it in GitHub Desktop.
fixed gem dependency of rightresource.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gem uninstall rightresource | |
gem install rightresource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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