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
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>
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]