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
IRB.conf[:AUTO_INDENT] = true | |
require 'rubygems' | |
require 'wirble' | |
require 'irb_edit' | |
Wirble.init | |
Wirble.colorize |
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
# Giles Bowkett, Greg Brown, and several audience members from Giles' Ruby East presentation. | |
# hacked a touch by mpd to work with modern distributions. | |
require 'tempfile' | |
class InteractiveEditor | |
attr_accessor :editor | |
def initialize(editor = :vim) | |
@editor = editor.to_s | |
if @editor == "mate" |
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
I, [2009-10-20T10:23:06.616194 #13378] INFO -- : reaped #<Process::Status: pid=13382,exited(1)> worker=0 | |
I, [2009-10-20T10:23:06.616808 #13378] INFO -- : worker=0 spawning... | |
I, [2009-10-20T10:23:06.618596 #13383] INFO -- : worker=0 spawned pid=13383 | |
I, [2009-10-20T10:23:06.618943 #13383] INFO -- : Refreshing Gem list | |
/opt/local/lib/ruby/1.8/net/http.rb:560:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED) | |
from /opt/local/lib/ruby/1.8/net/http.rb:560:in `open' | |
from /opt/local/lib/ruby/1.8/net/http.rb:560:in `connect' | |
from /opt/local/lib/ruby/1.8/timeout.rb:53:in `timeout' | |
from /opt/local/lib/ruby/1.8/timeout.rb:93:in `timeout' | |
from /opt/local/lib/ruby/1.8/net/http.rb:560:in `connect' |
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
<i> Installing Ruby Enterprise Edition from source to: /Users/mpd/.rvm/ree-1.8.7-20090928) </i> | |
-bash: /Users/mpd/.rvm/src/ree-1.8.7-20090928)/*: No such file or directory | |
-bash: [: argument expected | |
<i> Downloading ruby-enterprise-1.8.7-20090928), this may take a while depending on your connection... </i> | |
-bash: syntax error near unexpected token `)' | |
<i> Extracting ruby-enterprise-1.8.7-20090928)... </i> | |
mv: rename /Users/mpd/.rvm/src/ruby-enterprise-1.8.7-20090928) to /Users/mpd/.rvm/src/ree-1.8.7-20090928): No such file or directory | |
-bash: cd: /Users/mpd/.rvm/src/ree-1.8.7-20090928): No such file or directory | |
<i> Installing ree-1.8.7-20090928), this may take a while, depending on your cpu(s)... </i> | |
chmod: /Users/mpd/.rvm/ree-1.8.7-20090928)/bin/*: No such file or directory |
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
~ stack level too deep - (SystemStackError) | |
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:118:in `saved?' | |
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:108:in `new?' | |
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:580:in `dirty_self?' | |
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:595:in `dirty_parents?' | |
/Users/mpd/relife/app/controllers/characters.rb:77:in `any?' | |
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:594:in `each' | |
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:594:in `any?' | |
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:594:in `dirty_parents?' | |
/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/resource.rb:595:in `dirty_parents?' |
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 | |
require 'dm-core' | |
class Foo | |
include DataMapper::Resource | |
property :id, Serial | |
has n, :bars | |
end |
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 | |
require 'dm-core' | |
require 'dm-sweatshop' | |
class Foo | |
include DataMapper::Resource | |
property :id, Serial | |
has n, :bars |
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
#0 0x33cad2fc in rb_eval () from /usr/local/lib/libruby18.so.18 | |
#1 0x33cad65f in rb_eval () from /usr/local/lib/libruby18.so.18 | |
#2 0x33cacc2f in rb_yield_0 () from /usr/local/lib/libruby18.so.18 | |
#3 0x33cad2e7 in rb_yield () from /usr/local/lib/libruby18.so.18 | |
#4 0x33c8e47e in rb_ary_each () from /usr/local/lib/libruby18.so.18 | |
#5 0x33ca6e7e in call_cfunc () from /usr/local/lib/libruby18.so.18 | |
#6 0x33cb11b6 in rb_call0 () from /usr/local/lib/libruby18.so.18 | |
#7 0x33cb1db4 in rb_call () from /usr/local/lib/libruby18.so.18 | |
#8 0x33caed5a in rb_eval () from /usr/local/lib/libruby18.so.18 | |
#9 0x33cadefd in rb_eval () from /usr/local/lib/libruby18.so.18 |
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
1) | |
TypeError in 'SEL with STI subclasses with yaml before(:all)' | |
can't dump anonymous class Class | |
/usr/local/lib/ruby/1.8/yaml/rubytypes.rb:6:in `to_yaml' | |
/usr/local/lib/ruby/1.8/yaml/rubytypes.rb:41:in `node_export' | |
/usr/local/lib/ruby/1.8/yaml/rubytypes.rb:41:in `add' | |
/usr/local/lib/ruby/1.8/yaml/rubytypes.rb:41:in `to_yaml' | |
/usr/local/lib/ruby/1.8/yaml/rubytypes.rb:40:in `each' | |
/usr/local/lib/ruby/1.8/yaml/rubytypes.rb:40:in `to_yaml' | |
/usr/local/lib/ruby/1.8/yaml/rubytypes.rb:39:in `map' |
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 | |
require 'dm-core' | |
class Foo | |
include DataMapper::Resource | |
property :id, Serial | |
property :name, String |