adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
lad has joined #ruby
<nakilon> I imagine if you do something like this https://stackoverflow.com/a/8188174/322020 and so something wrong... you'll get stuck with hanging Terminal
<nakilon> *and do
TomyLobo has quit [Read error: Connection reset by peer]
unmanbearpig has quit [Remote host closed the connection]
unmanbearpig has joined #ruby
FemmeAndroid has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
vaillancourtmax has joined #ruby
FemmeAndroid has joined #ruby
Na_Klar has joined #ruby
Rounin has quit [Ping timeout: 252 seconds]
<adam12> nakilon: Maybe something like the Aruba gem?
<adam12> I'm not a big Cucumber / Rspec fan so I'm not sure it's the first thing _I'd_ reach for...
factor has quit [Read error: Connection reset by peer]
<nakilon> I'm not sure it's capable
<nakilon> I thought it's just a wrapper for cucumber to add more wrappers for the god of wrappers
techsurvivor has quit [Ping timeout: 265 seconds]
yossarian has joined #ruby
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
lad has quit [Ping timeout: 245 seconds]
yossarian has quit [Changing host]
yossarian has joined #ruby
Na_Klar has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
flooose has quit [Ping timeout: 245 seconds]
FemmeAndroid has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
VoidNoir0 has joined #ruby
vaillancourtmax has quit [Ping timeout: 265 seconds]
trog has joined #ruby
<trog> I just installed ruby on ubuntu using rvm and I'm using bash. Why does my shell open into a ruby environment by default now, or is this just something I need to configure in powerline
<trog> as in opening a terminal now shows a prompt with $(r) ruby-2.7.2 ~/
<trog> is there a way to deactivate this environment until I want to explicitly turn it on or something
<trog> well, I just had rvm remove that installation of ruby and use the system installation instead, and everything is back to normal.
y0shi has joined #ruby
b08x has quit [Quit: Leaving]
<sam113101> trog: that's regardless of the current working directory?
<nakilon> try rbenv -- it's more lightweight and should not scary you with "being in an environment" or something like that
<nakilon> it's just about the current PATH env var value
<trog> :sam113101 yep
ur5us has quit [Ping timeout: 260 seconds]
_ht has joined #ruby
<trog> :nakilon yeah that's what I found out the long way, to me rvm is to rbenv as nvm is to volta. I'll be rolling it back for the other here shortly, thanks
<trog> also, it was happening because rvm was loading itself into every single shell session via bash_profile :)
flooose has joined #ruby
<trog> rbenv is much more appropriate, thanks again!
trog has quit [Quit: WeeChat 3.0.1]
<nakilon> TIL volta
_ht has quit [Remote host closed the connection]
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
KOTP has quit [Ping timeout: 265 seconds]
pwnd_sfw has joined #ruby
teclator has joined #ruby
flooose has quit [Ping timeout: 245 seconds]
agladkyi has quit [Quit: agladkyi]
Bounga has joined #ruby
nakilon has quit [Quit: Ping timeout (120 seconds)]
nakilon has joined #ruby
_whitelogger has quit [Ping timeout: 268 seconds]
joast has quit [Ping timeout: 260 seconds]
perrierjouet has quit [Ping timeout: 260 seconds]
_whitelogger_ has joined #ruby
slothby has quit [Remote host closed the connection]
itok_ has joined #ruby
hansolo has quit [*.net *.split]
joenoon has quit [*.net *.split]
justHaunt has quit [*.net *.split]
keyvan has quit [*.net *.split]
moldorcoder7 has quit [*.net *.split]
yossarian has quit [*.net *.split]
reset has quit [*.net *.split]
swaggboi has quit [*.net *.split]
caleb has quit [*.net *.split]
r3my has quit [*.net *.split]
CrazyEddy has quit [*.net *.split]
y0shi has quit [*.net *.split]
adam12 has quit [*.net *.split]
darkstardevx has quit [*.net *.split]
r0bby has quit [*.net *.split]
dostoyevsky2 has quit [*.net *.split]
psb has quit [*.net *.split]
mirko has quit [*.net *.split]
bougyman has quit [*.net *.split]
jtdowney has quit [*.net *.split]
Starfoxxes has quit [*.net *.split]
Tempesta has quit [*.net *.split]
mbarbar has quit [*.net *.split]
dstein64 has quit [*.net *.split]
kenichi has quit [*.net *.split]
cybniv has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
jposer has quit [*.net *.split]
sam113101 has quit [*.net *.split]
kaivai has quit [*.net *.split]
kinduff has quit [*.net *.split]
SuperLag has quit [*.net *.split]
forvelin has quit [*.net *.split]
aesthetikx has quit [*.net *.split]
Aighearach has quit [*.net *.split]
josephl has quit [*.net *.split]
jhass has quit [*.net *.split]
foxxx0 has quit [*.net *.split]
Fusl has quit [*.net *.split]
kapil has quit [*.net *.split]
greyrat has quit [*.net *.split]
legahc has quit [*.net *.split]
hsiktas[m] has quit [*.net *.split]
FetidToot has quit [*.net *.split]
CalimeroTeknik has quit [*.net *.split]
moo has quit [*.net *.split]
cognemo has quit [*.net *.split]
ule has quit [*.net *.split]
peer has quit [*.net *.split]
mrus has quit [*.net *.split]
ged has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
nakilon has quit [*.net *.split]
VoidNoir0 has quit [*.net *.split]
havenwood has quit [*.net *.split]
weaksauce has quit [*.net *.split]
Liothen has quit [*.net *.split]
Milos has quit [*.net *.split]
phenom_ has quit [*.net *.split]
cout has quit [*.net *.split]
weyhmueller_ has quit [*.net *.split]
jimeh has quit [*.net *.split]
Artea has quit [*.net *.split]
jhawthorn has quit [*.net *.split]
benjaminwil has quit [*.net *.split]
MeowcatWoofWoofF has quit [*.net *.split]
yosafbridge` has quit [*.net *.split]
mahlon has quit [*.net *.split]
llua has quit [*.net *.split]
glider_ has quit [*.net *.split]
rapha has quit [*.net *.split]
wnd has quit [*.net *.split]
hexology has quit [*.net *.split]
newton has quit [*.net *.split]
leah2 has quit [*.net *.split]
asio has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
DEac- has quit [*.net *.split]
lzap has quit [*.net *.split]
clemens3 has quit [*.net *.split]
con3 has quit [*.net *.split]
infernix has quit [*.net *.split]
Caius has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
vito has quit [*.net *.split]
rubin55 has quit [*.net *.split]
shokohsc8 has quit [*.net *.split]
Skyfire has quit [*.net *.split]
itok has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
dka has quit [*.net *.split]
juanfra has quit [*.net *.split]
sixecho has quit [*.net *.split]
nolesswrong has quit [*.net *.split]
gfawcett3 has quit [*.net *.split]
kaleido has quit [*.net *.split]
_whitelogger has quit [*.net *.split]
Bounga has quit [*.net *.split]
Bi[m] has quit [*.net *.split]
brw has quit [*.net *.split]
e2 has quit [*.net *.split]
mbrndtgn has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
jetchisel has quit [*.net *.split]
oz has quit [*.net *.split]
gcd has quit [*.net *.split]
kmacleod has quit [*.net *.split]
liquid-silence has quit [*.net *.split]
AndrewYu has quit [*.net *.split]
ollysmith has quit [*.net *.split]
victori has quit [*.net *.split]
finsternis has quit [*.net *.split]
danjo has quit [*.net *.split]
fercell has quit [*.net *.split]
integral has quit [*.net *.split]
hwrd has quit [*.net *.split]
jidar has quit [*.net *.split]
Inoperable has quit [*.net *.split]
Pixi_ has quit [*.net *.split]
ox1eef has quit [*.net *.split]
alex[m]1234567 has quit [*.net *.split]
bhaak has quit [*.net *.split]
ikonia has quit [*.net *.split]
tweaks has quit [*.net *.split]
marahin has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
ruby[bot1 has quit [*.net *.split]
balo has quit [*.net *.split]
Bish has quit [*.net *.split]
AEtherC0r3 has quit [*.net *.split]
Cork has quit [*.net *.split]
pusewic|away has quit [*.net *.split]
JSharp has quit [*.net *.split]
MachinShin has quit [*.net *.split]
JayDoubleu has quit [*.net *.split]
pjlsergeant has quit [*.net *.split]
tv- has quit [*.net *.split]
dorian has quit [*.net *.split]
whysthatso has quit [*.net *.split]
Exa has quit [*.net *.split]
patrick has quit [*.net *.split]
eam has quit [*.net *.split]
aeris has quit [*.net *.split]
duds- has quit [*.net *.split]
teclator has quit [*.net *.split]
unmanbearpig has quit [*.net *.split]
donofrio has quit [*.net *.split]
lucerne has quit [*.net *.split]
faxmodem has quit [*.net *.split]
georgemp has quit [*.net *.split]
leftylink has quit [*.net *.split]
belak has quit [*.net *.split]
bjonnh has quit [*.net *.split]
Liexei has quit [*.net *.split]
isene has quit [*.net *.split]
explorier has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
jhass[m] has quit [*.net *.split]
mewfree[m] has quit [*.net *.split]
seisatsu has quit [*.net *.split]
ccooke has quit [*.net *.split]
lipoqil has quit [*.net *.split]
phryk has quit [*.net *.split]
peder has quit [*.net *.split]
jtperreault has quit [*.net *.split]
Garo_ has quit [*.net *.split]
dannyAAM has quit [*.net *.split]
sagax has quit [*.net *.split]
_axx has quit [*.net *.split]
drincruz has quit [*.net *.split]
_whitelogger has joined #ruby
sixecho has joined #ruby
TomyWork has joined #ruby
CrazyEddy has quit [Ping timeout: 245 seconds]
Rounin has joined #ruby
CrazyEddy has joined #ruby
hwrd_ has joined #ruby
MachinShin_ has joined #ruby
pusewic|away_ has joined #ruby
sixecho has quit [*.net *.split]
hsiktas[m] has quit [*.net *.split]
FetidToot has quit [*.net *.split]
cognemo has quit [*.net *.split]
ule has quit [*.net *.split]
mrus has quit [*.net *.split]
ged has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
peer has quit [*.net *.split]
perrierjouet has quit [*.net *.split]
nakilon has quit [*.net *.split]
VoidNoir0 has quit [*.net *.split]
havenwood has quit [*.net *.split]
weaksauce has quit [*.net *.split]
Liothen has quit [*.net *.split]
Milos has quit [*.net *.split]
phenom_ has quit [*.net *.split]
moo has quit [*.net *.split]
cout has quit [*.net *.split]
weyhmueller_ has quit [*.net *.split]
jimeh has quit [*.net *.split]
jhawthorn has quit [*.net *.split]
benjaminwil has quit [*.net *.split]
MeowcatWoofWoofF has quit [*.net *.split]
yosafbridge` has quit [*.net *.split]
CalimeroTeknik has quit [*.net *.split]
mahlon has quit [*.net *.split]
llua has quit [*.net *.split]
glider_ has quit [*.net *.split]
rapha has quit [*.net *.split]
hexology has quit [*.net *.split]
newton has quit [*.net *.split]
leah2 has quit [*.net *.split]
Rounin has quit [*.net *.split]
wnd has quit [*.net *.split]
asio has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
DEac- has quit [*.net *.split]
lzap has quit [*.net *.split]
clemens3 has quit [*.net *.split]
con3 has quit [*.net *.split]
infernix has quit [*.net *.split]
Caius has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
Bounga has quit [*.net *.split]
Bi[m] has quit [*.net *.split]
brw has quit [*.net *.split]
mbrndtgn has quit [*.net *.split]
e2 has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
splud has quit [*.net *.split]
jetchisel has quit [*.net *.split]
gcd has quit [*.net *.split]
victori has quit [*.net *.split]
liquid-silence has quit [*.net *.split]
AndrewYu has quit [*.net *.split]
kmacleod has quit [*.net *.split]
ollysmith has quit [*.net *.split]
finsternis has quit [*.net *.split]
fercell has quit [*.net *.split]
integral has quit [*.net *.split]
hwrd has quit [*.net *.split]
Pixi_ has quit [*.net *.split]
danjo has quit [*.net *.split]
ox1eef has quit [*.net *.split]
CrazyEddy has quit [*.net *.split]
jidar has quit [*.net *.split]
alex[m]1234567 has quit [*.net *.split]
bhaak has quit [*.net *.split]
ikonia has quit [*.net *.split]
tweaks has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
marahin has quit [*.net *.split]
ruby[bot1 has quit [*.net *.split]
balo has quit [*.net *.split]
Bish has quit [*.net *.split]
AEtherC0r3 has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
pusewic|away has quit [*.net *.split]
Cork has quit [*.net *.split]
JSharp has quit [*.net *.split]
MachinShin has quit [*.net *.split]
JayDoubleu has quit [*.net *.split]
pjlsergeant has quit [*.net *.split]
dorian has quit [*.net *.split]
tv- has quit [*.net *.split]
whysthatso has quit [*.net *.split]
Exa has quit [*.net *.split]
patrick has quit [*.net *.split]
eam has quit [*.net *.split]
hansolo has quit [*.net *.split]
joenoon has quit [*.net *.split]
swaggboi has quit [*.net *.split]
moldorcoder7 has quit [*.net *.split]
keyvan has quit [*.net *.split]
justHaunt has quit [*.net *.split]
eldritch__ has quit [*.net *.split]
KramerC has quit [*.net *.split]
yossarian has quit [*.net *.split]
reset has quit [*.net *.split]
r3my has quit [*.net *.split]
adam12 has quit [*.net *.split]
r0bby has quit [*.net *.split]
y0shi has quit [*.net *.split]
darkstardevx has quit [*.net *.split]
ur5us has quit [*.net *.split]
dostoyevsky2 has quit [*.net *.split]
psb has quit [*.net *.split]
mirko has quit [*.net *.split]
bougyman has quit [*.net *.split]
jtdowney has quit [*.net *.split]
Starfoxxes has quit [*.net *.split]
Tempesta has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
dstein64 has quit [*.net *.split]
mbarbar has quit [*.net *.split]
kenichi has quit [*.net *.split]
cybniv has quit [*.net *.split]
jposer has quit [*.net *.split]
caleb has quit [*.net *.split]
sam113101 has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
kaivai has quit [*.net *.split]
kinduff has quit [*.net *.split]
forvelin has quit [*.net *.split]
aesthetikx has quit [*.net *.split]
SuperLag has quit [*.net *.split]
Aighearach has quit [*.net *.split]
jhass has quit [*.net *.split]
josephl has quit [*.net *.split]
Fusl has quit [*.net *.split]
kapil has quit [*.net *.split]
foxxx0 has quit [*.net *.split]
legahc has quit [*.net *.split]
duds- has quit [*.net *.split]
aeris has quit [*.net *.split]
nolesswrong has quit [*.net *.split]
nowaker_ has quit [*.net *.split]
kaleido_ has quit [*.net *.split]
miah1 has quit [*.net *.split]
wmoxam_ has quit [*.net *.split]
shokohsc8 has quit [*.net *.split]
darkxploit has quit [*.net *.split]
Xeago has quit [*.net *.split]
pwnd_sfw has quit [*.net *.split]
donofrio has quit [*.net *.split]
teclator has quit [*.net *.split]
unmanbearpig has quit [*.net *.split]
faxmodem has quit [*.net *.split]
georgemp has quit [*.net *.split]
leftylink has quit [*.net *.split]
belak has quit [*.net *.split]
Liexei has quit [*.net *.split]
seisatsu has quit [*.net *.split]
isene has quit [*.net *.split]
explorier has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
mewfree[m] has quit [*.net *.split]
sagax has quit [*.net *.split]
lipoqil has quit [*.net *.split]
phryk has quit [*.net *.split]
ccooke has quit [*.net *.split]
peder has quit [*.net *.split]
Garo_ has quit [*.net *.split]
jtperreault has quit [*.net *.split]
dannyAAM has quit [*.net *.split]
_axx has quit [*.net *.split]
drincruz has quit [*.net *.split]
jhass[m] has quit [*.net *.split]
brw has joined #ruby
mewfree[m] has joined #ruby
Aighearach has joined #ruby
Bounga has joined #ruby
flooose has joined #ruby
Byteflux has joined #ruby
jla has joined #ruby
summerisle has joined #ruby
nebiros has joined #ruby
cnsvc has joined #ruby
Furai has joined #ruby
nebiros has quit [Changing host]
nebiros has joined #ruby
gigamo has joined #ruby
gigamo has quit [Signing in (gigamo)]
gigamo has joined #ruby
itok_ has joined #ruby
nmollerup has joined #ruby
menace has joined #ruby
menace has quit [Changing host]
menace has joined #ruby
gfawcett31 has joined #ruby
gfawcett31 is now known as gfawcett3
gigamo has quit [Quit: WeeChat 3.2]
gigamo has joined #ruby
taupiqueur has joined #ruby
jla has left #ruby [#ruby]
CrazyEddy has joined #ruby
dayday has joined #ruby
juanfra has quit [Quit: Bridge terminating on SIGTERM]
mewfree[m] has quit [Quit: Bridge terminating on SIGTERM]
Tempesta has joined #ruby
jhass[m] has joined #ruby
sixecho has joined #ruby
mewfree[m] has joined #ruby
hsiktas[m] has joined #ruby
Bi[m] has joined #ruby
juanfra has joined #ruby
MeowcatWoofWoofF has joined #ruby
alex[m]1234567 has joined #ruby
hsiktas[m] has quit [Quit: Reconnecting]
hsiktas[m] has joined #ruby
hsiktas[m] has quit [Client Quit]
hsiktas[m] has joined #ruby
miah1 has joined #ruby
liquid-silence has joined #ruby
liquid-silence has quit [Client Quit]
liquid-silence has joined #ruby
duds-_ has joined #ruby
liquid-silence has quit [Client Quit]
duds-_ is now known as duds-
liquid-silence has joined #ruby
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
donofrio_ has joined #ruby
<TomyWork> I'm looking for a reference for ruby stdlib classes.
<TomyWork> https://ruby-doc.org/stdlib-2.5.1/libdoc/time/rdoc/Time.html this doesn't list Time.now, so I'm confused
<adam12> TomyWork: I like rubyapi.org
<adam12> failing that, the official docs site. docs.ruby-lang.org.
menace has quit [Quit: menace]
<TomyWork> ah yes, rubyapi.org unifies core+stdlib, great
<jhass> also devdocs.io, can even have ruby + rails in one
donofrio_ has quit [Quit: Leaving]
donofrio_ has joined #ruby
taupiqueur_ has joined #ruby
flooose has quit [Ping timeout: 246 seconds]
taupiqueur has quit [Ping timeout: 265 seconds]
jetchisel has joined #ruby
donofrio_ has quit [Quit: Leaving]
donofrio has joined #ruby
FemmeAndroid has joined #ruby
belak51 has joined #ruby
reset has joined #ruby
StyXman has joined #ruby
<StyXman> is <| ... |> a ruby thing or or does puppet do funny thing with the code? https://dpaste.org/dugC
<StyXman> and where can I find the syntax reference? I only got this deep https://docs.ruby-lang.org/en/3.0.0/doc/syntax_rdoc.html
<jhass> that must be puppet. Smells like some templating language
<StyXman> dang
<StyXman> these things are unsearchable
<StyXman> jhass: any iodeas about ruby's syntax reference? I'm a pythonista and I mostly can read ruby, but sometimes I have my doubts
<StyXman> leah2: tx
<jhass> There's a #puppet btw :)
<StyXman> jhass: I asked there, but I wa sconvinced that that code was pure ruby, not a puppet dsl :)
<jhass> fair enough
miah1 is now known as miah
<adam12> StyXman: What file is that in?
<adam12> (the file extension)
<llua> .pp most likely
<StyXman> yeah. .pp
StyXman has left #ruby [http://quassel-irc.org - Chat comfortably. Anywhere.]
<adam12> I wonder if its an ERB template with the delimeters configured. Interesting.
<jhass> and then == overriden? I doubt it
<adam12> Couldn't tag have a `==` method defined on it?
<jhass> could, but it seems brittle to me. Also in context of the LHS of the <| being significant
duds- has quit [Remote host closed the connection]
flooose has joined #ruby
slothby has joined #ruby
duds- has joined #ruby
flooose has quit [Ping timeout: 252 seconds]
smp has joined #ruby
cahoots has joined #ruby
<cahoots> hi, i have a ruby app that's hanging indefinitely in rare cases. whenever the app takes > 1 minute, i want to print out of its current stack trace. how might i do this?
<adam12> cahoots: There's a way to do it through gdb, but its' error prone.
<adam12> cahoots: There's a tool called rbtrace that can do it for running processes.
<adam12> If it's hanging, I doubt you could rely on a timer or watchdog to trigger a stack trace unfortunately.
_ht has joined #ruby
FetidToot has joined #ruby
<jhass> cahoots: Signal.trap("INT") { puts caller }
<cahoots> this is run in a very isolated cloud environment where i can't interact with it. perhaps i could start up another process with its pid though and send it a signal
<jhass> mmh, probably could even send a signal to yourself, Thread.new { sleep 60; Process.kill("INT", Process.pid) }
aeris has joined #ruby
___nick___ has joined #ruby
<jhass> another interesting thing could be to hook TERM to print the trace right before your cloud env kills it, Signal.trap("TERM") { puts caller; abort }
liquid-silence has quit [Quit: ZNC 1.8.2 - https://znc.in]
pwnd_sfw has joined #ruby
smp has quit [Quit: ZNC 1.8.2 - https://znc.in]
belak51 is now known as belak
FemmeAndroid has quit [Read error: Connection reset by peer]
FemmeAndroid has joined #ruby
y0shi has joined #ruby
dayday has quit [Quit: Connection closed for inactivity]
flooose has joined #ruby
Bounga has quit [Ping timeout: 268 seconds]
skali has joined #ruby
KOTP has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
skali is now known as skali_
<bjonnh> is there an equivalent to help in irb?
<bjonnh> (to Python's help) sorry
bastelfreak has joined #ruby
<bjonnh> I have a package on my linux distribution ruby-docs that puts a bunch of .ri files
<bjonnh> oh ok there is a ruby-rdocs package that has the ri binary
<bjonnh> nevermind, sorry for the rubberducking
flooose has quit [Ping timeout: 268 seconds]
<adam12> bjonnh: no need to apologize :)
<TomyWork> what's the best class to represent a point in time? DateTime or Time?
<TomyWork> I previously thought it was Time, but DateTime covers one use case that I need and that Time doesn't, so I'm no longer sure
<adam12> TomyWork: Time 99% of the time
<adam12> DateTime has support for certain calendar dates _way_ _way_ _way_ back in the past. But outside of that, consider it deprecated by ruby core.
<adam12> What's the use case that Time doesnt' offer?
skali_ is now known as skali
skali has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<TomyWork> it parses this: 2021-10-13T19:15:28.995+0200
<TomyWork> DateTime.iso8601 that is
<TomyWork> actually havent tried just stuffing it into Time.parse
<TomyWork> yeah ok, that parses it too
<TomyWork> Time.iso8601 doesn't
<adam12> I think that's a known bug ....
<adam12> Actually, I'd have to see what your doing. On Ruby 3, Time.iso8601("2021-10-13T19:15:28.995+0200") works for me I think.
<adam12> Anyways, Time > DateTime.
<TomyWork> adam12, i guess they fixed that then. doesn't work here
<weaksauce> works on 2.6.6
<weaksauce> what version are you on TomyWork
<TomyWork> whatever is current on 18.04
<TomyWork> 2.5.1
donofrio_ has joined #ruby
<weaksauce> yeah they seemed to add quite a bit of functionality to time since then
donofrio__ has joined #ruby
<weaksauce> actually maybe not.
<weaksauce> i forgot to get the extra bells and whistles of the time class you need to include it
<weaksauce> so do a require 'time' and you should be able to parse the iso just fine
donofrio has quit [Ping timeout: 252 seconds]
donofrio_ has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
donofrio__ has quit [Ping timeout: 252 seconds]
donofrio has quit [Quit: Leaving]
donofrio has joined #ruby
cahoots has quit [Quit: leaving]
yossarian has joined #ruby
yossarian has quit [Changing host]
yossarian has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Ping timeout: 265 seconds]
work has joined #ruby
dayday has joined #ruby
donofrio_ has joined #ruby
donofrio has quit [Ping timeout: 265 seconds]
___nick___ has quit [Ping timeout: 252 seconds]
flooose has joined #ruby
donofrio_ has quit [Quit: Leaving]
donofrio_ has joined #ruby
_ht has quit [Remote host closed the connection]
mrkz_c has joined #ruby
shokohsc8 has joined #ruby
ur5us has joined #ruby
donofrio_ has quit [Quit: Leaving]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
moldorcoder7_ has joined #ruby
donofrio has joined #ruby
roshanavand has joined #ruby
donofrio_ has joined #ruby
roshanavand has quit [Ping timeout: 252 seconds]
donofrio has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
kaleido_ has joined #ruby
kaleido_ is now known as kaleido
TomyWork has quit [Remote host closed the connection]
joast has joined #ruby
flooose has quit [Ping timeout: 245 seconds]
roshanavand has quit [Ping timeout: 245 seconds]
donofrio_ has quit [Quit: Leaving]
donofrio has joined #ruby
lunarkitty has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]