havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
_whitelogger has joined #ruby
DroidBurgundy has joined #ruby
Klumben has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leonthemisfit has joined #ruby
leonthemisfit has joined #ruby
leonthemisfit has quit [Changing host]
milardovich has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
orbyt_ has joined #ruby
milardov_ has quit [Ping timeout: 252 seconds]
mbr has joined #ruby
laphoraig92 has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
iputra has joined #ruby
iputra has left #ruby [#ruby]
canteen4 has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
cagomez has quit [Remote host closed the connection]
<zenspider> funkytwig: can you show us some code (gist) that demonstrates the problem?
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
brent__ has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
aduabu has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
cagomez_ has joined #ruby
GodFather has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
kreantos has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
enterprisey has joined #ruby
cagomez_ has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
kreantos has quit [Ping timeout: 252 seconds]
harai has quit [Ping timeout: 255 seconds]
pugcs has quit [Quit: pugcs]
cdg has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
aduabu has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
pugc has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
marr123 has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 252 seconds]
canteen4 has joined #ruby
milardov_ has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
aduabu has quit [Ping timeout: 252 seconds]
ted_ has joined #ruby
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…]
juria_roberts has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
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?
<imode> fails on json, actually! weird.
<mkaito> aha
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
<mkaito> so... who maintains it?
<imode> ...
<Pateros> see gem owners
belmoussaoui has quit [Quit: belmoussaoui]
<imode> uh, yeah, what the hell.
<mkaito> aha
aduabu has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
<imode> what's screwwed up is that codehale kept saying "use bcrypt. use bcrypt. use bcrypt."
<imode> seven years ago, but I mean..
<mkaito> that was during Rails' prime time
<mkaito> ruby was the hot thing
pharma_joe has joined #ruby
<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> &ri Enumerable#find_index
aduabu has joined #ruby
<baweaver> oh, there's the bot
<baweaver> &ri Array#includes
<`derpy> No results
<mkaito> isn't that #include?
<baweaver> Ah
<mkaito> question mark included
<baweaver> Too much Javascript lately
<mkaito> the heresy
<juria_roberts> will this work? ary.find_index { |arr| arr.include?"C" }
<baweaver> Give it a try
<juria_roberts> ok will find an editor
<mkaito> don't forget a space between the method name and the argument :P
<juria_roberts> mkaito: Thanks
<mkaito> np
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
theunraveler has joined #ruby
<juria_roberts> mkaito: Sorry I am very new to ruby you mean there should be a space between find_index and { right?
<mkaito> ary.find_index { |arr| arr.include?"C" }
<mkaito> ary.find_index { |arr| arr.include? "C" }
<mkaito> that's where
<juria_roberts> ohhh
<juria_roberts> seems to work without the space there
<mkaito> go figure
<baweaver> The parser is smart enough to get that one
<mkaito> -_- probably some syntax sugar thing I'm unaware of
<baweaver> It does some interesting things on occasion
<mkaito> indeed, indeed
<juria_roberts> I am using https://repl.it/languages/ruby
<baweaver> >> "#\{}" # watch the backslash
<ruby[bot]> baweaver: # => "\#{}" (https://eval.in/852243)
theunraveler has quit [Client Quit]
<mkaito> hah
umaaji has joined #ruby
<mkaito> that's cute
<Pateros> wow
<baweaver> >> 'or concat some' 'strings like this'
<ruby[bot]> baweaver: # => "or concat somestrings like this" (https://eval.in/852244)
<mkaito> that one I knew :P
aduabu has quit [Ping timeout: 260 seconds]
aduabu has joined #ruby
<juria_roberts> Thanks a lot guys...It works :)
<baweaver> >> require 'ipaddr'; IpAddr.new('10.0.0.0/8').include?('10.0.0.1')
<ruby[bot]> baweaver: # => uninitialized constant IpAddr ...check link for more (https://eval.in/852245)
<baweaver> >> require 'ipaddr'; IPAddr.new('10.0.0.0/8').include?('10.0.0.1')
<ruby[bot]> baweaver: # => true (https://eval.in/852246)
canteen4 has quit [Ping timeout: 248 seconds]
<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
hahuang65 has joined #ruby
mochiyoda has joined #ruby
<mkaito> that sounds... interesting :P
mim1k has joined #ruby
<baweaver> Clairvoyant was one try at it
<baweaver> Only really gets some framework out though...
tenderlo_ has joined #ruby
<baweaver> I may well give it another run for Rails and have it generate FG, API Specs, and others
gusrub has joined #ruby
<baweaver> tenderlo_: Got any more tweets for me to make puns off of? :D
canteen4 has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 248 seconds]
tenderlove has quit [Ping timeout: 240 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aglorei1 has quit [Ping timeout: 268 seconds]
gusrub has quit [Client Quit]
umaaji has quit [Quit: Leaving...]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
naprimer2 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
naprimer has quit [Ping timeout: 252 seconds]
canteen4 has joined #ruby
juria_roberts has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aduabu has quit [Ping timeout: 260 seconds]
<nofxxx> baweaver, hey that's nice... would be great for validation, relationships and field declarations (when nosql)
<nofxxx> I would even put all that part in a # *** DONT TOUCH *** AUTOGENERATED FROM SPEC ***
gnufied has quit [Ping timeout: 252 seconds]
aglorei1 has joined #ruby
<nofxxx> and force the test to exist hehe
alfiemax has joined #ruby
aduabu has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
canteen4 has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
hutch34 has joined #ruby
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 252 seconds]
spheric has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
canteen4 has quit [Ping timeout: 252 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
<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.
<pharma_joe> Pateros: ok. Do you mean using Poltergeist is not recommended anymore?
<Pateros> yeah
<pharma_joe> Cool
<pharma_joe> Thanks, I'll give that a try
<Pateros> see phantomjs blog for more details. the author recommends chrome headless over it
<Pateros> mailing list* not blog
juggler has joined #ruby
<pharma_joe> ok
Robtop__ has joined #ruby
<Pateros> doesn't answer your original Q. so someone else may know
<nofxxx> pharma_joe, also, check out Watir
DroidBurgundy has quit [Read error: Connection reset by peer]
Bock has joined #ruby
hahuang65 has joined #ruby
_aeris_ has quit [Ping timeout: 268 seconds]
DroidBurgundy has joined #ruby
swills has quit [Quit: No Ping reply in 180 seconds.]
<pharma_joe> nofxxx: Thanks, maybe that will be a better option
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
aglorei1 has quit [Ping timeout: 268 seconds]
swills has joined #ruby
_aeris_ has joined #ruby
aglorei1 has joined #ruby
<nofxxx> pharma_joe, I believe it is, you can run in multiple browsers with same code
<nofxxx> also about yr question, you can pass command line args as well as options too
<nofxxx> from watir*
<nofxxx> those options on about:config kinda of thing
hahuang65 has quit [Ping timeout: 260 seconds]
gothicsouth has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
<pharma_joe> Yeah our problem with Capybara is that the documentation I have found doesn't seem to be explicit in how to specify options such as this
<Pateros> hm nice. watir looks nice for controlling a headless chrome too.
<Pateros> pharma_joe: it's possible. i use capybara with cmd line args, and chrome.
<Pateros> with chrome web driver as backend
oleo has quit [Quit: irc client terminated!]
cagomez has joined #ruby
<Pateros> watir looks a lot easier though
<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
aduabu has joined #ruby
joelroa has joined #ruby
Jayson_Virissimo has quit []
nowhere_man has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
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)}
<Gil__> ?
<Gil__> [1, 2, 3, "This", "is", "the", "end"]
phinxy has quit [Client Quit]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
juria_roberts has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aduabu has quit [Ping timeout: 248 seconds]
juria_roberts has joined #ruby
Gil__ has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
juria_roberts has quit [Client Quit]
rabajaj has joined #ruby
aduabu has joined #ruby
conta has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
Silthias has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
dump_not has joined #ruby
Silthias1 has joined #ruby
ana_ has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
aduabu has quit [Ping timeout: 248 seconds]
Silthias has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
ta_ has joined #ruby
canteen4 has quit [Ping timeout: 264 seconds]
aduabu has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
mark_66 has joined #ruby
aduabu has joined #ruby
lxsameer has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
pharma_joe[away] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
mtkd has joined #ruby
canteen4 has quit [Ping timeout: 252 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
creat has quit [Ping timeout: 240 seconds]
ledestin has quit [Ping timeout: 240 seconds]
saneax has quit [Ping timeout: 240 seconds]
harai has joined #ruby
kreantos has joined #ruby
canteen4 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
saneax has joined #ruby
creat has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
imode has quit [Ping timeout: 246 seconds]
TomyWork has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
hahuang65 has joined #ruby
canteen4 has joined #ruby
biberu has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 246 seconds]
gothicsouth has joined #ruby
sysvalve has joined #ruby
phinxy has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
paranoicsan has joined #ruby
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
canteen4 has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
<perlun> this is on a server with moderate usage, fairly low (probably a few hundred/couple of thousand of request per day or something)
<perlun> fabioros: ok, thanks. Maybe it is my best bet for now.
lele has quit [Ping timeout: 252 seconds]
aduabu has quit [Ping timeout: 248 seconds]
<matthewd> Growth != leak
shiranuidong has quit [Quit: Leaving]
<perlun> matthewd: not necessarily no, but it can be.
<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]
nopolitica has quit [Ping timeout: 260 seconds]
<perlun> (brb)
aduabu has joined #ruby
fabioros has quit [Ping timeout: 246 seconds]
nofxxxx has quit [Ping timeout: 246 seconds]
qCMFMcuB has joined #ruby
qCMFMcuB_SWie5A7 has quit [Quit: Leaving]
qCMFMcuB has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 240 seconds]
qCMFMcuB has joined #ruby
qCMFMcuB has quit [Remote host closed the connection]
qCMFMcuB has joined #ruby
qCMFMcuB has quit [Remote host closed the connection]
sys_hj5p9k85 has joined #ruby
alex`` has joined #ruby
canteen4 has joined #ruby
brent__ has joined #ruby
charliesome has joined #ruby
tomphp has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
brent__ has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
sys_hj5p9k85 has quit [Quit: Leaving]
qCMFMcuB_hj5p9k8 has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
robotmay has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
car has joined #ruby
anonymus has joined #ruby
juggler has quit [Remote host closed the connection]
paranoicsan is now known as paranoicsan[Away
aduabu has quit [Ping timeout: 240 seconds]
<anonymus> guys. please explain me that: i = @ipaddress.split('.'); i[2]=(i[2].to_i&-2).to_s;
<anonymus> what means &-2 here
ams__ has joined #ruby
<perlun> anonymus: I think, "only subtract with 2 if non-nil"
fabio_ros has joined #ruby
<perlun> but it doesn't really make sense, since nil.to_i == 0… :)
<perlun> dminuoso: did you have any ideas?
<anonymus> where can i read about this notation?
<anonymus> perlun:
<dminuoso> anonymus, safe navigation operator
<anonymus> dminuoso: thank you
Serpent7776 has joined #ruby
paranoicsan[Away has quit [Quit: paranoicsan[Away]
ferr has joined #ruby
jameser_ has joined #ruby
<Pateros> is it?
<Pateros> Fixnum#& looks like
<anonymus> @ipaddress = '10.7.22.0' ; i = @ipaddress.split('.'); i[2]=(i[2].to_i&-2).to_s; i.pop ; i.join('.')
<anonymus> >>
<ruby[bot]> anonymus: # => nil (https://eval.in/852527)
<anonymus> "10.7.22"
bkxd_ has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
<anonymus> is that all just to get first octets of ipaddress??
bkxd has quit [Ping timeout: 255 seconds]
<anonymus> lokks awkward
<anonymus> looks awkward
<Pateros> try IPAddr from stdlib
belmoussaoui has quit [Quit: belmoussaoui]
<anonymus> Im not sure it will be available from embedded ruby
<anonymus> it is a erb template in puppet
<Pateros> ah. probably not. you're using mruby?
<anonymus> embedded in puppet agent package
belmoussaoui_ has joined #ruby
hfp_work has quit [Quit: bye]
<Pateros> dont know about puppet. anyway, to_i& is not safe nav. it's bitwise &.
<anonymus> Pateros: Ill read about/ thank you.
phinxy has quit [Read error: No route to host]
<anonymus> & bitwise and
<anonymus> good
KeyJoo has quit [Remote host closed the connection]
bronson has joined #ruby
bkxd has joined #ruby
hfp_work has joined #ruby
belmoussaoui_ has quit [Client Quit]
bkxd_ has quit [Ping timeout: 264 seconds]
kreantos has quit [Remote host closed the connection]
belmoussaoui_ has joined #ruby
ts_ has quit [Ping timeout: 240 seconds]
kreantos has joined #ruby
<perlun> dminuoso: did you have any ideas about the potential leak? I have one: will try to disable bson_ext now to see if it makes any difference.
Tempesta has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
kreantos has quit [Ping timeout: 246 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
gnufied has joined #ruby
aduabu has quit [Ping timeout: 252 seconds]
claudiuinberlin has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
tomphp has joined #ruby
stamina has joined #ruby
frozengeek has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
pug_orig has joined #ruby
nopolitica has joined #ruby
pug_orig has left #ruby [#ruby]
canteen4 has joined #ruby
ShalokShalom_ has joined #ruby
pug_orig has joined #ruby
aduabu has quit [Ping timeout: 260 seconds]
aduabu has joined #ruby
ShalokShalom has quit [Ping timeout: 248 seconds]
<pug_orig> .part
pug_orig has left #ruby [#ruby]
canteen4 has quit [Ping timeout: 260 seconds]
minimalism has quit [Quit: minimalism]
canteen4 has joined #ruby
gregf_ has joined #ruby
jameser_ has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
majjoha has joined #ruby
majjoha has left #ruby [#ruby]
nopolitica has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
carnegie has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
bkxd_ has joined #ruby
canteen4 has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
carnegie has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 240 seconds]
apparition47 has joined #ruby
aduabu has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
DTZUZO has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
agent_white has quit [Ping timeout: 255 seconds]
def_jam has joined #ruby
frozengeek has quit [Quit: frozengeek]
eblip has quit [Ping timeout: 240 seconds]
kreantos has joined #ruby
frozengeek has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
kreantos has quit [Ping timeout: 248 seconds]
FahmeF has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
canteen4 has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
tacoboy has quit [Remote host closed the connection]
charliesome has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
opekktar_ has quit [Read error: Connection reset by peer]
opekktar_ has joined #ruby
canteen4 has joined #ruby
fabio_ros has quit [Quit: Leaving.]
tvw has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
canteen4 has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
nopolitica has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
aduabu has quit [Ping timeout: 240 seconds]
bauruine has joined #ruby
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 264 seconds]
canteen4 has joined #ruby
__Yiota has joined #ruby
iputra has joined #ruby
chouhoulis has joined #ruby
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…]
anonymus has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
carnegie has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
<dminuoso> hinbody, look into byebug (or pry-byebug) and just step through
claudiuinberlin has joined #ruby
Tempesta has quit [Quit: See ya!]
<hinbody> dminuoso: cool, thanks!
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord_ has quit [Ping timeout: 240 seconds]
<dminuoso> merijn, gem install does not, it looks on rubygems
tsglove has joined #ruby
<dminuoso> merijn, you can use `gem build` to build a local gem, and then install that with gem install
oleo has joined #ruby
aduabu has quit [Ping timeout: 255 seconds]
<merijn> dminuoso: "gem build" just gives me a Gem::CommandLineError
<dminuoso> Yeah well.
<dminuoso> Should have said `gem build ...`
<merijn> gem build + name complains there's no Gemspec file
Neo95 has quit [Ping timeout: 260 seconds]
haylon has joined #ruby
GodFather has joined #ruby
<Pateros> hinbody: maybe the readme is out of date. see https://github.com/jsahlen/todotxt/blob/master/lib/todotxt/cli.rb - it looks like `generate_config` is used, and that without any arguments `generate_config`-like behaviour is implict.
<Pateros> plus pry-byebug, there's pry-stack_explorer btw. which is little nicer since it doesn't change `binding.pry` behaviour.
enterprisey has joined #ruby
jottr has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
opekktar_ has joined #ruby
Bock has quit [Ping timeout: 240 seconds]
Neo95 has joined #ruby
carnegie has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
skweek has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
laphoraig92 has joined #ruby
canteen4 has joined #ruby
imperator has joined #ruby
DroidBurgundy has joined #ruby
<Pateros> merijn: git clone https://github.com/darthdeus/ghc-modi-wrapper && cd ghc-modi-wrapper && gem build ghc-modi-wrapper.gemspec
<Pateros> works for me
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
<merijn> Pateros: ah, I didn't realise I had to write out the extension too
enterprisey has quit [Remote host closed the connection]
aduabu has quit [Ping timeout: 252 seconds]
<Pateros> yep. then gem install *.gem
aduabu has joined #ruby
<hinbody> Pateros: thanks for the input. That's actually what I was thinking
canteen4 has quit [Ping timeout: 255 seconds]
<dminuoso> "optional typing should honor duck typing"
* dminuoso scratches his head
jottr has quit [Ping timeout: 246 seconds]
GodFather has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
<Pateros> maybe means, specifying type as duck rather than a concrete thing like a class
aduabu has quit [Ping timeout: 248 seconds]
anisha has quit [Quit: This computer has gone to sleep]
Ouchy has quit [Ping timeout: 240 seconds]
Ouchy`w has quit [Ping timeout: 240 seconds]
Ouchy has joined #ruby
Ouchy`w has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
weaksauce has quit [Read error: Connection reset by peer]
<dminuoso> Pateros, I just read it as "it needs to support typeclasses/concepts"
Puffball has quit [Remote host closed the connection]
deduped has joined #ruby
<dminuoso> I mean ultimately such things could be inferred. For example if you include Enumerable, your objects are instances of Enumerable
<Pateros> dunno. i guess you're referring to something in ruby3?
<dminuoso> nah, just "the future"
aduabu has joined #ruby
<Pateros> sure. type checks could be is_a?, but also based on what an object responds to
opekktar_ has quit [Ping timeout: 240 seconds]
Puffball has joined #ruby
charliesome has joined #ruby
<dminuoso> Pateros, what?
canteen4 has quit [Ping timeout: 248 seconds]
<dminuoso> I want this done at compile time.
<Pateros> in ruby?
<dminuoso> I want my editor to give me type errors when I hit save.
<dminuoso> Yes.
<Pateros> then maybe ruby isn't what you want, because it doesn't seem like that language to me.
aduabu has quit [Ping timeout: 255 seconds]
canteen4 has joined #ruby
bronson has joined #ruby
<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]
joast has joined #ruby
Puffball has joined #ruby
<dminuoso> havenwood, :o
ResidentBiscuit has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
<havenwood> They discussed it a bit on #9999: https://bugs.ruby-lang.org/issues/9999
Tempesta has joined #ruby
<havenwood> But it'd be really interesting to get a Dialyzer-esque like static analysis tool.
<dminuoso> Hopefully not.
<dminuoso> Dialyzer is crufty.
<dminuoso> But Im assuming you meant flow when oyu said dialyzer.
<havenwood> Something that worked*
<havenwood> ^
Tempesta has quit [Client Quit]
kus_ubuntui686 has joined #ruby
kus_ubuntui686 has quit [Max SendQ exceeded]
<havenwood> incremental or gradual type analysis seems interesting
Tempesta has joined #ruby
<havenwood> Though I think we're more likely to see a JIT by 2020.
Neo95 has joined #ruby
<dminuoso> havenwood, wait rtc is an all in ruby library that meshes seamlessly into programs?
<dminuoso> Wow!
<dminuoso> I mean, I want a static type checker so its not what Im looking for, but this paper is getting interesting.
<dminuoso> Heh.
<dminuoso> havenwood, and guilds!
<dminuoso> But by 2020 I plan to have ditched all Ruby
<havenwood> and still hopeful for AutoFibers!
govg has quit [Ping timeout: 240 seconds]
<havenwood> Guilded AutoFibers, muahahaha
<dminuoso> What is an autofiber?
<havenwood> dminuoso: similar to goroutine, evented autoscheduled fibers
<havenwood> sec
Burgestrand has quit [Quit: Closing time!]
<havenwood> they've discussed it at the last few developer meetings
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Pateros> drop ruby by 2020 why?
<dminuoso> havenwood, this might be a silly question...
<dminuoso> but...
<dminuoso> realistically: how is this different from regular threads?
<dminuoso> I mean they too are mostly cooperative
<dminuoso> Preemption is rare.
nopolitica has quit [Ping timeout: 240 seconds]
<havenwood> dminuoso: my laptop can spin up a million
<dminuoso> Or are auto fibers just that, threads without preemption?
<havenwood> I think part of the motivation is the very small size of green threads and lack of system limits.
<Pateros> fibers aren't threads. they pass control to one another over a single thread.
<dminuoso> Pateros, we are talking about autofibers
<dminuoso> havenwood, oh they are green threads without preemption but implicit cooperation at library boundaries then?
<Pateros> what makes you think autofibers are threads?
<havenwood> dminuoso: yeah, that's my take
<havenwood> Pateros: hrm? they might be called threads if/when they land. they might be called autofibers. it's a new feature.
iputra has quit [Quit: leaving]
<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]
conta has quit [Ping timeout: 248 seconds]
conta has joined #ruby
polishdub has joined #ruby
<Pateros> hurm
roshanavand has joined #ruby
bmurt has joined #ruby
<havenwood> "Eric Wong - for adding explicit support for Rack::FiberPool to rainbows."
<havenwood> ^ same Eric Wong as auto fiber patch author
Beams_ has joined #ruby
<Pateros> yep. familiar
Beams has quit [Ping timeout: 255 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
griffindy has joined #ruby
Ouchy`w has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
Ouchy has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 246 seconds]
cadillac_ has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
cadillac_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
canteen4 has joined #ruby
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
nopolitica has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
aduabu has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
aduabu has joined #ruby
ferr has quit [Quit: WeeChat 1.9]
charliesome has quit [Read error: Connection reset by peer]
DroidBurgundy has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
mark_66 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
griffindy has joined #ruby
DroidBurgundy has quit [Client Quit]
cagomez has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has joined #ruby
griffindy has quit [Client Quit]
charliesome has joined #ruby
paranoicsan has joined #ruby
Rapture has joined #ruby
ramfjord has joined #ruby
ramfjord_ has joined #ruby
charliesome has quit [Client Quit]
hahuang65 has joined #ruby
aufi has quit [Quit: Leaving]
ramfjord_ has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
Beams_ has quit [Quit: .]
canteen4 has joined #ruby
Beams has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aduabu has quit [Ping timeout: 240 seconds]
paranoicsan has quit [Quit: paranoicsan]
aduabu has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 264 seconds]
aduabu has joined #ruby
[Butch] has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
shanecav has quit [Quit: shanecav]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
ramfjord has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
ramfjord_ has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
aduabu has quit [Read error: Connection reset by peer]
KeyJoo has joined #ruby
sysvalve has quit [Quit: Leaving]
fabio_ros has quit [Quit: Leaving.]
tomphp has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
charliesome has joined #ruby
Beams has quit [Quit: .]
gusrub has joined #ruby
bronson has joined #ruby
Serpent7776 has quit [Quit: Leaving]
carnegie has quit [Remote host closed the connection]
carnegie has joined #ruby
apparition47 has quit [Quit: Bye]
Bock has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
carnegie has quit [Ping timeout: 246 seconds]
piuge has left #ruby [#ruby]
chouhoul_ has quit [Remote host closed the connection]
belmoussaoui__ has joined #ruby
ivanskie has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
maryo_ has joined #ruby
aduabu has joined #ruby
kies has quit [Ping timeout: 252 seconds]
canteen4 has quit [Ping timeout: 246 seconds]
aduabu has quit [Read error: Connection reset by peer]
canteen4 has joined #ruby
Ishido has joined #ruby
skweek has quit [Remote host closed the connection]
Silthias1 has quit [Read error: Connection reset by peer]
mim1k_ has quit [Ping timeout: 240 seconds]
kristofferR has joined #ruby
canteen4 has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
ivanskie has quit [Quit: Page closed]
DTZUZO has joined #ruby
ivanskie has joined #ruby
chouhoulis has joined #ruby
ivanskie_work has joined #ruby
ProgramThings has joined #ruby
gothicsouth has joined #ruby
bruno-_ has joined #ruby
ivanskie_work has quit [Client Quit]
ivanskie has quit [Client Quit]
ivanskie has joined #ruby
DroidBurgundy has joined #ruby
Trynemjoel has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
canteen4 has quit [Remote host closed the connection]
mson has joined #ruby
canteen4 has joined #ruby
jaruga_________ has joined #ruby
jaruga has quit [Quit: jaruga]
jaruga__________ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucz has joined #ruby
jaruga_________ has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
quobo has joined #ruby
jottr has joined #ruby
phaul has quit [Ping timeout: 248 seconds]
haylon has quit [Remote host closed the connection]
lucz has quit [Quit: Leaving...]
govg has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZU has joined #ruby
maryo_ has quit [Ping timeout: 252 seconds]
conta5 has joined #ruby
carnegie has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
aduabu has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
jinie has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
oncall-pokemon has joined #ruby
canteen4 has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
aduabu has quit [Ping timeout: 246 seconds]
oncall-pokemon has quit [Client Quit]
jinie has joined #ruby
oncall-pokemon has joined #ruby
bmurt has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
ramfjord_ has quit [Ping timeout: 240 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
conta5 has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aduabu has joined #ruby
bronson has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 248 seconds]
kies has joined #ruby
mikecmpbll has joined #ruby
gusrub has joined #ruby
canteen4 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
skweek has joined #ruby
aduabu has joined #ruby
carnegie has quit [Remote host closed the connection]
gusrub_ has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
eckhardt has joined #ruby
gusrub has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
ramfjord_ has joined #ruby
canteen4 has joined #ruby
carnegie has joined #ruby
Puffball has quit [Remote host closed the connection]
aduabu has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
Puffball has joined #ruby
carnegie has quit [Remote host closed the connection]
aduabu has joined #ruby
TomyLobo has joined #ruby
belmoussaoui__ has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
tenderlove has joined #ruby
frozengeek has quit [Quit: frozengeek]
aduabu has quit [Ping timeout: 246 seconds]
Ltem has joined #ruby
aduabu has joined #ruby
tenderlo_ has quit [Ping timeout: 248 seconds]
SeepingN has joined #ruby
cagomez has quit [Remote host closed the connection]
phaul has joined #ruby
cagomez has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
aduabu has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
t-recx has joined #ruby
imode has joined #ruby
cagomez has quit [Ping timeout: 246 seconds]
belmoussaoui__ has joined #ruby
bmurt has joined #ruby
aduabu has joined #ruby
orbyt_ has joined #ruby
jaruga__________ has quit [Quit: jaruga__________]
belmoussaoui__ has quit [Client Quit]
def_jam has quit [Read error: Connection reset by peer]
canteen4 has quit [Ping timeout: 240 seconds]
bmurt has quit [Client Quit]
canteen4 has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
eb0t has joined #ruby
jottr has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
ProgramThings has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
belmoussaoui has joined #ruby
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.
lxsameer has joined #ruby
<elomatreb> Documentation for that #list method says it returns ls-like output
<elomatreb> *ls -l
<ornerymoose> matthewd: right, but I can’t do something like f.split(“ “).last, the File class isn’t recognizing that either
<dminuoso> ornerymoose, that's ruby duck typing for you.
__Yiota has joined #ruby
<dminuoso> ornerymoose, .list returns the equivlent of `ls -t`
<dminuoso> not file objects.
bronson has quit [Ping timeout: 260 seconds]
KeyJoo has quit [Read error: Connection reset by peer]
[Butch] has quit [Quit: I'm out . . .]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
aduabu has joined #ruby
cdg has joined #ruby
FahmeF has quit []
carnegie has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 240 seconds]
cdg has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
uZiel has joined #ruby
AnoHito has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg_ has quit [Ping timeout: 240 seconds]
carnegie has joined #ruby
frozengeek has joined #ruby
canteen4 has joined #ruby
claudiuinberlin has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
cdg has joined #ruby
maryo has joined #ruby
aduabu has joined #ruby
gusrub_ has quit [Remote host closed the connection]
canteen4 has quit [Ping timeout: 248 seconds]
alfiemax_ has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax_ has quit [Client Quit]
lrg1970zoe has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 246 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
canteen4 has joined #ruby
jamiejackson has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
maryo_ has joined #ruby
canteen4 has quit [Ping timeout: 240 seconds]
maryo_ has quit [Max SendQ exceeded]
maryo_ has joined #ruby
ski7777 has quit [Ping timeout: 248 seconds]
belmoussaoui has quit [Ping timeout: 255 seconds]
maryo has quit [Ping timeout: 252 seconds]
ski7777 has joined #ruby
justinweiss has joined #ruby
u0_a17 has joined #ruby
canteen4 has joined #ruby
justinweiss has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bmurt has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
u0_a17 has left #ruby [#ruby]
aduabu has quit [Ping timeout: 248 seconds]
tenderlo_ has joined #ruby
balazs has quit [Ping timeout: 264 seconds]
tenderlove has quit [Ping timeout: 240 seconds]
icbm has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
aduabu has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
drcode has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
Bock has quit [Ping timeout: 252 seconds]
yeticry_ has quit [Read error: Connection reset by peer]
nopolitica has quit [Ping timeout: 260 seconds]
canteen4 has joined #ruby
drcode has joined #ruby
Olipro_ has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
tvw has quit []
aduabu has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
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.
harai has quit [Ping timeout: 246 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
<orbyt_> eam Well, I have rbenv installed.
<havenwood> orbyt_: Here's a tutorial to get rolling with Rails 5 and Ruby 2.4.1: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you
<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
<havenwood> funkytwig: If you haven't looked at the Sequel gem already it's very nice: https://github.com/jeremyevans/sequel
<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.
canteen4 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
ornerymoose has joined #ruby
jottr has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<funkytwig> Hi, I cant conect to my postgress database, I get 'Peer authentication failed for user "scrape" (PG::ConnectionBad)'
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<funkytwig> I have a usnix user and a postgress user scrape both with the same password. and can connect to it with psql
<adaedra> Do you succeed to connect with psql ?
<adaedra> heh, too slow.
<funkytwig> adaedra, or me too fast;(
canteen4 has quit [Ping timeout: 240 seconds]
<adaedra> Can you show the code you use to connect?
tenderlove has joined #ruby
canteen4 has joined #ruby
Ltem has quit [Quit: Leaving]
maryo_ has quit [Ping timeout: 252 seconds]
<adaedra> When connecting through psql, do you indicate an host
<funkytwig> adaedra, no
gnufied has quit [Ping timeout: 246 seconds]
<adaedra> And you run psql from your current user or from scrape user?
TomyLobo has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tenderlo_ has quit [Ping timeout: 264 seconds]
<adaedra> Because if I understood postgres correctly, "peer authentication" indicates it tries to associate you from process owner
iloveitaly has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
<funkytwig> adaedra, tried ':server => 'localhost', but this seems wrong
<funkytwig> adaedra, will try
<funkytwig> adaedra, got same error if I try to connect through current user,
<funkytwig> adaedra, with psql
<adaedra> So when you succeeded through psql, it was under scrape user?
ivanskie has quit [Quit: Leaving]
jackjackdripper has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
<funkytwig> adaedra, yes, think I need to set PGPASSWORD, bit this seems daft as I am specifying a password
<adaedra> Normally, for peer auth you don't need a password, as it uses your UNIX name
jackjackdripper has joined #ruby
<funkytwig> adaedra, so how do I not do peer auth?
ResidentBiscuit has quit [Quit: hometime]
<adaedra> Auth settings are in pg_hba.conf in postgres
mikeiniowa has quit [Remote host closed the connection]
<adaedra> Otherwise, if it's your development env, you can just use your current user
EvilJStoker has quit [Ping timeout: 255 seconds]
mikeiniowa has joined #ruby
JStoker has quit [Ping timeout: 255 seconds]
cagomez has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
orbyt_ has joined #ruby
cagomez has joined #ruby
dviola has quit [Ping timeout: 260 seconds]
JStoker has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<funkytwig> adaedra, set METHOD to password is pg_hba.conf, restarted postgress and it works
<adaedra> nice
baroquebobcat has joined #ruby
EvilJStoker has joined #ruby
jottr has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
tenderlo_ has joined #ruby
jamiejackson has quit [Ping timeout: 248 seconds]
tenderlove has quit [Ping timeout: 255 seconds]
dviola has joined #ruby
<funkytwig> adaedra, what a plava;)
jackjackdripper1 has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
<funkytwig> Shame '@dbase.exec('SET AUTOCOMMIT TO OFF')' does not work. Maybe just exec('BEGIN') starts a transaction
dviola has quit [Changing host]
dviola has joined #ruby
jackjackdripper has quit [Ping timeout: 248 seconds]
eightlimbed has joined #ruby
eightlimbed has quit [Client Quit]
aduabu has joined #ruby
eightlimbed has joined #ruby
harai has joined #ruby
canteen4 has quit [Ping timeout: 248 seconds]
dviola has quit [Ping timeout: 260 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
canteen4 has joined #ruby
GodFather has joined #ruby
bronson has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
nopolitica has quit [Ping timeout: 252 seconds]
aduabu has quit [Ping timeout: 248 seconds]
aduabu has joined #ruby
balazs has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
canteen4 has quit [Ping timeout: 248 seconds]
canteen4 has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
Ishido has quit [Ping timeout: 252 seconds]
canteen4 has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
canteen4 has joined #ruby
orbyt_ has joined #ruby
aduabu has quit [Ping timeout: 240 seconds]
aduabu has joined #ruby
canteen4 has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
polishdub has quit [Quit: leaving]
dviola has quit [Ping timeout: 248 seconds]
pharma_joe has joined #ruby
FrostCandy has quit []
quobo has quit [Quit: Connection closed for inactivity]
LuMint has joined #ruby
LuMint has left #ruby ["Leaving"]
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
carnegie has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristofferR has joined #ruby
DroidBurgundy has quit [Ping timeout: 248 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
nchambers has quit [Changing host]
nchambers has joined #ruby
nchambers has quit [Changing host]
nchambers has joined #ruby
Bock has joined #ruby
bruno-_ has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
cdg_ has joined #ruby
cdg_ has quit [Remote host closed the connection]
laphoraig92 has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 240 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
preyalone has quit [Quit: Connection closed for inactivity]
gothicsouth has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
gnufied has joined #ruby
dviola has quit [Ping timeout: 248 seconds]
Pisuke has quit [Ping timeout: 248 seconds]
phinxy has joined #ruby
funkytwig has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
charliesome has joined #ruby
carnegie has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
dviola has quit [Changing host]
dviola has joined #ruby
nicolai86 has quit [Remote host closed the connection]
davic has joined #ruby
chouhou__ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
nicolai86 has joined #ruby
<raynold> ahh it's a wonderful day :D
carnegie has quit [Remote host closed the connection]
enterprisey has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
korzybski has quit [Ping timeout: 252 seconds]
korzybski_ has joined #ruby
nicolai86 has quit [Remote host closed the connection]
funkytwig has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
jtperreault has quit [Quit: WeeChat 1.4]
nicolai86 has joined #ruby
alveric1 has joined #ruby
frozengeek has quit [Quit: frozengeek]
alveric4 has quit [Ping timeout: 255 seconds]
enterprisey has quit [Remote host closed the connection]
jtperreault has joined #ruby
enterprisey has joined #ruby