General

Profile

gsamokovarov (Genadi Samokovarov)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 3 4

Activity

01/22/2023

10:16 AM Ruby Feature #15778: Expose an API to pry-open the stack frames in Ruby
What if we settle for an API and implement and test it first in the `debug` gem? The `debug` gem does need/has similar functionality for post-mortem debugging. That way, gems like `web-console` can depend on the `debug` standard gem whic... gsamokovarov (Genadi Samokovarov)

04/29/2019

04:22 PM Ruby Feature #15778: Expose an API to pry-open the stack frames in Ruby
As a case study, we may look at Python. They have such an API for 20+ years and I don't think anyone explicitly complained it makes Python slow or dangerous to use. The API is `sys._getframe` (https://docs.python.org/3/library/sys.html#s... gsamokovarov (Genadi Samokovarov)

04/20/2019

03:49 PM Ruby Feature #15778: Expose an API to pry-open the stack frames in Ruby
Yeah, it could be used to implement `Binding.of_caller`, but if we have the proposed API, we may not need actual `Binding.of_caller` as the tools can use `Kernel.caller_locations(debug: true)`. Our caller can be a C Frame in the case of ... gsamokovarov (Genadi Samokovarov)
02:27 AM Ruby Feature #15778 (Assigned): Expose an API to pry-open the stack frames in Ruby
Hello,
I'm the maintainer of the web-console (https://github.com/rails/web-console/) gem, where one of our features is to jump between the frames in which an error occurred. To accomplish this, I currently use the Debug Inspector CRub...
gsamokovarov (Genadi Samokovarov)

03/17/2019

09:13 AM Ruby Bug #15662: Fix CSV delegation to missing StringIO
We resolved it in https://github.com/ruby/csv/pull/80. Thank you @kou 🙇‍♂️! gsamokovarov (Genadi Samokovarov)

03/13/2019

04:14 PM Ruby Bug #15662: Fix CSV delegation to missing StringIO
I have opened a PR on GitHub's tracker with the changes: https://github.com/ruby/ruby/pull/2094 gsamokovarov (Genadi Samokovarov)
03:57 PM Ruby Bug #15662 (Closed): Fix CSV delegation to missing StringIO
If you create a CSV from raw content like:
csv = CSV.new("h1,h2")
You'll get method missing when calling `csv.path` but still, get `true` when you call `csv.respond_to?(:path)`.
This tricks 3rd party libraries like carrier...
gsamokovarov (Genadi Samokovarov)

08/23/2014

05:11 PM Ruby Bug #10164 (Closed): Reproducable segfault for 2.1
Hi,
I have a snippet of code that crashes Ruby 2.1.{1,2} every time for me.
~~~
class Exception
def set_backtrace_with_extension
set_backtrace_without_extension(*args)
end

alias set_backtrace_without_extension set...
gsamokovarov (Genadi Samokovarov)

11/13/2013

11:36 PM Ruby Feature #9107 (Rejected): Introduce YES and NO as aliases of true and false
I have a patch introducing the constants YES/NO as aliases of true/false. You can check it out here: https://github.com/gsamokovarov/ruby/compare/trunk...yes-no
While I don't expect this to be accepted, I think it can start a discussi...
gsamokovarov (Genadi Samokovarov)

Also available in: Atom