aeris has quit [Remote host closed the connection]
aeris has joined #ruby
<depesz>
hi. is there any way to list all modules and classes that get created after I did some require '...' ?
perrierjouet has quit [Quit: WeeChat 3.6]
fercell has joined #ruby
donofrio has joined #ruby
fercell has quit [Ping timeout: 244 seconds]
donofrio_ has joined #ruby
donofrio__ has quit [Ping timeout: 268 seconds]
donofrio__ has joined #ruby
donofrio has quit [Ping timeout: 244 seconds]
donofrio_ has quit [Ping timeout: 264 seconds]
anokasion has quit [Remote host closed the connection]
jpn has joined #ruby
oxfuxxx has quit [Ping timeout: 264 seconds]
taiju` has joined #ruby
taiju` is now known as taiju
John_Ivan_ has joined #ruby
John_Ivan__ has joined #ruby
John_Ivan has quit [Ping timeout: 265 seconds]
protektwar has quit [Ping timeout: 250 seconds]
John_Ivan_ has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
<adam12>
depesz: You can hook into Tracepoint for this.
taiju has quit [Quit: rcirc on GNU Emacs 28.1]
<depesz>
can you point me in *any* direction, adam12? that's the first time i hear about "tracepoint", and while I did find https://ruby-doc.org/core-2.7.0/TracePoint.html - i'm not sure how can it help
<adam12>
depesz: gr33n7007h has a nice solution for ObjectSpace, which is just as well. I'd use Tracepoint if you absolutely need to know what files defined what, but if you only care about new modules/classes, maybe ObjectSpace is more straight forward.
<adam12>
depesz: Using tracepoint is similar; assign existing defined classes to variable. Setup trace on :end. When trace is triggered, check existing defined classes for existing constant, and check file path in trace event if necessary.
<depesz>
thx. will play with tracepoint, but for now gr33n7007h solution looks to be perfect
szkl has quit [Quit: Connection closed for inactivity]
<gr33n7007h>
depesz: here's a tracepoint solution adam12 suggested, to get you started.
<adam12>
gr33n7007h: I just figured we'd see if it's defining a new class/module or not. Check objectspace first, then decide if the `end` event triggered on an already known class or not.
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 264 seconds]
Sankalp- is now known as Sankalp
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gr33n7007h>
adam12: didn't think of that approach tbh but that seems the way to go about it.
_ht has joined #ruby
polishdub has joined #ruby
eddof13 has joined #ruby
nirvdrum has joined #ruby
nirvdrum has quit [Client Quit]
jpn has quit [Ping timeout: 250 seconds]
fercell has joined #ruby
reset has joined #ruby
fercell has quit [Ping timeout: 250 seconds]
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
gschanuel has joined #ruby
jpn has joined #ruby
Aminda has quit [Read error: Connection reset by peer]
aeris has quit [Read error: Connection reset by peer]
aeris has joined #ruby
Aminda has joined #ruby
donofrio has joined #ruby
markong has quit [Ping timeout: 264 seconds]
desnudopenguino has quit [Ping timeout: 244 seconds]
donofrio__ has quit [Ping timeout: 250 seconds]
jpn has quit [Ping timeout: 264 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
desnudopenguino has joined #ruby
Synthead has joined #ruby
<Synthead>
Hey weird question! Is there a way I can package up and create an "installer" for an app I'm working on for windows?
<Synthead>
I suppose I'd need to package ruby and some gems, then wrap it in an installer or something?
desnudopenguino has quit [Client Quit]
desnudopenguino has joined #ruby
<adam12>
Synthead: I'm not sure there's a great technique anymore. There was ruby2exe and another Windows variant.
<adam12>
Synthead: It might be worth exploring JRuby in this case. You can package it into a JAR using something like Warbler.
TomyWork has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Synthead has quit [Ping timeout: 244 seconds]
jpn has quit [Ping timeout: 265 seconds]
Synthead has joined #ruby
eddof13 has joined #ruby
cocalero has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
_ht has quit [Remote host closed the connection]
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
jpn has joined #ruby
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
perrierjouet has quit [Quit: WeeChat 3.6]
perrierjouet has joined #ruby
ur5us has joined #ruby
markong has joined #ruby
oxfuxxx has joined #ruby
Linux_Kerio has quit [Ping timeout: 250 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teclator has quit [Remote host closed the connection]
sagax has quit [Read error: Connection reset by peer]
oxfuxxx has quit [Ping timeout: 268 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
infinityfye has quit [Quit: Leaving]
littlebuddy has quit [Ping timeout: 252 seconds]
littlebuddy has joined #ruby
plujon has joined #ruby
fercell has joined #ruby
<plujon>
Greetings; I have a project dependent on an abandoned gem that appears to not work with ruby 3.0+. I'm thinking of updating it to work with Ruby 3.0, but my ruby-fu is a little weak.
<plujon>
The gem is The gem is https://github.com/stripe-ruby-mock/stripe-ruby-mock , and it fails with Ruby 3.0 because it does this: Stripe::StripeClient.send(:define_method, :execute_request) { |*args| instance.mock_request(*args) }
jpn has joined #ruby
fercell has quit [Ping timeout: 268 seconds]
<plujon>
And, as you may guess, the mock_request method has some named parameters with default values: def mock_request(method, url, api_key: nil, params: {}, headers: {})
jpn has quit [Ping timeout: 264 seconds]
<leftylink>
dang I was trying to figure out why I couldn't get it to fail then realised I'm testing on 2.7. very inattentive I was.