« Back to channel list

#ruby - 15 May 2017

« Back 1 day Forward 1 day »
[00:00:42] dikaio: has joined #ruby
[00:03:57] cydrobolt: has joined #ruby
[00:03:58] cydrobolt: has joined #ruby
[00:04:14] jusa: has joined #ruby
[00:04:21] GinoMan: has joined #ruby
[00:04:36] nachoman: has joined #ruby
[00:04:44] __Yiota: has joined #ruby
[00:09:43] iNs: has joined #ruby
[00:12:39] mentok: has joined #ruby
[00:13:50] cam27: has joined #ruby
[00:16:16] cam27: I use Vim and am just wondering if anyone uses anything other than Vim or if the VimRuby plugin is worth the install? I like the intellisense (auto complete) features that Visual Studo and Xcode provide.
[00:18:22] BSab: has joined #ruby
[00:28:25] kobain: has joined #ruby
[00:33:48] redaudit: has joined #ruby
[00:36:22] Cohedrin: has joined #ruby
[00:37:53] weathermaker: has joined #ruby
[00:45:47] endemic: has joined #ruby
[00:47:44] JoshS: has joined #ruby
[00:49:12] Jameser: has joined #ruby
[00:49:14] endemic: has joined #ruby
[00:50:54] charliesome: has joined #ruby
[00:58:52] ruby[bot]: -bbb $a:railsForDaiz$#ruby-fix-your-connection railsForDaiz!*@*$#ruby-fix-your-connection *!*@2c0f:f8f0:ef0d:0:1cf0:26f5:4e42:8462$#ruby-fix-your-connection
[01:06:04] harfangk: has joined #ruby
[01:09:08] ledestin: has joined #ruby
[01:10:06] Cohedrin: has joined #ruby
[01:11:05] Bock: has joined #ruby
[01:12:52] Emmanuel_Chanel: has joined #ruby
[01:13:48] nachoman: has joined #ruby
[01:14:28] Bock: has joined #ruby
[01:15:32] jane_booty_doe: has joined #ruby
[01:16:21] charliesome: has joined #ruby
[01:19:04] cschneid_: has joined #ruby
[01:23:20] Tempesta: has joined #ruby
[01:23:44] Kuukunen: has joined #ruby
[01:26:25] apparition: has joined #ruby
[01:26:57] cschneid_: has joined #ruby
[01:30:37] cabraturgo: has joined #ruby
[01:37:19] Tempesta: has joined #ruby
[01:39:09] Azure: has joined #ruby
[01:40:34] weathermaker: has joined #ruby
[01:40:57] JeanCarloMachado: has joined #ruby
[01:41:04] JeanCarl1Machado: has joined #ruby
[01:42:28] rfoust: has joined #ruby
[01:45:52] gizmore|2: has joined #ruby
[01:57:26] d^sh: has joined #ruby
[02:00:33] joast: has joined #ruby
[02:01:31] fmccann: has joined #ruby
[02:05:09] jusa: has joined #ruby
[02:20:25] genpaku: has joined #ruby
[02:20:28] wilo: has joined #ruby
[02:23:06] jud^: has joined #ruby
[02:27:42] enterprisey: has joined #ruby
[02:35:43] cabraturgo: has joined #ruby
[02:44:50] JeanCarl1Machado: has joined #ruby
[02:47:32] igniting: has joined #ruby
[02:48:22] mim1k: has joined #ruby
[02:51:22] SimpleIRC_VLBcT: has joined #ruby
[02:56:58] weathermaker: has joined #ruby
[02:57:35] weathermaker: has left #ruby: ()
[03:01:47] mentok: has joined #ruby
[03:02:12] Toledo: has joined #ruby
[03:04:07] silentoxygen: has joined #ruby
[03:04:57] jusa: has joined #ruby
[03:07:13] bravo: has joined #ruby
[03:08:26] wilo: has joined #ruby
[03:09:52] nofxx: has joined #ruby
[03:10:51] pharma_joe: has joined #ruby
[03:11:14] silentoxygen: has joined #ruby
[03:11:41] cabraturgo: has joined #ruby
[03:14:16] Cohedrin: has joined #ruby
[03:15:52] LightStalker: has joined #ruby
[03:20:27] milardovich: has joined #ruby
[03:21:01] enilsen16: has joined #ruby
[03:26:41] Trynemjoel: has joined #ruby
[03:27:24] cschneid_: has joined #ruby
[03:29:20] Cohedrin: has joined #ruby
[03:33:31] Cohedrin: has joined #ruby
[03:38:24] Select: has joined #ruby
[03:48:17] Select: has left #ruby: ()
[03:48:48] etehtsea: has joined #ruby
[03:55:21] gix: has joined #ruby
[03:58:49] enilsen16: has joined #ruby
[04:05:43] igniting: has joined #ruby
[04:17:23] mikias: has joined #ruby
[04:26:46] jusa: has joined #ruby
[04:30:11] _whitelogger: has joined #ruby
[04:33:36] enilsen16: has joined #ruby
[04:36:38] nullFxn: has joined #ruby
[04:38:11] renchan: has joined #ruby
[04:45:27] Caius: has joined #ruby
[04:45:41] ych: has joined #ruby
[04:48:57] mim1k: has joined #ruby
[05:00:57] mentok: has joined #ruby
[05:05:31] mikias: has left #ruby: ()
[05:18:32] DrCode: has joined #ruby
[05:22:31] slima: has left #ruby: ()
[05:25:29] tildes: has joined #ruby
[05:28:27] Cohedrin: has joined #ruby
[05:41:05] cobragoat: has joined #ruby
[05:41:07] cobragoat: has left #ruby: ()
[05:41:14] igniting: has joined #ruby
[05:50:47] dionysus69: has joined #ruby
[05:51:27] __Yiota: has joined #ruby
[05:55:49] User458764: has joined #ruby
[05:57:21] laekur: has joined #ruby
[06:00:34] anisha: has joined #ruby
[06:08:00] dminuoso: ACTION pokes Radar
[06:08:07] dminuoso: You again. In here. ;o
[06:09:39] Jameser`: has joined #ruby
[06:10:59] User458764: has joined #ruby
[06:12:05] burgestrand: has joined #ruby
[06:13:04] bkxd: has joined #ruby
[06:16:27] dminuoso: >> [2].map &->(a) { return 1;}
[06:16:29] ruby[bot]: dminuoso: # => [1] (https://eval.in/794962)
[06:16:38] dminuoso: >> [2].map { |a| next 1; }
[06:16:39] ruby[bot]: dminuoso: # => [1] (https://eval.in/794963)
[06:16:47] dminuoso: Fuck blocks.
[06:16:54] dminuoso: Going lambda all the way now!
[06:18:23] dminuoso: This "next" nonsensery just cost me 17 precious seconds of my life in debugging.
[06:22:48] Mia: has joined #ruby
[06:22:49] Mia: has joined #ruby
[06:25:41] calvinkw1: has joined #ruby
[06:27:45] judofyr: has joined #ruby
[06:27:47] yeticry: has joined #ruby
[06:28:28] quobo: has joined #ruby
[06:29:33] calvinkw1: has joined #ruby
[06:31:56] jaruga: has joined #ruby
[06:37:06] conta: has joined #ruby
[06:38:14] Mortomes|Work: has joined #ruby
[06:42:00] olblak: has joined #ruby
[06:42:44] olblak: has joined #ruby
[06:43:21] Seenox: has joined #ruby
[06:43:42] burgestrand: has joined #ruby
[06:49:26] mim1k: has joined #ruby
[06:54:23] ferr: has joined #ruby
[06:54:51] xall: has joined #ruby
[06:59:15] excph: has joined #ruby
[06:59:30] bkxd: has joined #ruby
[07:01:27] enterprisey: has joined #ruby
[07:01:59] Radar: dminuoso: Hi.
[07:02:04] Radar: Please leave a message after the tone. *BEEP*
[07:05:00] haxrbyte: has joined #ruby
[07:05:37] dionysus69: has joined #ruby
[07:06:21] anisha_: has joined #ruby
[07:08:49] latemus: has joined #ruby
[07:09:00] TomyWork: has joined #ruby
[07:11:54] jackrandom: has joined #ruby
[07:11:54] jusa: has joined #ruby
[07:16:27] yogg-saron: has joined #ruby
[07:16:50] kies: has joined #ruby
[07:19:21] burgestrand: has joined #ruby
[07:22:00] armyriad: has joined #ruby
[07:22:08] andikr: has joined #ruby
[07:24:17] mark_66: has joined #ruby
[07:26:26] marr: has joined #ruby
[07:27:44] Caius: has joined #ruby
[07:28:54] im0nde: has joined #ruby
[07:29:42] User458764: has joined #ruby
[07:31:38] biberu: has joined #ruby
[07:34:20] Volhist: has joined #ruby
[07:37:03] pandaant: has joined #ruby
[07:37:10] aufi: has joined #ruby
[07:47:39] mim1k: has joined #ruby
[07:48:50] charliesome: has joined #ruby
[07:49:50] bkxd: has joined #ruby
[07:53:18] Silthias: has joined #ruby
[07:53:31] Jameser: has joined #ruby
[07:56:19] mikecmpbll: has joined #ruby
[07:56:56] User458764: has joined #ruby
[08:01:38] dzodzo: greetings, i have a matrix of conditions that are represented by 2 variables - i have a category (exists, doesn't) and tag (exists, doesn't), what would be an ellegant way to implement the decision logic? there can be 4 states, is there something like multivalue case category,tag option?
[08:02:05] dzodzo: or in this case it's ok with if A && B, elsif !A && B... etc
[08:04:15] bigkevmcd: has joined #ruby
[08:05:45] antgel: has joined #ruby
[08:08:35] TreyG: has joined #ruby
[08:09:33] ur5us: has joined #ruby
[08:11:40] mim1k: has joined #ruby
[08:15:57] judofyr: dzodzo: you can do: case [A, B]; when [true, true]; … end
[08:16:17] judofyr: but I'm not sure if it's cleaner
[08:18:10] bigkevmcd: has joined #ruby
[08:20:48] dzodzo: that might represent the matrix better, i will try it, thanks
[08:20:52] lipoqil: has joined #ruby
[08:21:07] mim1k: has joined #ruby
[08:23:32] tomphp: has joined #ruby
[08:27:18] starmix: has joined #ruby
[08:27:48] aufi: has joined #ruby
[08:29:49] judofyr_: has joined #ruby
[08:30:29] judofyr: has joined #ruby
[08:32:24] haxrbyte: has joined #ruby
[08:35:18] kies: has joined #ruby
[08:37:01] bkxd: has joined #ruby
[08:37:25] Beams: has joined #ruby
[08:41:20] Mortomes|Work: has joined #ruby
[08:42:55] flying: has joined #ruby
[08:43:50] tvw: has joined #ruby
[08:45:01] lxsameer: has joined #ruby
[08:46:58] tvw: has joined #ruby
[08:49:51] Dimik: has joined #ruby
[08:55:13] antib: has joined #ruby
[09:06:10] mim1k_: has joined #ruby
[09:10:39] alazred: has joined #ruby
[09:10:57] alazred: has joined #ruby
[09:17:11] workmad3: has joined #ruby
[09:18:22] im0nde: has joined #ruby
[09:21:03] KiderSpiel: has joined #ruby
[09:21:30] bkxd: has joined #ruby
[09:34:01] dyjakan: https://github.com/dyjakan/ruby-rails-interview-questions
[09:34:17] dyjakan: any input appreciated (and look at that, I even mentioned us!) :)
[09:35:04] Talltree: has joined #ruby
[09:37:35] johnmccabe: has joined #ruby
[09:41:40] SenpaiSilver: has joined #ruby
[09:43:37] haxrbyte: has joined #ruby
[09:45:18] mim1k: has joined #ruby
[09:51:04] KiderSpiel: has joined #ruby
[09:51:59] BTRE: has joined #ruby
[09:55:51] TvL2386_: has joined #ruby
[09:57:44] jrafanie: has joined #ruby
[09:58:16] alazred: has joined #ruby
[09:58:16] alazred: has joined #ruby
[10:01:56] feal: has joined #ruby
[10:03:39] unshadow: has joined #ruby
[10:07:53] bkxd: has joined #ruby
[10:08:21] Talltree_: has joined #ruby
[10:11:37] jamesaxl: has joined #ruby
[10:19:22] tildes: has joined #ruby
[10:22:01] tlaxkit: has joined #ruby
[10:25:23] romank: has joined #ruby
[10:32:02] haxrbyte: has joined #ruby
[10:33:16] haxrbyte: has joined #ruby
[10:34:10] Talltree: has joined #ruby
[10:37:28] tomphp: has joined #ruby
[10:42:04] tvw: has joined #ruby
[10:42:52] Tripolitix: has joined #ruby
[10:42:55] GodFather: has joined #ruby
[10:43:41] flying: has joined #ruby
[10:45:00] yitsushi: has joined #ruby
[10:45:00] skarlso: has joined #ruby
[10:45:42] whiteline: has joined #ruby
[10:46:32] Tripolitix: has left #ruby: ()
[10:46:38] dcunit3d: has joined #ruby
[10:47:13] ikopico: dyjakan: nice! My two cents: I would've extract some of the _Rails_ questions for a general webapp question, such as "What is REST?", "What is an ORM?"
[10:47:31] TreyG_: has joined #ruby
[10:47:35] GodFather_: has joined #ruby
[10:49:23] jaruga: has joined #ruby
[10:53:00] dyjakan: ikopico: I see your point but I think that currently there's not enough questions that can be abstracted (i.e. general web app section would be too small imo)
[10:53:15] bkxd: has joined #ruby
[10:53:45] ikopico: dyjakan: Sure.
[10:58:08] TreyG: has joined #ruby
[10:58:38] dzodzo: judofyr: works as intended, thanks :)
[11:02:35] dminuoso: Mmmm. Regarding that "and vs &&" -> didn't we have an exceptional case showing some really nasty subtle difference between the two?
[11:04:17] dminuoso: https://eval.in/795269
[11:04:24] dminuoso: Folks, should this be a thing?
[11:04:40] dminuoso: I feel like the parser should not choke on this.
[11:07:20] Talltree: has joined #ruby
[11:10:47] dyjakan: dminuoso: what do you mean by nasty subtle difference?
[11:11:50] dyjakan: from my personal experience I don't use 'and' and other word logical operators in ruby and I would expect because they have lower priority, I already hit bugs with them
[11:12:05] dyjakan: (I would expect elaboration on this from a candidate)
[11:15:41] nadir: has joined #ruby
[11:17:49] TreyG_: has joined #ruby
[11:21:35] mim1k: has joined #ruby
[11:23:02] im0nde: has joined #ruby
[11:28:10] Vingador: has joined #ruby
[11:36:01] _aeris_: has joined #ruby
[11:38:36] ldnunes: has joined #ruby
[11:39:59] judofyr: dzodzo: is it any cleaner though? might be more cryptic with true/false everywhere
[11:40:28] InsaneSplash: has joined #ruby
[11:42:41] JeanCarloMachado: has joined #ruby
[11:42:44] JeanCarl1Machado: has joined #ruby
[11:48:30] workmad3: dminuoso: the parser can be a bit picky about running an expression like that across two lines... you can always end a line with \ to fix the issue though (https://eval.in/795334)
[11:48:51] workmad3: but yeah, might be the case that it should be a bit more lenient :)
[11:49:29] InsaneSplash: I have data returned from a REST API in JSON format, the data includes a results section which is being turned in to an array. I am trying to obtain a number of values from this but not making any headway. the 'dig' only works on JSON when its seen as a hash, but in this case there is an array within the hash...
[11:52:06] InsaneSplash: would be great if I could reference data using a key like first.second.third
[11:59:35] dzodzo: judofyr: this is just for a matrix 2x2 so it's quite clear
[11:59:37] minimalism: has joined #ruby
[11:59:43] cabraturgo: has joined #ruby
[12:00:14] JeanCarloMachado: has joined #ruby
[12:00:33] Jameser: has joined #ruby
[12:00:40] JeanCarl1Machado: has joined #ruby
[12:05:06] dminuoso: matthewd: Mmm yeah I figured \ would fix it. I mean it definitely works for method calls, but debugging a LALR parser to figure out why it would even break is a pure nightmare..
[12:05:22] dminuoso: Last time after a few hours my head was spinning around states..
[12:07:35] dminuoso: InsaneSplash: You can provide your own mixin to add :second and :third methods respectively.
[12:07:50] JeanCarloMachado: has joined #ruby
[12:08:12] JeanCarl1Machado: has joined #ruby
[12:08:32] morfin: has joined #ruby
[12:08:45] morfin: which characters are valid in email before @?
[12:08:53] morfin: i mean right next to it
[12:09:18] dminuoso: morfin: Does this channel look like #google-for-rfc ?
[12:09:34] dminuoso: morfin: https://tools.ietf.org/html/rfc2822
[12:09:39] morfin: cmon rfc regexp is huge
[12:09:53] InsaneSplash: dminuoso: ok let me google, thanks :)
[12:09:56] dminuoso: You asked what characters are valid.
[12:10:08] dminuoso: Whether you like the answer or not should be irrelevant.
[12:11:08] jackrandom: has joined #ruby
[12:11:09] dminuoso: There is no more concise way of describing what a valid email looks like than the RFC because it is the normative document.
[12:11:25] dminuoso: Now the reality is that many implementations only allow a subset.
[12:11:50] dminuoso: But there's no consensus, so you might as well go with full RFC compliance.
[12:12:54] morfin: i am just going to remove some simple cases before sending to API
[12:13:04] morfin: like whitespace before @
[12:13:12] burgestrand: has joined #ruby
[12:13:43] morfin: http://sphinx.mythic-beasts.com/~pdw/cgi-bin/emailvalidate not sure how valid is this but that says whitespace before @ is valid
[12:13:52] workmad3: morfin: if it's quoted, anything is allowed before the @
[12:14:18] workmad3: " fooo "@[192.168.0.1] is valid
[12:14:44] workmad3: (it'll almost certainly never get anywhere, so it's not deliverable... but it's valid)
[12:15:00] dminuoso: Which is that "reality" part that I mentioned.
[12:15:21] morfin: funny, i can't be sure what's valid and what's not because remote API has different opinion
[12:15:30] dminuoso: The issue is just that by arbitrarily disallowing valid email addresses you just add to the ball of reasons why the entire world is riding on non-compliant mail.
[12:15:48] workmad3: morfin: if you have a remote API that's validating email addresses, just chuck them at it and record the response...
[12:15:48] dminuoso: morfin: Let the remote API decide entirely then.
[12:15:54] blackwind_123: has joined #ruby
[12:16:24] workmad3: trying to rebuild a different system's email validation rules based on testing inputs is a crazy and futile exercise...
[12:17:58] Jameser: has joined #ruby
[12:18:11] marr: has joined #ruby
[12:22:54] Jameser: has joined #ruby
[12:24:27] hashrocket: has joined #ruby
[12:27:41] Jameser: has joined #ruby
[12:27:49] dminuoso: Though you can implement a more generous simple regex matcher, and only do the remote validation on submit (or debounced)
[12:29:04] workmad3: ^ or use `type=email` for submit and provide a regexp matcher as a fallback (assuming webpage entry)
[12:29:07] dminuoso: Say something along the lines of [\w\s-_]+@[\w\s-_\.]+
[12:29:11] bmurt: has joined #ruby
[12:29:21] dminuoso: Oh type=email that's neat.
[12:29:23] morfin: well, i will ask different question
[12:29:40] morfin: how can i replace characters around other character?
[12:29:53] morfin: i will remove spaces only and try send like that
[12:30:50] mim1k: has joined #ruby
[12:32:32] PaulCapestany: has joined #ruby
[12:34:05] bonhoeffer: has joined #ruby
[12:36:55] shinnya: has joined #ruby
[12:40:50] tgragnato: has joined #ruby
[12:41:06] tomphp: has joined #ruby
[12:41:22] BSaboia: has joined #ruby
[12:41:56] vali: has joined #ruby
[12:42:33] ljarvis: are we validating email addresses up in here?
[12:45:28] xenops: has joined #ruby
[12:48:34] canton7: \w includes underscore. "-" needs escaping there. You don't allow +'s, or quotes, or...
[12:48:56] canton7: see how many of these you fail, and therefore how many people you're pissing off: https://en.wikipedia.org/wiki/Email_address#Examples
[12:52:37] rkoller: has joined #ruby
[12:52:47] quite: has joined #ruby
[12:53:17] canton7: (gmail users can put stuff after a + at the end of their email, e.g. "foo.bar+reddit@gmail.com", which is very useful for filtering, etc. They tend to get pissed off if your email validation rejects that)
[12:53:38] workmad3: canton7: number of people on the internet pissed off if you disallow 'foo@localhost' == 0
[12:53:39] judofyr: the best email regex: /@/
[12:54:48] dcluna: has joined #ruby
[12:55:46] canton7: /\A.+@.+\Z/ is probably not a bad one for real-world usage. I mean, what's the point of email validation? About the only reasons are making sure someone doesn't leave it blank, and making sure they don't accidentally type their name. Anything else is only ever going to piss off someone
[12:56:06] apeiros: email validations? fun, just tweeted about that today…
[12:56:26] canton7: if you're preventing someone from typing rubbish... they'll just keep making up rubbish until they find one that passes your validation: they won't go "oh, no, they rejected 'a@a', I'd better type my actual email"
[12:56:31] apeiros: RFC822 is rather ancient
[12:56:32] workmad3: majority of time you don't care about validity, you care about deliverability... and that's a pretty different issue
[12:56:55] apeiros: (re http://sphinx.mythic-beasts.com/~pdw/cgi-bin/emailvalidate posted above)
[12:57:24] canton7: related: *this* is how you validate an email: http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html
[12:57:32] workmad3: I found an address that ^ incorrectly says is valid a while ago :)
[12:57:33] apeiros: regarding email validation (without having read full scrollback): 1) most tips and expressions on the internet are *wrong*.
[12:57:46] apeiros: 2) you most likely do NOT want to allow all technically valid email addresses
[12:57:51] houhoulis: has joined #ruby
[12:58:22] chouhoulis: has joined #ruby
[12:58:40] apeiros: 3) as workmad3 said, syntactically valid emails are not necessarily deliverable. there's no real way to test deliverability. best you can do is send an email which requires an action from the recipient (not always applicable)
[13:00:18] renchan_: has joined #ruby
[13:02:31] ramortegui: has joined #ruby
[13:02:33] apeiros: re canton7 "what's the point of email validations": depends entirely on where you use it. we had terrible quality in our database which made campaigns rather useless. tons of the bad email addresses would have been preventable. things like foo@gmail@com (which your regex would still allow)
[13:03:22] apeiros: others report vastly lowered drop-out rates in online campaigns - again, due to silly typos usually like htomail.com
[13:03:35] apeiros: (of course, that's something a regex alone won't help)
[13:04:55] workmad3: apeiros: gmail.con is a common one we've had at my workplace
[13:05:12] apeiros: but nb, I prefer a validator which allows too much over a validator which allows too little. tons of validators which fail at utf8 in local part, IDNs, or +, & etc. in local part.
[13:10:10] linduxed: hey guys! let's say that i've got some high-res source image that gets run through rmagick, or something like that. over on whatever storage solution one uses, there are now at least two files: "thumb.png" and "full.png"
[13:11:02] linduxed: one way of storing links to these images would be to have a database column that is called "thumbnail_url" and one called "full_image_url"
[13:11:31] linduxed: but if i have like 5 of these, that's a lot of extra database columns
[13:12:13] linduxed: an alternative would be to generate links that have hardcoded suffixes, such as "thumb.png", "full.png" and so on
[13:12:29] linduxed: easier, but i think it's a hacky solution that's error prone
[13:12:38] ljarvis: i don't think that's hacky
[13:13:07] ljarvis: no not really, i think it's fine
[13:13:51] linduxed: maybe if the suffix was fetched from a list of constants
[13:13:57] ljarvis: you could be able to build image urls dynamically in my opinion, and just update a single endpoint if it changes
[13:14:08] ljarvis: well sure, you can validate suffixes if you'd like
[13:14:36] chouhoulis: has joined #ruby
[13:14:51] Fysicus: has joined #ruby
[13:16:18] crayfishx: qq.... I have a hash which might contain some procs/lambdas - I don't care about them specifically but later on I need to Marshal.load/dump the hash so Im trying to find a nice way to 'clean' the hash of any procs/lambdas....etc. The easiest way so far is to do cleanhash = JSON.load(dirtyhash.to_json) which "stringyfies" everything and means I can Marshal.dump/load it without error - but that's pretty expensive - is there are better way to do
[13:17:24] yehowyada: has joined #ruby
[13:17:52] linduxed: ljarvis: well, thanks for your input!
[13:18:33] ljarvis: crayfishx: keep a copy that does not contain procs?
[13:19:33] cdg: has joined #ruby
[13:23:30] Bhootrk_: has joined #ruby
[13:23:34] alessandro_: has joined #ruby
[13:25:32] elomatreb: crayfishx: Hash has select/reject methods, def. cleaner than relying on JSON
[13:26:33] crayfishx: elomatreb: yeah - problem is the procs could be burried in nested hashes or arrays
[13:27:18] crayfishx: ljarvis: I don't build the hash, it's coming out of a third party library - I just need to parse it to make it dumpable by Marshal.
[13:29:36] quite: has left #ruby: ("WeeChat 1.7.1")
[13:30:56] ldnunes: has joined #ruby
[13:30:58] patarr: has joined #ruby
[13:31:03] gnufied: has joined #ruby
[13:31:08] DLSteve: has joined #ruby
[13:34:00] yeticry_: has joined #ruby
[13:34:07] mentok: has joined #ruby
[13:34:39] ResidentBiscuit: has joined #ruby
[13:35:05] dminuoso: canton7: It was not meant as an accurate usable regexp.
[13:35:31] tildes: has joined #ruby
[13:36:16] igniting: has joined #ruby
[13:37:00] __Yiota: has joined #ruby
[13:38:03] rfoust: has joined #ruby
[13:38:45] nowhere_man: has joined #ruby
[13:41:27] apparition: has joined #ruby
[13:44:49] jusa: has joined #ruby
[13:49:52] dacod: has joined #ruby
[13:50:04] alazred: has joined #ruby
[13:50:05] alazred: has joined #ruby
[14:01:32] bonhoeffer: has joined #ruby
[14:01:59] LastWhisper____: has joined #ruby
[14:05:34] tomphp: has joined #ruby
[14:09:18] bruno-: has joined #ruby
[14:09:31] flyingX: has joined #ruby
[14:10:31] flying: has joined #ruby
[14:14:15] aurelien: has joined #ruby
[14:14:49] Jameser: has joined #ruby
[14:15:27] tomphp: has joined #ruby
[14:16:12] bkxd: has joined #ruby
[14:16:16] TvL2386_: has joined #ruby
[14:21:58] xall: has joined #ruby
[14:22:54] flyingX: has joined #ruby
[14:22:58] Jameser: has joined #ruby
[14:23:44] flying: has joined #ruby
[14:24:46] flyingX: has joined #ruby
[14:26:12] flyingX: has joined #ruby
[14:26:13] tomphp: has joined #ruby
[14:26:24] bash2: has joined #ruby
[14:29:35] Jameser: has joined #ruby
[14:30:09] cb: has joined #ruby
[14:30:23] jrafanie: has joined #ruby
[14:31:04] chouhoul_: has joined #ruby
[14:31:50] jrafanie_: has joined #ruby
[14:34:13] tabakhase__: has joined #ruby
[14:35:31] pupsicle: has joined #ruby
[14:35:59] tabakhase__: has joined #ruby
[14:37:46] ski7777: has joined #ruby
[14:38:42] chouhoulis: has joined #ruby
[14:39:24] Hunter1: has joined #ruby
[14:40:36] Jameser: has joined #ruby
[14:41:47] chouhoulis: has joined #ruby
[14:45:12] mim1k: has joined #ruby
[14:45:25] renchan: has joined #ruby
[14:46:31] oleo: has joined #ruby
[14:47:33] aspiers_: has joined #ruby
[14:50:02] Hunter1: has joined #ruby
[14:50:03] dlitvak: has joined #ruby
[14:52:51] Kug3lis: has joined #ruby
[14:54:14] Hunter1: has joined #ruby
[14:56:05] xenops: has joined #ruby
[14:56:28] tomphp: has joined #ruby
[14:58:17] __Yiota: has joined #ruby
[14:58:32] theunraveler: has joined #ruby
[14:59:13] rippa: has joined #ruby
[15:00:09] jphase: has joined #ruby
[15:03:23] DoubleMalt: has joined #ruby
[15:05:11] sepp2k: has joined #ruby
[15:05:21] Lucky_ABA: has joined #ruby
[15:07:08] cschneid_: has joined #ruby
[15:07:50] ascarter: has joined #ruby
[15:08:54] hobodave: has joined #ruby
[15:09:43] anisha_: has joined #ruby
[15:09:51] igniting: has joined #ruby
[15:11:06] jrafanie: has joined #ruby
[15:11:12] ascarter: has joined #ruby
[15:15:06] im0nde: has joined #ruby
[15:15:11] ascarter_: has joined #ruby
[15:18:29] pupsicle: has joined #ruby
[15:27:03] xall: has joined #ruby
[15:28:17] tomphp: has joined #ruby
[15:29:10] djbkd: has joined #ruby
[15:31:19] tomphp: has joined #ruby
[15:32:12] anomaly: has left #ruby: ()
[15:33:08] tlaxkit: has joined #ruby
[15:35:04] BSAlb: has joined #ruby
[15:40:09] cb: has joined #ruby
[15:41:23] duderonomy: has joined #ruby
[15:41:42] ltem: has joined #ruby
[15:42:14] somerandomteen: has joined #ruby
[15:43:00] somerandomteen: Hi there! Trying to do some tests, got a bit of a weird problem... rspec returned this:
[15:43:01] somerandomteen: ["Invalid Neighborhood is not a supported neighborhood :( sorry!"] to include "is not a supported neighborhood"
[15:43:14] somerandomteen: Anyone have any ideas - am I missing something blindingly obvious?
[15:44:06] apeiros: >> ["Invalid Neighborhood is not a supported neighborhood :( sorry!"].include?("is not a supported neighborhood")
[15:44:07] ruby[bot]: apeiros: # => false (https://eval.in/795616)
[15:44:09] ovaltine: looks like you are expecting an array with a string to include a string, perhaps errors.first
[15:44:15] apeiros: >> "Invalid Neighborhood is not a supported neighborhood :( sorry!".include?("is not a supported neighborhood")
[15:44:16] ruby[bot]: apeiros: # => true (https://eval.in/795618)
[15:45:29] dikaio: has joined #ruby
[15:45:32] somerandomteen: aha! there's me being thick :) thanks apeiros! As an aside, I don't suppose you know why Neighborhood is capitalised there? (it's the devise {authentication_keys} variable)
[15:45:41] somerandomteen: You can probably tell I'm pretty new to Ruby haha
[15:46:15] tomphp: has joined #ruby
[15:46:31] apeiros: I don't use devise, so no idea, no
[15:46:54] jrafanie: has joined #ruby
[15:46:58] somerandomteen: cool, no problem :)
[15:49:56] mim1k_: has joined #ruby
[15:49:59] tomphp: has joined #ruby
[15:50:17] cam27: has joined #ruby
[15:58:28] somiaj: has left #ruby: ()
[16:01:29] cam27: So if I have a String object and then assign a new string object to that object. How come I can change it’s value, but if I use .replace then it changes both?
[16:01:50] kegster: has joined #ruby
[16:01:53] polishdub: has joined #ruby
[16:03:04] amclain: has joined #ruby
[16:05:14] tristanp: has joined #ruby
[16:05:55] cdg: has joined #ruby
[16:06:26] postmodern: has joined #ruby
[16:07:04] aufi: has joined #ruby
[16:08:46] ledestin: has joined #ruby
[16:09:11] soc42: has joined #ruby
[16:11:00] alazred: has joined #ruby
[16:11:00] alazred: has joined #ruby
[16:11:06] jackrandom: has joined #ruby
[16:11:34] brent__: has joined #ruby
[16:11:48] gothicsouth: has joined #ruby
[16:12:00] BSab: has joined #ruby
[16:12:21] bruno-: has joined #ruby
[16:13:25] Rory: has joined #ruby
[16:16:21] burgestrand: cam27 for one, ruby's strings are mutable, and ruby always passes things by reference
[16:16:49] burgestrand: (or, well, by value but the value is the reference)
[16:19:29] chihhsin: has joined #ruby
[16:20:40] morfin: dminuoso, you can't even imagine crap i saw today
[16:20:51] baweaver: Burgestrand: which version of Ruby though? :)
[16:21:26] morfin: 1000 messages with errors like "someemail@ domain.com" or someemail @domain.com or someemail.@domain.com etc etc
[16:23:51] spheric: has joined #ruby
[16:23:51] morfin: i was not trying to fix all emails but at least reduce number of finished with an error
[16:25:11] raspado: has joined #ruby
[16:26:05] gusrub: has joined #ruby
[16:26:34] TomyLobo: has joined #ruby
[16:28:47] nitric: has joined #ruby
[16:28:52] AlexRussia: has joined #ruby
[16:29:25] gusrub: has joined #ruby
[16:29:53] TomyLobo2: has joined #ruby
[16:30:09] AgentVenom: has joined #ruby
[16:31:16] Eiam: has joined #ruby
[16:34:04] BSaboia: has joined #ruby
[16:34:42] Eiam: has joined #ruby
[16:38:04] jespada: has joined #ruby
[16:38:57] mas886: has joined #ruby
[16:39:25] mas886: How can I concatenate a file in ruby? "File.open("asd.txt", 'w') { |file| file.write(msg) }" <- This one overwrites what's already on the file.
[16:40:19] GinoMan: has joined #ruby
[16:40:45] ljarvis: mas886: "a" (append) instead of "w" (write)
[16:40:53] canton7: mas886, the modes are documented here: https://ruby-doc.org/core-2.1.4/IO.html#method-c-new-label-Open+Mode
[16:41:07] mas886: ljarvis: Thanks!!!
[16:41:07] brent__: has joined #ruby
[16:48:28] amclain: has joined #ruby
[16:48:33] brent__: has joined #ruby
[16:50:08] brent__: has joined #ruby
[16:51:42] cam27: has joined #ruby
[16:52:47] rkazak: has joined #ruby
[16:53:15] cam27: Burgestrand: thank you for replying first of all. I could never fully understand this concept of mutable as I bounce around from language to language. Is Ruby different than C++ and Java in this regards?
[16:53:28] t-recx: has joined #ruby
[16:55:03] burgestrand: cam27 I find that it helps to think about identity when it comes to mutable strings, if you do: a = "Hello"; b = a — in Ruby b is not only the same as a, it *IS* a
[16:55:39] burgestrand: cam27 however, if you do: a = "Hello"; b = "Hello" — b now only looks like a, but it isnt a
[16:56:28] yokel: has joined #ruby
[16:56:35] xall: has joined #ruby
[16:57:05] ascarter: has joined #ruby
[16:58:06] burgestrand: cam27 like in this example, https://eval.in/795691, there is no real difference
[16:59:20] SeepingN: has joined #ruby
[17:00:20] alazred: has joined #ruby
[17:00:20] alazred: has joined #ruby
[17:01:23] cam27: Burgestrand: You know what I jsut did to help me out. I created a, then assigned it to b. Printed out their object_id and noticed they were the same until I changed one of the two values, then they broke away from each other. But with a.replace(“new_value”) they were still the same object_id
[17:03:04] ljarvis: replace doesn't return a new object like many string methods, it mutates self
[17:03:09] ljarvis: it should really include a bang
[17:03:16] ljarvis: but it doesn't, because ruby
[17:04:02] pupsicle: has joined #ruby
[17:04:44] SeepingN: urgh. Damn you ruby and your Time changes
[17:06:31] horst: has joined #ruby
[17:06:54] cam27: ljarvis: I just ran a.upcase and it is the same object_id
[17:07:30] cam27: which one should I try to see that it changed, and thanks for the code snippet burgestrand
[17:07:36] ljarvis: >> a = "foo"; a.upcase.object_id == a.object_id
[17:07:37] ruby[bot]: ljarvis: # => false (https://eval.in/795700)
[17:08:19] ljarvis: you can't do `a = "foo"; a.upcase; a.object_id` because the return value of a.upcase is ignored. The method doesn't mutate self, and so a is still not upcased
[17:09:42] SeepingN: >> a="foo"; a.upcase!; a.object_id
[17:09:43] ruby[bot]: SeepingN: # => 540552640 (https://eval.in/795701)
[17:10:05] ljarvis: ignoring the ! is exactly what was demonstrating my point
[17:11:47] Cohedrin: has joined #ruby
[17:13:52] duderonomy: has joined #ruby
[17:14:44] cam27: I’m reading the Well Grounded Rubyist at the moment, cause my first time working with Rails I realized that I need to master Ruby
[17:15:20] cam27: Trying to get a deeper understanding this time around
[17:16:55] nowhere_man: has joined #ruby
[17:18:03] SeepingN: has joined #ruby
[17:20:04] cam27: I think I will try to get a job as a Ruby developer first to master Ruby and then worry about the Rails part of it all. Not sure if it will work out that way. But I was all of the way to RSpec, Teaspoon, Jasmine, etc, and I never really fully understood Ruby code in my controllers
[17:25:42] raul782: has joined #ruby
[17:26:34] gothicsouth: has joined #ruby
[17:27:04] cam27: And I’m reading through this book and it is so much easier this time around having a much better understanding of OOP
[17:29:02] ascarter: has joined #ruby
[17:29:43] Puffball: has joined #ruby
[17:32:20] eam_: whoop, good morning all
[17:32:31] cam27: Just learned what a Singleton is :) Again. heard about them, never knew that they only worked for one object :) Ok, I won’t bug you guys, but pretty good decision on my part to come back to this book and start it on pg 1
[17:32:56] psmolen: has joined #ruby
[17:35:31] c0mrad3: has joined #ruby
[17:36:31] Rory: has left #ruby: ()
[17:36:32] Papierkorb: cam27: just be wary that singletons are also a great way to shoot yourself into your foot if you didn't think it completely through
[17:39:12] cam27: Not sure why I would want to use them, cause I could just not call those methods with another object? I mean, if I have a method that needs to be different from one object, wouldn’t I jsut change the argument?
[17:45:30] eam_: you don't ever have to use them strictly speaking. Any task that can be done with a singleton can be done with a regular object
[17:46:05] eam_: but it can be confusing if a method has no relationship to its object
[17:46:40] eam: has joined #ruby
[17:47:40] Puffball: has joined #ruby
[17:47:40] muelleme: has joined #ruby
[17:57:08] ascarter: has joined #ruby
[18:00:58] kurko: has joined #ruby
[18:01:57] romank: has joined #ruby
[18:01:58] antgel: has joined #ruby
[18:02:31] hobodave: has joined #ruby
[18:03:15] hahuang65: has joined #ruby
[18:04:36] PatrikasZvaigzde: has joined #ruby
[18:05:04] dionysus69: has joined #ruby
[18:05:06] anisha: has joined #ruby
[18:11:08] tvw: has joined #ruby
[18:12:49] jaruga: has joined #ruby
[18:14:48] alazred: has joined #ruby
[18:14:48] alazred: has joined #ruby
[18:14:57] borodin: has joined #ruby
[18:18:16] Ishido: has joined #ruby
[18:20:32] xall: has joined #ruby
[18:21:16] milardovich: has joined #ruby
[18:23:37] mwlang: has joined #ruby
[18:27:08] bonhoeffer: has joined #ruby
[18:30:44] ahrs: has joined #ruby
[18:31:18] gothicsouth: has joined #ruby
[18:33:17] enterprisey: has joined #ruby
[18:40:32] EXCHGR: has joined #ruby
[18:40:57] mentok: has joined #ruby
[18:42:24] marlinc: has joined #ruby
[18:43:05] jackrandom: has joined #ruby
[18:48:35] muelleme: has joined #ruby
[18:56:46] chouhoulis: has joined #ruby
[18:58:31] Pierreb: if i want to compare see if 1 variable is equal to 2 variable how do i write that? if $var1 == $var2 doesnt work
[18:59:08] elomatreb: Show your code, since that's exactly how it's supposed to work
[19:02:03] chouhoul_: has joined #ruby
[19:02:13] Pierreb: elomatreb https://paste.linux.community/view/7c6f3fd8
[19:02:41] dminuoso: Pierreb, what do you mean by equality?
[19:02:49] dminuoso: This is not a trick question by the way,.
[19:03:11] dminuoso: Ruby has 4 different notions of "equivalence"
[19:03:13] Pierreb: if alert is equal to updatebreak i want it to do whats below
[19:03:27] dminuoso: What do you mean by equal?
[19:03:27] cfec0b8d: has joined #ruby
[19:03:28] dminuoso: Their values?
[19:03:30] dminuoso: The objects?
[19:03:36] dminuoso: Or just case identity?
[19:03:40] elomatreb: Either you didn't paste all your code or you're getting a syntax error
[19:04:09] elomatreb: You need to close an if with `end`
[19:04:37] Pierreb: https://paste.linux.community/view/9b70cb5b
[19:05:15] dminuoso: Pierreb, and what is $updatebreak?
[19:05:40] dminuoso: Pierreb, prove that to me.
[19:06:00] Pierreb: $updatebreak=6
[19:06:17] jenrzzz: has joined #ruby
[19:06:29] dminuoso: I dont even.
[19:07:25] elomatreb: Try printing your variables directly before you're comparing them (`p $somevar`), your values may just be incorrect
[19:08:33] matthewd: That.. is a lot of globals
[19:09:06] al2o3-cr: matthewd: literally just beat me to it :p
[19:09:08] dminuoso: Also this strange mix of imperative programming and state machinery it really amazing.
[19:09:47] Papierkorb: Pierreb: In case you don't know, in ruby, $ denotes a global variable. Just leave it off if you want a local variable instead.
[19:09:51] matthewd: Channel() is pretty interesting too
[19:10:04] Pierreb: using cinch
[19:10:07] al2o3-cr: matthewd: cinch bot by the looks of it
[19:10:16] dminuoso: I have been developing Ruby programs in different sizes for about 8 years now, half of that professionally.
[19:10:31] dminuoso: Until now I have never ever developed the need for a global.
[19:10:35] dminuoso: A single one
[19:11:11] elomatreb: $stdout? :P
[19:11:12] dminuoso: With the sole exception of logger interfaces.
[19:11:25] Pierreb: i just picked 1 and if it worked
[19:11:29] Pierreb: went for it all the way
[19:11:51] elomatreb: They will persist if that block gets called multiple times, which may be what's confusing you
[19:12:10] dminuoso: elomatreb, I guess that kind of fits into the "logger exception" - but that is about the one spot where mutable globals are generally not frowned upon.
[19:12:32] matthewd: Ah okay, I'll retain the opinion that it looks surprising, but will grant that it's not open to change here ;)
[19:12:47] quobo: has joined #ruby
[19:13:04] Pierreb: i dont mind changing so ill go read about variables :)
[19:13:57] matthewd: Pierreb: If you're up for change, please also consider 2-space indentation.. it's a near-universal standard in ruby code
[19:13:58] elomatreb: And even for $stdout, I don't think I ever actually typed it somwehere myself since most of the methods just assume it
[19:14:31] dminuoso: elomatreb, yeah I think I only ever used STDOUT -> not that it's particularly better than $ ..
[19:14:42] hobodave_: has joined #ruby
[19:15:32] elomatreb: I had a whole reply typed out about how I'd rather just use STDOUT since I can reassign it, confused the two
[19:15:46] Pierreb: matthewd never understood thatm looks weird but ill change them
[19:16:03] TreyG: has joined #ruby
[19:16:21] dminuoso: elomatreb, shame. Would have loved some seal clubbing!
[19:16:29] dminuoso: Boring evening you know.
[19:17:08] yqt: has joined #ruby
[19:19:03] AlexRussia: has joined #ruby
[19:20:23] matthewd: Pierreb: At a higher level, I'd suggest you maybe want some objects to handle the actual behaviours, separate from the "UI" of the message parsing -- but that depends on how comfortable you are with classes etc, and the nature/purpose of your project
[19:21:24] dminuoso: And functions. Pure functions!
[19:21:29] matthewd: e.g. if the goal is to progressively learn ruby while implementing something, it may indeed be better to keep all the logic in-line for now, and worry about more complex extractions later
[19:21:32] dminuoso: Never not write pure functions in eloquent Ruby!
[19:21:51] elomatreb: RewriteInHaskell.meme
[19:22:19] haylon: has joined #ruby
[19:25:03] chouhoulis: has joined #ruby
[19:25:43] mim1k: has joined #ruby
[19:27:02] bonhoeffer: has joined #ruby
[19:27:32] cek: has joined #ruby
[19:28:00] gusrub: has joined #ruby
[19:28:13] quobo: has joined #ruby
[19:28:16] cek: wondering if there's a includee callback that would be invoked when includer scope closes.
[19:32:02] kristofferR: has joined #ruby
[19:33:04] Verity: has joined #ruby
[19:34:48] alazred: has joined #ruby
[19:34:49] alazred: has joined #ruby
[19:36:15] cek: thanks, that really helped.
[19:38:07] minimalism: has joined #ruby
[19:38:17] dminuoso: cek, there may not even be any such scope. Consider C.include(M)
[19:38:18] matthewd: Given a problem, I can suggest a solution. Given a binary question about whether a thing exists, I can only answer it.
[19:38:53] ruby[bot]: cek: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[19:39:40] cek: other than trace func
[19:39:58] cek: has left #ruby: ()
[19:45:14] BSAlb: has joined #ruby
[19:46:13] cabraturgo: has joined #ruby
[19:49:48] gothicsouth: has joined #ruby
[19:54:34] gothicsouth: has joined #ruby
[19:54:52] hahuang65: has joined #ruby
[20:05:48] dionysus69: has joined #ruby
[20:11:04] workmad3: has joined #ruby
[20:12:23] zapata: has joined #ruby
[20:13:21] jenrzzz_: has joined #ruby
[20:17:00] apetrovich: has joined #ruby
[20:17:05] cdg: has joined #ruby
[20:19:04] apetrovich: i'm trying to execute sed inside %x(), but my string isn't matching correctly because of escape characters. Any advice?
[20:19:49] al2o3-cr: apetrovich: use the Shellwords module
[20:20:23] apetrovich: i'll try that thanks
[20:21:54] al2o3-cr: apetrovich: any reason use don't use ruby?
[20:24:10] Hanmac: has joined #ruby
[20:25:03] jenrzzz: has joined #ruby
[20:25:04] jenrzzz: has joined #ruby
[20:26:27] ResidentBiscuit: has joined #ruby
[20:29:30] sepp2k1: has joined #ruby
[20:31:30] Oclair: has joined #ruby
[20:31:32] haylon: has joined #ruby
[20:34:03] jusa: has joined #ruby
[20:34:08] makerops: has joined #ruby
[20:34:15] makerops: I am doing something stupid.
[20:34:26] makerops: I have the capistrano gem installed, I am running irb
[20:34:36] makerops: I do "require 'capistrano'
[20:34:59] guacamole: has joined #ruby
[20:35:02] makerops: I get returned true, but when I call Capistrano, I get uninitilizaed constant
[20:35:15] makerops: and I can't see why...
[20:35:25] ascarter: has joined #ruby
[20:35:40] makerops: Gem::Specification.all().map{|g| [g.name, g.version.to_s] via IRB shows it installed
[20:37:19] dminuoso: makerops, https://github.com/capistrano/capistrano/blob/master/lib/capistrano.rb
[20:37:24] dminuoso: makerops, surprised? :-)
[20:37:38] dminuoso: makerops, hint even an "empty file" is a valid ruby file to be require'd
[20:37:55] dminuoso: makerops, you most likely were looking for https://github.com/capistrano/capistrano/blob/master/lib/capistrano/all.rb
[20:39:37] makerops: I ddint realize it upgraded my gem
[20:39:40] makerops: wasn't like that in 2
[20:40:08] brent__: has joined #ruby
[20:41:05] jrafanie: has joined #ruby
[20:42:14] armyriad: has joined #ruby
[20:46:23] raul782: has joined #ruby
[20:48:28] SeepingN: that's horrible
[20:51:42] zenspider: agreed. wtf.
[20:52:01] zenspider: I bet they got tired of bundler autoload
[20:52:32] guardian: hello I'm facing some unfamiliar syntax
[20:52:36] zenspider: "This removes the need to set `require: false` in your Gemfile."
[20:53:00] guardian: what's foo[/\d+\.\d+/] where foo is a string
[20:53:08] guardian: is it supposed to match e.g. a version number?
[20:53:15] zenspider: it's a method call to [] w/ a regexp as an argument
[20:53:20] zenspider: foo.[](/.../)
[20:53:34] zenspider: knowing foo is a string, do `ri String.[]`
[20:53:35] blackmesa: has joined #ruby
[20:54:13] guardian: ri Stirng.[] ???
[20:54:31] jenrzzz: has joined #ruby
[20:54:49] zenspider: command line documentation. very useful.
[20:55:00] guardian: gonna look that up
[20:55:32] zenspider: just type it into your terminal
[20:55:37] zenspider: (minus your typos)
[20:55:42] lxsameer: has joined #ruby
[20:56:39] Oclair: has joined #ruby
[20:58:17] elomatreb: Alternatively find the same documentation here: https://ruby-doc.org/core-2.4.1/String.html#method-i-5B-5D
[20:58:58] ascarter: has joined #ruby
[20:59:26] zenspider: yes, but that sucks in comparison
[21:00:27] zenspider: FFS that site is slow as fuck. and the search is broken. and and and. don't use it.
[21:01:33] adam12: And if ri doesn't work for you, make sure your shell isn't trying to use the args for glob.
[21:01:54] ascarter: has joined #ruby
[21:02:43] muelleme: has joined #ruby
[21:03:39] elomatreb: zenspider: Loads instantly for me, I agree about the search though. I just don't have compiled docs for ri on most of my machines
[21:05:02] raul782: has joined #ruby
[21:05:17] Oclair: has joined #ruby
[21:09:14] JeanCarloMachado: has joined #ruby
[21:09:16] ur5us: has joined #ruby
[21:09:17] JeanCarl1Machado: has joined #ruby
[21:11:15] Oclair: has joined #ruby
[21:13:27] Oclair_: has joined #ruby
[21:15:27] Papierkorb: pry's ? feature ftw
[21:17:56] gothicsouth: has joined #ruby
[21:19:48] guardian: has joined #ruby
[21:21:14] MrBismuth: has joined #ruby
[21:23:42] workmad3: has joined #ruby
[21:25:51] mim1k: has joined #ruby
[21:27:06] GinoMan: has joined #ruby
[21:27:17] patr0clus: has joined #ruby
[21:28:00] nankyokusei: has joined #ruby
[21:28:03] zenspider: elomatreb: fixing that is a single command.
[21:30:41] ascarter: has joined #ruby
[21:32:38] TreyG_: has joined #ruby
[21:33:13] burgestrand: has joined #ruby
[21:34:39] __Yiota: has joined #ruby
[21:36:04] JeanCarloMachado: has joined #ruby
[21:38:13] tomphp: has joined #ruby
[21:40:26] Dimik: has joined #ruby
[21:41:05] raspado: has joined #ruby
[21:44:42] enterprisey: has joined #ruby
[21:45:48] JeanCarloMachado: has joined #ruby
[21:46:14] perniciouscaffei: has joined #ruby
[21:47:44] ascarter: has joined #ruby
[21:50:34] JeanCarl1Machado: has joined #ruby
[21:53:10] ascarter: has joined #ruby
[21:55:29] TreyG: has joined #ruby
[21:56:28] bpmedley: has joined #ruby
[21:58:26] nankyokusei: has joined #ruby
[22:01:11] mas886: has joined #ruby
[22:01:11] mas886: has joined #ruby
[22:02:25] Derperperd: has joined #ruby
[22:03:51] hndk: has joined #ruby
[22:05:19] gizmore: has joined #ruby
[22:05:54] blackwind_123: has joined #ruby
[22:07:09] TreyG_: has joined #ruby
[22:07:54] ascarter: has joined #ruby
[22:08:14] rkazak: has joined #ruby
[22:09:03] ascarter: has joined #ruby
[22:16:06] raul782: has joined #ruby
[22:23:24] Azure: has joined #ruby
[22:27:25] lxnr: has joined #ruby
[22:27:28] ascarter: has joined #ruby
[22:28:53] gothicsouth: has joined #ruby
[22:29:26] lxnr: has left #ruby: ()
[22:31:12] hndk: has joined #ruby
[22:34:43] jusa: has joined #ruby
[22:38:10] bruno-_: has joined #ruby
[22:43:39] Hunter1: has joined #ruby
[22:46:50] spiette_: has joined #ruby
[22:47:49] duderono_: has joined #ruby
[22:55:19] perniciouscaffei: has joined #ruby
[23:02:08] mikecmpbll: has joined #ruby
[23:14:45] Trynemjoel: has joined #ruby
[23:21:26] jenrzzz: has joined #ruby
[23:23:20] cschneid_: has joined #ruby
[23:24:20] jhack: has joined #ruby
[23:25:38] xall: has joined #ruby
[23:26:30] mim1k: has joined #ruby
[23:27:39] Hunter1: has joined #ruby
[23:29:25] nchambers: has joined #ruby
[23:29:39] nchambers: outside of a #{}, does an @ mean anything in a string?
[23:29:52] nchambers: IE, is "@some_member" going to expand in any sort of way?
[23:29:56] postmodern: has joined #ruby
[23:31:19] Vingador: has joined #ruby
[23:35:00] shinnya: has joined #ruby
[23:41:47] mostlybadfly: has joined #ruby
[23:43:19] zenspider: nchambers: #@var is just like #{@var}
[23:43:32] milardovich: has joined #ruby
[23:44:17] enterprisey: has joined #ruby
[23:45:40] redaudit: has joined #ruby
[23:49:25] zenspider: I just added some clarification to the quickref for this
[23:50:24] zenspider: http://www.zenspider.com/ruby/quickref.html#strings
[23:53:45] charliesome: has joined #ruby
[23:54:54] Hunter1: has joined #ruby
[23:57:50] alveric1: has joined #ruby
[23:58:46] nitric: has joined #ruby