$ echo global > ~/.rbenv-gemsets
$ gem install bundler
$ cd my-project
$ echo "my-project-gemset global" > .rbenv-gemsets
$ bundle install
$ rbenv gemset create 1.9.3-p125 my-project-gemset
This file contains 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
require 'httparty' | |
require 'yaml' | |
require 'app_conf' | |
module Tickspot | |
class ApiAccess | |
include HTTParty | |
def initialize(site, u, p) | |
@auth = {email: u, password: p} |
This file contains 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
$ sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql 1 ↵ ✹ ✭master ‹1.9.3-p125› | |
Successfully installed mysql-2.8.1 | |
$ sudo gem uninstall mysql ✹ ✭master ‹1.9.3-p125› | |
Successfully uninstalled mysql-2.8.1 | |
$ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config ✹ ✭master ‹1.9.3-p125› | |
Fetching: mysql-2.8.1.gem (100%) | |
ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. |
This file contains 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
Call Info: | |
Identity: rtsman | |
Duration: 00:27 | |
Start Time: 22:35 | |
Type: 1 | |
Status: 7 | |
Call Debug Info for rtsman: | |
ObjID: 29037 | |
Codec: SILK_V3 |
This file contains 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
$ ruby -v | |
ruby 1.8.7 (2011-12-28 MBARI 8/0x6770 on patchlevel 357) [i686-darwin11.3.0], MBARI 0x6770, Ruby Enterprise Edition 2012.01 | |
$ rails -h | |
/Users/ivaughan/.rbenv/versions/ree-1.8.7-2012.01/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) | |
from /Users/ivaughan/.rbenv/versions/ree-1.8.7-2012.01/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support.rb:57:in `require' | |
from /Users/ivaughan/.rbenv/versions/ree-1.8.7-2012.01/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support.rb:57 | |
from /Users/ivaughan/.rbenv/versions/ree-1.8.7-2012.01/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails_generator.rb:31:in `require' | |
from /Users/ivaughan/.rbenv/versions/ree-1.8.7-2012.01/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails_generator.rb:31 | |
from /Users/ivaughan/.rbenv/versions/ree-1.8.7-2012.01/lib/ruby/gems/1.8/gems/rails-2.3.8/bin/rails:15:in `require' |
This file contains 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
gem 'resque', :require => "resque/server" | |
gem 'sinatra', '0.9.2' | |
gem 'resque-scheduler', :require => 'resque_scheduler' |
This file contains 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
# curl -u "user:password" https://api.github.com/orgs/:org/repos | |
require 'httparty' | |
require 'pp' | |
class GitHub | |
include HTTParty | |
base_uri 'https://api.github.com' | |
def initialize(u, p) |
This file contains 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 bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |