havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
fphilipe_ has joined #ruby
drincruz_ has joined #ruby
<qbrd[m]> @apotheon or something right!
srandon111 has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
drincruz_ has quit [Ping timeout: 245 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
rorochan has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bitwinery has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
Swyper has joined #ruby
AJA4350 has quit [Remote host closed the connection]
fphilipe_ has quit [Ping timeout: 276 seconds]
stooj has quit [Quit: ZNC 1.7.3 - https://znc.in]
stooj has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
Swyper has quit [Remote host closed the connection]
bitwinery has joined #ruby
CCDelivery has joined #ruby
bitwinery has quit [Read error: Connection reset by peer]
DTZUZU has quit [Quit: WeeChat 2.2]
cagomez has joined #ruby
<cagomez> what does the <= operator do in `rescue Exception => e`?
Fusl has quit [Quit: K-Lined]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cagomez> also, how does ruby match against the exception type? it's not done using the => operator, right?
DTZUZU has joined #ruby
drincruz_ has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 246 seconds]
ramfjord_ has joined #ruby
lesha has quit [Ping timeout: 258 seconds]
<leftylink> then, once an exception has been rescued, one is able to refer to it using tne name `e`
<leftylink> &>> begin 1/0; rescue Exception => e; puts "hello. #{e.class} - #{e.message}" end
<rubydoc> # => hello. ZeroDivisionError - divided by 0 (https://carc.in/#/r/7c71)
dhollinger has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
fphilipe_ has joined #ruby
oetjenj has joined #ruby
ur5us_ has joined #ruby
jenrzzz has joined #ruby
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
Fusl has joined #ruby
tsrt^ has quit []
involans has quit [Quit: involans]
brool has joined #ruby
CCDelivery has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
jinie has quit [Ping timeout: 272 seconds]
jinie has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
ur5us_ has quit [Read error: Connection reset by peer]
fphilipe_ has quit [Ping timeout: 250 seconds]
ramfjord_ has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
<brool> using sinatra, how do i send a message from one route to another? e.g. my "post /thing" route sets a var @msg, and my view in "get /" should <%= @msg %> but since "get /" is another route @msg isn't saved from "post /thing" to "get /"
<brool> and "post /thing" sets @msg then immediatley reroutes to /
<brool> which i hoped would allow me to save a @msg
duderonomy has joined #ruby
<mozzarella> I think you're looking for a session store
<mozzarella> brool: ^
<brool> oh that makes sense
<brool> here's stupid me trying to treat a web app like a procedural program
<mozzarella> that's a common mistake/misunderstanding I think
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
drincruz_ has quit [Ping timeout: 258 seconds]
cagomez has quit [Ping timeout: 245 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
englishm has quit [Excess Flood]
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
jinie has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jinie has joined #ruby
drincruz_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
drincruz_ has quit [Ping timeout: 258 seconds]
_whitelogger has joined #ruby
cthulchu_ has joined #ruby
matheusmoreira has quit [Ping timeout: 258 seconds]
matheusmoreira has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
duderonomy has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
cd has quit [Quit: cd]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
fphilipe_ has joined #ruby
ur5us has joined #ruby
tdy has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
brool has quit [Ping timeout: 250 seconds]
gabschem_ has joined #ruby
podlech has joined #ruby
gabschem_ has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
howdoi has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
matheusmoreira has quit [Ping timeout: 246 seconds]
fphilipe_ has quit [Ping timeout: 250 seconds]
tdy has quit [Ping timeout: 246 seconds]
gix- has quit [Ping timeout: 245 seconds]
orbyt_ has joined #ruby
matheusmoreira has joined #ruby
mnathani has quit []
lesha has joined #ruby
lesha has quit [Quit: Leaving]
fphilipe_ has joined #ruby
chunkypuffs has quit [Remote host closed the connection]
oetjenj has joined #ruby
drincruz_ has joined #ruby
kyrylo has joined #ruby
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
stan has joined #ruby
drincruz_ has quit [Ping timeout: 258 seconds]
sandstrom has joined #ruby
chunkypuffs has joined #ruby
tdy has joined #ruby
ur5us has quit [Remote host closed the connection]
jinie has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
jinie has joined #ruby
code_zombie has quit [Quit: Leaving]
sauvin has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
stan has quit [Remote host closed the connection]
<qbrd[m]> hey so I'm about to crash, so should probably not ask this now... lol
stan has joined #ruby
podlech has quit [Quit: WeeChat 2.5-dev]
<qbrd[m]> but anyone know how to style a jekyll blog using the "gist" plugin, so that the gists match the general style of the blog.
<qbrd[m]> I'd settle for just "night mode"... lol
cthulchu_ has quit [Ping timeout: 250 seconds]
Frobozz has quit [Ping timeout: 268 seconds]
galaxie has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
<apotheon> qbrd[m]: Thanks for the vote of confidence.
<qbrd[m]> por que no los dos.
<qbrd[m]> but to be honest, I just always hear my mothers voice in my head going "well what about this positive spin on things"
<apotheon> nice
<qbrd[m]> I ❤️ my mommy. lol
<qbrd[m]> she has been a pain in my ass like ALL Of my life.
<apotheon> My font evidently doesn't have a heart glyph (or whatever that was supposed to be).
<apotheon> yep, heart
<apotheon> (copied to a non-console app)
<qbrd[m]> I mean, less than three
<qbrd[m]> pretty sure is universal heart. lawl.
<qbrd[m]> apotheon: are you in IRC or matrix?
<apotheon> IRC
<apotheon> Oh, you have that telltale [m] in your nick.
<apotheon> I should've noticed.
<qbrd[m]> OMG so dope!
<qbrd[m]> lol
<qbrd[m]> (I just built my matrix server... )
<qbrd[m]> I mean, I grew up around IRC
<qbrd[m]> I lived in IRC
<qbrd[m]> like...
<qbrd[m]> I got all my torrents in IRC
<qbrd[m]> I mean, what are torrents?
<apotheon> right
<qbrd[m]> but it's just such a PITA to have like 50 clients.
<apotheon> Torrents are those things you use to download open source OS installer images to save the project's bandwidth.
<qbrd[m]> between slck, discord, irc, glitter, uhhh
<qbrd[m]> webex teams
<apotheon> yikes
<qbrd[m]> %$!%$@^%@%$ webex teams btw
<qbrd[m]> rocket chat.
<apotheon> Yeah, that "yikes" was all about webex.
<qbrd[m]> I run a rocket chat server for a WoW clan. lawl.
<qbrd[m]> ^^ :+1:
<qbrd[m]> nojoke, I think there are as many "chat programs" as there are people in the company I work for.
<qbrd[m]> (>10k ppl)
<apotheon> It's past my bedtime -- and I think you said something about going to bed half an hour ago.
<apotheon> g'night
<qbrd[m]> yar.
<qbrd[m]> o/
<qbrd[m]> good idea.
<qbrd[m]> this is what just came on.
<qbrd[m]> must be bed time.
<qbrd[m]> o
<qbrd[m]> o/
corellian has joined #ruby
corellian has quit [Client Quit]
corellian has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has joined #ruby
rorochan has joined #ruby
lxsameer has joined #ruby
suukim has joined #ruby
drincruz_ has joined #ruby
TomyWork has joined #ruby
drincruz_ has quit [Ping timeout: 268 seconds]
prestorium has joined #ruby
deepredsky has quit [Ping timeout: 245 seconds]
houhoulis has quit [Remote host closed the connection]
schne1der has joined #ruby
Rudd0 has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
jenrzzz has joined #ruby
deepredsky has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
h3ll0w0rld has joined #ruby
h3ll0w0rld has quit [Client Quit]
cthulchu_ has joined #ruby
cthulchu_ has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ruby
sandstrom has joined #ruby
jenrzzz has joined #ruby
mikecmpbll has joined #ruby
fphilipe_ has joined #ruby
dbugger has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rorochan has quit [Ping timeout: 272 seconds]
fphilipe_ has quit [Ping timeout: 248 seconds]
User458764 has joined #ruby
User4587_ has joined #ruby
User4587_ has quit [Client Quit]
User458764 has quit [Client Quit]
sylario has joined #ruby
x86sk has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 246 seconds]
fphilipe_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
drincruz_ has joined #ruby
drnerdius has joined #ruby
drincruz_ has quit [Ping timeout: 268 seconds]
ramfjord has quit [Read error: Connection reset by peer]
glosoli has joined #ruby
ramfjord has joined #ruby
chalkmonster has joined #ruby
fphilipe_ has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
Rudd0 has joined #ruby
rorochan has joined #ruby
jenrzzz has joined #ruby
tim17d has joined #ruby
TvL2386_ has joined #ruby
drincruz_ has joined #ruby
TvL2386 has quit [Ping timeout: 245 seconds]
go|dfish has quit [Quit: SIGQUIT]
<tim17d> Hello everyone :) I have a question
<tim17d> is .unpack('C*') same as .bytes ?
jenrzzz has quit [Ping timeout: 258 seconds]
<tim17d> I've noticed that the later is slightly more efficient and I was wondering if there's any reason to use the former on a String
gregf_ has joined #ruby
gregf_ has quit [Remote host closed the connection]
<ytti> i assume them to be same
<ytti> but i wouldn't be terribly surprised if i was wrong, particularly relating i8n stuff
<ytti> that some corner case would exist
AJA4350 has joined #ruby
teardown has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
drnerdius has quit [Read error: No route to host]
drnerdius has joined #ruby
fphilipe_ has joined #ruby
drincruz_ has quit [Ping timeout: 245 seconds]
sh7d has quit [Ping timeout: 245 seconds]
sh7d has joined #ruby
tdy has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
conta has joined #ruby
deepredsky has quit [Ping timeout: 268 seconds]
glosoli has quit [Ping timeout: 268 seconds]
drnerdius has quit [Read error: Connection reset by peer]
nerdius has joined #ruby
kyrylo has joined #ruby
conta has quit [Quit: conta]
sandstro_ has joined #ruby
sandstrom has quit [Ping timeout: 250 seconds]
deepredsky has joined #ruby
drincruz_ has joined #ruby
corellian has quit [Quit: leaving]
fphilipe_ has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
drincruz_ has quit [Ping timeout: 246 seconds]
drnerdius has joined #ruby
nerdius has quit [Read error: Connection reset by peer]
schne1der has quit [Quit: schne1der]
drnerdius has quit [Read error: Connection reset by peer]
drnerdius has joined #ruby
cd has joined #ruby
kapilp has joined #ruby
cd has quit [Quit: cd]
conta has joined #ruby
cd has joined #ruby
drnerdius has quit [Excess Flood]
drnerdius has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
drnerdius has quit [Ping timeout: 246 seconds]
drnerdius has joined #ruby
Inline has joined #ruby
sandstro_ has quit [Quit: OS X IRC Client (www.textualapp.com)]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
tdy has joined #ruby
za1b1tsu has joined #ruby
bmurt has joined #ruby
drnerdius has quit [Quit: Konversation terminated!]
drnerdius has joined #ruby
conta has quit [Quit: conta]
ramfjord has joined #ruby
bmurt has quit [Ping timeout: 244 seconds]
chalkmonster has joined #ruby
jcalla has joined #ruby
BTRE has quit [Ping timeout: 248 seconds]
chalkmonster has quit [Quit: WeeChat 2.5]
<TomyWork> I'm looking for something that is roughly equivalent to backticks or IO.popen(...).read but that will throw an exception or something when the exit status is nonzero
BTRE has joined #ruby
sagax has quit [Remote host closed the connection]
<TomyWork> >> IO.popen('false') { |io| x = io.read; io.close; throw 'nonzero!' unless $?.success?; x } # this works, but it's kinda verbose. any idea how to shorten it significantly?
<ruby[bot]> TomyWork: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<TomyWork> works on my machine *shrug*
rippa has joined #ruby
<TomyWork> >> IO.popen('echo foo') { |io| begin io.read; ensure io.close; throw 'Fehler!' unless $?.success?; end } # Got it a little shorter using an "ensure" for the error handling
<ruby[bot]> TomyWork: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
tdy has quit [Ping timeout: 245 seconds]
<TomyWork> actually it's longer, drat
<phaul> TomyWork: ruby[bot] evaluation is broken, use rubydoc with &>> prefix
deepredsky has quit [Ping timeout: 258 seconds]
<TomyWork> ok
<TomyWork> is there some kind of "assert" function?
Tuor has joined #ruby
ascarter has joined #ruby
<TomyWork> &>> IO.popen('echo foo; exit 1') { |io| x = io.read; io.close; $?==0?x:fail }
<rubydoc> stderr: -e:2:in `block in <main>': unhandled exception (https://carc.in/#/r/7cam)
<TomyWork> &>> IO.popen('echo foo; exit 0') { |io| x = io.read; io.close; $?==0?x:fail }
<rubydoc> stderr: -e:2:in `block in <main>': unhandled exception (https://carc.in/#/r/7can)
<TomyWork> #&>> 1
<TomyWork> &>> 1
<rubydoc> # => 1 (https://carc.in/#/r/7caq)
<TomyWork> ok at least this works
<TomyWork> >> 1
<ruby[bot]> TomyWork: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<phaul> I am guessing the previous didn't work because the eval service runs inside jail for security reasons. So you can't access external shell
<TomyWork> possible
<TomyWork> i don't see that being a very effective security measure though
<phaul> &>> `ls -a /`
<rubydoc> # =>... check link for more (https://carc.in/#/r/7cau)
<TomyWork> a bit like blocking the context menu in windows explorer :)
<phaul> &>> `ls -a /home/`
<rubydoc> # => ".\n..\nruby\n" (https://carc.in/#/r/7cav)
<phaul> &>> `ls -a /home/ruby`
<rubydoc> # => ".\n..\n" (https://carc.in/#/r/7caw)
reber has joined #ruby
<TomyWork> &>> `echo $$`
<rubydoc> # => "" (https://carc.in/#/r/7cax)
<TomyWork> &>> `echo \$\$`
<rubydoc> # => "" (https://carc.in/#/r/7cay)
ta has quit [Quit: WeeChat 2.4]
<TomyWork> oh well enough hacking the bot :)
ta has joined #ruby
<Tuor> Hi, I would like to list all objects in a running ruby programm. How can I do that?
<phaul> ObjectSpace.each
<phaul> actually it's each_object
<Tuor> I get a 'NoMethodError'
<phaul> sorry I didn'tremember the correct name ^
<Tuor> OK.
bmurt has joined #ruby
<phaul> there are quirks though, read the docs..
<phaul> &ri ObjectSpace.each_object
<TomyWork> http://ideone.com/WSSVPk this one works
ta has quit [Client Quit]
chalkmonster has joined #ruby
ta has joined #ruby
drincruz_ has joined #ruby
deathwishdave has joined #ruby
<Tuor> I'm close: `ObjectSpace.each_object { |o| pp o } ` but it prints the complete objects, I only want the object names...
<Tuor> like: `a = [ 'q', 'w' ]` should be rpinted as just 'a' or even 'a => String'
chalkmonster has quit [Quit: WeeChat 2.5]
lucasb has joined #ruby
<Tuor> OK. How can I print all variables?
fphilipe_ has joined #ruby
<phaul> &>> Kernel.methods.grep(/variables/)
<rubydoc> # => [:local_variables, :global_variables, :class_variables, :instance_variables] (https://carc.in/#/r/7cb8)
sagax has joined #ruby
x86sk has joined #ruby
drnerdius has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 245 seconds]
greengriminal has joined #ruby
<TomyWork> anyone wanna play code-golf? :) IO.popen('echo foo; exit 0/1'){|p|x=p.read.chomp;p.close;$?==0?x:My_Error_Message_Here} # conditions are: 1. if the command exits with status zero, return the result as a string, minus the newline at the end. 2. if the command exits with a nonzero status, abort the program with a somewhat identifiable message containing "My Error Message Here" or something close.
Bish has quit [Ping timeout: 268 seconds]
<TomyWork> IO.popen('echo foo; exit 0/1').readlines[0].chop # this works if we assume that the command outputs nothing if it fails and a single terminated by a newline if it succeeds.
dhollinger has joined #ruby
k13nox has joined #ruby
TomyWork has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fphilipe_ has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
<Tuor> phaul: ah thx!
<Tuor> `self.instance_variables` is good. :)
<Tuor> got what I needed.
andikr has quit [Remote host closed the connection]
<Tuor> can I shorten? `"asdfqwerzxcv".gsub(/^a/, '').gsub(/qwer/, '').gsub(/v$/, '')`
za1b1tsu has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
<phaul> &>> "asdfqwerzxcv".sub(/^a(.*)qwer(.*)v$/, '\1\2')
<rubydoc> # => "sdfzxc" (https://carc.in/#/r/7cbd)
meinside has quit [Quit: Connection closed for inactivity]
rushsteve1 has joined #ruby
galaxie has joined #ruby
lord4163 has quit [Excess Flood]
jottr has joined #ruby
lord4163 has joined #ruby
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 258 seconds]
sriehl has joined #ruby
Ryctolagus has joined #ruby
fphilipe_ has joined #ruby
<rushsteve1> Hi I was wondering if I could get someone to review a patch I submitted last week? It's very simple, only 2 lines. https://bugs.ruby-lang.org/issues/15244#note-10
<rushsteve1> If this is the wrong place to be asking this, please let me know. This is my first submission so I'm still a bit confused on the workflow.
involans has joined #ruby
<canton7> rushsteve1, haven't you lost the "if (*p)" case?
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rushsteve1> Hmm yes I guess that could cause an issue if p is null
kyrylo has joined #ruby
kyrylo has quit [Client Quit]
<canton7> rushsteve1, well if p is null, *p is already a problem. I assume there's a check for that above. The while loop seems to be looping over \0 bytes?
Tuor has quit [Quit: Konversation terminated!]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rushsteve1> Ah I see it's stopping at the 0 byte to account for string termination.
<canton7> d'oh, yes, I had it backwards
jenrzzz has quit [Ping timeout: 245 seconds]
<canton7> it does seem redundant...
<rushsteve1> Yes but it might handle an obscure edge case
<rushsteve1> I updated the patch on the issue
kapilp has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
sriehl has quit [Quit: ZNC 1.7.4 - https://znc.in]
deathwishdave has joined #ruby
Ryctolagus has quit [Quit: Leaving]
howdoi has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
AJA4351 has joined #ruby
AJA4351 has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
jenrzzz has joined #ruby
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
cyclonis_ has joined #ruby
cyclonis has quit [Ping timeout: 246 seconds]
cyclonis_ has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Ping timeout: 246 seconds]
<rushsteve1> Anyone else have any feedback on the patch I submitted?
davor has quit [Ping timeout: 244 seconds]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
DigitallyBorn has quit [Ping timeout: 245 seconds]
davor has joined #ruby
cagomez has joined #ruby
Ryctolagus has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
oetjenj has joined #ruby
orbyt_ has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
jottr has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
Ryctolagus has quit [Read error: Connection reset by peer]
involans has quit [Quit: involans]
jottr has quit [Ping timeout: 245 seconds]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
jenrzzz has joined #ruby
ramfjord has joined #ruby
Ryctolagus has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
jottr has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
jenrzzz has quit [Ping timeout: 246 seconds]
involans has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
involans has quit [Client Quit]
involans has joined #ruby
jenrzzz has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
k13nox has quit [Quit: Leaving...]
jenrzzz has quit [Ping timeout: 248 seconds]
Ryctolagus has quit [Read error: Connection reset by peer]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
Ryctolagus has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
ascarter has joined #ruby
Guest79914 has joined #ruby
ascarter has quit [Client Quit]
ramfjord has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
involans has quit [Quit: involans]
ramfjord has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
sh7d has quit [Quit: meh]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
sh7d has joined #ruby
involans has joined #ruby
jottr has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
pwnd_nsfw has joined #ruby
ellcs has quit [Remote host closed the connection]
UserOO7 has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
ramfjord has joined #ruby
jenrzzz has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
involans has quit [Quit: involans]
jenrzzz has quit [Ping timeout: 268 seconds]
DaRock has quit [Ping timeout: 272 seconds]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
tf2ftw has joined #ruby
jenrzzz has joined #ruby
za1b1tsu has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
Guest79914 has quit []
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
jottr has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 246 seconds]
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
cyclonis has joined #ruby
cyclonis has quit [Excess Flood]
za1b1tsu has quit [Ping timeout: 258 seconds]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
fphilipe_ has joined #ruby
Ryctolagus has quit [Read error: Connection reset by peer]
Ryctolagus has joined #ruby
faces has joined #ruby
orbyt_ has quit [Read error: Connection reset by peer]
CrazyEddy has quit [Remote host closed the connection]
facest has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
CrazyEddy has joined #ruby
cagomez has quit []
jottr has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
sauvin has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 245 seconds]
leitz has joined #ruby
duderonomy has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
fphilipe_ has quit [Ping timeout: 245 seconds]
orbyt_ has joined #ruby
jottr has joined #ruby
suukim has quit [Quit: Konversation terminated!]
jmcgnh has quit [Ping timeout: 258 seconds]
prestorium has quit [Ping timeout: 258 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmcgnh has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
sameerynho has joined #ruby
Inline__ has joined #ruby
hiroaki has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
fphilipe_ has joined #ruby
morenoh149 has joined #ruby
Inline__ has quit [Quit: Leaving]
<leitz> Almost back in Ruby land...
Inline has joined #ruby
<havenwood> leitz: Welcome almost back!
ramfjord has joined #ruby
<leitz> havenwood, present thanks for an almost event! I was out of country, and chose to be totally off-line, for a week. Came back with a bad cold and had to work long days all week. In a few hours I'm back on to a normal schedule. Still dealing with the cold, though.
<leitz> I have another person who may contribute some code to my crewgen project. He needs/wants to learn Ruby and I'm happy to encourage that.
teardown has joined #ruby
hiroaki has quit [Ping timeout: 244 seconds]
<apotheon> I've become a Ruby mentor in the last week as well.
gix has joined #ruby
<leitz> apotheon, great job!
<apotheon> Thanks.
fphilipe_ has quit [Ping timeout: 245 seconds]
<leitz> Not sure if it would help, but here are my notes on mentoring an on-line group. https://github.com/LeamHall/90DW_mentoring
<apotheon> cool, I'll check it out
<leitz> The project was to spend 90 days learning C, with weekly chats via IRC.
<leitz> I keep thinking about doing the same thing with Ruby, or a facet of Ruby like RSpec.
<leitz> Let me know if you see any way to improve the process.
<apotheon> In my particular case, I'm just mentoring one person who's already in the same channel as me pretty much every day. I recommended a book, and he immediately started enjoying himself. I answer questions, offer advice on progress, help with debugging in a way that explains "why" . . . and when he's done with the book, I've got another suggestion to boost his game.
<apotheon> I find that, often, the hardest parts are getting people to click with the productive idioms of a language and helping figure out good projects to use for practical . . . practice.
<apotheon> (because good projects can be a very individualistic thing)
<leitz> I found choosing a book to be a great start. It saved me the trouble of explaining stuff that others have explained very well, and if someone isn't committed enough to get a book then are they really committed to learning?
<leitz> I'm at the "do a project" stage myself. Feeling the pressure to produce quickly versus the pressure to do things very well. :)
<apotheon> While it's pretty old, I find that Russ Olsen's Eloquent Ruby is the best practical intro to a programming language I've ever encountered.
<apotheon> It's close enough to current Ruby that, for a beginner level, I can shore up the age-related weaknesses just by being available to answer questions.
<apotheon> Before ER got published, Everyday Scripting With Ruby was my favorite Ruby beginner book.
<leitz> I spent the off-line week reading "The Well Grounded Rubyist". Pretty good, but not for a non-programmer. I've asked Dave Thomas if he's going to update "Programming Ruby". Hopefully one day.
<leitz> "Head First Ruby" was what I used when getting back into the swing of things.
morenoh149 has quit [Remote host closed the connection]
<apotheon> I think Eloquent Ruby requires at least as much background in programming as for a sysadmin with a couple years of experience, or an experienced hobby Unix-like OS user who isn't afraid of the command line at minimum.
morenoh149 has joined #ruby
jenrzzz has joined #ruby
morenoh149 has quit [Read error: Connection reset by peer]
morenoh149 has joined #ruby
jenrzzz_ has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 248 seconds]
stooj has quit [Quit: ZNC 1.7.3 - https://znc.in]
stooj has joined #ruby
glosoli has joined #ruby
bmurt has quit [Ping timeout: 276 seconds]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
nowhere_man has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
<morenoh149> anyone use asdf to install ruby? getting error "asdf: No version set for command bundle" when trying to run bundle
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
orbyt_ has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
greengriminal has joined #ruby
bmurt has joined #ruby
Swyper has joined #ruby
glosoli has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
conta1 has joined #ruby
<havenwood> morenoh149: What version of Ruby are you installing? Bundler only ships with very recent. Otherwise: gem install bundler
<morenoh149> ah, I was using ruby 2.1
<havenwood> morenoh149: Ah, yeah, Bundler does not ship with Ruby 2.1. RubyGems does, so you can: gem install bundler
<morenoh149> interesting thanks
lucasb has quit [Quit: Connection closed for inactivity]
<havenwood> morenoh149: If you *must* use a Ruby that old, make sure to use one that maintains back-ported security patches.
morenoh149 has quit [Ping timeout: 246 seconds]
<havenwood> morenoh149: Why do you need to use an ancient Ruby? I'm curious.
morenoh149 has joined #ruby
<apotheon> I just rbenv the hell out of everything. 1. install system Ruby; 2. install rbenv; 3. install other Rubies; 4. . . .; 5. Profit!
<apotheon> I should probably stop supporting 1.9.3 for my gem that still supports that version.
_dbugger has joined #ruby
dbugger has quit [Ping timeout: 264 seconds]
<havenwood> 2.6.3 ftw ;)
<Ryctolagus> Any suggestions for a good editor/IDE for working in JRuby on windows7?
<havenwood> Ryctolagus: VS Code
hiroaki has joined #ruby
fphilipe_ has joined #ruby
<Ryctolagus> havenwood:That looks awesome, sadly they are not on win 10 yet :(
<havenwood> Ryctolagus: Sorry, you said 7 and I missed it.
<havenwood> Ryctolagus: Isn't Windows 7... past EoL?
<havenwood> "extended support won't end until January 14, 2020"
<havenwood> I guess not!
<havenwood> *soon*
<Ryctolagus> havenwood:VERY soon it will be
<Ryctolagus> currently looking at Rubymine :/
<havenwood> Ryctolagus: They have a lovely WSL2 future to look forward to!
<Ryctolagus> havenwood: Truth! Then I won't have to build a weird bobcat/tomcat server behind IIS to deploy these too <face to desk>
<apotheon> I've never worked with JRuby, but if I was stuck on Windows I'd probably just use Vim for Ruby dev.
<havenwood> Ryctolagus: VS Code or Atom should do nicely. I've noticed some newer Rubyists and Railists prefer RubyMine in particular. At RubyKaigi the VS Code board had the most stars.
<apotheon> I've heard good things about VS Code, and Atom is pretty tolerable too, so those might be fine options.
<havenwood> Ryctolagus: VS Code has nice Ruby integrations. Tons of nice options, but that makes sense to me on Win.
<apotheon> (if you're into that kind of editor)
<Ryctolagus> apotheon: That is my typical setup, vim WTF!
<apotheon> Ryctolagus: s/WTF/FTW/ ?
<apotheon> I sometimes use interactive_ruby to turn Vim into a kind of inside-out IDE.
<Ryctolagus> apotheon: yep brain moving faster then fingers
<havenwood> Ryctolagus: The base VS Code Ruby package has a number of integrations available out of the box to help it act more like an IDE.
<havenwood> And add linting, etc.
morenoh149 has quit [Ping timeout: 245 seconds]
<Ryctolagus> I will try out both VS code and Rubymine. Thank you both.
<havenwood> I'd suggest taking a few minutes to setup a good configuration, then proliferate that, if you're setting up multiple Win 7 workstations.
<apotheon> I haven't used interactive_ruby for a while. I should start using that again. It's pretty handy.
<havenwood> apotheon: You mean IRB? Or is interactive_ruby a thing?
<Ryctolagus> apotheon: was was recently (yesterday) made aware of Pry.
<apotheon> havenwood: There's a thing called interactive_ruby that integrates Vim and IRB.
<havenwood> apotheon: Ahhhh, right!
<apotheon> havenwood: I've used Pry when Rails dev was my everday professional task.
<Ryctolagus> apotheon: Thats where I now sit.
<havenwood> The IRB in Ruby trunk has gotten some nice improvements, like syntax highlighting.
<havenwood> And we already have: binding.irb
<apotheon> havenwood: I could open a file in Vim from within IRB, then when I closed Vim I'd be back in IRB and have the context of it available, and so on. It was a REPL with an editor in it, instead of the usual IDE approach of an editor with a REPL inside it.
<havenwood> It's nice to see IRB move towards parity with Pry.
hiroaki has quit [Ping timeout: 248 seconds]
<havenwood> apotheon: That's funny, I do the same interaction but between Pry and Atom/Vim/editor-of-the-week.
<apotheon> I'd take another Rails job, I guess. It's better than having to write Python. The only Python dev I ever enjoyed was using Flask.
<Ryctolagus> I kind of stumbled into this one.
<apotheon> I dream of getting a C job, though.
<Ryctolagus> Common Lisp would be my cloud 9
<Ryctolagus> apotheon: have you tried Rust at all?
<apotheon> briefly, slightly
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ryctolagus> apotheon: I played with it a bit, got the book, made it 60% through before determining it was not applicable to my day to day.
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
<Ryctolagus> the concept of ownership are very intriguing.
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
<apotheon> Yeah, I didn't get far into Rust because I haven't found a use for it, basically.
<havenwood> this discussion reminds me of Artichoke Ruby
jottr has quit [Ping timeout: 272 seconds]
oetjenj has joined #ruby
<apotheon> I hadn't heard of Artichoke Ruby.
oetjenj has quit [Client Quit]
<havenwood> You can try it in the browser: https://artichoke.github.io/artichoke/
jottr has joined #ruby
oetjenj has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
<Ryctolagus> Oh man! That would be the bees knees!
oetjenj has quit [Client Quit]
<apotheon> I can't wait for a second attempt to create something like WASM, learning from the mistakes of the first.
<apotheon> I should get going.
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
<Ryctolagus> apotheon:Thank you for your advice and have a pleasant weekend.
<apotheon> You're welcome. Have a good'un.
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
<Ryctolagus> havenwood: I may need to pick my Rust book up again, this project would be worth contributing to.
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
hiroaki has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
Swyper has joined #ruby
fphilipe_ has quit [Ping timeout: 244 seconds]
drincruz has quit [Ping timeout: 268 seconds]
Intelo has joined #ruby
<Intelo> Whats the difference between ruby 4 and 5/6?
<Intelo> Is it major difference?
<havenwood> Intelo: Ruby 3 isn't out yet!
<havenwood> Intelo: This Christmas, Ruby 2.7 will be released. The current Ruby is Ruby 2.6.3.
<havenwood> Intelo: Do you mean Rails 4-6?
<havenwood> Intelo: Or something else?
morenoh149 has joined #ruby
<Intelo> sorry. I meant 2.3 2.4. 2.5
<Intelo> oh sorry....
<Intelo> sory sory
<Intelo> rails..
<Intelo> ya
<Intelo> I meant rails.
jottr has joined #ruby
<havenwood> Intelo: Yes, there are fairly substantial improvements and additions. Rails 5 introduced Action Cable and Rails API mode and Rails 6 introduces things including Action Mailbox and Active Text.
<Intelo> havenwood,
<Ryctolagus> havenwood: rubymine with Jruby is s.l.o.w. rubocop takes about 5-6 seconds to notice a change in the file.
<havenwood> Ryctolagus: Are you using the --dev flag?
Swyper has quit [Remote host closed the connection]
<Intelo> havenwood, ok
<Intelo> havenwood, difference between 3 and 4?
<havenwood> Ryctolagus: Let's talk in #jruby!
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 246 seconds]
ramfjord_ has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
Swyper has joined #ruby
fphilipe_ has joined #ruby
hiroaki has quit [Ping timeout: 248 seconds]
jenrzzz_ has quit [Ping timeout: 245 seconds]
Fernando-Basso has joined #ruby
orbyt_ has joined #ruby
jenrzzz has joined #ruby
admin123 has joined #ruby
morenoh149 has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
Swyper has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
sameerynho has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
ramfjord_ has quit [Ping timeout: 272 seconds]
<Intelo> havenwood, any good video free tutorial for ruby?
jenrzzz has quit [Ping timeout: 248 seconds]
GodFather has quit [Ping timeout: 246 seconds]
GodFather_ has quit [Ping timeout: 244 seconds]
<havenwood> Intelo: There are a number. Ruby Tapas are quite nice and a number are few, afair.
<havenwood> a number are free*
<Intelo> havenwood, some any?
<Intelo> link* any havenwood
<havenwood> Intelo: https://www.rubytapas.com/
henninb has joined #ruby
<Intelo> havenwood, I meant video tutorials
<havenwood> Those are videos.
<adam12> Intelo: driftingruby.com maybe?
<havenwood> Intelo: You want to generally learn Ruby? Any area of interest?
jenrzzz has joined #ruby
<Intelo> havenwood, just new to ruby. want to know its syntax
<Intelo> havenwood, all of it. As I have a big project in RoR
<Intelo> I have tutorial in RoR but cannot find of rub
<Intelo> y
Ryctolagus has quit [Quit: Leaving]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
DaRock has joined #ruby
tim17d has quit [Remote host closed the connection]
tim17d has joined #ruby
<havenwood> Intelo: What gems are involved. Do you have experience in other programming langs?
<havenwood> Intelo: Which langs?
<havenwood> Intelo: I find Ruby REPLs incredibly helpful for exploring the lang.
<havenwood> ?irb Intelo
<ruby[bot]> Intelo: irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<havenwood> ?pry Intelo
<ruby[bot]> Intelo: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<Intelo> havenwood, I did java and javascript
<Intelo> looking for videos
<havenwood> It's not a video, but it's interactive.
<Intelo> I am thankful but looking for professional videos like lynd
<Intelo> a
<havenwood> Intelo: I don't know of high quality, free videos to learn Ruby.
<Intelo> hm
<Intelo> ok.. thanks
<Intelo> got to go for now
<havenwood> Intelo: There are tons of free Ruby resources. I learned Ruby for free.
<Intelo> k
admin123 has quit [Ping timeout: 276 seconds]
Intelo_ has joined #ruby
rorochan has quit [Ping timeout: 245 seconds]
Intelo has quit [Ping timeout: 260 seconds]
fphilipe_ has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
admin123 has joined #ruby