havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: 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!
SunWuKung has quit [Quit: iLeave]
SunWuKung has joined #ruby
baojg has joined #ruby
chromis has left #ruby [#ruby]
SunWuKung5 has joined #ruby
SunWuKung has quit [Ping timeout: 272 seconds]
SunWuKung5 is now known as SunWuKung
Garb0 has quit [Read error: Connection reset by peer]
SunWuKung8 has joined #ruby
SunWuKung has quit [Ping timeout: 260 seconds]
SunWuKung8 is now known as SunWuKung
ferche23 has quit [Ping timeout: 246 seconds]
Garb0 has joined #ruby
TCZ has quit [Quit: Leaving]
ferche23 has joined #ruby
_whitelogger has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 256 seconds]
ferche23 has quit [Ping timeout: 246 seconds]
ferche23 has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
cnsvc has joined #ruby
ur5us has joined #ruby
rcvalle has quit [Ping timeout: 240 seconds]
sergioro has joined #ruby
bambanx has quit [Quit: Leaving]
ldepandis has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 264 seconds]
yelloB has joined #ruby
yelloB has quit [Remote host closed the connection]
VPS has quit [Quit: Departure requested.]
rcvalle has joined #ruby
burgestrand has joined #ruby
Benett has quit [Remote host closed the connection]
burgestrand has quit [Client Quit]
jinmiaol2 has joined #ruby
Benett has joined #ruby
Garb0 has quit [Remote host closed the connection]
Garb0 has joined #ruby
gitter1234 has quit [Quit: Connection closed for inactivity]
jinie has quit [Ping timeout: 246 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
jinmiaol2 has quit [Remote host closed the connection]
jinie has joined #ruby
vqrs has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
vqrs has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
Benett has quit [Quit:  ]
Benett has joined #ruby
entel has quit [Quit: Connection closed for inactivity]
Emmanuel_Chanel has quit [Quit: Leaving]
tpanarch1st has quit [Read error: Connection reset by peer]
mr_rich101 has quit [Quit: ZNC - http://znc.in]
polishdub has joined #ruby
ferche23 has quit [Ping timeout: 260 seconds]
mr_rich101 has joined #ruby
ChmEarl has quit [Quit: Leaving]
Archenoth has joined #ruby
Emmanuel_Chanel has joined #ruby
Garb0 has quit [Quit: Leaving]
greypack has quit [Read error: Connection reset by peer]
greypack has joined #ruby
miskatonic has joined #ruby
ferche23 has joined #ruby
chalkmonster has joined #ruby
plutes has quit [Ping timeout: 264 seconds]
plutes has joined #ruby
plutes has quit [Max SendQ exceeded]
polishdub has quit [Quit: leaving]
<lunarkitty> Is it possible to take an already defined public method and change it to private?
CrazyEddy has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.8]
ferche23 has quit [Quit: Leaving]
ferche23 has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
ldepandis has quit [Ping timeout: 246 seconds]
jetchisel has joined #ruby
drincruz has joined #ruby
burgestrand has joined #ruby
cgfbee has joined #ruby
burgestrand has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
vrih has joined #ruby
conta has joined #ruby
vondruch has joined #ruby
agent_white has quit [Quit: leaving]
duderonomy has quit [Ping timeout: 260 seconds]
<jhass> lunarkitty: yes, private is just a method call, Module#private and receives a symbol with the method name as an argument
balo has joined #ruby
duderonomy has joined #ruby
ferche23 has quit [Read error: Connection reset by peer]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
imode has quit [Ping timeout: 260 seconds]
schne1der has joined #ruby
drincruz has joined #ruby
conta has quit [Quit: conta]
drincruz has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
akem has quit [Quit: Leaving]
duderono_ has joined #ruby
duderonomy has quit [Read error: Connection reset by peer]
duderono_ has quit [Client Quit]
conta has joined #ruby
Garb0 has joined #ruby
wilhelm418 has joined #ruby
mheld has quit [Quit: Connection closed for inactivity]
sergioro has quit [Ping timeout: 240 seconds]
sergioro has joined #ruby
conta1 has joined #ruby
conta has quit [Ping timeout: 265 seconds]
conta1 is now known as conta
Garb0 has quit [Quit: Leaving]
akem has joined #ruby
dionysus69 has joined #ruby
infinityfye has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.8]
<lunarkitty> interesting
sergioro has quit [Quit: Lost terminal]
CommunistWolf has quit [Quit: No Ping reply in 180 seconds.]
CommunistWolf has joined #ruby
al2o3-cr has joined #ruby
drincruz has joined #ruby
miskatonic has quit [Remote host closed the connection]
drincruz has quit [Ping timeout: 260 seconds]
ua_ has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Quit: WeeChat 2.8]
al2o3-cr has joined #ruby
ua_ has joined #ruby
AndroidKK has joined #ruby
AndroidKitKat has quit [Ping timeout: 258 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
darkstardev13 has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
darkstardev13 has joined #ruby
donofrio has joined #ruby
FastJack has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
sysh has joined #ruby
akem has quit [Ping timeout: 246 seconds]
entel has joined #ruby
ldepandis has joined #ruby
fercell has joined #ruby
TCZ has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
chalkmonster has joined #ruby
akem has joined #ruby
drincruz has joined #ruby
Garb0 has joined #ruby
vondruch has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
hightower2 has joined #ruby
<hightower2> Hey folks are you aware of any macro language implemented in Ruby? (By 'macro language' I mean things like m4, but as mentioned, ones implemented in Ruby)
drincruz has joined #ruby
<jhass> erb?
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris is now known as _aeris_
leitz has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
gitter1234 has joined #ruby
<apotheon> I'm not sure I'd consider erb "like m4".
drincruz has joined #ruby
Alexander-47u has joined #ruby
<Alexander-47u> hi
<Alexander-47u> what does |x| do
<leitz> Alexander-47u, if you're iterating through a block, it sets the iterated value to the variable x.
<leitz> So array.each { |x| puts x } would "puts" each element in the array.
chalkmonster has quit [Quit: WeeChat 2.8]
<Alexander-47u> thanks!
<jhass> so you want to always read it as part of the block delimiters, .each { |x| } or .each do |x| end
mikecmpbll has quit [Ping timeout: 256 seconds]
d3bug has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
drincruz has joined #ruby
TCZ has quit [Quit: Leaving]
Benett has quit [K-Lined]
Benett has joined #ruby
Xeago has joined #ruby
burningserenity has joined #ruby
burgestrand has joined #ruby
burningserenity has quit [Read error: Connection reset by peer]
burningserenity has joined #ruby
marahin has joined #ruby
burningserenity has quit [Remote host closed the connection]
kristian_on_linu has joined #ruby
nullv4lue has joined #ruby
stdedos has joined #ruby
chalkmonster has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
JasonO has quit [Excess Flood]
JasonO has joined #ruby
ChmEarl has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
hightower2 has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
comet23 has joined #ruby
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
schne1der has quit [Ping timeout: 246 seconds]
stdedos has quit [Quit: Connection closed]
davispuh has joined #ruby
stooj has quit [Ping timeout: 272 seconds]
burgestrand has quit [Quit: burgestrand]
stooj has joined #ruby
cd has quit [Quit: cd]
Garb0 has quit [Read error: Connection reset by peer]
Garb0 has joined #ruby
baojg has joined #ruby
CommunistWolf has quit [Ping timeout: 260 seconds]
conta has quit [Quit: conta]
CommunistWolf has joined #ruby
baojg has quit [Remote host closed the connection]
sergioro has joined #ruby
Garb0 has quit [Quit: Leaving]
sergushakov has quit [Quit: WeeChat 2.3]
sergushakov has joined #ruby
roadie has joined #ruby
schne1der has joined #ruby
chalkmonster has joined #ruby
hiroaki has joined #ruby
TCZ has joined #ruby
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
nofxx_ has quit [Remote host closed the connection]
ropeney has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
nullv4lue has quit [Quit: leaving]
wilhelm418 has quit [Ping timeout: 260 seconds]
burningserenity has joined #ruby
duderonomy has joined #ruby
ropeney has joined #ruby
rcvalle has quit [Remote host closed the connection]
burgestrand has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.8]
al2o3-cr has joined #ruby
burningserenity has quit [Ping timeout: 260 seconds]
burningserenity has joined #ruby
rcvalle has joined #ruby
cthulchu_ has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
fercell has quit [Quit: WeeChat 2.8]
<TCZ> xd
TCZ has quit [Quit: Leaving]
imode has joined #ruby
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
comet23 has quit [Quit: Connection closed for inactivity]
burningserenity has quit [Quit: Leaving.]
burgestrand has quit [Quit: burgestrand]
_aeris_ has quit [Remote host closed the connection]
ritalinona has quit [Remote host closed the connection]
ritalinona has joined #ruby
_aeris_ has joined #ruby
burningserenity has joined #ruby
jinmiaol2 has joined #ruby
gix has joined #ruby
TomyWork has quit [Remote host closed the connection]
d3bug has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
sergushakov has quit [Quit: WeeChat 2.3]
MuffinPimp has quit [Ping timeout: 240 seconds]
hightower3 has joined #ruby
wilhelm418 has joined #ruby
conta has joined #ruby
lunarkitty has quit [Ping timeout: 260 seconds]
lunarkitty has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
greypack has quit [Ping timeout: 258 seconds]
sauvin has quit [Ping timeout: 265 seconds]
rprimus has quit [Quit: leaving]
greypack has joined #ruby
conta has quit [Ping timeout: 260 seconds]
burningserenity has quit [Remote host closed the connection]
chalkmonster has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinmiaol2 has quit [Remote host closed the connection]
conta has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
yelloB has joined #ruby
conta has quit [Quit: conta]
yelloB has quit [Remote host closed the connection]
Seeping__ has joined #ruby
Seeping__ is now known as CPng|N
CPng|N is now known as CPngN
chouhoulis has joined #ruby
wilhelm418 has quit [Quit: WeeChat 2.8]
sh7d has quit [Read error: Connection reset by peer]
CPngN is now known as CPng|N
sh7d has joined #ruby
burningserenity has joined #ruby
ldepandis has joined #ruby
infinityfye has quit [Ping timeout: 240 seconds]
sysh has quit [Remote host closed the connection]
burningserenity has quit [Quit: Leaving.]
kristian_on_linu has quit [Remote host closed the connection]
CPng|N has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
SeepingN has joined #ruby
baweaver has joined #ruby
Alexander-47u has quit [Quit: Leaving]
ua_ is now known as ua
stooj has quit [Quit: ZNC 1.7.5 - https://znc.in]
stooj has joined #ruby
ur5us has joined #ruby
chalkmonster has joined #ruby
<kaleido> someone sanity check me before i off myself. is this valid regex to match !covid followed by any alphanumeric between 1 and 9 characters? "/^!covid (\w{1-9})/"
<kaleido> minus the extra "" of course :(
<adam12> kaleido: What's an example input you're trying to match?
<adam12> Something like "!covid FOOBAR"?
<kaleido> !covid libya
<kaleido> as an example
<adam12> kaleido: You're close. You want a comma instead of a hyphen.
<al2o3-cr> /^!covid (\p{Alnum}{1,9})/
<al2o3-cr> or maybe use \A
<havenwood> kaleido You want beginning of line or beginning of string?
<kaleido> beginning of line
roadie has quit [Ping timeout: 272 seconds]
<al2o3-cr> kaleido: are you parsing user input from IRC?
<kaleido> yeah
<havenwood> kaleido: Named captures tend to be nicer than numbered: /^!covid (?<word>[[:alnum:]]{1,9})/
<al2o3-cr> you pretty much want \A then
<havenwood> kaleido: /\A!covid (?<word>[[:alnum:]]{1,9})/
<havenwood> kaleido: Why numeric?
<kaleido> well, if i ever get it all working, it can parse down to zip codes
dionysus69 has quit [Quit: dionysus69]
<kaleido> but that's a big if :D
<havenwood> kaleido: How about two regexps?
<havenwood> kaleido: /^!covid (?<zip>\w{5})/
<havenwood> kaleido: I mean: /^!covid (?<zip>\d{5})/
<kaleido> im actually only really doing this to learn regexp
<havenwood> kaleido: then do groups, work OR zip with named captures.
<havenwood> words*
<havenwood> kaleido: For example:
<havenwood> &>> '!covid 90210'.match(/\A!covid (?:(?<word>[[:alpha:]]{1,9})|(?<zip>\d{5}))/)
<rubydoc> # => #<MatchData "!covid 90210" word:nil zip:"90210"> (https://carc.in/#/r/90c9)
<havenwood> &>> '!covid Italy'.match(/\A!covid (?:(?<word>[[:alpha:]]{1,9})|(?<zip>\d{5}))/)
<rubydoc> # => #<MatchData "!covid Italy" word:"Italy" zip:nil> (https://carc.in/#/r/90ca)
<havenwood> &>> '!covid 90210'.match(/\A!covid (?:(?<word>[[:alpha:]]{1,9})|(?<zip>\d{5}))/).named_captures
<rubydoc> # => {"word"=>nil, "zip"=>"90210"} (https://carc.in/#/r/90cb)
<havenwood> kaleido: Does that ^ regexp make sense?
<kaleido> i think so, i'm rereading it a few times
greypack has quit [Quit: All your IRC are belong to ZNC]
<al2o3-cr> is benchmark-ips broke for anyone else or just me? LoadError (cannot load such file -- benchmark/ips/stats/stats_metric)
greypack has joined #ruby
RiPuk has quit [Quit: ZNC 1.8.0 - https://znc.in]
RiPuk has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
tau has joined #ruby
RiPuk has quit [Quit: ZNC 1.8.0 - https://znc.in]
RiPuk has joined #ruby
roadie has joined #ruby
apoc has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
chalkmonster has quit [Quit: WeeChat 2.8]
howdoi has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
apoc has joined #ruby
<havenwood> al2o3-cr: I'm actually getting an RDoc::Parser error on install. :O
<havenwood> al2o3-cr: RDoc::Parser::Ruby failure around line 176 of lib/benchmark/ips.rb
schne1der has quit [Ping timeout: 264 seconds]
<havenwood> (NoMethodError) undefined method `[]' for nil:NilClass
<howdoi> my factory has the required trait, I am able to see in the binding.pry too, but getting an error Trait not registered:, what might be the issue?
<al2o3-cr> havenwood: hmm, i don't get that error, just one above.
<havenwood> al2o3-cr: If I --no-document I get your same error: LoadError: cannot load such file -- benchmark/ips/stats/stats_metric
tau has quit [Read error: Connection reset by peer]
* howdoi sits in a corner and waits
SeepingN has quit [Read error: Connection reset by peer]
<al2o3-cr> ah, that's why, i have --no-document on by default .
<havenwood> al2o3-cr: Looks like it's fixed on master but no version cut yet. https://github.com/evanphx/benchmark-ips/commit/79c502b558752a572af288f069eb1fb8c73c79f0
gitter1234 has quit [Quit: Connection closed for inactivity]
SeepingN has joined #ruby
<havenwood> howdoi: Show a gist of your factory bot associations?
<al2o3-cr> havenwood: ah nice, we'll sit and wait then ;)
Emmanuel_Chanel has joined #ruby
* al2o3-cr typing and watching netflix
<al2o3-cr> 8 minutes into the first episode of "designated survivor" hope it's good :)
<howdoi> trait 'from_#{type}'.to_sym do
<howdoi> end
<howdoi> ...
<howdoi> [:m,:v].each do |type|
<howdoi> end
RiPuk has quit [Quit: ZNC 1.8.0 - https://znc.in]
RiPuk has joined #ruby
<al2o3-cr> howdoi: that won't interpolate if you are actually using single quotes.
<howdoi> al2o3-cr: good catch, wonder why the linter didn't say a thing
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<howdoi> thanks, that worked
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
<al2o3-cr> 👍
d3bug has quit [Quit: Connection closed for inactivity]
<havenwood> gem update --system && yes "N" | gem update && gem cleanup
<al2o3-cr> havenwood: i think i need tp clean up more often https://gist.github.com/gr33n7007h/dd024e3dcc26d59f25b2849b2cf9e060 haha :)
d3bug has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
<al2o3-cr> havenwood: is git_install new in 3.1.3?
<havenwood> al2o3-cr: Nope. That's from the specific_install gem.
<al2o3-cr> oh, ok. i just didn't remember seeing that option :)
<havenwood> al2o3-cr: just an alias, i think
cow[moo] has joined #ruby
<al2o3-cr> havenwood: i think your right, looking at the description.
<kaleido> havenwood: thanks btw for the regexp tips earlier
<havenwood> kaleido: you're welcome!
j416 has quit [Ping timeout: 256 seconds]
j416 has joined #ruby
roadie has quit [Ping timeout: 246 seconds]
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
TCZ has quit [Quit: Leaving]
Rakko has joined #ruby
leitz has quit [Remote host closed the connection]
leitz has joined #ruby
roadie has joined #ruby
drincruz has quit [Ping timeout: 264 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has quit [Read error: Connection reset by peer]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristian_on_linu has joined #ruby
drincruz has joined #ruby
<al2o3-cr> havenwood: new version cut benchmark-ips
<havenwood> al2o3-cr: woot
<al2o3-cr> :)