lib/yard/cli/diff.rb in yard-0.8.4.1 vs lib/yard/cli/diff.rb in yard-0.8.5
- old
+ new
@@ -184,10 +184,10 @@
def expand_gem(gemfile, io)
tmpdir = File.join(Dir.tmpdir, gemfile)
log.info "Expanding #{gemfile} to #{tmpdir}..."
FileUtils.mkdir_p(tmpdir)
- Gem::Package.open(io) do |pkg|
+ Gem::Package.send(:open, io) do |pkg|
pkg.each do |entry|
pkg.extract_entry(tmpdir, entry)
end
end
tmpdir
\ No newline at end of file