General

Profile

davidsiaw (David Siaw)

  • Login: davidsiaw
  • Registered on: 07/20/2016
  • Last sign in: 02/10/2020

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

02/17/2020

09:04 AM Ruby Bug #16618: Ensure called twice when raise in ensure
I found another issue with this where
```ruby
def meow
puts 'start'
begin
return
puts 'should not run'
rescue
puts 'inner rescue'
ensure
puts 'inner ensure'
end
rescue
puts 'rescue'
ensure
puts 'ensure'
r...
davidsiaw (David Siaw)

02/10/2020

02:13 AM Ruby Bug #16618 (Closed): Ensure called twice when raise in ensure
Under very specific circumstances (a `return` with code after it), a `raise` in an `ensure` block causes the `ensure` block to be called twice after rescuing in a `rescue` block above it.
Here is a very small reproduction case:
```...
davidsiaw (David Siaw)

07/20/2016

06:17 AM Ruby Bug #12601 (Third Party's Issue): Ruby 2.3 Gem.datadir returns wrong directory when referring to gem data directory
In Ruby 2.2.2 I used to be able to refer to a gem's source directory in Gemfile, for example "/Users/david/programs/weaver", and Gem.datadir would return the data directory in that dir "/Users/david/programs/weaver/data/weaver".
Howev...
davidsiaw (David Siaw)

Also available in: Atom