ruby-changes:56359
From: Kazuhiro <ko1@a...>
Date: Wed, 3 Jul 2019 19:29:56 +0900 (JST)
Subject: [ruby-changes:56359] Kazuhiro NISHIYAMA: e44c9b1147 (master): Try to avoid `not delagated` error
https://git.ruby-lang.org/ruby.git/commit/?id=e44c9b1147 From e44c9b11475d0be2f63286c1332a48da1b4d8626 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Wed, 3 Jul 2019 19:25:05 +0900 Subject: Try to avoid `not delagated` error ``` .../ruby/lib/delegate.rb:405:in `__getobj__': not delegated (ArgumentError) ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian9/ruby-master/log/20190703T063006Z.fail.html.gz diff --git a/lib/tempfile.rb b/lib/tempfile.rb index f703709..4678a19 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -234,7 +234,7 @@ class Tempfile < DelegateClass(File) https://github.com/ruby/ruby/blob/trunk/lib/tempfile.rb#L234 # :stopdoc: def inspect - if closed? + if @tmpfile.closed? "#<#{self.class}:#{path} (closed)>" else "#<#{self.class}:#{path}>" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/