<brool>
I'm using Sequel with Sinatra; should i be doing "Sequel.connect(...)" every time I have a GET request that needs to get data from the DB, or is that redundant (that is, should i do the connection *once* somewhere else in the app)?
ur5us has joined #ruby
hutch has quit [Ping timeout: 265 seconds]
darkstardev13 has quit [Quit: Leaving]
darkstardev13 has joined #ruby
darkstardev13 has quit [Remote host closed the connection]
darkstardev13 has joined #ruby
apteryx has quit [Read error: Connection reset by peer]
apteryx has joined #ruby
rmnull has quit [Ping timeout: 260 seconds]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
f3ttX] has joined #ruby
Swyper has joined #ruby
ferche23_ has quit [Remote host closed the connection]
sergioro has quit [Quit: leaving]
sergioro has joined #ruby
ChmEarl has quit [Quit: Leaving]
apteryx has quit [Ping timeout: 265 seconds]
apteryx has joined #ruby
MadLamb has joined #ruby
crisfm has joined #ruby
<MadLamb>
Any recommendation for a proper firebase authentication on backend? I checked the gems "firebase" and "firebase-auth" but they dont seem to work the way it is expected.
rigel_ has joined #ruby
<rigel_>
How do i disable a whole category of cops in rubocops? This doesn't work: # rubocop:disable Lint/*
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
zlogan has quit [Ping timeout: 272 seconds]
<rigel_>
or simply `# rubocop:disable Lint`, or, `# rubocop:disable Lint/All` in the source file
apteryx has quit [Read error: Connection reset by peer]
rigel_ has quit [Quit: leaving]
jetchisel has joined #ruby
zacts has quit [Quit: WeeChat 2.8]
zacts has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
apteryx has joined #ruby
apteryx has quit [Ping timeout: 260 seconds]
f3ttX] has quit [Remote host closed the connection]
gix has quit [Disconnected by services]
<brool>
i found out that I've been leaking DB connections because i initialize my constant to 'Sequel.connect' every GET request, now i am not particularly sure where I should initialize that constant. i'm using Sinatra with rack, so i put the DB constant in my config.ru and it seems to work; is there anything potentially wrong with this?
apteryx has joined #ruby
apteryx has quit [Client Quit]
<havenwood>
brool: Yes, it's fine to set the DB constant in your config.ru or require_relative it from there.
<vasilakisfil>
in an app that I am working on, it accepts requests from HTTP, and after some transformations, needs to send requests through WS, take the response back from that WS and return the final response to the initial request. My problem is that the http library (and the protocol) is synchronous while the WS library is event-based. How would you communicate ws events back to the code handling the http request/response code ?
<vasilakisfil>
at the moment I use global variables and loop over to check whether the variables have been set. If they are set, it means I can send back the response to the original request. But this solution seems a bit awful
<vasilakisfil>
I think the underlying problem is that I use a sync (http) library with an async (ws) library, and these 2 need to communicate in some way
xNetX0 has quit [Quit: changing servers]
xNetX0 has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
zenspider has joined #ruby
zlogan has joined #ruby
cajetanp has joined #ruby
cajetanp has left #ruby ["WeeChat 2.8"]
markoong has joined #ruby
markoong has quit [Ping timeout: 260 seconds]
markong has joined #ruby
TCZ has joined #ruby
mn3m_ has joined #ruby
mn3m has quit [Read error: Connection reset by peer]
mn3m__ has joined #ruby
mn3m_ has quit [Ping timeout: 256 seconds]
fuxorn has quit [Quit: Konversation terminated!]
<yxhuvud>
vasilakisfil: consider moving to Typhoues (sp?) http library? IIRC, that one has support for async calls
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch_ has joined #ruby
crisfm has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
vondruch_ is now known as vondruch
rippa has joined #ruby
Technodrome has joined #ruby
arcaos has quit [Remote host closed the connection]
drincruz has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
zwliew has joined #ruby
akem has joined #ruby
cliluw has quit [Remote host closed the connection]
cliluw has joined #ruby
mn3m_ has joined #ruby
mn3m__ has quit [Ping timeout: 265 seconds]
dviola has quit [Quit: WeeChat 2.8]
hutch has joined #ruby
caterfxo has quit [Quit: leaving]
arcaos has joined #ruby
Tungki has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
leitz has joined #ruby
Tungki has quit [Ping timeout: 240 seconds]
chalkmonster has quit [Quit: WeeChat 2.8]
buckworst has joined #ruby
ritalinona has quit [Remote host closed the connection]
ritalinona has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
ellcs has joined #ruby
akem_ has joined #ruby
akem_ has quit [Client Quit]
fercell has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 260 seconds]
pandakekok9 has quit [Quit: good night]
arcaos has quit [Ping timeout: 256 seconds]
arcaos has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
s2013 has joined #ruby
TCZ has quit [Quit: Leaving]
dviola has joined #ruby
hutch has quit [Ping timeout: 256 seconds]
d3bug has joined #ruby
hutch has joined #ruby
ChmEarl has joined #ruby
buckworst has quit [Quit: WeeChat 2.8]
nofxx__ has quit [Remote host closed the connection]
nofxx has joined #ruby
brool has joined #ruby
Esa__ has joined #ruby
<leah2>
do i really need to monkeypatch irb 2.7 to remove the color?
<adam12>
leah2: Can you use the `--nocolorize` irb option?
cthulchu_ has joined #ruby
<leah2>
thx
<leah2>
i didnt look for that word :)
sergioro has joined #ruby
orbyt_ has joined #ruby
drincruz_ has joined #ruby
drincruz has quit [Read error: Connection reset by peer]
ldepandis has quit [Ping timeout: 256 seconds]
astronautical has quit [Quit: Leaving]
conta has quit [Quit: conta]
fercell has quit [Quit: WeeChat 2.7.1]
KamLy has quit [Remote host closed the connection]
TCZ has joined #ruby
KamLy has joined #ruby
chalkmonster has joined #ruby
SeepingN has joined #ruby
KamLy has quit [Ping timeout: 265 seconds]
conta has joined #ruby
howdoi has joined #ruby
caterfxo has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildtrees has joined #ruby
mn3m_ has quit [Quit: mn3m_]
mn3m has joined #ruby
KamLy has joined #ruby
fercell has joined #ruby
SeepingN has joined #ruby
aesthe has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
mn3m has quit [Quit: mn3m]
KamLy has quit [Ping timeout: 260 seconds]
chalkmonster has joined #ruby
mahlon has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
r3m has quit [Quit: WeeChat 2.9-dev]
xNetX0 is now known as NODE
r3m has joined #ruby
vondruch has quit [Quit: vondruch]
r3m has quit [Client Quit]
vondruch has joined #ruby
aesthe has quit [Quit: Leaving]
ritalinona has quit [Ping timeout: 240 seconds]
ritalinona has joined #ruby
r3m has joined #ruby
vondruch_ has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
crisfm has quit [Ping timeout: 265 seconds]
cek has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
rmnull has joined #ruby
cliluw has quit [Ping timeout: 260 seconds]
matti_ has joined #ruby
Some-body_ has joined #ruby
null____ has joined #ruby
gajus_ has joined #ruby
ryzokuken_ has joined #ruby
ruby[bot1 has joined #ruby
d0liver__ has joined #ruby
jetpack_joe_ has joined #ruby
strmpnk_ has joined #ruby
vqrs_ has joined #ruby
matti has quit [Ping timeout: 246 seconds]
ryzokuken has quit [Ping timeout: 246 seconds]
DarthGandalf has quit [Quit: Bye]
jetpack_joe has quit [Ping timeout: 246 seconds]
vqrs has quit [Ping timeout: 246 seconds]
strmpnk has quit [Ping timeout: 246 seconds]
null__ has quit [Remote host closed the connection]
d0liver has quit [Ping timeout: 246 seconds]
ruby[bot] has quit [Ping timeout: 246 seconds]
gajus has quit [Ping timeout: 246 seconds]
null____ is now known as null__
Some-body_ is now known as DarthGandalf
strmpnk_ is now known as strmpnk
ryzokuken_ is now known as ryzokuken
d0liver__ is now known as d0liver
gajus_ is now known as gajus
jetpack_joe_ is now known as jetpack_joe
Tuor has quit [Ping timeout: 246 seconds]
Tuor has joined #ruby
dasher00 has quit [Ping timeout: 265 seconds]
chalkmonster has quit [Quit: WeeChat 2.8]
<apotheon>
Is there an easy way to discover whether the version of Ruby I'm using is compiled with readline or editline support?
<apotheon>
Oh, never mind. I figured out a way.
<apotheon>
Set some config option in ~/.inputrc and set a contradictory option in ~/.editlinerc; whichever behavior applies when running irb will tell you which line editing library it uses.
<apotheon>
Damn. It's funny how I realized that *immediately* after I asked, following half an hour of trying to figure it out on my own.
KamLy has joined #ruby
<adam12>
It's the IRC rubber duck.
<adam12>
Spend a bunch of time deciding how to make a concise question, send it to the channel, and immediately understand your issue.
KamLy has quit [Ping timeout: 265 seconds]
<apotheon>
I should start using my meatspace rubber duck again.
chalkmonster has joined #ruby
<apotheon>
It's about three inches tall, wears a horned helm, and carries a sword.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dasher00 has quit [Ping timeout: 258 seconds]
<apotheon>
Finding an option for that is turning out to be harder than I thought.
<apotheon>
It kinda seems like Ruby's build process might be specified with the assumption that the only way you'd choose editline instead of readline is if you don't have readline on your system.
<adam12>
That was my experience, when I was running FreeBSD for dev.
<adam12>
Readline always had priority over editline.
<apotheon>
annoying
<apotheon>
c'est la vie
<adam12>
apotheon: What's your use case? I wonder if the new reline will eliminate all this.
<apotheon>
I'll give up for today.
<apotheon>
adam12: I want a consistent build across systems, including systems without readline.
<apotheon>
. . . and I'm using rbenv+ruby-build.
<apotheon>
I'd probably try out chruby, except it doesn't support the default shell on some OSes.
sphex has quit [Ping timeout: 256 seconds]
sphex has joined #ruby
conta has quit [Quit: conta]
Technodrome has joined #ruby
mokha has quit [Remote host closed the connection]
mokha has joined #ruby
arcaos has joined #ruby
<havenwood>
apotheon: It looks like a pre-exec function hooks are now in mksh future plans but I don't follow it closely.
<havenwood>
apotheon: Once they have hooks, we can add them to the mksh branch and merge.
<havenwood>
For now, it works on the mksh branch but without the auto-switching feature.
<havenwood>
apotheon: Shims are slow and have to be maintained... but they're great for cross-shell compat.
<havenwood>
That's their big win.
_phaul has quit [Ping timeout: 250 seconds]
chalkmonster has joined #ruby
arcaos has quit [Ping timeout: 265 seconds]
TCZ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
I've moved mostly to zsh these days and just install it when dash/bash/mksh is the default.
<havenwood>
I used to use what was there, but uhg.
cd has joined #ruby
arcaos has joined #ruby
tens0r has joined #ruby
<apotheon>
I prefer ksh in general.
tens0r has quit [Client Quit]
<apotheon>
My tendency is to install mksh on systems where ksh isn't the default.
burningserenity has joined #ruby
ur5us has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
cliluw has joined #ruby
burningserenity has quit [Ping timeout: 256 seconds]
cliluw has quit [Remote host closed the connection]
Technodrome has joined #ruby
davor has quit [Ping timeout: 240 seconds]
davor_ has joined #ruby
davor_ is now known as davor
burningserenity has joined #ruby
burningserenity has quit [Client Quit]
cliluw has joined #ruby
rubydoc has quit [Ping timeout: 265 seconds]
ellcs has quit [Ping timeout: 260 seconds]
hutch has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
KamLy has joined #ruby
brool has quit [Quit: WeeChat 2.8]
ellcs has quit [Ping timeout: 260 seconds]
hutch has joined #ruby
rippa has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arcaos has quit [Ping timeout: 265 seconds]
arcaos has joined #ruby
schne1der has quit [Ping timeout: 258 seconds]
meowzus has quit [Ping timeout: 252 seconds]
TCZ has quit [Quit: Leaving]
hutch has quit [Ping timeout: 256 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
rmnull has quit [Quit: WeeChat 2.7.1]
tpanarch1st has quit [Ping timeout: 265 seconds]
hutch has joined #ruby
wimpog has joined #ruby
cek has quit [Quit: Connection closed for inactivity]
<wimpog>
I have the following file: https://gist.github.com/wimpog/8d5bd61b76b7a6ebbb6ac95de2a591d8 Getting the following error: DEPRECATION WARNING: ActionView::Base instances should be constructed with a lookup context, assignments, and a controller.... line 10 (@app.call(env))