havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.0, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
goepsilongo has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
<rapha> makes sense...
lucasb has quit [Quit: Connection closed for inactivity]
roshanavand_ has joined #ruby
ouestbillie has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
ouestbillie has joined #ruby
Pipip has joined #ruby
<LACampbell> rapha: don't. it's turned into enterprise java
<LACampbell> enterprise react. but with 1000s more transitive dependencies
<rapha> ah, yes, better i stay away. i was never good at graphics design anyways, and for being a web dev these days, you'd better be good at everything all at once.
<LACampbell> I want transition into more specialized frontend, maybe service workers. or web assembly. but I'm over being the person my team saying "do we really need this package?"
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
roshanavand_ has quit [Ping timeout: 268 seconds]
Sheilong has quit []
BSaboia has quit [Quit: This computer has gone to sleep]
reset has quit [Ping timeout: 240 seconds]
sagax has quit [Ping timeout: 256 seconds]
perrierjouet has quit [Quit: WeeChat 3.4]
Leon_ has joined #ruby
Leon_ is now known as Guest442
leonthemisfit has quit [Ping timeout: 240 seconds]
perrierjouet has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
bluedust has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
factor has quit [Read error: Connection reset by peer]
factor has joined #ruby
fef has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
duds- has quit [Remote host closed the connection]
Leon_ has joined #ruby
weaksauc_ has joined #ruby
Leon_ is now known as Guest4072
danjo07 has joined #ruby
whysthatso1250 has joined #ruby
rhe5 has joined #ruby
perrierjouet has joined #ruby
ouestbillie has quit [Remote host closed the connection]
seabre_ has joined #ruby
cognemo_ has joined #ruby
axisys_ has joined #ruby
nullheroes1 has joined #ruby
reset has joined #ruby
Guest442 has quit [*.net *.split]
gr33n7007h has quit [*.net *.split]
weaksauce has quit [*.net *.split]
Pipip has quit [*.net *.split]
axisys has quit [*.net *.split]
whysthatso125 has quit [*.net *.split]
Pixi has quit [*.net *.split]
axsuul has quit [*.net *.split]
waagrr has quit [*.net *.split]
brw has quit [*.net *.split]
danjo0 has quit [*.net *.split]
sam113101 has quit [*.net *.split]
rhe has quit [*.net *.split]
dviola has quit [*.net *.split]
nullheroes has quit [*.net *.split]
dostoyevsky2 has quit [*.net *.split]
cognemo has quit [*.net *.split]
_axx has quit [*.net *.split]
HyLian has quit [*.net *.split]
seabre has quit [*.net *.split]
danjo07 is now known as danjo0
whysthatso1250 is now known as whysthatso125
rhe5 is now known as rhe
factor has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
weaksauc_ has quit [Ping timeout: 256 seconds]
axsuul has joined #ruby
Pixi has joined #ruby
HyLian has joined #ruby
dostoyevsky2 has joined #ruby
sam113101 has joined #ruby
dviola has joined #ruby
_axx has joined #ruby
gr33n7007h has joined #ruby
brw has joined #ruby
dostoyevsky2 has quit [Max SendQ exceeded]
dostoyevsky2 has joined #ruby
goepsilongo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waagrr has joined #ruby
TomyWork has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
oxfuxxx has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
hanzo has quit [Quit: Connection closed for inactivity]
fef has quit [Ping timeout: 276 seconds]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 240 seconds]
fef has joined #ruby
oxfuxxx has quit [Read error: Connection reset by peer]
_ht has joined #ruby
bluedust has quit [Remote host closed the connection]
bluedust has joined #ruby
teclator has joined #ruby
cpk33 has joined #ruby
bluedust has quit [Ping timeout: 256 seconds]
infinityfye has joined #ruby
cpk33 has quit [Quit: Client closed]
bluedust has joined #ruby
duderonomy has joined #ruby
infinityfye has quit [Quit: Leaving]
John_Ivan has quit [Read error: Connection reset by peer]
Leon_ has joined #ruby
Leon_ is now known as Guest7231
Guest4072 has quit [Ping timeout: 256 seconds]
infinityfye has joined #ruby
cpk33 has joined #ruby
bluedust has quit [Remote host closed the connection]
Liothen has quit [Ping timeout: 268 seconds]
Liothen has joined #ruby
bluedust has joined #ruby
cpk33 has quit [Quit: Client closed]
roshanavand_ has joined #ruby
royo25 has joined #ruby
roshanavand_ has quit [Ping timeout: 240 seconds]
hsiktas[m] has quit [Quit: You have been kicked for being idle]
jmcgnh has quit [Ping timeout: 256 seconds]
sagax has joined #ruby
jmcgnh has joined #ruby
Bounga has joined #ruby
bluedust has quit [Remote host closed the connection]
CrazyEddy has quit [Ping timeout: 240 seconds]
Leon_ has joined #ruby
Leon_ is now known as Guest1499
bluedust has joined #ruby
CrazyEddy has joined #ruby
Guest7231 has quit [Ping timeout: 256 seconds]
___nick___ has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.4]
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 256 seconds]
TCZ has joined #ruby
bluedust_ has quit [Remote host closed the connection]
bluedust 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
roadie has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perrierjouet has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
<rapha> adam12: remember the Sequel "database is corrupt" thing I had ... it reared its head up again when I changed a loop (that causes read-access to that database) from #each to Parallel#each. funky.
<adam12> rapha: Interesting..
BSaboia has joined #ruby
TCZ has quit [Quit: Leaving]
<libsys> hello people... I'm using yard on my project but `rake release` generates `ri` docs... how can I change it to generate `yri` docs only?
oxfuxxx has joined #ruby
gr33n7007h has joined #ruby
<nakilon> what was the ruby cli for mapping dirs and files?
<adam12> libsys: Do you know where the `rake release` command comes from? Are there `require`'s in your Rakefile?
<adam12> Presuming it's from bundler through it's gem_tasks.
<adam12> Actually, I have no idea now, since that file doesn't seem to mention docs. Hmm.
roadie has quit [Read error: Connection reset by peer]
roadie has joined #ruby
<libsys> It's bundler indeed
<adam12> libsys: When you run `rake release` it generates docs? or when you install the gem produced by `rake release`
<libsys> looks like it's not something in control of a gem... but on user's .gemrc
<adam12> There is a gem hook you can use.
<libsys> well... when I install the gem indeed
<adam12> That goes in your gemspec. Let me see if I can find it.
oxfuxxx has quit [Ping timeout: 256 seconds]
<adam12> Rather, I thought there was..
<adam12> Hmm. I must be mistaken.
oxfuxxx has joined #ruby
bluedust has joined #ruby
<adam12> Actually, I think it does exist but they probably need YARD installed. https://github.com/lsegal/yard/blob/c0c039a942a41a98b8ac488839846e68fecc9fb6/yard.gemspec#L22
<adam12> You'd add that to your gemspec, in theory.
bluedust_ has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Ping timeout: 245 seconds]
bluedust has quit [Remote host closed the connection]
phryk has quit [Quit: ZNC 1.8.2 - https://znc.in]
oxfuxxx has joined #ruby
phryk has joined #ruby
goepsilongo has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
goepsilongo has quit [Client Quit]
perrierjouet has joined #ruby
keinbock has joined #ruby
bluedust has joined #ruby
graywolf has joined #ruby
graywolf has quit [Quit: WeeChat 3.4]
gproto23 has joined #ruby
<libsys> that still generates `ri` docs
<libsys> probably generates yri automatically also
TCZ has joined #ruby
TCZ has quit [Remote host closed the connection]
TCZ has joined #ruby
John_Ivan has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 245 seconds]
roadie has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Ping timeout: 256 seconds]
shokohsc has quit [Quit: Ping timeout (120 seconds)]
roadie has joined #ruby
keinbock has quit [Quit: WeeChat 1.9.1]
roadie has quit [Ping timeout: 250 seconds]
keinbock has joined #ruby
roadie has joined #ruby
gproto23 has quit [Ping timeout: 240 seconds]
shokohsc has joined #ruby
TCZ has quit [Quit: Leaving]
roadie has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
reset has quit [Quit: reset]
analogsalad has joined #ruby
shokohsc5 has joined #ruby
shokohsc has quit [Ping timeout: 240 seconds]
shokohsc5 is now known as shokohsc
duderonomy has joined #ruby
FetidToot has quit [Quit: The Lounge - https://thelounge.chat]
FetidToot has joined #ruby
bluedust_ has quit [Remote host closed the connection]
royo25 has quit [Quit: Bye]
pgib has quit [Ping timeout: 240 seconds]
libsys has quit [Ping timeout: 240 seconds]
libsys has joined #ruby
bluedust has joined #ruby
unyu has quit [Read error: Connection reset by peer]
unyu has joined #ruby
pgib has joined #ruby
gproto23 has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
oxfuxxx has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
bluedust has quit [Ping timeout: 256 seconds]
duds- has joined #ruby
bluedust has joined #ruby
hanzo has joined #ruby
<havenwood> I've been enjoying using bake.
<havenwood> And bake-gem.
roadie has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
bluedust has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 245 seconds]
<nakilon> I don't really understand the point of rake in first place
cnsvc- has joined #ruby
jaredo_ has joined #ruby
ule_ has joined #ruby
TomyWork has quit [*.net *.split]
waagrr has quit [*.net *.split]
danjo0 has quit [*.net *.split]
robotmay has quit [*.net *.split]
jhass has quit [*.net *.split]
yossarian has quit [*.net *.split]
mbrndtgn has quit [*.net *.split]
splud has quit [*.net *.split]
bhaak has quit [*.net *.split]
frodl has quit [*.net *.split]
ule has quit [*.net *.split]
georgemp has quit [*.net *.split]
entropie has quit [*.net *.split]
integral has quit [*.net *.split]
jaredo has quit [*.net *.split]
tv- has quit [*.net *.split]
psb_ has quit [*.net *.split]
dorian has quit [*.net *.split]
r3my has quit [*.net *.split]
cnsvc has quit [*.net *.split]
bjonnh has quit [*.net *.split]
DEac- has quit [*.net *.split]
Ca1us has quit [*.net *.split]
bastelfreak has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
Henry151 has quit [*.net *.split]
duds- has quit [*.net *.split]
hololeap has quit [*.net *.split]
aeris has quit [*.net *.split]
fef has quit [*.net *.split]
cornduck has quit [*.net *.split]
Goodbye_Vincent has quit [*.net *.split]
sixecho has quit [*.net *.split]
cout_ has quit [*.net *.split]
mahlon has quit [*.net *.split]
graemefawcett has quit [*.net *.split]
hwrd has quit [*.net *.split]
llua has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
foxxx0 has quit [*.net *.split]
leftylink has quit [*.net *.split]
lipoqil has quit [*.net *.split]
phenom has quit [*.net *.split]
belak has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
conjunctive has quit [*.net *.split]
josephl has quit [*.net *.split]
vito has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
jhass[m] has quit [*.net *.split]
artemon has quit [*.net *.split]
bougyman has quit [*.net *.split]
Artea has quit [*.net *.split]
mjanssen has quit [*.net *.split]
nebiros has quit [*.net *.split]
eof has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
jidar has quit [*.net *.split]
peder has quit [*.net *.split]
analogsalad has quit [*.net *.split]
perrierjouet has quit [*.net *.split]
_ht has quit [*.net *.split]
teclator has quit [*.net *.split]
axisys_ has quit [*.net *.split]
whysthatso125 has quit [*.net *.split]
ua__ has quit [*.net *.split]
kaleido has quit [*.net *.split]
infernix has quit [*.net *.split]
Rounin has quit [*.net *.split]
mixfix41 has quit [*.net *.split]
m_antis has quit [*.net *.split]
kinduff has quit [*.net *.split]
dka has quit [*.net *.split]
ralu has quit [*.net *.split]
Neopolitan has quit [*.net *.split]
dannyAAM has quit [*.net *.split]
ox1eef has quit [*.net *.split]
aindilis has quit [*.net *.split]
valeness_ has quit [*.net *.split]
eam_ has quit [*.net *.split]
adam12 has quit [*.net *.split]
jtdowney has quit [*.net *.split]
cornett has quit [*.net *.split]
unyu has quit [*.net *.split]
weaksauce has quit [*.net *.split]
CeNedra has quit [*.net *.split]
smp has quit [*.net *.split]
niv has quit [*.net *.split]
alex[m] has quit [*.net *.split]
manveru[m]1 has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
AEtherC0r3 has quit [*.net *.split]
gigamo has quit [*.net *.split]
mrus has quit [*.net *.split]
leachim6 has quit [*.net *.split]
Exa has quit [*.net *.split]
glider has quit [*.net *.split]
rapha has quit [*.net *.split]
benjaminwil has quit [*.net *.split]
slact[m] has quit [*.net *.split]
jposer has quit [*.net *.split]
srushe has quit [*.net *.split]
jhawthorn has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
pusewic|away_ has quit [*.net *.split]
tweaks has quit [*.net *.split]
peer has quit [*.net *.split]
Fusl has quit [*.net *.split]
LACampbell has quit [*.net *.split]
forvelin has quit [*.net *.split]
A_Dragon has quit [*.net *.split]
legahc has quit [*.net *.split]
FetidToot has quit [*.net *.split]
duderonomy has quit [*.net *.split]
___nick___ has quit [*.net *.split]
infinityfye has quit [*.net *.split]
aximik[m] has quit [*.net *.split]
andrea[m] has quit [*.net *.split]
devz3ro has quit [*.net *.split]
Vaevictus has quit [*.net *.split]
drincruz has quit [*.net *.split]
gfawcett has quit [*.net *.split]
moo has quit [*.net *.split]
pjlsergeant has quit [*.net *.split]
e2 has quit [*.net *.split]
miah has quit [*.net *.split]
seisatsu has quit [*.net *.split]
DenKn has quit [*.net *.split]
ccooke has quit [*.net *.split]
joenoon has quit [*.net *.split]
finsternis has quit [*.net *.split]
slothby has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
clemens3 has quit [*.net *.split]
CalimeroTeknik has quit [*.net *.split]
depesz has quit [*.net *.split]
ringo__ has quit [*.net *.split]
asio has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
saltrocklamp[m] has quit [*.net *.split]
keyvan has quit [*.net *.split]
cyj123 has quit [*.net *.split]
ollysmith_ has quit [*.net *.split]
pandabot has quit [*.net *.split]
balo has quit [*.net *.split]
micah has quit [*.net *.split]
cAMP has quit [*.net *.split]
legit has quit [*.net *.split]
hesco3 has quit [*.net *.split]
cuppajoeman has quit [*.net *.split]
newton has quit [*.net *.split]
con3 has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
hanzo has quit [*.net *.split]
oxfuxxx has quit [*.net *.split]
pgib has quit [*.net *.split]
shokohsc has quit [*.net *.split]
John_Ivan has quit [*.net *.split]
BSaboia has quit [*.net *.split]
sagax has quit [*.net *.split]
Guest1499 has quit [*.net *.split]
Liothen has quit [*.net *.split]
cognemo_ has quit [*.net *.split]
seabre_ has quit [*.net *.split]
rhe has quit [*.net *.split]
lunarkitty has quit [*.net *.split]
kaivai has quit [*.net *.split]
itok has quit [*.net *.split]
jimeh has quit [*.net *.split]
Cork has quit [*.net *.split]
joast has quit [*.net *.split]
justIrresolute has quit [*.net *.split]
ikonia has quit [*.net *.split]
havenwood has quit [*.net *.split]
Nowaker has quit [*.net *.split]
mooff has quit [*.net *.split]
eldritch_ has quit [*.net *.split]
Byteflux has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
leah2 has quit [*.net *.split]
jaredo_ is now known as jaredo
dorian has joined #ruby
eldritch_ has joined #ruby
aindilis has joined #ruby
slact[m] has joined #ruby
cAMP has joined #ruby
hesco3 has joined #ruby
Henry151 has joined #ruby
dka has joined #ruby
truc has joined #ruby
bhaak has joined #ruby
integral has joined #ruby
georgemp_ has joined #ruby
psb__ has joined #ruby
frodl has joined #ruby
jhass has joined #ruby
r3my has joined #ruby
entropie has joined #ruby
Caius has joined #ruby
TomyLobo2 has joined #ruby
mbrndtgn has joined #ruby
hanzo has joined #ruby
duds- has joined #ruby
pgib has joined #ruby
oxfuxxx has joined #ruby
unyu has joined #ruby
FetidToot has joined #ruby
shokohsc has joined #ruby
duderonomy has joined #ruby
analogsalad has joined #ruby
perrierjouet has joined #ruby
BSaboia has joined #ruby
John_Ivan has joined #ruby
___nick___ has joined #ruby
Guest1499 has joined #ruby
jmcgnh has joined #ruby
sagax has joined #ruby
infinityfye has joined #ruby
teclator has joined #ruby
Liothen has joined #ruby
_ht has joined #ruby
fef has joined #ruby
axisys_ has joined #ruby
weaksauce has joined #ruby
cognemo_ has joined #ruby
seabre_ has joined #ruby
rhe has joined #ruby
whysthatso125 has joined #ruby
CeNedra has joined #ruby
ua__ has joined #ruby
yxhuvud has joined #ruby
kaleido has joined #ruby
infernix has joined #ruby
Rounin has joined #ruby
lunarkitty has joined #ruby
kaivai has joined #ruby
smp has joined #ruby
DenKn has joined #ruby
pookie has joined #ruby
yos has joined #ruby
DEac-_ has joined #ruby
robotmay_ has joined #ruby
mixfix41 has joined #ruby
hololeap has joined #ruby
jimeh has joined #ruby
micah has joined #ruby
Cork has joined #ruby
niv has joined #ruby
mooff has joined #ruby
justIrresolute has joined #ruby
ikonia has joined #ruby
joast has joined #ruby
m_antis has joined #ruby
havenwood has joined #ruby
Nowaker has joined #ruby
kinduff has joined #ruby
aeris has joined #ruby
ralu has joined #ruby
jhass[m] has joined #ruby
aximik[m] has joined #ruby
artemon has joined #ruby
saltrocklamp[m] has joined #ruby
sixecho has joined #ruby
andrea[m] has joined #ruby
manveru[m]1 has joined #ruby
eam_ has joined #ruby
cornett has joined #ruby
ox1eef has joined #ruby
vito has joined #ruby
josephl has joined #ruby
conjunctive has joined #ruby
belak has joined #ruby
NightMonkey has joined #ruby
lipoqil has joined #ruby
phenom has joined #ruby
foxxx0 has joined #ruby
leftylink has joined #ruby
Fridtjof has joined #ruby
llua has joined #ruby
hwrd has joined #ruby
graemefawcett has joined #ruby
mahlon has joined #ruby
cout_ has joined #ruby
Goodbye_Vincent has joined #ruby
jidar has joined #ruby
peder has joined #ruby
TheBrayn has joined #ruby
eof has joined #ruby
Artea has joined #ruby
nebiros has joined #ruby
mjanssen has joined #ruby
bougyman has joined #ruby
benjaminwil has joined #ruby
cornduck has joined #ruby
rapha has joined #ruby
glider has joined #ruby
Exa has joined #ruby
gigamo has joined #ruby
nyuszika7h has joined #ruby
legahc has joined #ruby
A_Dragon has joined #ruby
forvelin has joined #ruby
Fusl has joined #ruby
peer has joined #ruby
tweaks has joined #ruby
coffeejunk has joined #ruby
pusewic|away_ has joined #ruby
jhawthorn has joined #ruby
srushe has joined #ruby
LACampbell has joined #ruby
asio has joined #ruby
jposer has joined #ruby
ringo__ has joined #ruby
depesz has joined #ruby
CalimeroTeknik has joined #ruby
clemens3 has joined #ruby
nemesit|znc has joined #ruby
slothby has joined #ruby
ccooke has joined #ruby
finsternis has joined #ruby
joenoon has joined #ruby
pjlsergeant has joined #ruby
moo has joined #ruby
gfawcett has joined #ruby
Vaevictus has joined #ruby
drincruz has joined #ruby
miah has joined #ruby
devz3ro has joined #ruby
e2 has joined #ruby
seisatsu has joined #ruby
EdwardIII has joined #ruby
con3 has joined #ruby
newton has joined #ruby
cuppajoeman has joined #ruby
adam12 has joined #ruby
jtdowney has joined #ruby
valeness_ has joined #ruby
Neopolitan has joined #ruby
dannyAAM has joined #ruby
Hobbyboy has joined #ruby
itok has joined #ruby
alex[m] has joined #ruby
legit has joined #ruby
balo has joined #ruby
leah2 has joined #ruby
markmarkmark has joined #ruby
Byteflux has joined #ruby
keyvan has joined #ruby
pandabot has joined #ruby
ollysmith_ has joined #ruby
cyj123 has joined #ruby
leachim6 has joined #ruby
mrus has joined #ruby
AEtherC0r3 has joined #ruby
danjo0 has joined #ruby
TomyLobo2 has quit [Quit: Leaving]
infernix has quit [Ping timeout: 249 seconds]
tv- has joined #ruby
bastelfreak has joined #ruby
splud has joined #ruby
fef has quit [Ping timeout: 276 seconds]
waagrr has joined #ruby
infernix has joined #ruby
<micah> I'm trying to start a rails app via passenger, in a container, but it fails because the Gemfile.lock is read-only... why does it need to write to it?
trillp has joined #ruby
<micah> leah2: ooh, i'll try that! thanks
<leah2> should be default imo but noone asked me ;) but i think i hit this before
<weaksauce> i wonder if they should add some explanation of why and how to overcome that to the error message
<micah> that would be better than what it is now for sure
llua has quit [Quit: <Rudolph> shell code is what greycat reads to kids when he tucks them in]
llua has joined #ruby
<mooff> are there any nice idioms for defaulting the first arg to a method?
<leah2> def foo(first=Math.sin(1)); first; end
<leah2> or what? :)
pookie has quit [Quit: All for nothing]
<weaksauce> what do you mean mooff
<weaksauce> unless you mean what leah2 said
Aylat has joined #ruby
olspookishmagus has joined #ruby
Sheilong has joined #ruby
trillp has quit [Quit: WeeChat 3.3]
m_antis has quit [Quit: ZNC - https://znc.in]
m_antis has joined #ruby
llua has quit [Quit: <Rudolph> shell code is what greycat reads to kids when he tucks them in]
llua has joined #ruby
infinityfye has quit [Quit: Leaving]
yos has quit [Ping timeout: 240 seconds]
Aylat has quit [Remote host closed the connection]
yossarian has joined #ruby
yossarian has joined #ruby
yossarian has quit [Changing host]
Aylat has joined #ruby
hanzo has quit [Quit: Connection closed for inactivity]
yossarian has quit [Ping timeout: 256 seconds]
gr33n7007h has quit [Quit: WeeChat 3.4]
gr33n7007h has joined #ruby
gproto23 has quit [Ping timeout: 256 seconds]
_ht has quit [Remote host closed the connection]
<havenwood> mooff: How can you omit the first argument and provide a second?
<havenwood> mooff: Use keyword arguments instead.
___nick___ has quit [Ping timeout: 240 seconds]
<adam12> I think it's possible.
<adam12> >> def foo(default="foo", bar); { default: default, bar: bar }; end; foo("bar")
<ruby[bot]> adam12: I'm terribly sorry, I could not evaluate your code because of an error: JSON::ParserError:A JSON text must at least contain two octets!
<adam12> ruby[bot]: You're dead to me.
<nakilon> he's terribly sorry
<havenwood> Error: Octets!
<havenwood> My new fav error.
<havenwood> Just has a ring to it.
<weaksauce> the problem with that adam12 is that you have to supply every parameter if you want to override the first. I'd say named arguments are nicer
<nakilon> adam12 did you mean the opposite arg order?
<adam12> weaksauce: It works fine for first optional. I wouldn't go any more complex than that tho, and I would default to named or a mixture of both (using the positional as the default to the named, for example).
<havenwood> >> class Octets < StandardError; end; module Kernel def Octets! = Octets end; raise Octets!
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: JSON::ParserError:A JSON text must at least contain two octets!
<adam12> nakilon: Nope
<weaksauce> adam12 not sure what you mean by works fine?
<adam12> weaksauce: Does it not work for you?
<weaksauce> the result gets you: foo("bar") => {:default=>"foo", :bar=>"bar"}
<weaksauce> yeah it works fine but if you want to override it you'd have to do foo "bar", "baz"
<adam12> weaksauce: Yeah. Was that not the question? Maybe I'm lost.
* nakilon is surprised it works at all
yossarian has joined #ruby
yossarian has quit [Changing host]
yossarian has joined #ruby
<nakilon> where do I read about it?
<adam12> nakilon: You have Jeremy's book Polished Ruby? It's in there.
<nakilon> no official page?
<havenwood> >> def foo(default="foo", bar) = {default: default, bar: bar}; [method(:foo).call(:first), method
<havenwood> (:foo).curry(2).call(:first).call(:second)]
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: JSON::ParserError:A JSON text must at least contain two octets!
<havenwood> #=> [{:default=>"foo", :bar=>:first}, {:default=>:first, :bar=>:second}]
<havenwood> I still wish curry curried blocks.
<adam12> nakilon: I'm not sure, tbh. I cant' remember ever using it in the past. But it's a trick Sequel uses in some places, where you can provide a column or a table and column. ie. def qualify(table=nil, column); end; qualify("posts"); qualify("blog", "posts")
<havenwood> adam12: fancy
<havenwood> hadn't thought of using it like that. interesting.
<weaksauce> adam12 maybe i have it wrong and you have it right?
<weaksauce> i suppose they could want it that way
<adam12> havenwood: we have all the finest method definitions, with your choice of grey poupon.
<nakilon> I always saw it done like: a,b=default,a unless b
<havenwood> Wait, you can't curry keyword arguments? What the heck is this code I wrote? https://gist.github.com/havenwood/db041566abeac894602c188c77374040
<nakilon> in my country it's prohibited to use features of the language that are not known to all the other people
<adam12> nakilon: heh
<nakilon> for many years even ruby was prohibited
<nakilon> anyway
<havenwood> Actually, I still like that. I stand by this.
<havenwood> ['{"aim":true}', '{"impossible":false}'].map &JSON.:parse.curry.(symbolize_names: true)
<havenwood> #=> [{:aim=>true}, {:impossible=>false}]
<havenwood> Kinda fun. :)
hanzo has joined #ruby
<havenwood> But .: never landed. :(
<havenwood> JSON.public_method(:parse).curry.(symbolize_names: true)
<adam12> havenwood: I'm actually OK with that. We're caressing the butt of Perl as it is. Don't want to overtake it.
<havenwood> It was slow. But I don't like writing `method(:foo)` so much.
<havenwood> And then of course expand that to `public_method(:foo)`, for politeness, heh.
<havenwood> I wouldn't mind that *one more* shorthand, but point taken.
<havenwood> adam12: #curry for kwargs actually seems like a way to avoid new syntax
<havenwood> too bad it's for play
<nakilon> I would use the useless &. for that
<havenwood> i guess i have a pure ruby implementation of curry that supports both kwargs and blocks.
<havenwood> so doable as a gem or whatev even without C exts
analogsalad has quit [Quit: bye]
<havenwood> New RubyGems out: gem update --system
<Aylat> i was checking that curry code
<Aylat> what't the arrow operator?
<Aylat> -> *curry_args ...
<havenwood> Aylat: it's a lambda literal
DEac-_ is now known as DEac-
<havenwood> Aylat: `->(*curry_args) { }` is `lambda { |*curry_args| }`
<Aylat> oooh
<Aylat> i should learn how lambdas work
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand_ has joined #ruby
bluedust has joined #ruby
<Aylat> You earned a new follower, nice examples dude
<Aylat> need to read a bit more about lambdas, but not today, really tired, seems interesting and useful
<havenwood> 🙌
roshanavand__ has joined #ruby
roshanavand_ has quit [Ping timeout: 250 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Aylat has quit [Quit: Leaving]
hololeap has quit [Ping timeout: 276 seconds]
hololeap_ has joined #ruby
<micah> how do I configure where the database.yml for a rails app is located?
constxd_ has joined #ruby
<constxd_> kings
roshanavand__ has quit [Ping timeout: 256 seconds]
<constxd_> does ruby have a method like this
<constxd_> 'a bb cc ddd'.split.some_method(&:len) == {1 => ['a'], 2 => ['bb', 'cc'], 3 => ['ddd']}
<constxd_> does that mystery method exist
<constxd_> if not how would you accomplish this instead
<constxd_> oops that should be &:length
<adam12> constxd_: Enumerable#tally\
<adam12> (remove the backslash)_
<adam12> Can't type today apparently.
<nakilon> constxd_ group_by
<nakilon> group_by(&:size)
<constxd_> ah
<constxd_> i thought group_by was like
<adam12> Ohh
<constxd_> ['a', 'bb', 'cc', 'ddd'].group_by(&:size) == [['a'], ['bb', 'cc'], ['ddd']]
<adam12> I misread the desired output.
<constxd_> in that case
<constxd_> does *that* method exist
<constxd_> chunk_while?
<nakilon> there is .chunk
<constxd_> oh chunk yeah, kinda does it
<adam12> 'a bb cc ddd'.split.each_with_object(Hash.new { |k, v| k[v] = [] }) { |el, obj| obj[el.length].push(el) }
<constxd_> isn't that group_by
<adam12> Damn, it is. LOL
<adam12> I give up. It's been a long day. bbl.
<constxd_> hahaha