havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: 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!
postmodern has joined #ruby
zlogan has quit [Ping timeout: 272 seconds]
TCZ has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
sevvie has quit [Changing host]
sevvie has joined #ruby
hiroaki_ has quit [Ping timeout: 240 seconds]
bvdw has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
TCZ is now known as covid
banisterfiend has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildtrees has quit [Quit: Leaving]
NODE has left #ruby [#ruby]
hays has quit [Quit: hays]
hays has joined #ruby
NODE has joined #ruby
bvdw has joined #ruby
Eiam has joined #ruby
drincruz_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
StoneCypherWork has joined #ruby
hays has quit [Quit: hays]
hays has joined #ruby
StoneCypherWork has quit [Ping timeout: 240 seconds]
NODE has quit [Quit: changing servers]
jenrzzz has quit [Ping timeout: 260 seconds]
NODE has joined #ruby
tau has joined #ruby
schne1der has quit [Ping timeout: 258 seconds]
john2496 has joined #ruby
hays has quit [Quit: hays]
hays has joined #ruby
drincruz_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
hays has quit [Client Quit]
hays has joined #ruby
bvdw has quit [Quit: bvdw]
hays has quit [Client Quit]
hays has joined #ruby
cthulchu_ has quit [Ping timeout: 272 seconds]
davidw has quit [Ping timeout: 255 seconds]
hays has quit [Client Quit]
hays has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
hays has quit [Quit: hays]
hays has joined #ruby
lightstalker has joined #ruby
nibbo has quit [Ping timeout: 240 seconds]
i9zO5AP has joined #ruby
cc__ has quit [Remote host closed the connection]
Ai9zO5AP has quit [Ping timeout: 258 seconds]
tau has quit [Read error: Connection reset by peer]
tau has joined #ruby
code_zombie has quit [Quit: Leaving]
drincruz_ has joined #ruby
hutch has quit [Ping timeout: 260 seconds]
hutch has joined #ruby
sergioro has joined #ruby
splud_wurk has quit [Quit: splud_wurk]
covid has quit [Quit: Leaving]
hutch has quit [Ping timeout: 255 seconds]
meinside has joined #ruby
bvdw has joined #ruby
StoneCypherWork has joined #ruby
StoneCypherWork has quit [Ping timeout: 260 seconds]
nibbo has joined #ruby
john2496 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 258 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
john2496 has joined #ruby
m_antis has joined #ruby
alfiemax has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
m_antis has quit [Remote host closed the connection]
m_antis has joined #ruby
m_antis has quit [Remote host closed the connection]
m_antis has joined #ruby
m_antis has quit [Remote host closed the connection]
chalkmonster has joined #ruby
alfiemax has quit [Remote host closed the connection]
drincruz_ has quit [Ping timeout: 255 seconds]
nibbo has quit [Ping timeout: 240 seconds]
drincruz_ has joined #ruby
drincruz has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
john2496 has quit [Read error: Connection reset by peer]
john2496 has joined #ruby
drincruz_ has joined #ruby
m_antis has joined #ruby
ksmybr has joined #ruby
nibbo has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
bsdband89 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
nibbo has quit [Ping timeout: 240 seconds]
akemhp has joined #ruby
ianbrown78 has quit [Ping timeout: 255 seconds]
nibbo has joined #ruby
ianbrown78 has joined #ruby
teardown has quit [Read error: Connection reset by peer]
chalkmonster has quit [Ping timeout: 265 seconds]
akemhp has quit [Quit: Leaving]
akemhp has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
chalkmonster has joined #ruby
gix has quit [Ping timeout: 260 seconds]
hutch has joined #ruby
kapil_ has joined #ruby
alfiemax has joined #ruby
drincruz_ has quit [Ping timeout: 255 seconds]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
hutch has quit [Ping timeout: 265 seconds]
bsdbandit-01 has joined #ruby
coffeex3 has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
hutch has joined #ruby
tau has quit [Remote host closed the connection]
ttoocs has joined #ruby
john2496 has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ur5us has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
pyrmont has joined #ruby
hutch has quit [Ping timeout: 265 seconds]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
jidar has quit [Quit: restarting client]
chalkmonster has quit [Quit: WeeChat 2.7.1]
jidar has joined #ruby
m_antis_ has joined #ruby
m_antis has quit [Ping timeout: 240 seconds]
donofrio has quit [Remote host closed the connection]
jidar has quit [Quit: WeeChat 2.7]
jidar has joined #ruby
jidar has quit [Remote host closed the connection]
Xiti has quit [Quit: Leaving]
Xiti has joined #ruby
jidar has joined #ruby
m_antis has joined #ruby
m_antis_ has quit [Ping timeout: 258 seconds]
mossplix has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
teardown has joined #ruby
cthulchu_ has joined #ruby
m_antis has quit [Quit: m_antis]
sauvin has joined #ruby
sphex_ has joined #ruby
sphex has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ianbrown78 has quit [Ping timeout: 260 seconds]
ianbrown78 has joined #ruby
ianbrown78 has quit [Ping timeout: 255 seconds]
zlogan has joined #ruby
fphilipe_ has quit [Ping timeout: 240 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
ur5us has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
fphilipe_ has joined #ruby
coffeex3 has quit [Ping timeout: 272 seconds]
cthulchu_ has quit [Ping timeout: 258 seconds]
ianbrown78 has joined #ruby
ianbrown78 has quit [Ping timeout: 240 seconds]
zlogan has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
sergioro has quit [Quit: leaving]
mossplix has quit [Remote host closed the connection]
infinityfye has joined #ruby
infinityfye has quit [Remote host closed the connection]
infinityfye has joined #ruby
ksmybr has quit [Ping timeout: 240 seconds]
bvdw has quit [Quit: bvdw]
bvdw has joined #ruby
jmcgnh has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
fanta1 has joined #ruby
NODE has quit [Quit: changing servers]
clemens3 has quit [Ping timeout: 260 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
prestorium has joined #ruby
Guest32 has joined #ruby
NODE has joined #ruby
cd has quit [Quit: cd]
cnsvc_ has quit [Ping timeout: 240 seconds]
NODE has quit [Client Quit]
NODE has joined #ruby
Guest32 has quit [Remote host closed the connection]
sdu has joined #ruby
conta has joined #ruby
conta has quit [Client Quit]
Charles_tran has joined #ruby
zlogan has joined #ruby
Charles_tran has quit [Remote host closed the connection]
Charles_tran has joined #ruby
Charles_tran has quit [Remote host closed the connection]
CommunistWolf has quit [Ping timeout: 245 seconds]
robotmay has quit [Ping timeout: 240 seconds]
stooj has quit [Ping timeout: 265 seconds]
robotmay has joined #ruby
Charles_tran has joined #ruby
CommunistWolf has joined #ruby
astronautical has quit [Ping timeout: 272 seconds]
stooj has joined #ruby
Charles_tran has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Charles_tran has joined #ruby
stooj has quit [Ping timeout: 252 seconds]
Charles_tran has quit [Remote host closed the connection]
Bounga has joined #ruby
stooj has joined #ruby
cnsvc_ has joined #ruby
CommunistWolf has quit [Ping timeout: 248 seconds]
robotmay has quit [Ping timeout: 240 seconds]
Charles_tran has joined #ruby
robotmay has joined #ruby
Charles_tran has quit [Remote host closed the connection]
CommunistWolf has joined #ruby
mikecmpbll has joined #ruby
Charles_tran has joined #ruby
impermanence has quit [Ping timeout: 272 seconds]
TomyWork has joined #ruby
fanta1 has quit [Quit: fanta1]
Charles_tran has quit [Remote host closed the connection]
jetchisel has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
LtHummus_ has quit [Ping timeout: 240 seconds]
Charles_tran has joined #ruby
ur5us has joined #ruby
Charles_tran has quit [Remote host closed the connection]
LtHummus has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
cnsvc_ has quit [Ping timeout: 240 seconds]
ianbrown78 has joined #ruby
ianbrown78 has quit [Ping timeout: 258 seconds]
ellcs has joined #ruby
infinityfye has quit [Read error: Connection reset by peer]
kapil_ has quit [Quit: Connection closed for inactivity]
Ytrezar has quit [Quit: See ya]
cnsvc_ has joined #ruby
royal_screwup21 has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
cnsvc_ has joined #ruby
Charles_tran has joined #ruby
zlogan has quit [Read error: Connection reset by peer]
LinuxKnight has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
tpanarch1st has joined #ruby
ianbrown78 has joined #ruby
irrr3levant has joined #ruby
<irrr3levant> hey any ruby devs on fedora, using puma-dev?
Charles_tran has quit [Remote host closed the connection]
ianbrown78 has quit [Ping timeout: 265 seconds]
kapil_ has joined #ruby
irrr3levant has quit [Quit: Lost terminal]
dionysus69 has joined #ruby
Fernando-Basso has joined #ruby
cnsvc_ has joined #ruby
clemens3 has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
ianbrown78 has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
gorwilde has joined #ruby
ianbrown78 has quit [Ping timeout: 240 seconds]
<gorwilde> Hi ! I've read a tutorial about API token authentification, and there is something I don't get in their code. Could someone explain me ?
<gorwilde> the function authenticate(email, password) gets AuthenticateUser.call(email, password) at https://github.com/omedale/JWT-Auth-with-Rails/blob/46163e27ba6be42048e56bc24f194c8e8a80a299/app/auth/authenticate_user.rb#L13
DTZUZU has quit [Ping timeout: 260 seconds]
<gorwilde> ...I just don't see where the password is checked in all this, just looks like a weird loop to me.
<gorwilde> Thanks
postmodern has quit [Quit: Leaving]
fanta1 has joined #ruby
<gorwilde> I've posted the question here, it is easier to read : https://github.com/omedale/JWT-Auth-with-Rails/issues/1
apotheon has quit [Ping timeout: 260 seconds]
royal_screwup21 has joined #ruby
apotheon has joined #ruby
Bounga has quit [Ping timeout: 272 seconds]
<leftylink> I don't agree that there is a loop.
TCZ has joined #ruby
<leftylink> `user.authenticate(password)` would imply that `user` is of type https://github.com/omedale/JWT-Auth-with-Rails/blob/master/app/models/user.rb .
<leftylink> so you would want to look at that User class.
<leftylink> wishing luck!
Charles_tran has joined #ruby
Charles_tran has quit [Remote host closed the connection]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
gorwilde has quit [Remote host closed the connection]
<leftylink> ok
<leftylink> quitting works too
<leftylink> can lead a horse to water, but can't make it drink
cnsvc_ has joined #ruby
mikecmpbll has quit [Ping timeout: 258 seconds]
cnsvc_ has quit [Ping timeout: 240 seconds]
elphe has joined #ruby
Bounga has joined #ruby
my_dude has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
Bounga has quit [Ping timeout: 240 seconds]
Doow has joined #ruby
sdu has quit [Remote host closed the connection]
royal_screwup21 has quit [Remote host closed the connection]
fanta1 has quit [Quit: fanta1]
drincruz_ has joined #ruby
elphe has joined #ruby
Bounga has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
kinduff has joined #ruby
kinduff has left #ruby [#ruby]
dionysus70 has joined #ruby
cnsvc_ has joined #ruby
drincruz_ has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
alfiemax has quit []
alfiemax has joined #ruby
alfiemax has left #ruby [#ruby]
kinduff has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
Bounga has joined #ruby
sh7d has quit [Quit: meh]
Bounga has quit [Ping timeout: 272 seconds]
banisterfiend has joined #ruby
sdu has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
mossplix has joined #ruby
Bounga has joined #ruby
drincruz_ has joined #ruby
my_dude has quit [Quit: ZZZzzz…]
Bounga` has joined #ruby
Charles_tran has joined #ruby
sdu has quit [Remote host closed the connection]
Charles_tran has quit [Client Quit]
donofrio has joined #ruby
Bounga has quit [Ping timeout: 272 seconds]
Bounga` is now known as Bounge
Bounge is now known as Bounga
cnsvc_ has joined #ruby
ianbrown78 has joined #ruby
kinduff has quit [Quit: The Lounge - https://thelounge.chat]
Charles_tran has joined #ruby
sdu has joined #ruby
ianbrown78 has quit [Ping timeout: 240 seconds]
cnsvc_ has quit [Ping timeout: 240 seconds]
TvL2386_ has joined #ruby
TvL2386 has quit [Ping timeout: 272 seconds]
TCZ has quit [Quit: Leaving]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
kinduff has joined #ruby
Charles_tran has quit [Remote host closed the connection]
bsdbandit-01 has joined #ruby
imadper has joined #ruby
fphilipe_ has quit [Ping timeout: 272 seconds]
burningserenity has joined #ruby
_ikke_ is now known as _ikke__
_ikke__ is now known as _ikke_
alfiemax has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
arahael has quit [Ping timeout: 258 seconds]
fphilipe_ has joined #ruby
alfiemax has quit []
m_antis has joined #ruby
pinpox- has joined #ruby
cnsvc_ has joined #ruby
pinpox has quit [Ping timeout: 258 seconds]
emilford has joined #ruby
emilford has quit [Client Quit]
emilford has joined #ruby
TvL2386 has joined #ruby
TvL2386_ has quit [Ping timeout: 258 seconds]
burningserenity has quit [Quit: Leaving.]
burningserenity has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
jetchisel has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
emilford has quit [Quit: leaving]
jetchisel has joined #ruby
emilford has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
cisco has joined #ruby
emilford has quit [Quit: leaving]
emilford has joined #ruby
StoneCypherWork has joined #ruby
emilford has quit [Client Quit]
emilford has joined #ruby
emilford has quit [Client Quit]
royal_screwup21 has joined #ruby
StoneCypherWork has quit [Ping timeout: 255 seconds]
kristian_on_linu has joined #ruby
astronautical has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
jetchisel has quit [Ping timeout: 240 seconds]
fphilipe_ has quit [Ping timeout: 272 seconds]
banisterfiend has joined #ruby
emilford has joined #ruby
emilford has quit [Client Quit]
emilford has joined #ruby
cnsvc_ has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
burningserenity has quit [Ping timeout: 260 seconds]
fphilipe_ has joined #ruby
emilford has quit [Read error: Connection reset by peer]
cnsvc_ has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has quit [Ping timeout: 252 seconds]
conta1 has joined #ruby
burningserenity has joined #ruby
banister has joined #ruby
banisterfiend has joined #ruby
conta1 has quit [Client Quit]
fphilipe_ has joined #ruby
mossplix has quit [Remote host closed the connection]
banister has quit [Read error: Connection reset by peer]
impermanence has joined #ruby
DTZUZU has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
banister has joined #ruby
cnsvc_ has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristian_on_linu has quit [Remote host closed the connection]
emilford has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
rkoller has joined #ruby
sdu has quit [Remote host closed the connection]
ianbrown78 has joined #ruby
banister has quit [Ping timeout: 258 seconds]
john2496 has joined #ruby
darkstardevx has quit [Remote host closed the connection]
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
emilford_ has joined #ruby
emilford has quit [Ping timeout: 255 seconds]
ianbrown78 has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
drincruz_ has joined #ruby
ice99 has joined #ruby
chalkmonster has joined #ruby
<ice99> how do i setup a new project for vlad deployment?
emilford_ has quit [Read error: Connection reset by peer]
pupsikov has joined #ruby
mossplix has joined #ruby
<ice99> do i need rails app or what?
lucasb has joined #ruby
john2496 has quit [Remote host closed the connection]
emilford has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
Esa_ has joined #ruby
cnsvc_ has joined #ruby
emilford has quit [Ping timeout: 255 seconds]
emilford has joined #ruby
istrasci has joined #ruby
fphilipe_ has quit [Quit: WeeChat 2.4]
paraxial has joined #ruby
<istrasci> It is possible to make (reference) aliases for constants?
ttoocs has quit [Ping timeout: 240 seconds]
paraxial has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
emilford has quit [Ping timeout: 255 seconds]
john2496 has joined #ruby
paraxial has quit [Read error: Connection reset by peer]
minall has joined #ruby
<minall> Hello Ruby community!
<minall> Is index += index correct syntax?
paraxial has joined #ruby
paraxial has quit [Client Quit]
Esa_ has quit []
Esa_ has joined #ruby
chalkmonster has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
<apotheon> minall: sure
<minall> apotheon: Thanks... But I'm getting an error when I put that, strange... I'll take another look to my code
troulouliou_dev has joined #ruby
<apotheon> minall: Is there an operator precedence problem?
<apotheon> $ irb
<apotheon> irb(main):001:0> index = 1
<apotheon> irb(main):002:0> index += index
<apotheon> => 1
<apotheon> => 2
<minall> I have it inside a .each.with_index, and inside that an if. The code works but I want to add index a 1 every iteration... But when I put that I get an error in the if operator, which works without the index += index
ice999 has joined #ruby
<apotheon> very strange
<apotheon> By the way, it won't just add one every time that way.
<apotheon> If you start with one, index += index yields 2 the first time, 4 the next, 8 after that, and so on.
ice99 has quit [Ping timeout: 260 seconds]
<minall> Ohh
<apotheon> You might want index += 1 instead.
emilford has joined #ruby
<minall> Let me check why It gives me error
<apotheon> Is your conditional testing for something that doesn't work with the numbers you get from index += index?
<apotheon> I'm not sure what that would be, but . . . maybe.
hutch has joined #ruby
royal_screwup21 has joined #ruby
paraxial has joined #ruby
banisterfiend has quit [Ping timeout: 265 seconds]
<minall> My index starts at 0, then I add it 1 so it starts at 1 and my if is:
<minall> If item < some_array[index] which is one, and item is an item from the array do something
royal_screwup21 has quit [Remote host closed the connection]
arahael has joined #ruby
emilford has quit [Ping timeout: 255 seconds]
emilford has joined #ruby
royal_screwup21 has joined #ruby
john2496 has quit [Remote host closed the connection]
banisterfiend has joined #ruby
john2496 has joined #ruby
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
StoneCypherWork has joined #ruby
siery has quit [Ping timeout: 265 seconds]
cnsvc_ has joined #ruby
ice99 has joined #ruby
ice999 has quit [Ping timeout: 255 seconds]
chalkmonster has quit [Quit: WeeChat 2.7.1]
Bounga has quit [Ping timeout: 272 seconds]
<havenwood> minall: .each.with_index(1)
burningserenity has quit [Quit: Leaving.]
cisco has quit [Ping timeout: 260 seconds]
burningserenity has joined #ruby
<havenwood> &>> %i[a b c].each.with_index(1).to_h # minall
<rubydoc> # => {:a=>1, :b=>2, :c=>3} (https://carc.in/#/r/8n11)
m_antis has quit [Ping timeout: 240 seconds]
<havenwood> &>> %i[a b c].each.with_index(-42).to_h
<rubydoc> # => {:a=>-42, :b=>-41, :c=>-40} (https://carc.in/#/r/8n12)
cisco has joined #ruby
cisco is now known as Guest4022
<havenwood> >> %i[a b c].each.with_index(Math::PI).to_h
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
m_antis has joined #ruby
<havenwood> Err, that's not what I expected.
<havenwood> #=> {:a=>3, :b=>4, :c=>5}
<havenwood> minall: The first argument to #with_index is the index offset.
<ytti> >>& %i[a b c].each.with_index(3.1).to_h
<ytti> &>> %i[a b c].each.with_index(3.1).to_h
<rubydoc> # => {:a=>3, :b=>4, :c=>5} (https://carc.in/#/r/8n15)
<ytti> &>> %i[a b c].each.with_index(3.141592653589793).to_h
<rubydoc> # => {:a=>3, :b=>4, :c=>5} (https://carc.in/#/r/8n16)
<ytti> wat
<apotheon> 16:35 < ytti> >>& %i[a b c].each.with_index(3.1).to_h <- Is that the Bash version?
<apotheon> (re: misplaced & being "okay" in Bash for stderr redirect)
<minall> Maybe I can give you guys my code, but I don't see anything wrong... I get an error even though it makes sense...
<ytti> &>> p Math::PI
<rubydoc> # => 3.141592653589793... check link for more (https://carc.in/#/r/8n17)
<ytti> ...?
<ytti> &>> p Math::PI.class
<rubydoc> # => Float... check link for more (https://carc.in/#/r/8n18)
<ytti> what's wit the dots
<leftylink> because there's more.
<ytti> oh it's indefinite range
<ytti> must be newish thing
<minall> That is my representation of bubble sort (pretty basic) in ruby
Guest4022 has quit [Quit: leaving]
<ytti> &>> p (Math::PI.class).class
<rubydoc> # => Class... check link for more (https://carc.in/#/r/8n19)
<ytti> aah nevermind
mossplix has quit [Ping timeout: 240 seconds]
LinuxKnight has quit [Ping timeout: 258 seconds]
<apotheon> minall: You're exceeding array bounds with the last iteration.
paraxial has quit [Quit: The Lounge - https://thelounge.chat]
<apotheon> minall: That some_array[index+1] is causing the iterator to try to access the element at some_array[13] by the end of it.
<apotheon> minall: There is no some_array[12].
<apotheon> err
<apotheon> There is no some_array[13].
TCZ has joined #ruby
renich has joined #ruby
<apotheon> some_array[12] is the highest-index element
paraxial has joined #ruby
tau has joined #ruby
<apotheon> There is a some_array[12]; saying there isn't was a typo.
ianbrown78 has joined #ruby
jmcgnh has joined #ruby
<apotheon> "There are three hard problems in computer science: naming things, cache invalidation, scope creep, and off-by-one errors."
sh7d has joined #ruby
m_antis has quit [Read error: Connection reset by peer]
paraxial has quit [Client Quit]
m_antis_ has joined #ruby
paraxial has joined #ruby
ianbrown78 has quit [Ping timeout: 255 seconds]
ellcs has quit [Ping timeout: 260 seconds]
gix has joined #ruby
renich_ has joined #ruby
renich_ has quit [Remote host closed the connection]
emilford has quit [Quit: leaving]
m_antis_ has quit [Read error: No route to host]
emilford has joined #ruby
renich has quit [Ping timeout: 272 seconds]
m_antis has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
drincruz_ has quit [Read error: No route to host]
drincruz_ has joined #ruby
banisterfiend has joined #ruby
<istrasci> It is possible to make (reference) aliases for constants?
<leftylink> since I never heard of a way to do it, if they forced me to do it, I guess I would hvae a function to read it. and, if needed, a functio to write it
TomyWork has quit [Ping timeout: 256 seconds]
emilford has quit [Ping timeout: 260 seconds]
schne1der has joined #ruby
duderonomy has joined #ruby
sh7d has quit [Read error: Connection reset by peer]
sh7d has joined #ruby
code_zombie has joined #ruby
StoneCypherWork has quit [Ping timeout: 272 seconds]
markopasha has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v3.8 Beta Build (2020/02/23 UTC) 64 Bit]
sh7d has quit [Read error: Connection reset by peer]
sh7d has joined #ruby
astronautical has quit [Ping timeout: 265 seconds]
clemens3 has quit [Quit: quit]
<hramrach> hello
<hramrach> is ruby supposed to work with valgrind?
<hramrach> I get lots of invalid accesses reported
<havenwood> hramrach: I think Ruby needs Valgrind suppressions, and PRs are welcome: https://bugs.ruby-lang.org/issues/12954
<hramrach> I don't care about leaks
<havenwood> hramrach: ahh
<hramrach> my program crashes so it frees them automagically :->
Tempesta has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
coffeex3 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apotheon> hramrach: nice
imadper` has joined #ruby
imadper has quit [Ping timeout: 258 seconds]
astronautical has joined #ruby
drincruz_ has quit [Read error: No route to host]
drincruz_ has joined #ruby
houhoulis has joined #ruby
cthulchu_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
coffeex3 has quit [Ping timeout: 258 seconds]
houhoulis has quit []
chalkmonster has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
clemens3 has joined #ruby
ellcs has joined #ruby
TCZ has quit [Quit: Leaving]
minall has quit [Remote host closed the connection]
hutch has quit [Ping timeout: 265 seconds]
StoneCypherWork has joined #ruby
cnsvc_ has joined #ruby
hutch has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
ice99 has quit [Remote host closed the connection]
bsdbandit-01 has joined #ruby
ianbrown78 has joined #ruby
ianbrown78 has quit [Ping timeout: 260 seconds]
BaroMeter has joined #ruby
prestorium has quit [Ping timeout: 260 seconds]
BaroMeter has quit [Client Quit]
cnsvc_ has quit [Ping timeout: 240 seconds]
<adam12> istrasci: You can assign a constant to another constant. Is that what you want?
jonathandade has joined #ruby
jonathandade has left #ruby [#ruby]
burningserenity has quit [Ping timeout: 255 seconds]
ou-tis has joined #ruby
_whitelogger has joined #ruby
burningserenity has joined #ruby
banisterfiend has joined #ruby
<_phaul> ytti: when you put in p for printing in the rubydoc eval the bot also puts in a p, that means that you end up with multi-line output. the bot does not try to figure out what you meant, just follows simple abbreviations. That's when it says ... check link for more. That's where the ... coming from
wildtrees has joined #ruby
<_phaul> there is &bare>> which pastes your code as is
<_phaul> &>> Math::PI.class
sauvin has quit [Read error: Connection reset by peer]
<rubydoc> # => Float (https://carc.in/#/r/8n2k)
<_phaul> &bare>> p Math::PI.class
<rubydoc> # => Float (https://carc.in/#/r/8n2l)
<_phaul> &bare>> print "1\n2\n3\n"
<rubydoc> # => 1... check link for more (https://carc.in/#/r/8n2m)
StoneCypherWork has quit [Ping timeout: 272 seconds]
cnsvc_ has joined #ruby
mossplix has joined #ruby
levifig has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
StoneCypherWork has joined #ruby
banisterfiend has quit [Ping timeout: 255 seconds]
banisterfiend has joined #ruby
<adam12> havenwood: I saw a PR for Ruby sigs into ruby/ruby!!
<adam12> I'm so flippin excited.
jonathandade has joined #ruby
markopasha has quit [Remote host closed the connection]
jonathandade has left #ruby [#ruby]
cd has joined #ruby
lightstalker has quit [Ping timeout: 265 seconds]
schne1der has quit [Ping timeout: 255 seconds]
<havenwood> \o/
markopasha has joined #ruby
markopasha has quit [Remote host closed the connection]
bsdband43 has joined #ruby
bsdbandit-01 has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
sergioro has joined #ruby
SeepingN has joined #ruby
duderonomy has quit [Read error: Connection reset by peer]
<hramrach> and found the bug so can start caring about leaks now ^.^
JoeA2552 has joined #ruby
duderonomy has joined #ruby
coffeex3 has joined #ruby
StoneCypherWork has quit [Ping timeout: 260 seconds]
burningserenity has quit [Ping timeout: 255 seconds]
duderonomy has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
m_antis has quit [Quit: m_antis]
StoneCypherWork has joined #ruby
burningserenity has joined #ruby
sagax has quit [Ping timeout: 265 seconds]
sagax has joined #ruby
Burleigh has joined #ruby
jenrzzz has joined #ruby
StoneCypherWork has quit [Ping timeout: 258 seconds]
hutch has quit [Ping timeout: 260 seconds]
john2496 has quit [Remote host closed the connection]
hutch has joined #ruby
ur5us has joined #ruby
tau has quit [Remote host closed the connection]
burningserenity has quit [Ping timeout: 272 seconds]
Bounga has joined #ruby
bukkitgerman8 has quit [Quit: Ping timeout (120 seconds)]
bukkitgerman8 has joined #ruby
bukkitgerman8 has quit [Client Quit]
bukkitgerman8 has joined #ruby
houhoulis has joined #ruby
ianbrown78 has joined #ruby
hutch has quit [Ping timeout: 265 seconds]
burningserenity has joined #ruby
zapata has quit [Ping timeout: 246 seconds]
<adam12> Finding it more and more challenging to find good free names on Rubygems lately.
troulouliou_dev has quit [Quit: Leaving]
drincruz_ is now known as drincruz
JoeA2552 has quit [Quit: Textual IRC Client: www.textualapp.com]
astronautical has quit [Ping timeout: 255 seconds]
houhoulis has quit []
john2496 has joined #ruby
zapata has joined #ruby
banisterfiend has quit [Ping timeout: 258 seconds]
tau has joined #ruby
burningserenity has quit [Read error: Connection reset by peer]
burningserenity has joined #ruby
mossplix has quit [Ping timeout: 240 seconds]
tpanarch1st has quit [Ping timeout: 255 seconds]
hutch has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
* baweaver has been stealing 2-letter gem names
john2496 has quit [Remote host closed the connection]
<adam12> :O
<leftylink> does anyone have gem names like "the"
<leftylink> "a", "an"
<leftylink> "be"
<leftylink> "is"
StoneCypherWork has joined #ruby
<leftylink> I see that those are all existing gems
<leftylink> "ls" is also taken. funnily enough, "rm" isn't
<leftylink> huh? the "not found" for mv is different than that for rm
<leftylink> I wonder if that is signifncant
burningserenity has quit [Quit: Leaving.]
bambanx has joined #ruby
banisterfiend has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.chat]
elphe has joined #ruby
paraxial has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
hutch has quit [Ping timeout: 265 seconds]
elphe has quit [Ping timeout: 240 seconds]
paraxial has quit [Ping timeout: 255 seconds]
paraxial has joined #ruby
<apotheon> leftylink: How are you searching?
royal_screwup21 has joined #ruby
ianbrown78 has quit [Ping timeout: 258 seconds]
StoneCypherWork has quit [Ping timeout: 265 seconds]
ianbrown78 has joined #ruby
bsdbandit-01 has joined #ruby
bsdband43 has quit [Ping timeout: 258 seconds]
john2496 has joined #ruby
john2496 has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
StoneCypherWork has joined #ruby
elphe has joined #ruby
jcalla has quit [Quit: Leaving]
elphe has quit [Ping timeout: 255 seconds]
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
ianbrown78 has quit [Ping timeout: 260 seconds]
sergioro has quit [Quit: leaving]
StoneCypherWork has quit [Ping timeout: 265 seconds]
siery has joined #ruby
howdoi has joined #ruby
<leftylink> kinda makes you wish there were a command for that
<havenwood> compgen -A function -abck
ianbrown78 has joined #ruby
<havenwood> ENV['PATH'].gsub(':', '/* ').split.flat_map { |glob| Dir[glob] }
ellcs has quit [Ping timeout: 240 seconds]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has quit [Quit: WeeChat 2.7.1]
<havenwood> But the Ruby one ^ doesn't include builtins, functions, aliases, if you want those too?
code_zombie has quit [Quit: Leaving]
StoneCypherWork has joined #ruby
gix has quit [Quit: Client exiting]
jetchisel has joined #ruby
cnsvc_ has joined #ruby
coffeex3 has quit [Ping timeout: 258 seconds]
gix has joined #ruby
tau has quit [Remote host closed the connection]
splud_wurk has joined #ruby
kapil_ has quit [Quit: Connection closed for inactivity]
romanblanco has joined #ruby
pupsikov has joined #ruby
hiroaki_ has joined #ruby
Wolland has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 255 seconds]
schne1der has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
drincruz has quit [Ping timeout: 240 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
astronautical has joined #ruby
postmodern has joined #ruby
<TCZ> new irb looks different hmmmm
tau has joined #ruby
<havenwood> TCZ: :)
<havenwood> I like the look!
<TCZ> at first i thought i have some kind of bug, * shows that line is incorrect?
ur5us has quit [Ping timeout: 260 seconds]
ianbrown78 has quit [Ping timeout: 272 seconds]
ianbrown78 has joined #ruby
Wolland has quit [Quit: Mutter: www.mutterirc.com]
bvdw has quit [Quit: bvdw]
bvdw has joined #ruby
hiroaki_ has quit [Ping timeout: 272 seconds]
sleepster has joined #ruby
chalkmonster has joined #ruby
<havenwood> TCZ: I see `?` not `*`.
<sleepster> is it okay to ask rails questions here? I have a custom logger and what I would like to do is catch all unhandled exceptions so I can log them. I looked into at_exit but that wouldn't give me if it was caused by crash
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<_phaul> it's ok, it's also ok to ask it in paralell on #RubyOnRails as long as you tell both channels that you are xposting. If one channel picks up on the question let the other know
<TCZ> irb(main):001:0> 5
<TCZ> irb(main):001:0* 5 +
<sleepster> thanks _phaul
<TCZ> i have version 1.2.3
<havenwood> TCZ: ?> 5 +
<TCZ> hmm
<havenwood> TCZ: Ahh, I use simple prompt.
emilford has joined #ruby
ianbrown78 has quit [Ping timeout: 265 seconds]
bvdw has quit [Quit: bvdw]
bvdw has joined #ruby
hutch has joined #ruby
ur5us has joined #ruby