phinxy has quit [Read error: Connection reset by peer]
aduabu has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
milardov_ has quit []
canteen4 has joined #ruby
ted_ has left #ruby [#ruby]
aduabu has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
aduabu has joined #ruby
ta_ has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
skweek has quit [Read error: Connection reset by peer]
aduabu has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
aduabu has joined #ruby
Azure has joined #ruby
canteen4 has quit [Ping timeout: 252 seconds]
Neo95 has joined #ruby
skweek has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
gizmore|2 has joined #ruby
enterprisey has quit [Remote host closed the connection]
canteen4 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
d^sh_ has quit [Ping timeout: 248 seconds]
gizmore has quit [Ping timeout: 248 seconds]
jordanm has quit [Quit: Konversation terminated!]
d^sh has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
Neo95 has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 260 seconds]
canteen4 has joined #ruby
eckhardt has joined #ruby
aduabu has quit [Ping timeout: 252 seconds]
ResidentBiscuit has joined #ruby
aduabu has joined #ruby
Pisuke has joined #ruby
pharma_joe has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
postmodern has quit [Quit: Leaving]
t-recx has quit [Quit: t-recx]
aduabu has quit [Ping timeout: 260 seconds]
aduabu has joined #ruby
<Cyrus>
So a large part of my code involves munging data into a SQL database using Sequel, and the bulk of this code looks like: DB.insert(:value1 => object.value1, :value2 => object.value2) but far more substantial with how much I'm inserting similarly named properties of an object into columns of the database. Is there a better pattern?
canteen4 has quit [Ping timeout: 260 seconds]
<elomatreb>
If you have a list of the column/method names, you can use send to remove the duplication
<Cyrus>
Hmmm...I don't follow how that would work with regard to insertion via Sequel.
canteen4 has joined #ruby
<elomatreb>
I.e. you can reduce the `:value1 => object.value1` into a method-like structure that takes only a symbol, `some_symbol => object.send some_symbol`
<elomatreb>
DRYs it up a bit
<elomatreb>
But now that I think about it that's not really what you asked, nvm me
aduabu has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carnegie has quit [Remote host closed the connection]
Neo95 has joined #ruby
jameser has joined #ruby
aduabu has joined #ruby
cloutz has quit [Remote host closed the connection]
cloutz has joined #ruby
chouhoulis has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
canteen4 has joined #ruby
chouhoulis has joined #ruby
gusrub has quit []
Neo95 has quit [Ping timeout: 252 seconds]
aduabu has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord_ has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
pugc has quit [Quit: pugc]
ResidentBiscuit has quit []
aduabu has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
ramfjord has joined #ruby
hutch34 has joined #ruby
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has quit [Ping timeout: 252 seconds]
pharma_joe has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
GodFather has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
carnegie has joined #ruby
bronson has joined #ruby
ramfjord has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
waveprop has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
waveprop has joined #ruby
carnegie has quit [Remote host closed the connection]
zebird has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
pharma_joe is now known as pharma_joe[away]
aduabu has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
imperator has quit [Quit: Leaving]
ramfjord has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
pharma_joe[away] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
gothicsouth has joined #ruby
canteen4 has joined #ruby
enterprisey has joined #ruby
pharma_joe has joined #ruby
mim1k has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
kreantos has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
skweek has joined #ruby
kreantos has quit [Ping timeout: 260 seconds]
aduabu has joined #ruby
hahuang65 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
carnegie has joined #ruby
canteen4 has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
runescape07rsps has quit [Quit: Leaving]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
fyrril has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
aduabu has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
cloutz has quit [Read error: Connection reset by peer]
cloutz has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
pharma_joe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
korzybski has quit [Quit: korzybski]
aduabu has joined #ruby
sspreitz has quit [Ping timeout: 248 seconds]
shiranuidong has quit [Ping timeout: 252 seconds]
sspreitz has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
shiranuidong has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
Neo95 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
ramfjord_ has joined #ruby
carnegie has quit [Remote host closed the connection]
canteen4 has joined #ruby
cadillac_ has joined #ruby
kies has joined #ruby
ramfjord_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
aduabu has quit [Ping timeout: 260 seconds]
aduabu has joined #ruby
preyalone has joined #ruby
Neo95 has quit [Ping timeout: 240 seconds]
laphoraig92 has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
howdoi has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
zebird has quit [Quit: WeeChat 1.9]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
gix has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
ahrs has quit [Remote host closed the connection]
gix has joined #ruby
ahrs has joined #ruby
carnegie has joined #ruby
<imode>
what would the "recommended" gem be for hashing passwords for storage and auth?
<imode>
I'm using scrupt.
<adam12>
bcrypt
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
carnegie has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
<Pateros>
yep. bcrypt was recommended last time i checked. BCrypt::Password.create("foobar").
<imode>
I figured it was a community favorite. :P
<imode>
bcrypt-ruby hasn't been touched for a year though. does make me wonder.
aduabu has quit [Ping timeout: 248 seconds]
<imode>
hm. their builds seem to have failed too.
kies has quit [Ping timeout: 246 seconds]
<Pateros>
indeed
aduabu has joined #ruby
anisha has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 246 seconds]
mtkd has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
<mkaito>
sounds like you're volunteering as new maintainer :P
<imode>
lmfao.
ramfjord has joined #ruby
<mkaito>
doo eeet!
<mkaito>
no, really.
canteen4 has quit [Ping timeout: 248 seconds]
<imode>
if I had the time. :P
<mkaito>
weird enough that virtually everyone in ruby-land who does passwords uses bcrypt, and yet the thing is rotting as you said
canteen4 has joined #ruby
<imode>
hey. doesn't mean it's bad code.
<imode>
but builds failing generally is a bad sign. :P
<mkaito>
probably something in new ruby versions that broke the syntax somewhere
<mkaito>
happens
<mkaito>
and is usually easy to fix
<imode>
guess I'll stick with scrypt.
<mkaito>
well I'm about to push a site to production that uses bcrypt on 2.4.1, and haven't noticed any weird shit. so not sure what exactly is failing...
aduabu has quit [Ping timeout: 252 seconds]
ramfjord_ has joined #ruby
aduabu has joined #ruby
kies has joined #ruby
<imode>
it fails on ruby 1.9.2, head, jruby-head, and rbx 2.
<Pateros>
everything fails on rbx2
<Pateros>
it breaks too often
<mkaito>
wtf is rbx2?
<Pateros>
rubinius
<mkaito>
oh that
<imode>
ouch. on ruby-head it keeps failing to build native extensions.
<mkaito>
well, screw 1.9.2 and jruby, as far as I'm concerned... but why is it breaking on head?
<Pateros>
not very fair. people can move onto other things and languages.
<mkaito>
and they do, not like anything I say would stop them :P
aduabu has joined #ruby
Jayson_Virissimo has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
carnegie has joined #ruby
canteen4 has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 240 seconds]
juria_roberts has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
carnegie has quit [Remote host closed the connection]
<juria_roberts>
I have a multidimensional array [ ['A'], ['B', 'C']] for C I want the index 1 to be returned. For A I want the index 0 to be returned. How do I achieve this?
<baweaver>
What exactly are you trying to do juria_roberts ?
<baweaver>
Just transform them into their indexes?
<juria_roberts>
baweaver: I want to know which array the element belongs to
<baweaver>
Ah
<mkaito>
you can pass a block to Enumerable#find_index
<baweaver>
and since === is overridden for IPAddr that means you can use it for case statements
<baweaver>
Things like Integer, Hash, and String also respond to === as `is_a?`
ts_ has joined #ruby
xcesariox has joined #ruby
<baweaver>
case statements are a whole bag of fun once you know how to poke at them
<mkaito>
that one I use a lot
<mkaito>
with factory girl
<baweaver>
transient attributes are fun with factory girl
<mkaito>
yeah indeed
<baweaver>
I'm always tempted to make a generator for it that'd rig up factory girl with scaffolds that'll take care of various states of relationships
<mkaito>
tell me about it
<mkaito>
too much copy paste
<baweaver>
Then I decide I'm too lazy again
<baweaver>
I _did_ at one point make a system to take RSpec and use it as a scaffold orchestration framework
<baweaver>
Basically use dependency injection to make a new "RSpec" that the library gets loaded with and treat describe and such as a description language for your app ala TDD from hell
<pharma_joe>
Hi, does anyone familiar with using Capybara know how to specify the SSL version? It looks as if the default config in v2.15.1 includes --ignore-ssl-errors=true which we suspect is causing us problems :-/
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
<Pateros>
specify at what level? within the browser? or from ruby code?
govg has joined #ruby
<pharma_joe>
Pateros: From within the Ruby code
<Pateros>
but, what is making the SSL request. ruby or browser?
<pharma_joe>
AFAIK the request is being made by Ruby using Poltergiest as the Web Driver
aduabu has quit [Ping timeout: 255 seconds]
<Pateros>
ah okay. so then the request is happening inside webkit/browser. with chrome i think it's configurable with cmd line args. i dont know about poltergeist. it's not recommended anymore though, esp since chrome has gone headless.
<nofxxx>
Pateros, yeah, and say you have a issue with firefox, you can run some scenario on it
<pharma_joe>
Pateros: Have you found any issues using Chrome Headless? My colleague mentioned it can be tricky to compile/install on some platforms
<Pateros>
yeah. there's some issues. for example you can't test extensions with it.
<nofxxx>
but for everyday integration tests, chrome is faster
mim1k has joined #ruby
<nofxxx>
Pateros, watir installs exts on chrome, not sure others
<Pateros>
capybara is a bit complicated
<nofxxx>
but I don;t think you can interact with extensions
<nofxxx>
maybe some mouse move voodoo
<Pateros>
you can. if you visit chrome-extension://<id>/foo.html it's like using the extension itself. i think watir would be similar. the issue is you have to watch chrome do everything.
<nofxxx>
Pateros, woa, thanks for teaching me that =D
<Pateros>
thanks for introducing watir =]
pharma_joe is now known as pharma_joe[away]
<nofxxx>
we're even hehe
cagomez has quit [Ping timeout: 240 seconds]
<nofxxx>
may be wrong but I think this headless integration testing thing started in ruby/rails community, hence why there are those old ones in ruby
<nofxxx>
and the others are catching up... nodejs helped
<nofxxx>
capybara/mechanize -> phantom -> chrome headless like eveolution
mim1k has quit [Ping timeout: 240 seconds]
<Pateros>
not sure. i noticed it's becoming more stable. random failures due to some driver/timing issue are much more rare.
jinie has quit [Ping timeout: 240 seconds]
paranoicsan has joined #ruby
<nofxxx>
actually it was head only if you need JS in some period... you'll use something like scenario "foo", js: true in rspec
DTZUZO has quit [Ping timeout: 255 seconds]
<Pateros>
yup. browser tests without JS dont seem useful though
jinie has joined #ruby
<Pateros>
except to test <noscript></noscript> stuff or something
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nopolitica has joined #ruby
Gil__ has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
pharma_joe[away] is now known as pharma_joe
juria_roberts has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
<juria_roberts>
How do I dynamically create an array with n number of elements and each element is a number except the last 4. For eg n= 10 then i want to output [1, 2, 3, 4, 5, 6, 'this', 'is' ,'the', 'end']
eckhardt has joined #ruby
alfiemax has joined #ruby
joelroa has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
canteen4 has joined #ruby
aufi has joined #ruby
cdg has joined #ruby
aduabu has quit [Ping timeout: 252 seconds]
pharma_joe is now known as pharma_joe[away]
Robtop__ has quit [Read error: Connection reset by peer]
Robtop__ has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
am55 has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
uZiel has joined #ruby
am55 has joined #ruby
canteen4 has quit [Ping timeout: 252 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
phinxy has joined #ruby
gothicsouth has joined #ruby
aduabu has joined #ruby
<Gil__>
array = [1, 2 , 3]
<Gil__>
"This is the end".split(" ").each { |w| array.push(w)}
phinxy has quit [Read error: Connection reset by peer]
aduabu has joined #ruby
hahuang65 has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
enterprisey has quit [Remote host closed the connection]
aduabu has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
claudiuinberlin has joined #ruby
jamesaxl has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
opekktar has joined #ruby
phaul has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
guille-moe has joined #ruby
canteen4 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
paranoicsan is now known as paranoicsan[Away
dionysus69 has joined #ruby
paranoicsan[Away has quit [Quit: paranoicsan[Away]
canteen4 has joined #ruby
agent_white has joined #ruby
tbuehlmann_ has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
shiranuidong has quit [Read error: Connection reset by peer]
canteen4 has quit [Ping timeout: 255 seconds]
shiranuidong has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
Burgestrand has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
aduabu has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
bronson has joined #ruby
paranoicsan has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
Neo95 has joined #ruby
mim1k has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Neo95 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
roshanavand has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
roshanavand has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 240 seconds]
ts_ has quit [Ping timeout: 240 seconds]
jaruga has joined #ruby
sepp2k has joined #ruby
ts_ has joined #ruby
workmad3 has joined #ruby
ts_ has quit [Max SendQ exceeded]
ts_ has joined #ruby
ts_ has quit [Max SendQ exceeded]
ts_ has joined #ruby
opekktar_ has joined #ruby
opekktar_ has quit [Client Quit]
opekktar_ has joined #ruby
Beams has joined #ruby
Mortomes|Work has joined #ruby
tomphp has joined #ruby
canteen4 has joined #ruby
claudiuinberlin has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
harai has quit [Ping timeout: 255 seconds]
KeyJoo has joined #ruby
aduabu has joined #ruby
ana_ has quit [Quit: Leaving]
ana_ has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
opekktar has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
canteen4 has joined #ruby
qCMFMcuB has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 260 seconds]
canteen4 has joined #ruby
claudiuinberlin has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
marr has joined #ruby
hutch34 has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
aduabu has quit [Ping timeout: 240 seconds]
gix has joined #ruby
aduabu has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
canteen4 has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
qCMFMcuB_SWie5A7 has joined #ruby
qCMFMcuB_SWie5A7 has quit [Remote host closed the connection]
fabio_ros_ has joined #ruby
qCMFMcuB_SWie5A7 has joined #ruby
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
Antiarc has joined #ruby
qCMFMcuB has quit [Quit: Leaving]
fabioros has joined #ruby
bronson has joined #ruby
fabio_ros_ has quit [Client Quit]
_aeris_ has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 260 seconds]
canteen4 has joined #ruby
perlun has joined #ruby
Tempesta has quit [Quit: See ya!]
phinxy has joined #ruby
_aeris_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<perlun>
debugging the same memory leak mentioned the other day in my Ruby app: what are your suggested options? I have done a bit of jemalloc digging, and it "feels" like the leak is coming from objspace_xmalloc0, aligned_malloc
<perlun>
Ruby allocator), or some object is "growing in size"...
<perlun>
or objspace_xcalloc. I guess that could be "any part of the Ruby code"… What are the best options for actually profiling the Ruby objects/objspace? I have done a bit of digging (quite a bit already actually) and the _number_ of actual old_objects in the Ruby heap is more or less constant (around 800 000), but the RSS is increasing. So either something is actually leaking in a C extension after all (perhaps allocating its memory via the
aduabu has quit [Ping timeout: 248 seconds]
pagios has quit [Ping timeout: 252 seconds]
pandaant has joined #ruby
<perlun>
I looked at ruby-prof now, but haven't tried it. It requires me to patch MRI which is clearly possible since I already am compiling it from source.
jamesaxl has quit [Read error: Connection reset by peer]
opekktar_ has quit [Read error: Connection reset by peer]
nopolitica has joined #ruby
<dminuoso>
perlun, are you sure its actually a leak?
jamesaxl has joined #ruby
opekktar_ has joined #ruby
aduabu has joined #ruby
nofxxx has quit [Read error: Connection reset by peer]
nofxxxx has joined #ruby
<fabioros>
I've already use ruby_prof in the past, it creates good report about cpu usage, memory and time spent. It could works for you
<dminuoso>
perlun, Ruby uses a generational GC which can accumulate memory over time. This can be perfectly normal behavior if a major GC never kicks off
shiranuidong has joined #ruby
<fabioros>
It helps me a lot
<dminuoso>
perlun, Id be interested in the GC stats
<perlun>
fabioros: seemed to be mostly concerned with performance profiling, not memory, but thanks anyway.
<perlun>
dminuoso: sure, one sec.
lele has joined #ruby
pagios has joined #ruby
bkxd has joined #ruby
pygospa has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
aduabu has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
alibby has quit [Ping timeout: 240 seconds]
belmoussaoui_ has quit [Quit: belmoussaoui_]
nopolitica has quit [Ping timeout: 255 seconds]
belmoussaoui_ has joined #ruby
VladGh has quit [Remote host closed the connection]
kotk has joined #ruby
VladGh has joined #ruby
aduabu has joined #ruby
belmoussaoui_ has quit [Client Quit]
belmoussaoui has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
mson has joined #ruby
alfiemax has joined #ruby
hutch34 has joined #ruby
nopolitica has joined #ruby
sekmo has joined #ruby
sekmo has quit [Client Quit]
nadir has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 268 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
sepp2k has quit [Remote host closed the connection]
oaao1 has joined #ruby
canteen4 has joined #ruby
Tempesta has quit [*.net *.split]
hfp_work has quit [*.net *.split]
lele has quit [*.net *.split]
shiranuidong has quit [*.net *.split]
mtkd has quit [*.net *.split]
konsolebox has quit [*.net *.split]
kies has quit [*.net *.split]
ahrs has quit [*.net *.split]
rjungemann has quit [*.net *.split]
electrostat has quit [*.net *.split]
alveric4 has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
robouk has quit [*.net *.split]
zenit has quit [*.net *.split]
contradictioned has quit [*.net *.split]
m27frogy has quit [*.net *.split]
go|dfish has quit [*.net *.split]
Technaton has quit [*.net *.split]
selim has quit [*.net *.split]
oaao has quit [*.net *.split]
wnd has quit [*.net *.split]
Lyubo1 has quit [*.net *.split]
synstack has quit [*.net *.split]
mniip has quit [*.net *.split]
epochwolf has quit [*.net *.split]
davic has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
AKPWD has quit [*.net *.split]
admwrd has quit [*.net *.split]
jokke has quit [*.net *.split]
planigan has quit [*.net *.split]
p0p0pr37 has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
deduped has quit [*.net *.split]
zapata has quit [*.net *.split]
fullstack has quit [*.net *.split]
zack6849 has quit [*.net *.split]
my123 has quit [*.net *.split]
Bish has quit [*.net *.split]
hsiktas has quit [*.net *.split]
doesntbyte has quit [*.net *.split]
bier has quit [*.net *.split]
Brak____________ has quit [*.net *.split]
Chew has quit [*.net *.split]
APK has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
admwrd has joined #ruby
p0p0pr37_ is now known as p0p0pr37
Tempesta has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Bish has joined #ruby
alveric4 has joined #ruby
go|dfish has joined #ruby
wnd has joined #ruby
planigan has joined #ruby
shiranuidong has joined #ruby
mniip has joined #ruby
ahrs has joined #ruby
yosafbridge has joined #ruby
cydrobolt has quit [Ping timeout: 240 seconds]
helpa has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
my123 has joined #ruby
my123 has joined #ruby
bronson has joined #ruby
alibby has joined #ruby
aduabu has quit [Ping timeout: 260 seconds]
belmoussaoui has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
opekktar_ has quit [Ping timeout: 260 seconds]
epochwolf has joined #ruby
Lyubo1 has joined #ruby
mtkd has joined #ruby
selim has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
hfp_work has joined #ruby
daemonwrangler has joined #ruby
rabajaj has quit [Ping timeout: 248 seconds]
vondruch has quit [Ping timeout: 240 seconds]
m27frogy has joined #ruby
vondruch has joined #ruby
cydrobolt has joined #ruby
cydrobolt has quit [Changing host]
cydrobolt has joined #ruby
bokayio has joined #ruby
d^sh has joined #ruby
Xeago has joined #ruby
ldnunes has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
hsiktas has joined #ruby
anisha has joined #ruby
aduabu has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kotk_ has joined #ruby
claudiuinberlin has joined #ruby
pandaant has quit [Remote host closed the connection]
belmoussaoui has quit [Ping timeout: 240 seconds]
kotk has quit [Ping timeout: 240 seconds]
Klumben has quit [Ping timeout: 255 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
lele has joined #ruby
robouk has joined #ruby
zenit has joined #ruby
contradictioned has joined #ruby
kies has joined #ruby
rjungemann has joined #ruby
electrostat has joined #ruby
zapata has joined #ruby
fullstack has joined #ruby
DarkBushido has joined #ruby
jokke has joined #ruby
zack6849 has joined #ruby
davic has joined #ruby
bier has joined #ruby
coffeejunk has joined #ruby
Chew has joined #ruby
Brak____________ has joined #ruby
synstack has joined #ruby
doesntbyte has joined #ruby
Technaton has joined #ruby
uZiel has joined #ruby
cagomez has joined #ruby
balazs has joined #ruby
t-recx has joined #ruby
selim has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
Klumben has joined #ruby
selim has joined #ruby
cagomez has quit [Ping timeout: 252 seconds]
stamina has quit [Quit: WeeChat 1.9]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
numbdewd has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
rabajaj has joined #ruby
canteen4 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ouchy has joined #ruby
Ouchy`w has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kreantos has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
andikr has quit [Remote host closed the connection]
aduabu has joined #ruby
kreantos has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 252 seconds]
rabajaj has quit [Quit: Leaving]
fabio_ros has joined #ruby
kreantos has joined #ruby
spheric has joined #ruby
claudiuinberlin has joined #ruby
clouts has joined #ruby
ShalokShalom_ is now known as ShalokShalom
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 252 seconds]
dviola has quit [Quit: WeeChat 1.9]
cloutz has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
Bish has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 260 seconds]
shiranuidong has quit [Quit: Leaving]
Bish has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 252 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
canteen4 has joined #ruby
cdg has joined #ruby
kreantos has quit []
selim has quit [Ping timeout: 246 seconds]
APK is now known as AKPWD
piuge has joined #ruby
aduabu has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 248 seconds]
schickung has joined #ruby
cout is now known as all
all is now known as cout
schickung has quit [Client Quit]
mim1k has joined #ruby
bronson has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
selim has joined #ruby
Neo95 has joined #ruby
canteen4 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
jordanm has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
aduabu has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
aduabu has joined #ruby
ta_ has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 240 seconds]
Neo95 has quit [Ping timeout: 252 seconds]
canteen4 has joined #ruby
Neo95 has joined #ruby
merijn has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
<merijn>
ok, so I have a ruby project that has a Gemfile and .gemspec, but I have no idea how I'm supposed to install it. I figured "gem install" would search the local dir first, but that claims I have to name one gem name
aduabu has joined #ruby
<dminuoso>
merijn, it's hard to say in general.
<dminuoso>
merijn, does it have some README.md or INSTALL.md?
DroidBurgundy has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 240 seconds]
<merijn>
dminuoso: Yeah, but that just tells me I should run "gem install <gem name>" which tells me that gem doesn't exist in any repository
<dminuoso>
merijn, is it publically hosted on github?
<merijn>
Yeah
carnegie has joined #ruby
hahuang65 has joined #ruby
tsglove has quit [Read error: Connection reset by peer]
<hinbody>
Hi all. I'm trying to figure out how 'todotxt generate_cfg' from https://github.com/jsahlen/todotxt works. I've grepped the repo for generate_cfg and I don't find that string so I don't understand how that works
<hinbody>
can someone help me understand this?
<dminuoso>
merijn, can you tell us which one?
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Pateros>
ime smalltalk-like env are better for developing with dynamic langs like ruby, vs the tools static langs have
merijn has left #ruby [#ruby]
uZiel has quit [Ping timeout: 268 seconds]
<imperator>
dminuoso, you mean something like static duck typing?
t-recx has quit [Quit: t-recx]
uZiel has joined #ruby
bruno- has joined #ruby
<imperator>
only language i know of that has that is Scala
<dminuoso>
imperator, C++ has it, Haskell has it
<dminuoso>
Well. C++ has it soon.
<dminuoso>
Java has it
<Pateros>
i don't think so. got impression he wants types defined within the limits of Enumerable, or a class name. where as ruby, duck typing could mean "responds to X,Y, and Z". not that it is Enumerable,and so on.
bronson has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
<dminuoso>
Pateros, the formal concept is called type classes.
<imperator>
dminuoso, i've never seen it in java, but i haven't looked at java in years. i'm not familiar with haskell.
Mortomes|Work has quit [Ping timeout: 260 seconds]
<imperator>
but, good to know!
<dminuoso>
imperator, C++ calls it concepts, Java calls it interfaces, haskell calls it type classes. But they are all the same thing really
<dminuoso>
And even in Ruby we have it. Enumerable is exactly such a thing (its just not rigidly enforced)
FrostCandy has joined #ruby
<Pateros>
don't see how Enumerable encompasses duck typing in Ruby. Duck typing in ruby can mean, "responds to each? good enough". it can be that limited in scope. i think you are forcing alien concepts into ruby.
<dminuoso>
Pateros, duck typing is more than just responds to.
<Pateros>
in ruby no.
<dminuoso>
Yes.
chouhoul_ has joined #ruby
<elomatreb>
It's not enforced by the language, but if you define an #each that just does something completely different you still respond_to it, but you're not Enumerable
<dminuoso>
class Foo def each; 1; end; end
<dminuoso>
Pateros, ^- that is not properly duck typed, even though it responds to .each, but it doesnt do the same thing.
<dminuoso>
So it makes no sense.
<Pateros>
ok, let me rephrase it then. the scope of a duck type is not concrete, eg: "is_a?(Enumerable)". it can be, "implements each? implements map? cool".
<elomatreb>
Well, unless a class that does something like above for each and map comes along, and your expectations are broken
claudiuinberlin has quit [Ping timeout: 240 seconds]
<Pateros>
sure, but this is ruby.
<dminuoso>
Pateros, type classes are static duck typing, that's all.
<dminuoso>
Pateros, the problem is if you get an object, and it responds to .each, you have no idea what that means.
<dminuoso>
Even if you get an Enumerator object back it's not guaranteed to do what you expect.
Neo95 has quit [Ping timeout: 240 seconds]
<dminuoso>
So duck typing is responds_to + expected semantics
chouhoulis has quit [Ping timeout: 248 seconds]
<Pateros>
sure, also: "class Foo; include Bar; include Baz; end". let's say Bar implements each, and Baz implements map. then, Foo.new. i think a type check in ruby should work based on [:each, :map] not whether it's Enumerable or not.
perlun has quit [Quit: Leaving.]
<dminuoso>
Pateros, and that wont tell you anything. That's the point.
<elomatreb>
The problem when you attach meaning to methods like that is that they can mean different things for different classes
ur5us has joined #ruby
<elomatreb>
(can and should in some cases)
<dminuoso>
Pateros, you dont care that an object responds to .each, you never do. You care that .each somehow gives you enumeration semantics back.
<dminuoso>
def each 1; end
<Pateros>
well. i think solution should be tailored to ruby in any case. i'm not sure of enforcing other models into ruby will work. it has its own ways and methods.
dviola has joined #ruby
<Pateros>
yes. this is nature of ruby
<Pateros>
if you want real static typing, use another language :/
<dminuoso>
Pateros, Ruby is my only non-typed language (well next to asm, but that doesnt count) I develop in. ;p
<elomatreb>
ASM is typed
<elomatreb>
Numbers
jamesaxl has quit [Ping timeout: 246 seconds]
<elomatreb>
We have numbers here
<dminuoso>
Heh
Puffball has quit [Remote host closed the connection]
bmurt has joined #ruby
DroidBurgundy has quit [Ping timeout: 260 seconds]
<dminuoso>
havenwood, ugh. Finished that one, not sure I like it. When its done for "deterministic" behavior it requires being extremely careful about what code you call.
<dminuoso>
I mean you have to know whether any LoC can yield or not
Neo95 has quit [Ping timeout: 248 seconds]
<havenwood>
that seems to be Ruby core's impression as well - potentially useful but difficult to do so properly
<havenwood>
i'm still intrigued by the possibility
aduabu has joined #ruby
funkytwig has quit [Ping timeout: 248 seconds]
<dminuoso>
havenwood, actors!
<havenwood>
an actor's guild!
canteen4 has quit [Ping timeout: 252 seconds]
<havenwood>
checks out...
<Pateros>
AutoFiber sounds complicated
<Pateros>
it's also not clear how its impl relates to threads
canteen4 has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
aufi has quit [Quit: Leaving]
aufi has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
<havenwood>
Pateros: "Another idea is change this name from Fiber but thread-related name, but implementation is based on Fiber."
<Pateros>
yeah. i saw that, and the follow up comments against it.
<havenwood>
Pateros: They could use the fiber implementation but add it as a feature option to existing Thread.
<havenwood>
It's still being discussed. I'm not sure how it'll end up.
<dminuoso>
Pateros, realistically context switching is not facilitated by the kernel preempting, but by the assumption that threads frequently interact with the OS.
<dminuoso>
And almost all syscalls call the scheduler
<dminuoso>
So threads are highly cooperative on most systems already.
ana_ has quit [Quit: Leaving]
aduabu has joined #ruby
Rapture has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
runescape07rsps has joined #ruby
car has quit [Quit: Leaving]
canteen4 has quit [Ping timeout: 252 seconds]
canteen4 has joined #ruby
lxsameer has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
dump_not has quit [Remote host closed the connection]
zenit has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
funkytwig has joined #ruby
justinweiss has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
belmoussaoui has quit [Read error: Connection reset by peer]
belmoussaoui has joined #ruby
orbyt_ has joined #ruby
cagomez has joined #ruby
funkytwig has quit [Quit: Leaving]
harai has joined #ruby
lacuna has joined #ruby
Rapture has joined #ruby
bmurt has joined #ruby
aduabu has joined #ruby
ornerymoose has joined #ruby
bmurt has quit [Client Quit]
bricemartin67 has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
<ornerymoose>
I’m using File.basename() on files located on an FTP server. I’m trying to understand why using File.basename is returning everything about the file (ie permissions, modification date), instead of just the Filename itself.
carnegie has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
bricemartin67 has left #ruby [#ruby]
bronson has joined #ruby
<dminuoso>
ornerymoose, code please.
<matthewd>
ornerymoose: File.basename is a simple string manipulation function. You may be expecting too much of it.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drcode has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
nopolitica has joined #ruby
drcode has joined #ruby
aduabu has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
drcode has quit [Read error: Connection reset by peer]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
canteen4 has quit [Ping timeout: 248 seconds]
drcode has joined #ruby
nyuszika7h has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
hahuang65 has joined #ruby
nyuszika7h has joined #ruby
canteen4 has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
icbm has quit [Quit: Leaving]
cdg has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
justinweiss has joined #ruby
chouhou__ has joined #ruby
jottr has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
drcode has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
facest has quit [Ping timeout: 240 seconds]
facest has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
drcode has joined #ruby
roshanavand has joined #ruby
deduped has quit [Quit: Leaving]
aduabu has joined #ruby
deduped has joined #ruby
harai has quit [Ping timeout: 240 seconds]
harai has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
ta_ has joined #ruby
jottr has joined #ruby
korzybski has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 252 seconds]
spheric has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
Rapture has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
cdg_ has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
drcode has quit [Read error: Connection reset by peer]
cdg has joined #ruby
roshanavand has joined #ruby
maciuszek has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
bmurt has joined #ruby
zachk has joined #ruby
gusrub has joined #ruby
drcode has joined #ruby
cdg_ has quit [Ping timeout: 260 seconds]
canteen4 has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has quit [Ping timeout: 248 seconds]
s3nd1v0g1us has joined #ruby
pygospa has joined #ruby
eckhardt has joined #ruby
alibby has quit [Quit: Leaving.]
s3nd1v0g1us has quit [Client Quit]
aduabu has joined #ruby
s3nd1v0g1us has joined #ruby
bronson has joined #ruby
qCMFMcuB_hj5p9k8 has quit [Quit: Leaving]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
qCMFMcuB_hj5p9k8 has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
s3nd1v0g1us has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s3nd1v0g1us has joined #ruby
<orbyt_>
Hey all, I was trying to install Rails and was getting a FilePermissionsError for `/Library/Ruby/Gems/2.0.0 directory`. I understand this will probably be fixed by running `sudo gem install rails`. My question is, is it normal to require sudo privileges to install gems? I"m wondering if I have my environment setup incorrectly.
aduabu has joined #ruby
<eam>
orbyt_: generally on osx you'll want to install a non-system ruby via chruby, rvm or similar tools
roshanavand has quit [Ping timeout: 255 seconds]
<havenwood>
orbyt_: Rails 5 will require a more modern Ruby than what ships with macOS.
<havenwood>
orbyt_: Did you install Ruby 2.4.1 with rbenv?
cagomez has joined #ruby
tomphp has joined #ruby
<eam>
the "/Library" path hints that you're calling /usr/bin/ruby from the OSX base system
<havenwood>
?rbenv orbyt_
<ruby[bot]>
orbyt_: Missing command under rbenv? Did you try `rbenv rehash`?
davic has quit [Quit: Connection closed for inactivity]
<orbyt_>
Let me reiterate, I have rbenv installed and understand it's purpose, but have little to no experience with it.
<eam>
the rbenv installed ruby will be located under your home directory and won't require sudo
<eam>
orbyt_: that's fine!
funkytwig has joined #ruby
<orbyt_>
eam Running ruby -v I see ruby 2.0.0p
<orbyt_>
How can I see the version installed via rbenv?
<eam>
I bet "which ruby" will show you /usr/bin/ruby
nowhere_man has quit [Quit: Konversation terminated!]
<dminuoso>
havenwood, any serious non-swift development will require more modern <Things> than what ships with macOS
nowhere_man has joined #ruby
<dminuoso>
havenwood, I have managed to crash git into oblivion at least 3 times until I switched to the brew version.
<dminuoso>
:P
<eam>
orbyt_: havenwood's advice is good, try rbenv rehash
<orbyt_>
eam It shows "/Users/me/.rbenv/shims/ruby"
<dminuoso>
By the way, did you know you can commit onto tags?
* dminuoso
hides
<funkytwig>
Hi, I am moving from mysql to postgres. Using the pg gem is there a way to set default schema so I don’t need to specify it when I refer to a user.
<eam>
orbyt_: ah, I'm not super familiar with rbenv, perhaps that shim is configured to call out to system ruby?
nopolitica has quit [Ping timeout: 255 seconds]
Emmanuel_Chanel has joined #ruby
<orbyt_>
eam Not a clue, was hoping you could tell me lol
<eam>
orbyt_: probably use the tutorial havenwood linked above, it sounds like some rbenv things need doing
<havenwood>
funkytwig: (I don't know how to do it with the pg gem directly, but maybe someone else here does.)
<orbyt_>
eam I'm not sure how that's relevant to my original question? I have Ruby installed...just wondering if it's normal to require sudo to install gems.
<orbyt_>
I'm used to npm, and usually don't require sudo unless i'm installing global packages or something
gnufied has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
<eam>
orbyt_: you are currently using the global system ruby and are installing global packages
<eam>
havenwood and I are suggesting you install a local ruby using rbenv
<orbyt_>
Ah, makes sense. Will look into that then. Thanks all.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carnegie has quit [Remote host closed the connection]
<funkytwig>
havenwood, interesting, I actually quite like SQL;).
tomphp has joined #ruby
<havenwood>
funkytwig: nice
phinxy has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
cdg has quit [Remote host closed the connection]
<havenwood>
funkytwig: Postgres has continued to pleasantly surprise me lately.
<funkytwig>
havenwood, I worked for about 15 years as a database developer. love the idea of this type of abstraction but.....
<funkytwig>
does it allow me to set the default schema;).
<havenwood>
We've been doing neat stuff with the pg_trgm module, indexing trigrams for elastic-search-like search.
kua[m] has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
And ISBN13 data type was a really nice surprise when looking to validate ISBNs.
cdg has joined #ruby
<funkytwig>
havenwood, although I suppose schemas are like name spaces so specifying them is good.
<havenwood>
I'm super impressed with GIN trigram index performance.
emilford has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
<funkytwig>
havenwood, think I will just crack on and get everything working, then look at sqqual later, can always redactor the DB class later.
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
hahuang65 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
AxelAlex has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
<orbyt_>
Follow up on my above questions..it looks like to install a specific version in the current directory using rbenv, the `rbenv local [version]` command is used
<orbyt_>
To set the global version, use `rbenv global [version]`, either specifying a version or `system` to use the systems version
jamesaxl has quit [Quit: WeeChat 1.8]
<eam>
that sounds accurate
KaitoDaumoto has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<orbyt_>
So, is it `normal` to install packages that provide a CLI (like Rails) to specific directories with specific versions, rather than globally? Like I mentioned earlier, with something like NPM packages that provide CLI tools are usually installed globally.
dali_ has joined #ruby
<orbyt_>
Just wondering what the best practice is here
<dali_>
hey guys
phinxy has quit [Read error: Connection reset by peer]
kapil___ has joined #ruby
<dali_>
anyone had error "kernel_require.rb:55:in `require': cannot load such file -- httparty (LoadError)"
<dali_>
?
nopolitica has joined #ruby
ornerymoose has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
carnegie has joined #ruby
dali_ has quit [Ping timeout: 260 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
gnufied has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
preyalone has joined #ruby
<preyalone>
Is Ruby vulnerable to mutable default parameters like Python?
gnufied has quit [Client Quit]
gnufied has joined #ruby
<elomatreb>
preyalone: "Vulnerable"?
lacuna has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
lacuna has quit [Read error: Connection reset by peer]
<preyalone>
ah, i guess ruby is safe for this by evaluating the arguments once rather than at every call
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
ldnunes has quit [Quit: Leaving]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
imperator has quit [Quit: This computer has gone to sleep]
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
<eam>
orbyt_: yes generally they're installed alongside the rbenv managed ruby in your ~
aduabu has joined #ruby
<orbyt_>
eam Cool, thanks.
canteen4 has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
canteen4 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
mim1k has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
camonz has joined #ruby
<adaedra>
preyalone: you mean, does ruby re-evaluates default argument at each call? Then yes. https://eval.in/852869
biberu has quit []
<adaedra>
I fail to see how this can be describe as "vulnerable", though.