Skip to content

Commit

Permalink
Remove 100ms of delay every command :/
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Sep 28, 2012
1 parent 7f0d8ad commit 81e697c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/pry-debundle.rb
Expand Up @@ -39,10 +39,11 @@ def debundle!
loaded = false loaded = false


if rubygems_18? if rubygems_18?
Gem.post_reset_hooks.reject!{ |hook| hook.source_location.first =~ %r{/bundler/} } if Gem.post_reset_hooks.reject!{ |hook| hook.source_location.first =~ %r{/bundler/} }
Gem::Specification.reset Gem::Specification.reset
remove_bundler_monkeypatches remove_bundler_monkeypatches
loaded = true loaded = true
end


# Rubygems 1.6 — TODO might be quite slow. # Rubygems 1.6 — TODO might be quite slow.
elsif Gem.source_index && Gem.send(:class_variable_get, :@@source_index) elsif Gem.source_index && Gem.send(:class_variable_get, :@@source_index)
Expand Down
2 changes: 1 addition & 1 deletion pry-debundle.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "pry-debundle" s.name = "pry-debundle"
s.version = "0.4" s.version = "0.5"
s.platform = Gem::Platform::RUBY s.platform = Gem::Platform::RUBY
s.author = "Conrad Irwin" s.author = "Conrad Irwin"
s.email = "conrad.irwin@gmail.com" s.email = "conrad.irwin@gmail.com"
Expand Down

0 comments on commit 81e697c

Please sign in to comment.