havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview1: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
_whitelogger has joined #ruby
Thanzex has joined #ruby
weaksauce has joined #ruby
victori has joined #ruby
Pixi has joined #ruby
kaivai has joined #ruby
keypresser86 has joined #ruby
passbe has joined #ruby
r3m has joined #ruby
duderonomy has joined #ruby
jmcgnh has joined #ruby
glider has joined #ruby
crespire1 has quit [Ping timeout: 246 seconds]
reset has joined #ruby
TomyWork has quit [Remote host closed the connection]
caedmon has joined #ruby
Linux_Kerio has joined #ruby
caedmon has quit [Ping timeout: 252 seconds]
brokkoli_origin has quit [Ping timeout: 246 seconds]
brokkoli_origin has joined #ruby
caedmon has joined #ruby
<johnjaye> is that about maintaining multiple versions of ruby itself? or something like python venv/
caedmon has quit [Ping timeout: 246 seconds]
caedmon has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
caedmon has quit [Ping timeout: 244 seconds]
keypresser86 has quit []
<libsys> I'm creating tests, and I'm having a hard time trying to test with a static data source (a ruby file)... probably I should use dependency injection? which other approach could I use?
<libsys> In my tests, I could simply replace the static method that loads the data. But that seems like could cause more problems in the future. If I could stub such method only for the calls made from that test file but affecting the internal calls on the model class, that would work.
<libsys> but IDK how to do that
dorian has quit [Remote host closed the connection]
caedmon has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
gr33n7007h has joined #ruby
_ht has joined #ruby
Sankalp has quit [Ping timeout: 264 seconds]
Sankalp has joined #ruby
caedmon has quit [Ping timeout: 264 seconds]
<leftylink> hmm, what was that thing you do to change irc colours? blue on black just does not do it for me.
<leftylink> s/irc/irb/
<leftylink> my goodness that was a bad mistake to make
_ht has quit [Remote host closed the connection]
<leftylink> completely changes the meaning of that sentence
<leftylink> okay so the thing you do to change irb colours was https://irclog.whitequark.org/ruby/2021-01-13
<leftylink> so there you have it
<graaff> https://github.com/ruby/reline/pull/413 has a non-monkey patch solution editing .inputrc (with a new enough reline gem)
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
teclator has joined #ruby
<wakaflaka> im hoping my color scheme will be the new irssi default some day
CrazyEddy has quit [Ping timeout: 245 seconds]
CrazyEddy has joined #ruby
MarvelousWololo has quit [Read error: Connection reset by peer]
swaggboi has quit [Remote host closed the connection]
TomyWork has joined #ruby
nmollerup has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
hansolo has quit [Read error: Connection reset by peer]
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #ruby
shokohsc56 has joined #ruby
shokohsc5 has quit [Ping timeout: 252 seconds]
shokohsc56 is now known as shokohsc5
hansolo has joined #ruby
brw has quit [Read error: Connection reset by peer]
brw has joined #ruby
Pixi` has joined #ruby
Pixi has quit [Ping timeout: 246 seconds]
<ox1eef_> isene: I don't get it. How is it a shell if it is handing most of the work to /bin/sh ? There's so much that's not done in that case. And your shell inherits the defaults of another shell, although arguably it should be in control of that.
thisirs has joined #ruby
<isene> Handing the job to sh, handing the job to Ruby modules... I just need a better experience in the terminal than what I've had with my ultra-tuned zsh for the past 15 years.
sagax has quit [Ping timeout: 264 seconds]
thisirs has quit [Ping timeout: 260 seconds]
<ox1eef_> Well - fair enough, if it meets your needs that's fair but to be an actual shell I think you'd have to re-implement what sh is doing for you.
<ox1eef_> For example, background jobs. I don't see how you could do that with /bin/sh. Or how you'd put a process into the background and bring it back to the foreground.
<ox1eef_> Plus all the shell builtins. You can rely on sh for that but since it is a process that stays in memory for one command, there's no persistence.
<wakaflaka> isene: i have a clean cut between them, ultra-finetuned zsh for file/folder operations and ruby only for high level app stuff
<wakaflaka> only way ill use ruby for file/folder operations is if it requires API access and other stuff like parsing/scraping
<ox1eef_> The idea definitely has potential. But for me it needs to be more than a /bin/sh wrapper.
<wakaflaka> https://gist.github.com/enteruserlol/f32da1499b08272c20451e15b793b9a4 i tried converting them to ruby, but it just doesn't feel right
<ox1eef_> 404
<wakaflaka> its not "high level" enough imho, i now a lot of y'all are gonna disagree, but zsh wins this one :|
<wakaflaka> try again? i just made it public
<ox1eef_> No dice.
Pixi has joined #ruby
<isene> ox1eef_: Why exactly does it have to be more than an sh wrapper?
<ox1eef_> For the reasons I just gave, and then some. For example, can I set a variable and access it in the next command?
Pixi` has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 244 seconds]
<ox1eef_> And what is the language of the shell - I would expect it to be Ruby, that's one of the main benefits, but passing Ruby code to /bin/sh is not going to work. You need a Ruby process that's evaluating the input and keeping what you've entered in memory.
landsl21 has joined #ruby
gr33n7007h has joined #ruby
thisirs has joined #ruby
<isene> The last part you can already do in rsh. The first part should be very easy. Thanks for the tip.
landsl21 has quit [Remote host closed the connection]
landsl21 has joined #ruby
thisirs has quit [Ping timeout: 244 seconds]
thisirs` has joined #ruby
<ox1eef_> And what about /etc/profile, ~/.profile, ~/.rshrc - does rsh support those (and evaluate them as Ruby) ? And important, does sh evaluate them too ? Is there a conflict ?
some14u has joined #ruby
<ox1eef_> There just seems to be a ton of reasons to not rely on /bin/sh, even though it would set progress back initially.
some14u has quit [Client Quit]
hightower3 has quit [Ping timeout: 245 seconds]
kaivai has quit [Ping timeout: 245 seconds]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaivai has joined #ruby
some14u has joined #ruby
user23 has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
ASLDC-worker-386 has joined #ruby
ASLDC-worker-386 has quit [Max SendQ exceeded]
hightower2 has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
svdasein has quit [Remote host closed the connection]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
thisirs` has quit [Ping timeout: 244 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
whysthatso125070 has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
<isene> None of those objectionable are relevant to my use cases, for now. I just need to resolve the mentioned issue with less (and such) 🤗
<ox1eef_> Roger roger.
swaggboi has joined #ruby
ralu1 has quit [Remote host closed the connection]
ralu1 has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
MarvelousWololo has joined #ruby
szkl has joined #ruby
caedmon has joined #ruby
John_Ivan_ has quit [Remote host closed the connection]
John_Ivan_ has joined #ruby
John_Ivan_ has quit [Remote host closed the connection]
caedmon has quit [Ping timeout: 245 seconds]
whysthatso125070 has quit [Quit: The Lounge - https://thelounge.chat]
eddof13 has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
John_Ivan has joined #ruby
_ht has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
John_Ivan has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
John_Ivan has joined #ruby
whysthatso125070 has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 264 seconds]
desnudopenguino1 is now known as desnudopenguino
konsolebox has joined #ruby
ua_ has quit [Ping timeout: 246 seconds]
Pixi has quit [Ping timeout: 244 seconds]
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ruby
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
Pixi has joined #ruby
ua_ has joined #ruby
Pixi` has joined #ruby
graywolf has joined #ruby
Pixi has quit [Ping timeout: 240 seconds]
caedmon has joined #ruby
dfdx has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
dfdx has left #ruby [#ruby]
caedmon has joined #ruby
m_antis is now known as phreak
phreak is now known as phr34k
landsl21 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
caedmon has quit [Ping timeout: 245 seconds]
some14u has joined #ruby
some14u has quit [Client Quit]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
weyhmueller_ has joined #ruby
yosafbridge` has joined #ruby
nemesit|znc has joined #ruby
peder_ has joined #ruby
cata has quit [*.net *.split]
sgtapple has quit [*.net *.split]
nemesit has quit [*.net *.split]
sarna has quit [*.net *.split]
sts has quit [*.net *.split]
gigamo has quit [*.net *.split]
weyhmueller has quit [*.net *.split]
peder has quit [*.net *.split]
Fusl_ has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
eof has quit [*.net *.split]
peder_ is now known as peder
summerisle has joined #ruby
Fusl_ has joined #ruby
cata has joined #ruby
sgtapple has joined #ruby
sts has joined #ruby
gigamo has joined #ruby
gigamo has quit [Signing in (gigamo)]
gigamo has joined #ruby
sarna has joined #ruby
<havenwood> wakaflaka: link you posted still isn't public
<havenwood> leftylink: Haha, "An, ahem, answer, of sorts for how to change default IRB colors"
<havenwood> leftylink: I swear there has since been a bugs.ruby-lang.org issues about a better API for color preferences but don't have a link handy.
Linux_Kerio has quit [Ping timeout: 244 seconds]
MarvelousWololo has quit [Ping timeout: 258 seconds]
shokohsc59 has joined #ruby
shokohsc5 has quit [Ping timeout: 244 seconds]
shokohsc59 is now known as shokohsc5
<lester29> is doing exercises from project euler, spoj in free time a good way to learn ruby?
_ht has quit [Quit: _ht]
<weaksauce> lester29 it's ok. project euler is more math oriented
<weaksauce> i'd say those little coding challenges aren't all that great at teaching much but some can be
<weaksauce> advent of code had a few years where you had to build a computer which might be more instructive
<ox1eef_> codewars.com
konsolebox has quit [Quit: -a- IRC for Android 2.1.60]
konsolebox has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
keypresser86 has joined #ruby
gr33n7007h has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
gr33n7007h has quit [Ping timeout: 258 seconds]
gr33n7007h has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
graywolf has quit [Quit: WeeChat 4.0.0]
tomtmym has quit [Quit: Gone.]
rvalue has joined #ruby
victori has joined #ruby
some14u has joined #ruby
user23 has quit [Remote host closed the connection]
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
konsolebox has quit [Ping timeout: 246 seconds]
some14u has joined #ruby
konsolebox has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
some14u has joined #ruby
some14u has quit [Client Quit]
ollysmith has quit [Ping timeout: 246 seconds]
ollysmith has joined #ruby
Pixi__ has joined #ruby
Pixi` has quit [Ping timeout: 244 seconds]