diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-05-15 22:25:19 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-06-02 16:51:13 -0500 |
commit | 246529fa5ef802058f7cf74adbf2342b89a71a59 (patch) | |
tree | 8872d36cb90844cc787daee880db1745c3c185e4 | |
parent | faaeccf2e0b06ed76dcb669ce309c8ab750b62c3 (diff) | |
download | bundler-246529fa5ef802058f7cf74adbf2342b89a71a59.tar.gz |
[RemoteSpecification] Avoid allocating an object every method_missing
-rw-r--r-- | lib/bundler/remote_specification.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/remote_specification.rb b/lib/bundler/remote_specification.rb index 29735fc6ab..235d5531fa 100644 --- a/lib/bundler/remote_specification.rb +++ b/lib/bundler/remote_specification.rb @@ -75,11 +75,7 @@ module Bundler end def method_missing(method, *args, &blk) - if Gem::Specification.new.respond_to?(method) - _remote_specification.send(method, *args, &blk) - else - super - end + _remote_specification.send(method, *args, &blk) end end end |