Skip to content

Commit d348800

Browse files
committed
Remove wirble and bundler hack
1 parent 67d8546 commit d348800

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

irbrc

-46
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ require "rubygems"
33
puts "#{RUBY_VERSION} p#{RUBY_PATCHLEVEL} (#{RUBY_RELEASE_DATE}) #{RUBY_PLATFORM}"
44
IRB.conf[:PROMPT_MODE] = :DEFAULT
55

6-
# Hack to load gems outside of bundler
7-
#
8-
# https://gist.github.com/794915
9-
if defined?(::Bundler)
10-
$LOAD_PATH.concat Dir.glob("#{ENV['rvm_ruby_global_gems_path']}/gems/*/lib")
11-
end
12-
136
# Quick and dirty benchmarking
147
#
158
# quick(10) { sleep 0.1 }
@@ -31,45 +24,6 @@ def measure_time
3124
result
3225
end
3326

34-
# Wirble https://github.com/blackwinter/wirble
35-
begin
36-
require 'wirble'
37-
Wirble.init
38-
39-
colors = Wirble::Colorize.colors.merge({
40-
:comma => :light_gray,
41-
:refers => :light_gray,
42-
43-
:open_hash => :light_gray,
44-
:close_hash => :light_gray,
45-
:open_array => :light_gray,
46-
:close_array => :light_gray,
47-
48-
:open_object => :blue,
49-
:object_class => :purple,
50-
:object_addr_prefix => :blue,
51-
:object_line_prefix => :blue,
52-
:close_object => :blue,
53-
54-
:symbol => :yellow,
55-
:symbol_prefix => :yellow,
56-
57-
:open_string => :dark_gray,
58-
:string => :yellow,
59-
:close_string => :dark_gray,
60-
61-
:number => :cyan,
62-
:keyword => :green,
63-
:class => :green,
64-
:range => :red,
65-
})
66-
67-
Wirble::Colorize.colors = colors
68-
Wirble.colorize
69-
rescue LoadError => err
70-
warn "Couldn't load Wirble: #{err}"
71-
end
72-
7327
# Method lookup http://github.com/oggy/looksee
7428
#
7529
# lp variable

0 commit comments

Comments
 (0)