havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0, 2.7.2, 2.6.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
DaRock has joined #ruby
gray-_-wolf has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
xco has quit [Quit: Textual IRC Client: www.textualapp.com]
whysthatso has quit [Ping timeout: 265 seconds]
nertzy has quit [Quit: Leaving]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
al2o3-cr has quit [Quit: WeeChat 3.0]
al2o3-cr has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 268 seconds]
_aeris is now known as _aeris_
whysthatso has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
elcuervo has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 3.0.1]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Client Quit]
m_antis has joined #ruby
traffic has joined #ruby
m_antis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DaRock has quit [Remote host closed the connection]
gearnode has quit [Ping timeout: 264 seconds]
nertzy has joined #ruby
_aeris_ has quit [Ping timeout: 268 seconds]
_aeris_ has joined #ruby
cow[moo] has joined #ruby
ghormoon_ has quit [Ping timeout: 264 seconds]
ghormoon has joined #ruby
ChmEarl has quit [Quit: Leaving]
k_sze has left #ruby ["Leaving"]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
kktt0071 has joined #ruby
zacts has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Client Quit]
Xiti has quit [Ping timeout: 264 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
Xiti has joined #ruby
jeromelanteri has quit [Quit: Leaving]
neshpion has quit [Quit: neshpion]
gix- has quit [Ping timeout: 264 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
envex has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rudd0 has quit [Remote host closed the connection]
m27frogy has quit [Ping timeout: 240 seconds]
tpanarch1st has joined #ruby
ramfjord has joined #ruby
orbyt_ has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deviantfero has joined #ruby
<cloud69> I have a list of URLs that I open with open-uri, process with Nokogiri and save into an array. But later when iterating over that array in a different method, how is it possible to remember which URL the content came from? https://gist.github.com/cloud69420/7bcc1c66398f7e6babfdfc37f9742d22
<drusepth> just commented some code at you on the gist, there's a bunch of different ways to do it but basically you just want to restructure the data of what you're storing (just the page contents) to also include the url requested in some way
<drusepth> instead of storing [html, html, html, ...], I edited the code to store [[url, html], [url, html], ...] so you can iterate over it and retrieve both bits of data
<cloud69> Absolutely spectacular - thank you so so much :)
<cloud69> Brilliant!
<drusepth> you could also e.g. have some shared hash stored somewhere that uses URLs as keys to access page content, or ahave a parallel array, or something else, but the gist is you just gotta pick a data structure that supports 2 pieces of data + iterating ;)
jla has joined #ruby
<cloud69> :D
zacts has quit [Quit: leaving]
deviantfero has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
jla has quit [Ping timeout: 240 seconds]
landakram has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
dfucci has joined #ruby
universal has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
universa1 has joined #ruby
blackmesa has joined #ruby
rzjian has joined #ruby
trautwein1 has joined #ruby
akem has quit [Quit: leaving]
teclator has joined #ruby
al2o3-cr has joined #ruby
Rounin has joined #ruby
fercell has joined #ruby
drusepth has quit [Ping timeout: 240 seconds]
actually1atman is now known as actuallybatman
al2o3-cr has quit [Quit: WeeChat 3.0.1]
vondruch has joined #ruby
Xiti has quit [Quit: Leaving]
Xiti has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
landakram has quit [Ping timeout: 240 seconds]
coniptor has quit [Ping timeout: 264 seconds]
teclator has quit [Remote host closed the connection]
coniptor has joined #ruby
teclator has joined #ruby
supercoven has joined #ruby
split-brain has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
teclator has joined #ruby
teclator has quit [Client Quit]
teclator has joined #ruby
RougeR has joined #ruby
gearnode has joined #ruby
weaksauce has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
gearnode has quit [Ping timeout: 260 seconds]
gearnode has joined #ruby
ramfjord has joined #ruby
yann-kaelig has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Changing host]
dionysus69 has joined #ruby
sombra is now known as aloy
nertzy has quit [Read error: Connection reset by peer]
fercell has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
Rudd0 has joined #ruby
hiroaki_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
ianmacd has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
phanstig has joined #ruby
akem has joined #ruby
rzjian has quit [Quit: WeeChat 3.0]
jla has joined #ruby
blackmesa has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
splud has quit [Ping timeout: 265 seconds]
nofxx_ has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
splud has joined #ruby
splud has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
roadt_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
roadt__ has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
nofxx_ has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
splud has joined #ruby
henninb has joined #ruby
fercell has quit [Ping timeout: 260 seconds]
phanstig has quit [Quit: Leaving]
splud has quit [Ping timeout: 245 seconds]
fercell has joined #ruby
m27frogy has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
EdwardIII has quit [Ping timeout: 240 seconds]
lazypwny[m] has joined #ruby
EdwardIII has joined #ruby
fercell has quit [Ping timeout: 276 seconds]
fercell has joined #ruby
jla has quit [Ping timeout: 260 seconds]
blob64 has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
ramfjord has joined #ruby
splud has joined #ruby
vondruch has joined #ruby
henninb has quit [Quit: leaving]
fandre1986 has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
Swyper has joined #ruby
sonne- is now known as sonne
LeviDuncan has joined #ruby
gearnode has quit [Ping timeout: 240 seconds]
<dg1727> It says "Async.logger.debug!"
<dg1727> I put that after my "Async do |task_name|"
vondruch has quit [Ping timeout: 240 seconds]
gearnode has joined #ruby
<dg1727> (also "require 'console'" at the start of the file)
<dg1727> My Ruby program is a terminal app - no network connections
<dg1727> When I Ctrl-C to stop my program, there are a couple lines added to the exception printout by Console.logger
<dg1727> But until then, no output from the logger. Any suggestions on how to get the logger to output status info to the terminal continually?
<dg1727> I found the source code of Console & confirmed that "debug" seems to be the lowest level, which means that setting the logger to that level should output *all* log messages
<dg1727> Hmm, some useful-looking debug logging statements are *commented out* in the "async" library... that would explain part of the problem
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
rkoller has joined #ruby
splud has quit [Ping timeout: 245 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
cow[moo] has joined #ruby
cuerbot has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
elcuervo has quit [Ping timeout: 240 seconds]
splud has joined #ruby
postmodern has quit [Quit: Leaving]
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
jla has joined #ruby
Xeago has joined #ruby
TCZ has joined #ruby
deviantfero has joined #ruby
vondruch has joined #ruby
gearnode has quit [Ping timeout: 264 seconds]
<User4587_> Hi, I would like to use the Array#map method with a block variable like block = Proc.new {|x| x * 2}; [1, 2, 3].map(block), how do I do?
<nakilon> .map &block
blob64 has quit [Read error: Connection reset by peer]
mniip has quit [Ping timeout: 633 seconds]
<User4587_> nakilon, easy. Thanks!
duckpuppy has quit [Quit: ZNC 1.8.2 - https://znc.in]
duckpuppy has joined #ruby
coniptor has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
LeviDuncan has quit [Read error: Connection reset by peer]
shokohsc9 has joined #ruby
shokohsc9 has quit [Client Quit]
howdoi has joined #ruby
shokohsc has joined #ruby
mniip has joined #ruby
coniptor has joined #ruby
jla has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
gearnode has joined #ruby
ramfjord has joined #ruby
ChmEarl has joined #ruby
jdeen has joined #ruby
Rudd0 has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
jdeen has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AndreYuhai has joined #ruby
<AndreYuhai> How to create a User model with devise that has trackable and other modules. Is there any way to do that when we are doing rails g devise User?
deviantfero has quit [Ping timeout: 260 seconds]
<havenwood> AndreYuhai: You just add it after generating. No tricks.
<AndreYuhai> havenwood, Oh I hadn't noticed that Wiki page. Thank you :)
Xiti` has joined #ruby
ramfjord has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
deviantfero has joined #ruby
jdeen has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
splud has quit [Ping timeout: 240 seconds]
Rudd0 has joined #ruby
coniptor has quit [Ping timeout: 245 seconds]
coniptor has joined #ruby
hiroaki_ has quit [Ping timeout: 272 seconds]
tmm88 has joined #ruby
fandre1986 has quit [Quit: Connection closed]
splud has joined #ruby
niv has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
trautwein1 has quit [Ping timeout: 264 seconds]
hiroaki_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
fercell has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
fercell has joined #ruby
queip has quit [Ping timeout: 260 seconds]
andremedeiros has quit [Quit: ZNC 1.8.2 - https://znc.in]
andremedeiros has joined #ruby
memcorrupt has joined #ruby
memcorrupt has joined #ruby
Xiti` has quit [Quit: Leaving]
keyvan has quit [Ping timeout: 272 seconds]
Xiti has joined #ruby
<nakilon> what to do with "checking for ruby/thread.h... *** extconf.rb failed ***" when installing the weird gem dependency "patron"? https://dpaste.org/cvM4/slim
ramfjord has quit [Ping timeout: 260 seconds]
jdeen has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
tmm88 has quit [Quit: leaving]
queip has joined #ruby
shtirlic has joined #ruby
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
niv has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jdeen has joined #ruby
niv has joined #ruby
niv has quit [Client Quit]
niv has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
easbarbosa has joined #ruby
<nakilon> nvm; apk add build-base
memcorrupt has quit [Quit: -a- ...]
<havenwood> nakilon: Is libcurl installed?
<nakilon> yep, I just didn't notice the "You have to install development tools first" line
<havenwood> nakilon: Ah, right, just looking at your paste now.
<nakilon> I feel like error logs this large should have things highlighted, bold
<havenwood> nakilon: Seems most mkmf errors are just build tools missing. Heh.
<havenwood> nakilon: Yeah, it burns sooo many folk.
<adam12> havenwood: Almost makes you wonder if first part of mkmf should check if there's a compiler available.
<havenwood> adam12: Yeah, maybe just historical reasons why it doesn't? Unsure.
TCZ has quit [Quit: cz]
easbarbosa has quit [Remote host closed the connection]
fercell has quit [Ping timeout: 240 seconds]
vondruch has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
rafadc has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
DTZUZU has quit [Read error: Connection reset by peer]
RougeR has quit [Read error: Connection reset by peer]
lordarkmemo has joined #ruby
nofxx has joined #ruby
nofxx_ has quit [Ping timeout: 260 seconds]
olferino has joined #ruby
olferino has quit [Excess Flood]
jla has joined #ruby
olferino has joined #ruby
olferino has quit [Excess Flood]
weaksauce has joined #ruby
olferino has joined #ruby
olferino has joined #ruby
olferino has quit [Excess Flood]
coniptor has quit [Ping timeout: 240 seconds]
olferino has joined #ruby
olferino has quit [Excess Flood]
coniptor has joined #ruby
drusepth has joined #ruby
jla has quit [Ping timeout: 240 seconds]
splud has quit [Ping timeout: 245 seconds]
tpanarch1st has quit [Ping timeout: 245 seconds]
olferino has joined #ruby
olferino has quit [Max SendQ exceeded]
olferino has joined #ruby
olferino has quit [Excess Flood]
olferino has joined #ruby
olferino has quit [Excess Flood]
lordarkmemo has quit [Quit: Connection closed]
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
gix has joined #ruby
nofxx_ has joined #ruby
nofxx has quit [Ping timeout: 245 seconds]
drusepth has quit [Read error: Connection reset by peer]
landakram has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
nofxx_ has quit [Ping timeout: 260 seconds]
jla has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Axy has quit [Ping timeout: 256 seconds]
splud has joined #ruby
splud has quit [Remote host closed the connection]
splud has joined #ruby
cloud69 has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
dfucci has joined #ruby
skryking has quit [Quit: Konversation terminated!]
nofxx_ has joined #ruby
jdeen has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
skryking has joined #ruby
fercell has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
klaas_ is now known as klaas
fercell has quit [Ping timeout: 276 seconds]
fercell has joined #ruby
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Efsane_Geri_Geld has joined #ruby
ruurd has joined #ruby
Efsane_Geri_Geld has quit [Remote host closed the connection]
skryking has quit [Remote host closed the connection]
fercell has quit [Quit: WeeChat 3.0]
skryking has joined #ruby
fercell has joined #ruby
dfucci has quit [Ping timeout: 245 seconds]
fercell has quit [Ping timeout: 245 seconds]
fercell has joined #ruby
entel has quit [Quit: Connection closed for inactivity]
splud has quit [Ping timeout: 240 seconds]
splud has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
mbrndtgn has quit [Quit: The Lounge - https://thelounge.chat]
Azure|dc has quit [Ping timeout: 272 seconds]
mbrndtgn has joined #ruby
jla has quit [Ping timeout: 240 seconds]
splud has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
code_zombie has joined #ruby
dfucci has joined #ruby
Iarfen has joined #ruby
<Iarfen> hi!
<Iarfen> how I can start a ruby file with a repl interpreter? I need that the interpreter remains awaiting for new command after starting it with the program file
<leftylink> perhaps `irb -r` is what is being asked for here. or if not, perhaps the pry gem is more suitable. since I've never used pry before I'll have to leave it to the interested parties to look it up for themselves
splud has joined #ruby
<nakilon> leftylink yep, I used irb -r to make a CLI
<leftylink> fun
TCZ has joined #ruby
split-brain has quit [Remote host closed the connection]
<havenwood> +1 irb -r
<havenwood> Iambchop: I agree with ^
<havenwood> gah
<havenwood> Iarfen: ^
splud has quit [Ping timeout: 245 seconds]
<nakilon> Iambchop he doesn't agree with you
<Iarfen> I've already found the solution, but thanks (it was irb -r)
<nakilon> -r the file that does something like include MyLibrary and you get a CLI with methods in it
<nakilon> in my case that was a library with methods to call Facebook Ads Manager API and so using just a single command it became a CLI to Ads Manager
<nakilon> that didn't even exist officially
<nakilon> and wasn't even planned to be developed by me either
rafadc has quit [Quit: ZNC - https://znc.in]
gearnode has quit [Ping timeout: 264 seconds]
<nakilon> another way to do the similar thing is: ruby -r./file_that_includes_my_lib -rirb -e "IRB.start"
<nakilon> but I'm not sure what's the difference
dionysus69 has quit [Ping timeout: 245 seconds]
rafadc has joined #ruby
<nakilon> I feel like formatting is broken here: https://i.imgur.com/nBlg8SJ.png
<nakilon> not that I understand what's going on here from another website: https://i.imgur.com/HUHn3CH.png
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
splud has joined #ruby
<havenwood> nakilon: DO NOTE WRITE ANY MAGIC
<havenwood> nakilon: I dunno what that's about but +1 it seems unintentional.
Rounin has quit [Ping timeout: 240 seconds]
splud has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
splud has joined #ruby
TCZ has quit [Quit: Spij kolego w ciemnym grobie niech si? Polska przysni tobie]
Iarfen has quit [Remote host closed the connection]
Swyper has joined #ruby
moldorcoder7 has quit [Quit: %bye mirc%]
s3nd1v0g1us has joined #ruby
moldorcoder7 has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
gearnode has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
deviantfero has quit [Ping timeout: 240 seconds]
moldorcoder7 has quit [Ping timeout: 245 seconds]
kristian_on_linu has joined #ruby
moldorcoder7 has joined #ruby
deviantfero has joined #ruby