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
jenrzzz_ has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
AndreYuhai has quit [Quit: Leaving]
<ramfjord> Hey all, I've got a rails question that's a bit of a longshot. Let me know if I'm doing anything too crazy here. I've set up a controller.process_action subscription, which has been great for easily sending statsd metrics for each request broken down by status, etc. But our statsd provider charges us based on unique metrics tags, so I don't want to tag these metrics too specifically. So I had an idea
<ramfjord> of keeping a "failed_requests" log in the DB, which could store the arguments to a request, along with the number of times it's failed since the last time we cleared the failed_requests table. Anyway, the code to do this is here: https://gist.github.com/tramfjord/237924bde87cbe84f213b458bc5be104
<ramfjord> the issue is: in my tests at least, it looks like my thread's postgres connection is sometimes inside an existing transaction, and sometimes even a rolled back one, when the subscription is triggering
greengriminal has quit [Quit: This computer has gone to sleep]
<ramfjord> hence I'm getting these errors like ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
<ramfjord> Is there a way I can just say: "end whatever transaction you're in, start a new one"
<ramfjord> I'm 99% sure we are using `transaction` blocks for all transactions in this app, rather than manually `execute("BEGIN")` ing
<ramfjord> crap this is the ruby IRC, not the RoR irc?
Technodrome has joined #ruby
<ramfjord> if anyone can help would nevertheless be greatly appreciated
Xiti has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
gearnode has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
Rounin has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
FocalFossa0997 has joined #ruby
FocalFossa0997 has quit [Client Quit]
jenrzzz_ has quit [Ping timeout: 265 seconds]
neshpion has quit [Quit: neshpion]
patrick99e99 has joined #ruby
teardown has quit [Ping timeout: 268 seconds]
<patrick99e99> why is it that if I do: File.expand_path(Dir.entries(File.expand_path(Dir.entries('.')[2]))[2])
<patrick99e99> given I have a directory with [".", "..", "bob", "xyz", "a.blah"]
<patrick99e99> and bob is a folder with [".", "..", "lol"]
<patrick99e99> I am expecting to get "/path/to/bob/lol"
<patrick99e99> but instead I get "/path/to/lol"
<patrick99e99> which is not the right path
stdedos has quit [Quit: Connection closed]
jenrzzz_ has joined #ruby
hhnxsG has joined #ruby
supercoven_ has joined #ruby
supercoven_ has quit [Max SendQ exceeded]
supercoven_ has joined #ruby
supercoven_ has quit [Max SendQ exceeded]
supercoven_ has joined #ruby
supercoven has quit [Ping timeout: 276 seconds]
jenrzzz_ has quit [Ping timeout: 264 seconds]
swaggboi has joined #ruby
va5c0 has joined #ruby
<leftylink> well, lol is just a string. so you're saying, File.expand_path("lol")
<leftylink> so of course File.expand_path has no way to know that "bob" is supposed to be in the expanded path
hiroaki_ has quit [Ping timeout: 272 seconds]
jenrzzz_ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
hhnxsG has quit [Quit: Connection closed]
ramfjord has quit [Ping timeout: 276 seconds]
hhnxsG has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
teardown has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
gearnode has quit [Ping timeout: 272 seconds]
ritsch_master has quit [Remote host closed the connection]
dpl has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
shtirlic has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
dpl has quit [Remote host closed the connection]
dpl has joined #ruby
dpl has quit [Remote host closed the connection]
dpl has joined #ruby
dpl has quit [Remote host closed the connection]
dpl has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
shtirlic has joined #ruby
Guest21 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hhnxsG has quit [Quit: Connection closed]
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
deviantfero has quit [Quit: WeeChat 3.0]
Swyper has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
Swyper has quit [Ping timeout: 264 seconds]
dpl has quit [Ping timeout: 272 seconds]
va5c0 has quit [Ping timeout: 264 seconds]
michxf has joined #ruby
Xiti` has joined #ruby
jenrzzz_ has joined #ruby
Xiti` has quit [Remote host closed the connection]
DTZUZU has quit [Read error: Connection reset by peer]
Xiti has quit [Ping timeout: 264 seconds]
DTZUZU has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
patrick99e99 has quit [Ping timeout: 276 seconds]
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
patrick99e99 has joined #ruby
ChmEarl has quit [Quit: Leaving]
jenrzzz_ has quit [Ping timeout: 264 seconds]
m27frogy has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz_ has joined #ruby
Xiti has joined #ruby
michxf has quit [Quit: michxf]
jenrzzz_ has quit [Ping timeout: 246 seconds]
dpl_ has joined #ruby
jenrzzz_ has joined #ruby
Benett has quit [Ping timeout: 240 seconds]
Benett has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 272 seconds]
abhijit has joined #ruby
<abhijit> Hi All. which library should I use to capture mouse scroll wheel and map it to something else?
<abhijit> through ruby coding.
<drusepth> are you using some ui library already or is this in a console?
orbyt_ has joined #ruby
dpl_ has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
<abhijit> console
<abhijit> i can use some ui library if that is required
<drusepth> are you trying to remap globally across the whole system, or just when the app is focused?
<abhijit> global. Ubuntu linux.
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
<abhijit> just found out about easystroke
jenrzzz_ has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
<abhijit> not allowing to do by simple scroll
cloud69 has joined #ruby
Xiti has quit [Quit: Leaving]
jenrzzz_ has quit [Ping timeout: 265 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
dinfuehr has joined #ruby
Xiti has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
jenrzzz_ has quit [Ping timeout: 272 seconds]
s3nd1v0g1us has quit [Quit: WeeChat 3.0.1]
dvgorod has joined #ruby
jenrzzz_ has joined #ruby
jla has joined #ruby
Swyper has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
Swyper has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
adu_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
kristian_on_linu has joined #ruby
adu_ has quit [Quit: adu_]
Rudd0 has quit [Ping timeout: 240 seconds]
User4587_ has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
adu_ has joined #ruby
abhijit has quit [Quit: Leaving]
patrick99e99 has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
User4587_ has joined #ruby
adu_ has quit [Quit: adu_]
ua_ has quit [Ping timeout: 260 seconds]
kristian_on_linu has quit [Remote host closed the connection]
cliluw has quit [Read error: Connection reset by peer]
dfucci_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
ua_ has joined #ruby
patrick99e99 has joined #ruby
jla has quit [Ping timeout: 265 seconds]
patrick99e99 has quit [Ping timeout: 264 seconds]
cd has quit [Quit: cd]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
whysthatso has quit [Read error: Connection reset by peer]
whysthatso has joined #ruby
Swyper has joined #ruby
patrick99e99 has joined #ruby
Swyper has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
Rudd0 has joined #ruby
jmcgnh has quit [Ping timeout: 260 seconds]
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
stdedos has joined #ruby
stdedos has quit [Client Quit]
jla has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
tpanarch1st has quit [Ping timeout: 264 seconds]
acsims has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
drusepth has quit [Ping timeout: 265 seconds]
Technodrome has joined #ruby
whysthatso has quit [Read error: Connection reset by peer]
whysthatso has joined #ruby
podge has joined #ruby
podge has quit [Client Quit]
podge has joined #ruby
whysthatso has quit [Ping timeout: 264 seconds]
whysthatso has joined #ruby
whysthatso has quit [Client Quit]
whysthatso has joined #ruby
podge has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Changing host]
dionysus69 has joined #ruby
Rounin has joined #ruby
podge has joined #ruby
acsims has quit [Ping timeout: 264 seconds]
acsims has joined #ruby
dvgorod has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
patrick99e99 has quit [Ping timeout: 276 seconds]
fercell has joined #ruby
eregon has joined #ruby
whysthatso has quit [Quit: The Lounge - https://thelounge.chat]
Swyper has joined #ruby
roadt__ has joined #ruby
m27frogy has joined #ruby
eregon has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 265 seconds]
Swyper has quit [Ping timeout: 264 seconds]
work_ has joined #ruby
ua_ has quit [Ping timeout: 256 seconds]
tpanarch1st has joined #ruby
ruurd has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
Swyper has joined #ruby
romanlevin333236 has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
ua_ has joined #ruby
jenrzzz_ has joined #ruby
dpl_ has joined #ruby
whysthatso has joined #ruby
kristian_on_linu has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
dpl_ has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 272 seconds]
jenrzzz_ has joined #ruby
cloud69 has joined #ruby
cloud69 has quit [Client Quit]
jenrzzz_ has quit [Ping timeout: 264 seconds]
ruurd has quit [Ping timeout: 272 seconds]
jenrzzz_ has joined #ruby
Swyper has quit [Ping timeout: 264 seconds]
jenrzzz_ has quit [Ping timeout: 265 seconds]
shtirlic has quit [Ping timeout: 276 seconds]
cuerbot has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
patrick99e99 has joined #ruby
va5c0 has joined #ruby
patrick99e99 has quit [Ping timeout: 276 seconds]
va5c0 has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
acsims has quit [Ping timeout: 264 seconds]
acsims has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
acsims has quit [Ping timeout: 264 seconds]
Technodrome has quit [Ping timeout: 264 seconds]
Guest21 has joined #ruby
jenrzzz_ has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
ua_ has quit [Ping timeout: 265 seconds]
jenrzzz_ has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
va5c0 has joined #ruby
greengriminal has joined #ruby
ua_ has joined #ruby
jenrzzz_ has joined #ruby
va5c0 has quit [Ping timeout: 276 seconds]
hiroaki_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
claw has joined #ruby
ramfjord has joined #ruby
dpl has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
Guest21 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jla has left #ruby [#ruby]
jenrzzz_ has quit [Ping timeout: 264 seconds]
shtirlic has joined #ruby
Rounin has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
Swyper_ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
va5c0 has joined #ruby
Rudd0 has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
va5c0 has quit [Ping timeout: 276 seconds]
patrick99e99 has quit [Ping timeout: 256 seconds]
Xiti` has joined #ruby
moldorcoder7 has quit [Ping timeout: 272 seconds]
Rudd0 has joined #ruby
Xiti has quit [Ping timeout: 264 seconds]
ChmEarl has joined #ruby
Pixi__ has joined #ruby
Xiti` has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
work_ has quit [Quit: Connection closed for inactivity]
moldorcoder7 has joined #ruby
Swyper_ has quit [Remote host closed the connection]
shtirlic has quit [Read error: Connection reset by peer]
jenrzzz_ has joined #ruby
ramfjord has joined #ruby
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
ua_ has quit [Ping timeout: 276 seconds]
moldorcoder7 has quit [Ping timeout: 265 seconds]
neshpion has joined #ruby
GodFather has joined #ruby
Pixi__ has quit [Quit: Leaving]
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 246 seconds]
ua_ has joined #ruby
jenrzzz_ has joined #ruby
Xiti has joined #ruby
nofxx has joined #ruby
goepsilongo has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
sylario has joined #ruby
dinfuehr has quit [Ping timeout: 276 seconds]
dinfuehr has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
moldorcoder7 has joined #ruby
rafadc_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
nofxx has quit [Ping timeout: 256 seconds]
nofxx_ has joined #ruby
jenrzzz has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has quit [Ping timeout: 240 seconds]
mwaerner has quit [Quit: Connection closed for inactivity]
dinfuehr has joined #ruby
jenrzzz has joined #ruby
dinfuehr has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
dinfuehr has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
patrick99e99 has quit [Ping timeout: 256 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jenrzzz has joined #ruby
tpanarch1st has quit [Ping timeout: 276 seconds]
patrick99e99 has joined #ruby
Swyper has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
jenrzzz has joined #ruby
jla has joined #ruby
duckpupp- has quit [Ping timeout: 246 seconds]
kristian_on_linu has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
duckpuppy has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
meinside has quit [Quit: Connection closed for inactivity]
Swyper has quit [Remote host closed the connection]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
Swyper has joined #ruby
fercell has quit [Remote host closed the connection]
fercell has joined #ruby
jenrzzz_ has joined #ruby
factormystic2 has joined #ruby
cd has joined #ruby
factormystic2 has quit [Client Quit]
jla has quit [Ping timeout: 240 seconds]
trautwein1 has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
trautwein1 has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
fercell has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
patrick99e99 has joined #ruby
factormystic2 has joined #ruby
jenrzzz has joined #ruby
nofxx_ has quit [Ping timeout: 276 seconds]
nofxx has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
LtHummus has quit [Quit: ZNC 1.8.2 - https://znc.in]
factormystic2 has left #ruby ["The Lounge - https://thelounge.chat"]
dionysus69 has quit [Quit: Konversation terminated!]
LtHummus has joined #ruby
dpl has quit [Remote host closed the connection]
dpl has joined #ruby
factormystic has joined #ruby
dpl has quit [Client Quit]
dpl has joined #ruby
orbyt_ has joined #ruby
jmcgnh has joined #ruby
jenrzzz has joined #ruby
bucareli has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
podge has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
shtirlic has joined #ruby
jenrzzz has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
fercell has quit [Remote host closed the connection]
fercell has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
ruurd has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
patrick99e99 has quit [Quit: Lost terminal]
ruurd has joined #ruby
fercell has quit [Remote host closed the connection]
whysthatso has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
fercell has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
bucareli has quit [Quit: leaving]
whysthatso has joined #ruby
jenrzzz has joined #ruby
neshpion has quit [Remote host closed the connection]
neshpion has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fercell has quit [Remote host closed the connection]
fercell has joined #ruby
hiroaki_ has quit [Ping timeout: 272 seconds]
shtirlic has quit [Ping timeout: 276 seconds]
ruurd has joined #ruby
ruurd has quit [Client Quit]
jenrzzz has joined #ruby
ruurd has joined #ruby
Swyper has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
BTRRY is now known as BTRE
jenrzzz has joined #ruby
greengriminal has joined #ruby
hiroaki_ has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
ramfjord has joined #ruby
niv has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
jenrzzz_ has joined #ruby
fercell has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
neshpion has quit [Remote host closed the connection]
neshpion has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
kristian_on_linu has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acsims has joined #ruby
landakram has joined #ruby
TheBrayn has quit [Quit: WeeChat 3.0.1]
zolferino has joined #ruby
zolferino has quit [Excess Flood]
jenrzzz has quit [Ping timeout: 256 seconds]
greengriminal has joined #ruby
landakram has quit [Remote host closed the connection]
jenrzzz has joined #ruby
m27frogy has quit [Quit: ZNC - https://znc.in]
m27frogy has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
TheBrayn has joined #ruby
greengriminal has quit [Quit: Leaving]
acsims has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
acsims has joined #ruby
zolferino has joined #ruby
jenrzzz has joined #ruby
zolferino has quit [Excess Flood]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cloud69 has joined #ruby
shtirlic has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
shtirlic has quit [Ping timeout: 240 seconds]
gray-_-wolf has joined #ruby
neshpion has quit [Quit: neshpion]
<cloud69> Hello! For this basic Nokogiri scraper here, how would one go about specifying multiple URLs to scrape? https://gist.github.com/cloud69420/195290820379c75296cae2b5a54807a8
adu_ has joined #ruby
<cloud69> Right now I have to manually scrape one URL at a time :/ Btw I don't actually plan on scraping The Onion :)
jenrzzz_ has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
<weaksauce> cloud69 call scrape_post_links with a parameter?
<weaksauce> instead of a hard coded url
<weaksauce> PAGES.each do |url| scrape.scrape_post_links(url) end
kaivai has joined #ruby
Rounin has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
<cloud69> neat! one sec
kristian_on_linu has quit [Remote host closed the connection]
neshpion has joined #ruby
<cloud69> weaksauce: Updated the gist, hopefully im doing it right
adu_ has quit [Quit: adu_]
gearnode has joined #ruby
va5c0 has joined #ruby
<cloud69> Not sure how to handle `PAGES = [{ url: ..., category: ...}, { url: ..., category: ...}]`
zolferino has joined #ruby
zolferino has quit [Excess Flood]
<leftylink> one could not have it at all if the category can always be determined from the url in thee same way. but wemight suppose that soe urls are different so it is not possible to do that
<leftylink> in which case, one has the choice of either passing the hash and making Scraper extract the values, or passing #values_at only
ramfjord has joined #ruby