Skip to content

Instantly share code, notes, and snippets.

Index: lib/irb/completion.rb
===================================================================
--- lib/irb/completion.rb (revision 44773)
+++ lib/irb/completion.rb (working copy)
@@ -229,7 +229,8 @@
if Readline.respond_to?("basic_word_break_characters=")
# Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{("
- Readline.basic_word_break_characters= " \t\n`><=;|&{("
+# Readline.basic_word_break_characters= " \t\n`><=;|&{("
require_relative 'library'
module Dylan
extend Fiddle::Library
ffi_lib "_build/lib/libdylan.dylib",
"_build/lib/libcommon-dylan.dylib",
"_build/lib/libc-ffi.dylib",
"_build/lib/libfiddle.dylib"
@zzak
zzak / .bashrc
Created February 21, 2014 00:31
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w 🐱 "
From f302079d97b5c139b56f1acd2d516be52351c4fe Mon Sep 17 00:00:00 2001
From: Zachary Scott <zachary@zacharyscott.net>
Date: Sun, 23 Feb 2014 20:19:15 +1100
Subject: [PATCH] :scissors:
This commit also addresses rails/docrails#169 and rails/rails#14159
---
actionmailer/README.rdoc | 2 +-
actionmailer/lib/action_mailer/base.rb | 2 +-
actionpack/lib/action_dispatch/middleware/cookies.rb | 2 +-
$ bundle --version
Bundler version 1.5.3
$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
ObjectSpace::AllocationTracer.trace do
5.times do
foo = "foo".freeze
end
end
#=> {}
# ruby 2.2.0dev (2014-02-20 trunk 45059) [x86_64-linux]
obj = Object.new
100_000.times do |i|
obj.respond_to?("sym#{i}".to_sym)
end
GC.start
puts"symbol : #{Symbol.all_symbols.size}"
ERROR: While executing gem ... (Gem::DependencyError)
Unresolved dependency found during sorting - rspec (~> 2.14) (requested by foo-0.0.2, have foo-0.0.2, rspec-2.99.0.beta2, rspec-mocks-2.99.0.beta2, rspec-expectations-2.99.0.beta2, rspec-core-2.99.0.beta2, diff-lcs-1.2.5)
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:337:in `block in tsort_each_child'
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:326:in `each'
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:326:in `tsort_each_child'
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:411:in `call'
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:411:in `each_strongly_connected_component_from'
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:322:in `each'
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:322:in `tsort_each_node'
ruby -Ilib bin/gem install foo-0.0.2.gem --backtrace
ERROR: While executing gem ... (Gem::DependencyError)
Unresolved dependency found during sorting - rspec (~> 2.14) (requested by foo-0.0.2, have foo-0.0.2, rspec-2.99.0.beta2, rspec-mocks-2.99.0.beta2, rspec-expectations-2.99.0.beta2, rspec-core-2.99.0.beta2, diff-lcs-1.2.5)
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:337:in `block in tsort_each_child'
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:326:in `each'
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:326:in `tsort_each_child'
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:411:in `call'
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:411:in `each_strongly_connected_component_from'
/Users/zscott/.rubies/ruby-trunk/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
/Users/zscott/projects/rubygems/lib/rubygems/request_set.rb:322:in `each'
DEBUG_RESOLVER=1 ruby -Ilib bin/gem install foo-0.0.2.gem --backtrace --explain
TRY [[Dependency request foo (= 0.0.2) requested by nil], :toplevel]
NEXT5 (0 entries)
SPECS (0 entries)
ACTIVATE ["foo-0.0.2", 2]
POSSIBLE [[APISpecification
name: foo
version: 0.0.2