adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
eddof13 has joined #ruby
<adam12> weaksauc_: I really wanted something like Heex (Elixir) for Ruby. But building an HTML parser kind of turned me off :)
<adam12> I have high hopes for Phlex.
<adam12> The issue with the Ruby based template languages has been performance. A couple strings concatted vs 100's of method calls.
Pixi__ has quit [Read error: Connection reset by peer]
Pixi__ has joined #ruby
<adam12> Rubykaigi day 2 videos, where you at
m_antis has quit [Quit: ZNC - https://znc.in]
m_antis has joined #ruby
<madprops> it's a let down that this bug still exists https://github.com/rubygems/rubygems/issues/3206
<madprops> it's asking for sudo password multiple times
<adam12> madprops: yeah that sucks.
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
eddof13 has quit [Quit: Textual IRC Client: www.textualapp.com]
mbarbar has quit [*.net *.split]
mbarbar has joined #ruby
mbarbar has quit [*.net *.split]
mbarbar has joined #ruby
Laplace has quit [Quit: Connection closed for inactivity]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
ikonia has quit [Ping timeout: 260 seconds]
ikonia has joined #ruby
markong has quit [Ping timeout: 255 seconds]
Pixi` has joined #ruby
Pixi__ has quit [Ping timeout: 272 seconds]
D_A_N has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp- is now known as Sankalp
cocalero has joined #ruby
rvalue has quit [Ping timeout: 240 seconds]
mooff has quit [Remote host closed the connection]
mooff has joined #ruby
D_A_N_ has joined #ruby
rvalue has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 250 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rvalue has quit [Ping timeout: 272 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
rvalue has joined #ruby
reset has quit [Quit: reset]
D_A_N_ has quit [Quit: leaving]
Sheilong has quit []
seisatsu has quit [*.net *.split]
bougyman has quit [*.net *.split]
Milos has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
ule has quit [*.net *.split]
cognemo has quit [*.net *.split]
croberts has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
croberts has joined #ruby
seisatsu has joined #ruby
ule has joined #ruby
cognemo has joined #ruby
yosafbridge has joined #ruby
Milos has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
bougyman has joined #ruby
dka has quit [Ping timeout: 268 seconds]
dka has joined #ruby
darkstardevx has quit [*.net *.split]
weaksauc_ has quit [*.net *.split]
johnjaye has quit [*.net *.split]
johnjaye has joined #ruby
darkstardevx has joined #ruby
weaksauce has joined #ruby
D_A_N has quit [Quit: leaving]
jmcgnh has joined #ruby
con3 has quit [*.net *.split]
dcx has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
asio_ has quit [*.net *.split]
ruby[bot] has quit [*.net *.split]
Xeago has quit [*.net *.split]
frodl has quit [*.net *.split]
Bounga has quit [*.net *.split]
caleb has quit [*.net *.split]
g_sg has quit [*.net *.split]
KOTP has quit [*.net *.split]
matta has quit [*.net *.split]
alexisg has quit [*.net *.split]
graemefawcett has quit [*.net *.split]
itok has quit [*.net *.split]
vito has quit [*.net *.split]
ringo__ has quit [*.net *.split]
joenoon has quit [*.net *.split]
jposer has quit [*.net *.split]
ccooke has quit [*.net *.split]
eof has quit [*.net *.split]
asio has joined #ruby
olspookishmagus has joined #ruby
Bounga has joined #ruby
graemefawcett has joined #ruby
dka has quit [Ping timeout: 268 seconds]
ccooke has joined #ruby
itok has joined #ruby
vito has joined #ruby
con3 has joined #ruby
vito has quit [Changing host]
vito has joined #ruby
frodl has joined #ruby
joenoon has joined #ruby
jposer has joined #ruby
frodl has joined #ruby
frodl has quit [Changing host]
KOTP has joined #ruby
alexisg has joined #ruby
matta has joined #ruby
summerisle has joined #ruby
Xeago has joined #ruby
g_sg has joined #ruby
dka has joined #ruby
dcx has joined #ruby
caleb has joined #ruby
ringo__ has joined #ruby
conjuncture is now known as CrazyEddy
Guest47 has joined #ruby
Guest47 has quit [Client Quit]
notcl4y has joined #ruby
notcl4y has quit [Client Quit]
notcl4y has joined #ruby
notcl4y has quit [Client Quit]
arahael has quit [Ping timeout: 272 seconds]
grokify has joined #ruby
arahael has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
desnudopenguino has quit [Ping timeout: 250 seconds]
grokify has quit [Remote host closed the connection]
Milos has quit [Ping timeout: 252 seconds]
ule has quit [Ping timeout: 252 seconds]
ule has joined #ruby
Milos has joined #ruby
jmcgnh has quit [Ping timeout: 252 seconds]
johnjaye has quit [Ping timeout: 252 seconds]
jmcgnh has joined #ruby
johnjaye has joined #ruby
olspookishmagus has quit [Ping timeout: 252 seconds]
dka has quit [Ping timeout: 252 seconds]
olspookishmagus has joined #ruby
dac has joined #ruby
dcx has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 260 seconds]
dka has joined #ruby
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
Guest97 has joined #ruby
grokify has joined #ruby
Guest97 has quit [Quit: Client closed]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
walez has joined #ruby
entropie has quit [Ping timeout: 240 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
_ht has joined #ruby
grokify has quit [Remote host closed the connection]
___nick___ has joined #ruby
grokify has joined #ruby
dcx has joined #ruby
dac has quit [Ping timeout: 252 seconds]
dka has quit [Ping timeout: 252 seconds]
dka has joined #ruby
otisolsen70_ has joined #ruby
otisolsen70 has quit [Ping timeout: 252 seconds]
cartdrige has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
Y05hito__ has joined #ruby
otisolsen70_ has quit [Quit: Leaving]
crax23 has quit [Ping timeout: 246 seconds]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 248 seconds]
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 248 seconds]
crax23 has joined #ruby
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
crax23 has quit [Ping timeout: 246 seconds]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 252 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 248 seconds]
grokify has quit [Remote host closed the connection]
Y05hito__ has quit [Ping timeout: 246 seconds]
cartdrige has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 248 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 252 seconds]
shokohsc has quit [Read error: Connection reset by peer]
walez has quit [Read error: Connection reset by peer]
walez has joined #ruby
Y05hito__ has joined #ruby
shokohsc has joined #ruby
crax23 has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 246 seconds]
Y05hito__ has joined #ruby
rvalue has quit [Ping timeout: 252 seconds]
crax23 has quit [Ping timeout: 248 seconds]
rvalue has joined #ruby
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 252 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 246 seconds]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 246 seconds]
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 246 seconds]
crax23 has joined #ruby
dac has joined #ruby
dcx has quit [Ping timeout: 252 seconds]
Y05hito__ has joined #ruby
cartdrige has quit [Ping timeout: 248 seconds]
crax23 has quit [Ping timeout: 246 seconds]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 246 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 252 seconds]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 252 seconds]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 246 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 246 seconds]
crax23 has joined #ruby
Y05hito__ has quit [Ping timeout: 248 seconds]
cartdrige has joined #ruby
crax23 has quit [Ping timeout: 248 seconds]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 246 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 248 seconds]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 246 seconds]
crax23 has joined #ruby
grokify has quit [Remote host closed the connection]
cartdrige has quit [Ping timeout: 248 seconds]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 246 seconds]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cartdrige has quit [Ping timeout: 248 seconds]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
cartdrige has joined #ruby
shokohsc4 has joined #ruby
shokohsc4 is now known as shokohsc
shokohsc has quit [Ping timeout: 252 seconds]
walez has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
cartdrige has quit [Ping timeout: 246 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 246 seconds]
markong has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 252 seconds]
__ht has joined #ruby
rvalue- is now known as rvalue
_ht has quit [Ping timeout: 246 seconds]
__ht is now known as _ht
__ht has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
_ht has quit [Ping timeout: 248 seconds]
__ht is now known as _ht
walez has joined #ruby
walez has quit [Remote host closed the connection]
<leftylink> pandabot: rb :===
<pandabot> stderr: playpen: timeout triggered! - exit 1 - https://carc.in/#/r/dz32
<leftylink> pandabot: rb :===
<pandabot> :=== - https://carc.in/#/r/dz33
<leftylink> pandabot: rb :====
<pandabot> stderr: -e:2: syntax error, unexpected '=', expecting `end' - exit 1 - https://carc.in/#/r/dz34
<leftylink> pandabot rb :======:===
<pandabot> true - https://carc.in/#/r/dz39
<leftylink> I guess that's the longest you could do
<leftylink> seems a littlesad
<leftylink> pandabot rb using(Module.new { refine(Array) { def ===(n); size == n end }}); case 5; when [6, 7, 8, 9, 10]; :yes; else :no end
<pandabot> :yes - https://carc.in/#/r/dz3b
<leftylink> I see... well, not too exciting
<leftylink> how can we really make things good?
entropie has joined #ruby
Furai has quit [Quit: WeeChat 3.7.1]
cartdrige has joined #ruby
crax23 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
cartdrige has quit [Ping timeout: 248 seconds]
crax23 has quit [Ping timeout: 246 seconds]
<leftylink> pandabot rb using(Module.new { Thing = Struct.new(:a) { def -@; tap { self.a += 1 } end }; refine(Object) { def -@; Thing.new(2) end; def -(a); a.is_a?(Thing) ? a.a : 1 end }}); [p-p, p--p, p---p, p----p, p-----p]
<pandabot> [1, 2, 3, 4, 5] - https://carc.in/#/r/dz3e
<leftylink> well now - can count how many of them there are
<leftylink> isn't that exciting
<leftylink> pandabot rb using(Module.new { Thing = Struct.new(:a) { def -@; tap { self.a += 1 } end }; refine(Object) { def -@; Thing.new(2) end; def -(a); a.is_a?(Thing) ? a.a : 1 end }}); [p-p, p--p, p---p, p----p, p-----p, p--------------------p]
<pandabot> [1, 2, 3, 4, 5, 20] - https://carc.in/#/r/dz3f
shokohsc8 has joined #ruby
shokohsc8 is now known as shokohsc
markong has quit [Ping timeout: 252 seconds]
D_A_N has joined #ruby
rvalue has quit [Ping timeout: 252 seconds]
rvalue- has joined #ruby
rvalue- is now known as rvalue
__ht has joined #ruby
_ht has quit [Ping timeout: 246 seconds]
__ht is now known as _ht
Furai has joined #ruby
markong has joined #ruby
Petruchio has joined #ruby
Shureeken has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
Shureeken has quit [Client Quit]
otisolsen70 has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
otisolsen70 has quit [Remote host closed the connection]
reset has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
Jan\ has joined #ruby
<Jan\> hi, I'm new to ruby. after installing ruby for windows, how do I run this ruby app I got from github ?
<legit> I think you can run `bundle install' in its dir and then `bundle exec <appname>'
niv has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 255 seconds]
jpn has joined #ruby
entropy has joined #ruby
entropie has quit [Ping timeout: 252 seconds]
entropy is now known as entropie
<leah2> performance intuition question: how many elements do you need to such that it's faster to detect "all different" with a hash than with quadratic comparison
<leah2> (i was surprised)
shokohsc has quit [Read error: Connection reset by peer]
shokohsc5 has joined #ruby
dionysus69 has joined #ruby
RetroPunk has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
<Jan\> legit: the github readme says it is a framework, I think something would be missing if I just did `bundle install' ?
grokify has joined #ruby
_73 has joined #ruby
grokify has quit [Remote host closed the connection]
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue- has joined #ruby
D_A_N has quit [Ping timeout: 252 seconds]
D_A_N has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
rvalue- has quit [Remote host closed the connection]
rvalue has joined #ruby
<_73> I am trying to write an rspec test that ensures that a method does *not* prompt for input from STDIN. Does anybody have any advice on how I could do this?
grokify has joined #ruby
markong has quit [Ping timeout: 252 seconds]
grokify has quit [Ping timeout: 255 seconds]
Jan\ has quit [Ping timeout: 250 seconds]
markong has joined #ruby
jpn has joined #ruby
Jan\ has joined #ruby
RetroPunk has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
cartdrige has joined #ruby
jpn has joined #ruby
cartdrige has quit [Ping timeout: 252 seconds]
cartdrige has joined #ruby
Jan\ has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
cartdrige has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
jpn has joined #ruby
grokify has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 248 seconds]
<adam12> _73: Probably nothing build into rspec. Maybe you could get by with starting the process and seeing if you can write to it's stdin? If it's closed then it hasn't prompted. I'm not sure.
shokohsc has joined #ruby
shokohsc5 has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
<_73> Ahh ok, maybe I can just test that stdin is closed. Ill see where that leads me.
<weaksauce> can't you mock stdin?
<weaksauce> and just do an expect.to_not receive
<_73> I would have to be more specific on what I am actually doing. If you are interested, I have this method `execmd` that I just fixed to not block if the execing program asks for input, and I want to add a test that shows my fix works: http://dpaste.com/HPNHAJ8X6
<_73> keep in mind I am a Ruby beginner, and am not familiar with the Process or IO libraries that this method is using
<_73> Lines 120-122 are code I added
jpn has quit [Ping timeout: 252 seconds]
<weaksauce> is line 116 correct? seems an underscore is there when it should be a dot
<_73> Ya I think that is incorrect, I am going to bring that up to the maintainer. The method still works though somehow.
<_73> (works in the cases I have observed)
<weaksauce> the predicate probably evaluates to false for whatever tests you are using
<_73> Yes, I am sure that is why.
dionysus69 has joined #ruby
<weaksauce> i feel like returning an array that conditionally has some objects in order and sometimes doesn't have them is also error prone
<weaksauce> yielding*
Na_Klar has joined #ruby
<Na_Klar> how could I pass several lines of code to the ruby compile directly? I can ofc echo "print('test')" | ruby -- ... but I cannot pipe line breaks that way without the interpreter failing with unexpected $undefined.
<Na_Klar> s/compile/interpreter
schne1der has joined #ruby
<weaksauce> _73 it's written in a way that makes it tough to test since stdin is not stdin but a pipe to a different process object. you could probably do a mock/double/spy of IO.pipe
<_73> weaksauce: Is this article related to what you mean by a "mock"? https://tommaso.pavese.me/2016/05/08/understanding-and-testing-io-in-ruby/
<weaksauce> yeah kinda
<weaksauce> the trouble is that $stdin has a meaning in ruby that is different than the stdin they are using
<weaksauce> in the execmd
<weaksauce> that stdin is an io.pipe to the subprocess stdin
<_73> ok, maybe I can leverage these ideas then. If you could refer me to any other documentation then that would be very helpful as well. If not then I should have enough to start trying to make things happen.
<_73> ahh ok, I understand what you mean, the stdin_*'s are IO.pipes in my execmd
<weaksauce> yeah
<weaksauce> when you say stdin generally it refers to the stdin of the current process and not some subprocess so you are trying to test that the io.pipe doesn't get written to not the $stdin or STDIN
supay has joined #ruby
Davidian has joined #ruby
some14u has joined #ruby
jpn has joined #ruby
markong has quit [Ping timeout: 248 seconds]
jpn_ has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
supay has quit []
John_Ivan_ has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
schne1der has quit [Quit: schne1der]
jpn_ has quit [Ping timeout: 255 seconds]
supay has joined #ruby
shokohsc9 has joined #ruby
shokohsc has quit [Ping timeout: 252 seconds]
shokohsc9 is now known as shokohsc
ur5us has joined #ruby
jpn has joined #ruby
John_Ivan has quit [Quit: Phantom of the future.]
Na_Klar has quit [Ping timeout: 252 seconds]
Na_Klar has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
___nick___ has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
_ht has quit [Remote host closed the connection]
<weaksauce> _73 what is that script used in?
<weaksauce> bigger os project? or some kind of internal tooling?
jpn has quit [Ping timeout: 252 seconds]
<weaksauce> ah cool thanks
<weaksauce> yeah that stdin_w_close thing is definitely a bug
<_73> Ya I will have a PR in for that in the next couple days
jpn has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
shokohsc6 has joined #ruby
shokohsc has quit [Ping timeout: 252 seconds]
shokohsc6 is now known as shokohsc
supay has quit [Quit: "trying discordrc.com"]
jpn has joined #ruby
supay has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
cocalero has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rounin has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
nmollerup has quit [Quit: Leaving]
jpn has quit [Ping timeout: 246 seconds]
some14u has joined #ruby
RetroPunk has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
RetroPunk has joined #ruby
RetroPunk has quit [Client Quit]
jpn has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RetroPunk has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
supay has quit [Quit: brb]
dstein64- has joined #ruby
dstein64 has quit [Ping timeout: 260 seconds]
dstein64- is now known as dstein64
cocalero has joined #ruby
RetroPunk has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
RetroPunk has joined #ruby