« Back to channel list

#ruby - 11 September 2017

« Back 1 day Forward 1 day »
[00:00:38] jrabe: has joined #ruby
[00:05:53] neruda: has joined #ruby
[00:06:05] neruda: i need a little hand holding with a gem dependency upgrade
[00:06:10] neruda: i have a gem that i unpacked in order to bump up the version of nokogiri listed in the gemspec
[00:06:15] neruda: im wondering how to repack and include in git commit once done
[00:06:23] neruda: i got this gem out of the vendor/cache, but it could also be a part of a gemset (still learning rvm stuff)
[00:06:24] tcopeland: has joined #ruby
[00:06:34] neruda: not sure if there any do's/don'ts/best-practices around this sort of endeavor
[00:08:54] vondruch: has joined #ruby
[00:11:51] darix: neruda: gem unpack *gem ; gem spec --ruby *gem gemname*/gemname-version.gemspec ; cd gemname*/ ; gem build gemname-version.gemspec
[00:12:12] benlieb: has joined #ruby
[00:12:46] darix: neruda: does that help?
[00:13:29] brent__: has joined #ruby
[00:13:46] Jameser: has joined #ruby
[00:14:18] __Yiota: has joined #ruby
[00:15:53] bruce_lee: has joined #ruby
[00:15:53] bruce_lee: has joined #ruby
[00:15:56] mtkd: has joined #ruby
[00:16:12] cconstantine: has joined #ruby
[00:19:07] astronavt: whats this idiom i keep seeing in the Bundler code? @root || =
[00:19:21] astronavt: def root; @root ||= ...; end
[00:21:08] astronavt: example: https://github.com/bundler/bundler/blob/master/lib/bundler.rb#L217
[00:21:40] Salmonidae: evaluates right hand side and assigns it to @root (if @root is nil or false), but if @root is already truthful (not nil or false) it will simply return @root and not evaluate the right hand side.
[00:23:06] Salmonidae: it's often used for memoization
[00:24:34] AndBobsYourUncle: has joined #ruby
[00:24:39] FahmeF: has joined #ruby
[00:27:31] neruda: darix: sorry missed your reply, that's what i ended up doing
[00:28:19] umaaji: has joined #ruby
[00:28:35] cconstantine: has joined #ruby
[00:31:35] MarkBilk_: has joined #ruby
[00:34:21] vondruch: has joined #ruby
[00:38:09] hinbody: has joined #ruby
[00:39:27] cconstantine: has joined #ruby
[00:40:40] bronson: has joined #ruby
[00:42:32] eightlimbed: has joined #ruby
[00:43:00] mtkd: has joined #ruby
[00:43:46] jackjackdripper: has joined #ruby
[00:43:54] vondruch: has joined #ruby
[00:49:12] coderphive: has joined #ruby
[00:49:52] astronavt: Salmonidae so what's @root?
[00:50:01] astronavt: does the @ have any meaning
[00:50:04] Salmonidae: it's an instance variable :)
[00:50:08] AxelAlex: has joined #ruby
[00:50:24] astronavt: but... root is a method
[00:51:11] Salmonidae: yeah. methods act on state (instance variables), which are not easily accessible to the outside.
[00:52:02] Salmonidae: https://github.com/bundler/bundler/blob/master/lib/bundler.rb#L217 it looks like this method is defined as `Bundler.root`. so the instance variable belongs to 'Bundler' (an instance of Module)
[00:52:21] Salmonidae: you should get a ruby book or read one online
[00:54:15] AndBobsYourUncle: has joined #ruby
[00:55:58] kapil___: has joined #ruby
[00:56:47] fishcooker: has joined #ruby
[01:01:25] DrCode: has joined #ruby
[01:04:54] jenrzzz: has joined #ruby
[01:06:02] zack6849: has joined #ruby
[01:06:09] async_prince: has joined #ruby
[01:06:30] jenrzzz: has joined #ruby
[01:06:31] zack6849: has joined #ruby
[01:08:32] __Yiota: has joined #ruby
[01:08:52] tcopeland: has joined #ruby
[01:09:13] lupine: has joined #ruby
[01:10:28] enterprisey: has joined #ruby
[01:12:08] rfshark: has joined #ruby
[01:12:48] pharma_joe: has joined #ruby
[01:13:21] Cohedrin_: has joined #ruby
[01:15:34] Jameser: has joined #ruby
[01:16:55] Jameser: has joined #ruby
[01:24:01] gizmore|2: has joined #ruby
[01:24:33] jackjackdripper: has joined #ruby
[01:28:39] jackjackdripper: has joined #ruby
[01:30:31] jenrzzz: has joined #ruby
[01:38:44] kn-928: has joined #ruby
[01:38:56] brent__: has joined #ruby
[01:46:19] sniffer: has joined #ruby
[01:48:02] AndBobsYourUncle: has joined #ruby
[01:53:04] guardianx: has joined #ruby
[01:53:12] hndk: has joined #ruby
[01:54:21] d^sh: has joined #ruby
[01:54:24] vondruch: has joined #ruby
[01:58:54] vondruch: has joined #ruby
[02:00:41] Cohedrin_: has joined #ruby
[02:02:43] rhyselsmore: has joined #ruby
[02:08:09] fishcooker: has joined #ruby
[02:09:21] vondruch: has joined #ruby
[02:13:04] Jameser: has joined #ruby
[02:13:16] tcopeland: has joined #ruby
[02:13:56] vondruch: has joined #ruby
[02:18:03] Azure: has joined #ruby
[02:20:08] kies: has joined #ruby
[02:21:16] pharma_joe: has joined #ruby
[02:21:17] djuber: has joined #ruby
[02:22:51] aglorei1: has joined #ruby
[02:24:24] vondruch: has joined #ruby
[02:25:20] coderphive: has joined #ruby
[02:28:53] vondruch: has joined #ruby
[02:38:02] cconstantine: I have a thread that needs to do some cleanup work when it's terminated. I've got most of the exit points handled, but when the ruby process exits it's getting killed before I can do the cleanup. Is there a way to trap a thread about to exit and do some work?
[02:39:20] vondruch: has joined #ruby
[02:42:02] bronson: has joined #ruby
[02:43:52] vondruch: has joined #ruby
[02:48:09] pharma_joe: has joined #ruby
[02:49:44] cconstantine: has joined #ruby
[02:55:13] Salmonidae: cconstantine: t = Thread.new { }; at_exit { t.join }. keep a reference to the thread, and use Thread#join before the main thread can exit. 'killing' threads is usually not a good idea. you probably instead want to communicate a shutdown through Queue or similar.
[02:58:28] PaulCapestany: has joined #ruby
[02:58:30] skweek: has joined #ruby
[02:59:02] mark_on_the_moon: has joined #ruby
[03:00:09] cadillac_: has joined #ruby
[03:03:18] arescorpio: has joined #ruby
[03:04:23] sp4rrow: has joined #ruby
[03:07:22] gh: has joined #ruby
[03:09:49] elcontrastador: has joined #ruby
[03:11:13] Silthias: has joined #ruby
[03:26:37] nadir: has joined #ruby
[03:27:00] mtkd: has joined #ruby
[03:35:50] gix: has joined #ruby
[03:38:33] howdoi: has joined #ruby
[03:39:23] vondruch: has joined #ruby
[03:39:43] jinie: has joined #ruby
[03:40:37] nacsurte: has joined #ruby
[03:41:20] sp4rrow: has joined #ruby
[03:43:54] vondruch: has joined #ruby
[03:53:41] harai: has joined #ruby
[03:54:22] vondruch: has joined #ruby
[03:55:31] ruby[bot]: -b *!*@S01069050ca2b0293.wp.shawcable.net$#ruby-banned
[03:58:53] vondruch: has joined #ruby
[04:09:23] vondruch: has joined #ruby
[04:10:53] guardianx: has joined #ruby
[04:13:54] vondruch: has joined #ruby
[04:18:25] Cohedrin_: has joined #ruby
[04:24:21] vondruch: has joined #ruby
[04:28:54] vondruch: has joined #ruby
[04:31:01] xall: has joined #ruby
[04:34:24] ascarter: has joined #ruby
[04:35:14] nacsurte: has joined #ruby
[04:38:27] govg: has joined #ruby
[04:39:23] vondruch: has joined #ruby
[04:41:53] rabajaj: has joined #ruby
[04:43:09] bronson: has joined #ruby
[04:43:54] vondruch: has joined #ruby
[04:45:55] uZiel: has joined #ruby
[04:47:22] mtkd: has joined #ruby
[04:47:58] jordanm: has joined #ruby
[04:54:13] brent__: has joined #ruby
[04:59:42] pharma_joe: has joined #ruby
[05:00:40] enterprisey: has joined #ruby
[05:01:33] ascarter: has joined #ruby
[05:01:55] taurgal: has joined #ruby
[05:05:29] brent__: has joined #ruby
[05:07:37] ascarter: has joined #ruby
[05:09:24] vondruch: has joined #ruby
[05:10:09] pharma_joe: has joined #ruby
[05:13:54] vondruch: has joined #ruby
[05:19:26] ascarter: has joined #ruby
[05:21:02] Nilium: This GUI library I was writing is further along than I thought it was... haven't actually looked at it in a little under 3 years. Maybe I should pick that back up for fun.
[05:27:18] ledestin: has joined #ruby
[05:36:28] anisha: has joined #ruby
[05:38:21] biberu: has joined #ruby
[05:39:22] vondruch: has joined #ruby
[05:43:54] vondruch: has joined #ruby
[05:44:24] mjolnird: has joined #ruby
[05:49:01] mkali: has joined #ruby
[05:51:07] s00pcan: has joined #ruby
[05:54:20] vondruch: has joined #ruby
[05:55:58] xall: has joined #ruby
[05:58:53] vondruch: has joined #ruby
[06:00:04] kies: has joined #ruby
[06:00:07] jey: has joined #ruby
[06:02:44] s00pcan: has joined #ruby
[06:04:22] vondruch: has joined #ruby
[06:13:53] vondruch: has joined #ruby
[06:15:25] ascarter: has joined #ruby
[06:15:34] guille-moe: has joined #ruby
[06:15:34] anas: has joined #ruby
[06:18:31] jackjackdripper: has joined #ruby
[06:19:39] guille-moe: has joined #ruby
[06:20:39] anas: has joined #ruby
[06:21:43] cosmicz: has joined #ruby
[06:24:28] Ishido: has joined #ruby
[06:26:35] zautomata: has joined #ruby
[06:27:21] alex``: has joined #ruby
[06:27:33] naprimer2: has joined #ruby
[06:29:26] cubicme: has joined #ruby
[06:30:11] ascarter: has joined #ruby
[06:30:38] cubicme: hey, is there a way to inspect a running ruby process memory (sidekiq in this case)?
[06:41:21] pwnd_nsfw`: has joined #ruby
[06:42:30] Silthias: has joined #ruby
[06:43:53] bronson: has joined #ruby
[06:49:55] cadillac_: has joined #ruby
[06:50:42] Mortomes|Work: has joined #ruby
[06:52:55] pharma_joe: has joined #ruby
[06:53:49] conta: has joined #ruby
[06:56:08] tonini: has joined #ruby
[07:00:59] dionysus69: has joined #ruby
[07:04:08] Macaveli: has joined #ruby
[07:08:47] tAn: has joined #ruby
[07:09:37] burgestrand: has joined #ruby
[07:09:39] andikr: has joined #ruby
[07:14:06] dminuoso: Okay turns out Elixir protocols is exactly what I have been missing in Ruby.
[07:15:26] Mon_Ouie: has joined #ruby
[07:16:52] harfangk: has joined #ruby
[07:19:04] cubicme: has left #ruby: ("ERC (IRC client for Emacs 25.2.1)")
[07:19:51] nacsurte: has joined #ruby
[07:24:39] claudiuinberlin: has joined #ruby
[07:25:33] vondruch: has joined #ruby
[07:28:11] TomyWork: has joined #ruby
[07:30:29] mark_66: has joined #ruby
[07:37:03] Mia: has joined #ruby
[07:37:03] Mia: has joined #ruby
[07:37:11] paranoicsan: has joined #ruby
[07:39:48] Silthias1: has joined #ruby
[07:40:42] mark_66: has joined #ruby
[07:42:06] mark_66: has joined #ruby
[07:42:47] tvw: has joined #ruby
[07:44:41] burgestrand: has joined #ruby
[07:46:46] burgestrand: has joined #ruby
[07:51:39] claudiuinberlin: has joined #ruby
[07:52:43] phaul: has joined #ruby
[07:54:44] mark_66: has joined #ruby
[07:58:27] yeticry_: has joined #ruby
[08:00:55] jaruga: has joined #ruby
[08:03:43] conta1: has joined #ruby
[08:08:06] FifthWall: has joined #ruby
[08:08:12] creeg: has joined #ruby
[08:08:16] Radar: has joined #ruby
[08:08:16] knight_: has joined #ruby
[08:08:20] pragmatism: has joined #ruby
[08:08:24] boshhead: has joined #ruby
[08:08:35] baweaver: has joined #ruby
[08:08:40] justinmcp: has joined #ruby
[08:08:45] Nilium: has joined #ruby
[08:10:21] s00pcan: has joined #ruby
[08:10:52] gbailey: has joined #ruby
[08:11:52] Fire-Dragon-DoL: has joined #ruby
[08:11:54] FahmeF: has joined #ruby
[08:11:59] TheMoonMaster: has joined #ruby
[08:11:59] TheMoonMaster: has joined #ruby
[08:12:41] guille-moe: has joined #ruby
[08:12:44] perry: has joined #ruby
[08:12:44] perry: has joined #ruby
[08:13:11] jpterry: has joined #ruby
[08:13:26] mim1k: has joined #ruby
[08:13:57] nacsurte: has joined #ruby
[08:16:11] rfshark: has joined #ruby
[08:21:36] MarkBilk__: has joined #ruby
[08:24:10] mim1k_: has joined #ruby
[08:28:53] r7c: has joined #ruby
[08:31:50] Bish: is there the opposite of File.extname?
[08:31:56] Bish: like the file without extname?
[08:32:44] cgfbee: has joined #ruby
[08:32:53] mikecmpbll: has joined #ruby
[08:36:59] al2o3-cr: Bish: File.basename
[08:38:00] Bish: >> File.basename "Test.123"
[08:38:01] ruby[bot]: Bish: # => "Test.123" (https://eval.in/859233)
[08:38:30] al2o3-cr: >> File.basename "Test.123", ".*"
[08:38:31] ruby[bot]: al2o3-cr: # => "Test" (https://eval.in/859234)
[08:38:44] Bish: ah, okay, thanks
[08:39:14] lxsameer: has joined #ruby
[08:42:15] claudiuinberlin: has joined #ruby
[08:45:08] bronson: has joined #ruby
[08:47:28] workmad3: has joined #ruby
[08:48:09] marr: has joined #ruby
[08:48:55] claudiuinberlin: has joined #ruby
[08:50:23] evie_hammond: has joined #ruby
[08:55:41] vondruch: has joined #ruby
[08:56:18] jey: has joined #ruby
[09:01:11] vondruch: has joined #ruby
[09:04:00] eregon: has joined #ruby
[09:08:03] nacsurte: has joined #ruby
[09:12:25] frozengeek: has joined #ruby
[09:13:16] CrazyEddy: has joined #ruby
[09:14:23] guille-moe: has joined #ruby
[09:24:33] lxsameer: has joined #ruby
[09:33:32] guille-moe1: has joined #ruby
[09:37:11] uZiel: has joined #ruby
[09:40:07] phaul: has joined #ruby
[09:46:14] KeyJoo: has joined #ruby
[09:46:33] ur5us: has joined #ruby
[09:52:11] mim1k: has joined #ruby
[09:53:09] frozengeek_: has joined #ruby
[09:55:24] phinxy: has joined #ruby
[09:57:08] phinxy: has left #ruby: ()
[10:02:09] nacsurte: has joined #ruby
[10:03:04] Radar: has joined #ruby
[10:03:32] claudiuinberlin: has joined #ruby
[10:06:51] helpa: has joined #ruby
[10:09:17] helpa: has joined #ruby
[10:10:03] boshhead: has joined #ruby
[10:13:23] burgestrand: has joined #ruby
[10:21:59] workboy: has joined #ruby
[10:26:31] ShalokShalom_: has joined #ruby
[10:26:33] gr33n7007h: has joined #ruby
[10:27:30] Silthias: has joined #ruby
[10:28:59] harfangk: has joined #ruby
[10:31:09] charliesome: has joined #ruby
[10:31:46] FahmeF: has joined #ruby
[10:34:09] charliesome: has joined #ruby
[10:35:57] helpa: has joined #ruby
[10:39:51] charliesome_: has joined #ruby
[10:40:16] t-recx: has joined #ruby
[10:43:43] darix: dminuoso: what do exilir protocols do?
[10:46:18] bronson: has joined #ruby
[10:47:18] al2o3-cr: darix: they're basically a polymorphism mechanism afaiu
[10:56:16] nacsurte: has joined #ruby
[10:58:12] chouhoulis: has joined #ruby
[10:58:43] arup_r: has joined #ruby
[11:04:42] InfinityFye: has joined #ruby
[11:08:15] guille-moe: has joined #ruby
[11:10:48] runescape07rsps: has joined #ruby
[11:16:16] burgestrand: has joined #ruby
[11:16:56] chouhoulis: has joined #ruby
[11:18:13] guille-moe: has joined #ruby
[11:23:06] saltsa: has joined #ruby
[11:24:17] fmartingr: has joined #ruby
[11:27:24] frozengeek: has joined #ruby
[11:29:22] frozengeek_: has joined #ruby
[11:30:15] dminuoso: darix: Think about Enumerable and the way it works with duck typing.
[11:30:33] dminuoso: darix: Protocols are basically the same thing, except they *enforce* the required interface is implemented.
[11:31:00] dminuoso: (Other languages like go also call this protocols, in C++ its called concepts, Haskell calls it typeclasses, Java calls it interfaces)
[11:32:38] dminuoso: Though concepts/typeclasses are substantially more becaue they can enforce certain axioms are met.
[11:33:36] phaul: has joined #ruby
[11:34:01] frozengeek_: has joined #ruby
[11:34:07] claudiuinberlin: has joined #ruby
[11:37:54] hogetaro: has joined #ruby
[11:45:11] tcopeland: has joined #ruby
[11:47:52] ur5us: has joined #ruby
[11:47:53] tsglove: has joined #ruby
[11:50:16] darix: dminuoso al2o3-cr: thank you
[11:50:20] nacsurte: has joined #ruby
[11:52:02] mim1k: has joined #ruby
[11:59:36] charliesome: has joined #ruby
[12:00:28] mson: has joined #ruby
[12:00:46] claudiuinberlin: has joined #ruby
[12:01:17] ldnunes: has joined #ruby
[12:03:14] montyboy_: has joined #ruby
[12:12:32] sepp2k: has joined #ruby
[12:13:03] someuser: has joined #ruby
[12:18:49] Bhootrk_: has joined #ruby
[12:20:18] tcopeland: has joined #ruby
[12:20:49] TomyWork: has joined #ruby
[12:24:55] djuber: has joined #ruby
[12:28:54] BSaboia: has joined #ruby
[12:33:27] ryandevilla: has joined #ruby
[12:33:50] brent__: has joined #ruby
[12:43:14] truenito: has joined #ruby
[12:44:25] nacsurte: has joined #ruby
[12:45:19] bmurt: has joined #ruby
[12:47:14] bronson: has joined #ruby
[12:50:16] Jameser: has joined #ruby
[12:52:21] hargut: has joined #ruby
[12:54:52] hargut: I'm stuck with a little "easy" regex in ruby and would need a hint to get that fixed. I've a string which looks like \"abcde\" \"cdefg\", and I would like to extract abcde cdefg with gsub, but .gsub(/\\\"/, '') does not do the job. It simply does not replace anything. I also tried /\\%Q/, '') but no success so far.
[12:55:22] hargut: Does someone of you have a good idea how to do that substitution, or how to escape \" properly in ruby regex?
[12:57:55] hargut: got it %r{\"} does the job.
[13:02:37] ineb: hargut: gsub variant '"abcde" "cdefg"'.gsub("\"abcde\" \"cdefg\"",'lol')
[13:02:54] ineb: but %r{} syntax is good aswell
[13:03:22] al2o3-cr: hargut: s.delete('"')
[13:03:51] rfshark: has left #ruby: ()
[13:03:58] ineb: oh, you wanted to extract values. nvm my answer
[13:04:44] ineb: '"abcde" "cdefg"'.gsub("\"","") it is then. but s.delete('"') is better
[13:06:27] phaul: has joined #ruby
[13:11:09] _aeris_: has joined #ruby
[13:13:43] dminuoso: hargut: dont .gsub when you mean to .scan
[13:13:44] cdg: has joined #ruby
[13:13:45] sp4rrow: has joined #ruby
[13:16:46] claudiuinberlin: has joined #ruby
[13:18:58] claudiuinberlin: has joined #ruby
[13:19:00] s00pcan: has joined #ruby
[13:20:03] ineb: '"abcde" "cdefg"'.scan(/\w+/) in this case
[13:20:04] gnufied: has joined #ruby
[13:22:51] elsevero: has joined #ruby
[13:27:37] s00pcan: has joined #ruby
[13:30:24] bmurt: has joined #ruby
[13:38:27] nacsurte: has joined #ruby
[13:41:49] __Yiota: has joined #ruby
[13:46:11] DLSteve: has joined #ruby
[13:47:09] ryandevilla: has joined #ruby
[13:47:44] abrcdbr_: has joined #ruby
[13:49:04] claudiuinberlin: has joined #ruby
[13:51:02] rfshark: has joined #ruby
[13:53:55] pandaant: has joined #ruby
[13:54:38] dionysus70: has joined #ruby
[13:59:01] apparition: has joined #ruby
[13:59:30] mim1k_: has joined #ruby
[13:59:46] TheBrayn: has joined #ruby
[14:01:14] bigkevmcd: has joined #ruby
[14:02:02] aufi: has joined #ruby
[14:05:43] ResidentBiscuit: has joined #ruby
[14:07:10] Rapture: has joined #ruby
[14:10:08] claudiuinberlin: has joined #ruby
[14:11:00] lxsameer: has joined #ruby
[14:11:28] PaulCape_: has joined #ruby
[14:13:00] chouhoul_: has joined #ruby
[14:13:08] wogi: has joined #ruby
[14:18:24] ldnunes: has joined #ruby
[14:22:37] Asher: has joined #ruby
[14:23:24] OhMyBrew: has joined #ruby
[14:26:37] ryandevilla: has joined #ruby
[14:29:17] claudiuinberlin: has joined #ruby
[14:31:16] doublemalt__: has joined #ruby
[14:31:51] bladdezz: has joined #ruby
[14:32:17] evie_hammond: has joined #ruby
[14:32:36] nacsurte: has joined #ruby
[14:33:34] belmoussaoui_: has joined #ruby
[14:34:13] gix: has joined #ruby
[14:34:55] __Yiota: has joined #ruby
[14:35:32] sagax: has joined #ruby
[14:36:47] mtkd: has joined #ruby
[14:37:30] jinie: has joined #ruby
[14:38:57] BTRE: has joined #ruby
[14:41:42] quobo: has joined #ruby
[14:43:24] abrcdbr: has joined #ruby
[14:46:15] belmoussaoui: has joined #ruby
[14:48:01] tcopeland: has joined #ruby
[14:48:33] bronson: has joined #ruby
[14:50:10] sepp2k: has joined #ruby
[14:53:02] leah2: what's the safe way to do `` with multiple arguments? (something with spawn i think?)
[14:53:25] leah2: or should i just use popen + read?
[14:55:10] matthewd: leah2: I think Open3.capture2 is the closest
[14:55:20] leah2: i dont care about stderr actually
[14:55:27] samlisl_: has joined #ruby
[14:56:40] __Yiota: has joined #ruby
[14:58:28] dviola: has joined #ruby
[14:58:59] taurgal: has joined #ruby
[14:59:04] claw: has joined #ruby
[15:01:19] mson: has joined #ruby
[15:03:55] rippa: has joined #ruby
[15:04:20] chouhoulis: has joined #ruby
[15:08:16] dionysus69: has joined #ruby
[15:11:30] astronavt: has joined #ruby
[15:12:20] oleo: has joined #ruby
[15:16:49] truenito1: has joined #ruby
[15:27:35] bladdezz: has left #ruby: ()
[15:28:06] bladdezz: has joined #ruby
[15:28:16] yxhuvud: has joined #ruby
[15:30:35] polishdub: has joined #ruby
[15:31:39] MrBusiness: has joined #ruby
[15:36:02] phaul: has joined #ruby
[15:38:42] aspiers: has joined #ruby
[15:40:23] t-recx: has joined #ruby
[15:40:57] [Butch]: has joined #ruby
[15:42:08] troys: has joined #ruby
[15:42:18] brent__: has joined #ruby
[15:42:45] cagomez: has joined #ruby
[15:43:06] cagomez: has joined #ruby
[15:43:38] abrcdbr: has joined #ruby
[15:43:52] ryandevilla: has joined #ruby
[15:44:24] brent__: has joined #ruby
[15:45:47] Salmonidae: leah2: there are multiple ways, the first would to avoid the shell (spawn with a certain signature/set of arguments) but if you find that too troublesome then there is Shellwords (require 'shellwords'), and Shellwords.shellescape() function.
[15:46:56] leah2: yeah that's what i wanted to avoid
[15:47:04] gusrub: has joined #ruby
[15:47:05] leah2: IO.popen with an array works fine, thanks
[15:49:07] truenito: has joined #ruby
[15:51:47] kristofferR: has joined #ruby
[15:52:36] rfshark: has left #ruby: ()
[15:53:13] hfp_work: has joined #ruby
[15:55:26] jackjackdripper: has joined #ruby
[15:55:29] claudiuinberlin: has joined #ruby
[15:58:34] jackjackdripper: has joined #ruby
[15:58:35] gusrub: has joined #ruby
[15:58:48] nacsurte: has joined #ruby
[15:58:49] AndBobsYourUncle: has joined #ruby
[15:59:29] AndBobsYourUncle: has joined #ruby
[16:00:01] charliesome: has joined #ruby
[16:00:23] ryandevilla: has joined #ruby
[16:00:26] evie_hammond: has joined #ruby
[16:02:57] pandaant: has joined #ruby
[16:08:34] __Yiota: has joined #ruby
[16:08:36] gusrub: has joined #ruby
[16:09:26] evie_hammond: has joined #ruby
[16:11:12] dionysus70: has joined #ruby
[16:14:21] mim1k: has joined #ruby
[16:16:14] moei: has joined #ruby
[16:16:50] havenwood: has joined #ruby
[16:16:50] havenwood: has joined #ruby
[16:17:14] ryandevilla: has joined #ruby
[16:18:36] jottr: has joined #ruby
[16:18:55] jottr: has joined #ruby
[16:18:58] FahmeF: has joined #ruby
[16:20:01] baroquebobcat: has joined #ruby
[16:21:47] cdg: has joined #ruby
[16:22:07] claudiuinberlin: has joined #ruby
[16:28:40] SeepingN: has joined #ruby
[16:29:48] marxarelli: has joined #ruby
[16:32:30] ornerymoose: has joined #ruby
[16:32:52] nacsurte_: has joined #ruby
[16:33:59] belmoussaoui: has joined #ruby
[16:34:46] quuxman: has joined #ruby
[16:37:48] orbyt_: has joined #ruby
[16:39:33] orbyt_: has joined #ruby
[16:39:38] wlycdgr1: has joined #ruby
[16:44:22] gusrub_: has joined #ruby
[16:47:19] quuxman: has joined #ruby
[16:47:20] qwedfg: has joined #ruby
[16:49:10] bronson: has joined #ruby
[16:51:25] dionysus69: has joined #ruby
[16:54:34] eroux: has joined #ruby
[16:56:02] cwailes: has joined #ruby
[16:57:00] cwailes: Does mkmf always look for the hardcoded /usr/share/include/ruby.h file, or does it respect the C_INCLUDE_PATH environmental variable?
[17:00:46] rindolf: has joined #ruby
[17:01:28] rindolf: Hi all! How can I fix this openssl error with the latest gem? http://paste.debian.net/985591/
[17:05:20] frozengeek: has joined #ruby
[17:05:24] cwailes: has joined #ruby
[17:06:44] howdoi: has joined #ruby
[17:09:55] cwailes: has joined #ruby
[17:13:37] gusrub: has joined #ruby
[17:15:16] ltem: has joined #ruby
[17:15:24] cwailes: has joined #ruby
[17:15:25] eckhardt: has joined #ruby
[17:16:38] AndBobsYourUncle: has joined #ruby
[17:17:44] selim: has joined #ruby
[17:19:27] cosmicz: has joined #ruby
[17:21:21] cdg: has joined #ruby
[17:21:44] tcopeland: rindolf: what ruby version is it?
[17:22:05] belmoussaoui: has joined #ruby
[17:22:09] savoir-faire: has joined #ruby
[17:22:22] bmurt: has joined #ruby
[17:22:30] r3QuiEm_cL: has joined #ruby
[17:22:54] rindolf: tcopeland: ruby-2.4.1-13.mga7
[17:23:09] cwailes: I'm trying to install Nokogiri using Bundle, but it is complaining about my ruby version (It wants >= 2.1). The ruby located in /usr/bin/ruby is version 2.0, but I also have another ruby located in /opt/rh/rh-ruby22/root/usr/bin, and that path is in my $PATH environment variable. It looks to me like Nokogiri is trying to use a hardcoded /usr/bin/ruby path. Does anyone know how to fix this issue?
[17:23:10] tcopeland: you could do sudo /usr/bin/ruby -ropenssl /usr/bin/gem install compass, but that doesn’t address whatever the underlying issue is
[17:24:32] Dimik: has joined #ruby
[17:24:55] cwailes: has joined #ruby
[17:27:27] quobo: has joined #ruby
[17:27:29] cwailes: Are other people getting disconnected repeatedly, or is that just me?
[17:29:40] elcontrastador: has joined #ruby
[17:33:45] baroquebobcat: has joined #ruby
[17:33:46] wlycdgr1: has joined #ruby
[17:34:00] whippythellama_: has joined #ruby
[17:34:42] whippythellama: has joined #ruby
[17:35:10] rindolf: tcopeland: I am getting the same error with this sudo command including after rebuilding the ruby rpm
[17:36:41] OhMyBrew: has joined #ruby
[17:36:58] cwailes: has left #ruby: ()
[17:37:03] tcopeland: rindolf: what does this display? sudo /usr/bin/ruby -ropenssl -e "puts OpenSSL::VERSION"
[17:37:44] tcopeland: I get 2.0.2, but I am on ruby 2.4.0p0
[17:37:48] rindolf: tcopeland: 2.0.3
[17:39:14] Rapture: has joined #ruby
[17:39:23] SegFaultAX: has joined #ruby
[17:42:42] tcopeland: I upgraded to the latest openssl gem just now, it is 2.0.5. it might be worth upgrading, although nothing in the changelog is really jumping out at me as being a fix for what you’re seeing
[17:47:59] rindolf: tcopeland: ah
[17:50:56] mson: has joined #ruby
[17:51:41] Cohedrin_: has joined #ruby
[17:52:16] orbyt_: has joined #ruby
[17:52:44] belmoussaoui: has joined #ruby
[17:52:51] cwailes: has joined #ruby
[17:53:06] cwailes: Bundle is finding the wrong version of Ruby. Does anyone know how it determines which Ruby to use?
[17:54:01] charliesome: has joined #ruby
[17:54:55] cwailes: has joined #ruby
[17:55:04] matthewd: cwailes: You want to use the `gem` that belongs to that version of ruby to install bundler, then make sure the resulting installed executable is the one that gets found on the path
[17:56:02] matthewd: cwailes: (and yes, you do seem to be disconnecting frequently)
[17:57:08] cwailes: matthewd: I apologise for that.
[17:57:20] abrcdbr_: has joined #ruby
[17:57:21] gusrub: has joined #ruby
[17:57:34] ldnunes: has joined #ruby
[17:58:01] matthewd: No worries, it's not frequent enough to be annoying.. just fyi
[18:00:23] tcopeland: cwailes: just a thought - I was disconnecting quite a bit until I noticed the “prevent computer from sleeping automatically when the display is off” checkbox in my mac’s “energy saver” preferences window
[18:00:29] kies: has joined #ruby
[18:00:58] cwailes: tcopeland: Thanks for the tip, but I don't think that's the issue here :-)
[18:03:56] lxsameer: has joined #ruby
[18:05:15] _sfiguser: has joined #ruby
[18:05:52] dviola: has joined #ruby
[18:09:38] mtkd: has joined #ruby
[18:10:15] rindolf: tcopeland: i fixed it by installing ruby-2.4.1 under a --prefix
[18:10:25] rindolf: tcopeland: it works fine there
[18:10:56] d10n-work: has joined #ruby
[18:12:33] cwailes: has joined #ruby
[18:15:25] fmccann: has joined #ruby
[18:15:50] cosmicz: has joined #ruby
[18:16:40] orbyt_: has joined #ruby
[18:16:59] ryandevilla: has joined #ruby
[18:17:04] cwailes: has joined #ruby
[18:17:39] cwailes: has left #ruby: ()
[18:21:04] frozengeek: has joined #ruby
[18:27:48] cdg: has joined #ruby
[18:27:55] wlycdgr1: has joined #ruby
[18:28:40] conta3: has joined #ruby
[18:28:55] elsevero: has joined #ruby
[18:31:49] baroquebobcat: has joined #ruby
[18:32:26] tAn: has joined #ruby
[18:33:01] TomyLobo: has joined #ruby
[18:41:13] jolamb: has joined #ruby
[18:44:36] jolamb: I have a bunch of label strings I need to parse that are in the form "phase-(optional)product-(optional string)1.(optional string)2.(optional string)3.(optional string)4", e.g. "targeted-5.4.1" or "completed-someproduct-x2.y5.r1" or "proposed-otherproduct-8.7.3.1"
[18:45:38] belmoussaoui: has joined #ruby
[18:45:45] jolamb: Currently these are being parsed into [phase, product, major, minor, patch, fixup] using a very complex regex and then slurping up the relevant data from $1 $2 $3 etc.
[18:45:51] ryandevilla: has joined #ruby
[18:46:31] jolamb: beyond using .match, is there a more correct way to parse out these kinds of almost-semantic-versioned strings?
[18:47:32] _sfiguser: has joined #ruby
[18:47:42] matthewd: jolamb: Seems too far away from a "regular-looking" version number to me
[18:48:45] matthewd: You might be able to mangle it into a Gem::Version, say.. but that doesn't gain you much... doubt it'd naturally sort the way you want it to, for example
[18:48:53] jolamb: matthewd: yeah, it's nasty, but I really think this is Just Plain Wrong: /^(\w+)-((\w*)-)*((?:\D*)?(\d+)(?:.(?:(?:\D*)?(\d+)))?(?:.(?:(?:\D*)?(\d+)))?(?:.(?:(?:\D*)?(\d+)))?)/
[18:49:20] matthewd: That does seem overcomplicated
[18:49:27] jolamb: matthewd: I'm not worried about making it an object so much as extracting the content in a more sane manner
[18:50:03] bronson: has joined #ruby
[18:50:26] jolamb: matthewd: yeah, there's some other stuff built into it, e.g. the version part always needs to match at least major.minor
[18:51:13] claudiuinberlin: has joined #ruby
[18:51:41] matthewd: I think I'd `/(?:(.*)-)?([^-]+)-([^-]+)$/`, then $3.scan(/([^0-9-]+)?([0-9]+)/)
[18:51:43] matthewd: .. or something like that
[18:52:08] cadillac_: has joined #ruby
[18:53:10] jolamb: matthewd: huh, I'd never seen .scan before
[18:53:55] matthewd: Oops, I had [^0-9-] where I meant [^0-9.]
[18:54:02] r3QuiEm_cL: has joined #ruby
[18:56:29] tAn: has joined #ruby
[18:59:01] wlycdgr1: has joined #ruby
[19:02:20] jolamb: matthewd: I'm actually throwing away the strings in front of the version numbers, so I think just .scan(/\d+/) will do what I want
[19:02:44] ShekharReddy: has joined #ruby
[19:07:20] matthewd: Ah, then yes :)
[19:08:50] maryo: has joined #ruby
[19:11:15] apeiros: jolamb: are the substrings never containing a dash? if so, just split by "-"
[19:11:51] jolamb: apeiros: I thought about that...
[19:11:56] cdg: has joined #ruby
[19:12:00] apeiros: phase, *rest, fixup = *string.split("-"); product, major, minor, patch = *rest
[19:12:14] ryandevilla: has joined #ruby
[19:13:16] jolamb: apeiros: gotcha.
[19:13:20] jolamb: I think I'm set now
[19:14:38] tAn: has joined #ruby
[19:15:11] iszak: has joined #ruby
[19:18:18] ledestin: has joined #ruby
[19:20:10] Mia: has joined #ruby
[19:20:11] Mia: has joined #ruby
[19:20:49] cdg: has joined #ruby
[19:24:08] zautomata: has joined #ruby
[19:26:10] cagomez: has joined #ruby
[19:26:28] gusrub: has joined #ruby
[19:29:10] Immune: has joined #ruby
[19:34:19] orbyt_: has joined #ruby
[19:39:50] claudiuinberlin: has joined #ruby
[19:39:56] Pisuke: has joined #ruby
[19:40:04] ryandevilla: has joined #ruby
[19:40:41] vondruch: has joined #ruby
[19:41:57] imode: has joined #ruby
[19:44:48] cosmicz: has joined #ruby
[19:46:10] vondruch: has joined #ruby
[19:47:31] hahuang65: has joined #ruby
[19:48:02] ur5us: has joined #ruby
[19:51:35] woodruffw: has joined #ruby
[19:51:35] woodruffw: has joined #ruby
[19:51:51] tAn: has joined #ruby
[19:52:51] baweaver: has joined #ruby
[19:53:05] wlycdgr1: has joined #ruby
[19:56:55] r3QuiEm_cL: has joined #ruby
[19:57:06] goyox86: has joined #ruby
[19:57:30] elcontrastador: has joined #ruby
[19:58:03] qwedfg: has joined #ruby
[20:00:27] brent__: has joined #ruby
[20:02:43] balazs_: has joined #ruby
[20:04:18] brent__: has joined #ruby
[20:07:02] workmad3: has joined #ruby
[20:09:00] frozengeek: has joined #ruby
[20:10:35] planigan: has joined #ruby
[20:13:14] fishcooker: has joined #ruby
[20:14:17] dionysus69: has joined #ruby
[20:15:30] MrBismuth: has joined #ruby
[20:16:41] danzilio_: has joined #ruby
[20:16:42] jimeh_: has joined #ruby
[20:16:58] solidsnack_: has joined #ruby
[20:17:09] harai_: has joined #ruby
[20:17:17] pizzaops_: has joined #ruby
[20:17:26] pwillard_: has joined #ruby
[20:17:29] rflot_: has joined #ruby
[20:17:35] stephenh_: has joined #ruby
[20:17:38] jxf_: has joined #ruby
[20:17:53] bove_: has joined #ruby
[20:18:10] cardoni_: has joined #ruby
[20:18:29] jenrzzz: has joined #ruby
[20:18:29] jenrzzz: has joined #ruby
[20:18:30] discopatrick_: has joined #ruby
[20:18:36] skmp_: has joined #ruby
[20:18:38] petems_: has joined #ruby
[20:18:48] justache_: has joined #ruby
[20:18:58] Muz_: has joined #ruby
[20:19:02] freezey: has joined #ruby
[20:19:04] Kuukunen-: has joined #ruby
[20:19:12] mcarmona: has joined #ruby
[20:19:19] mcarmona: Hey, guys. Which naming convention do you use for test files, and why? `file_spec.rb` or `file_test.rb`?
[20:19:34] ejnahc_: has joined #ruby
[20:19:39] gs: has joined #ruby
[20:19:40] Stock: has joined #ruby
[20:19:41] gs: has joined #ruby
[20:19:42] TvL: has joined #ruby
[20:19:49] jrgifford_: has joined #ruby
[20:20:06] Antiarc1: has joined #ruby
[20:20:09] SeepingN: deletemeasap.rb
[20:20:19] rikai: has joined #ruby
[20:20:20] segy: has joined #ruby
[20:20:26] SeepingN: 2 hours later when I have already forgotten about it, someone else may see it and do-the-needful
[20:20:48] manveru_: has joined #ruby
[20:22:00] havenwood: mcarmona: The latter is the Rails default, setup for Minitest.
[20:22:36] universa1: has joined #ruby
[20:22:38] gildo: has joined #ruby
[20:22:40] SuperChickeNES: has joined #ruby
[20:22:40] Liothen-: has joined #ruby
[20:22:41] twe4ked_: has joined #ruby
[20:22:43] lel-: has joined #ruby
[20:22:43] jinie_: has joined #ruby
[20:22:46] lex-: has joined #ruby
[20:22:46] cschneid_: has joined #ruby
[20:22:47] rideh-: has joined #ruby
[20:22:47] jnollette_: has joined #ruby
[20:22:51] dysfigur-: has joined #ruby
[20:22:52] omninonsense: has joined #ruby
[20:22:56] nchambers^: has joined #ruby
[20:22:57] jsrn_: has joined #ruby
[20:23:08] cdg: has joined #ruby
[20:23:21] sonne: has joined #ruby
[20:23:26] edwardly_: has joined #ruby
[20:23:26] edwardly_: has joined #ruby
[20:23:43] Armand: has joined #ruby
[20:24:31] bathtub_shark: has joined #ruby
[20:24:53] havenwood: mcarmona: You can call them specs or tests, whichever you like.
[20:25:29] mcarmona: All right, thank you.
[20:25:33] dionysus69: has joined #ruby
[20:25:45] mcarmona: I thought that there was a convention for it.
[20:25:48] havenwood: They have slightly different vocabularies, but they're interchangeable.
[20:26:28] havenwood: With Minitest you can mix and match the test and spec styles. Many folk do. So the line is really blurred between spec/tests or test/specs to the point it doesn't particularly matter.
[20:26:52] matthewd: I'd personally be surprised to see _spec used for minitest proper, just as I would be with _test used for rspec.. but yeah, minitest/spec hovers in a middle ground
[20:27:19] havenwood: matthewd: yeah, agreed - I take _test as a Minitest signal and _spec as RSpec
[20:27:30] matthewd: test/**/*_test.rb will behave better for rake test, I guess
[20:27:42] biox: has joined #ruby
[20:27:43] mcarmona: jeremyevans use _spec for Minitest
[20:27:48] mcarmona: Take that as an example.
[20:27:59] havenwood: mcarmona: yeah, Minitest supports both test and spec styles, or a mix thereof.
[20:28:27] havenwood: mcarmona: https://github.com/seattlerb/minitest#unit-tests
[20:28:38] thinkpad: has joined #ruby
[20:29:22] mcarmona: oh, yeah, I'm aware of the method naming convention, but I was asking about the file naming, but I now got it crystal clear
[20:29:43] orbyt_: has joined #ruby
[20:29:44] mcarmona: Actually the method naming is not a convention, is required...
[20:29:49] havenwood: >> "file_#{%w[spec test].sample}"
[20:29:50] ruby[bot]: havenwood: # => "file_spec" (https://eval.in/859630)
[20:30:09] arvindsaik: has joined #ruby
[20:31:14] KeyJoo: has joined #ruby
[20:31:35] JoL1hAHN: has joined #ruby
[20:31:56] Rutix: has joined #ruby
[20:31:56] Rutix: has joined #ruby
[20:32:04] kriskropd: has joined #ruby
[20:32:11] mcarmona: Thanks, havenwood!
[20:32:12] jyaworski: has joined #ruby
[20:32:24] Archrover: has joined #ruby
[20:32:36] BSAlb: has joined #ruby
[20:32:50] blznblzn2: has joined #ruby
[20:33:09] velu_aon[m]: has joined #ruby
[20:33:19] gusrub_: has joined #ruby
[20:33:35] aviraldg: has joined #ruby
[20:33:37] eckhardt: has joined #ruby
[20:33:47] kua[m]: has joined #ruby
[20:36:55] briggs: has joined #ruby
[20:39:18] varesa-: has joined #ruby
[20:39:41] tpendragon: has joined #ruby
[20:41:25] cagomez: has joined #ruby
[20:41:32] leah2: has joined #ruby
[20:45:14] r3QuiEm_cL: has joined #ruby
[20:46:24] lele: has joined #ruby
[20:47:35] nadir: has joined #ruby
[20:47:58] gusrub: has joined #ruby
[20:48:12] npgm: has joined #ruby
[20:48:15] __Yiota: has joined #ruby
[20:48:34] ur5us: has joined #ruby
[20:49:42] chouhoulis: has joined #ruby
[20:49:43] brent__: has joined #ruby
[20:49:46] workmad3: has joined #ruby
[20:51:17] brent__: has joined #ruby
[20:52:00] bronson: has joined #ruby
[20:52:41] rhyselsmore: has joined #ruby
[20:54:07] zacts: has joined #ruby
[20:55:08] charliesome: has joined #ruby
[20:55:58] elbuki: has joined #ruby
[20:56:57] cdg: has joined #ruby
[21:02:35] jenrzzz_: has joined #ruby
[21:03:32] _aeris_: has joined #ruby
[21:04:09] quobo: has joined #ruby
[21:08:11] cschneid: has joined #ruby
[21:12:10] jenrzzz: has joined #ruby
[21:12:10] jenrzzz: has joined #ruby
[21:19:49] ornerymoose: has joined #ruby
[21:21:09] Cohedrin_: has joined #ruby
[21:22:31] baroquebobcat: has joined #ruby
[21:22:36] mtkd: has joined #ruby
[21:23:24] gloscombe: has joined #ruby
[21:28:47] abrcdbr: has joined #ruby
[21:31:12] mim1k: has joined #ruby
[21:34:02] gloscombe: has joined #ruby
[21:35:02] wlycdgr1: has left #ruby: ("WeeChat 1.9")
[21:41:30] mochiyoda_: has joined #ruby
[21:42:06] baroquebobcat: has joined #ruby
[21:48:29] cpallares: has joined #ruby
[21:50:44] elbuki: has joined #ruby
[21:53:35] eckhardt: has joined #ruby
[21:54:29] gloscombe: has joined #ruby
[22:00:53] caffo: has joined #ruby
[22:01:36] chouhoulis: has joined #ruby
[22:06:52] alem0lars: has joined #ruby
[22:07:17] benlieb: has joined #ruby
[22:07:46] cschneid: has joined #ruby
[22:10:20] SeepingN: has joined #ruby
[22:10:33] _aeris_: has joined #ruby
[22:11:34] iszak: has joined #ruby
[22:11:34] iszak: has joined #ruby
[22:12:15] gusrub: has joined #ruby
[22:14:15] weaksauce: has joined #ruby
[22:14:18] daxroc: has joined #ruby
[22:14:35] chrisarcand: has joined #ruby
[22:14:39] koenrh: has joined #ruby
[22:15:16] Salmonidae: has joined #ruby
[22:15:17] Fenhl: has joined #ruby
[22:16:19] ggherdov: has joined #ruby
[22:17:05] rekkoha: has joined #ruby
[22:18:07] lexruee: has joined #ruby
[22:20:41] varesa: has joined #ruby
[22:21:38] runescape07rsps: has joined #ruby
[22:24:21] yorickpeterse: has joined #ruby
[22:27:54] phinxy: has joined #ruby
[22:29:39] phinxy: has left #ruby: ()
[22:29:43] alem0lars: has joined #ruby
[22:30:03] elbuki: has joined #ruby
[22:33:27] mikecmpbll: has joined #ruby
[22:34:15] rekkoha: has joined #ruby
[22:35:44] hahuang65: has joined #ruby
[22:38:36] tcopeland: has joined #ruby
[22:41:55] danielpclark: has joined #ruby
[22:42:28] droidburgundy: has joined #ruby
[22:44:16] gusrub: has joined #ruby
[22:44:36] QualityAddict: has joined #ruby
[22:46:59] orbyt_: has joined #ruby
[22:52:54] bronson: has joined #ruby
[22:55:46] s3nd1v0g1us: has joined #ruby
[23:00:51] fishcooker: has joined #ruby
[23:02:29] eckhardt: has joined #ruby
[23:02:34] orbyt_: has joined #ruby
[23:03:30] spheric: has joined #ruby
[23:06:33] gusrub: has joined #ruby
[23:08:17] Nicmavr: has joined #ruby
[23:09:58] benlieb: has joined #ruby
[23:10:06] goyox86: has joined #ruby
[23:10:38] frozengeek: has joined #ruby
[23:15:27] mtkd: has joined #ruby
[23:16:00] workmad3: has joined #ruby
[23:24:26] abrcdbr_: has joined #ruby
[23:25:02] goyox86: has joined #ruby
[23:28:49] mtkd: has joined #ruby
[23:29:14] jackjackdripper1: has joined #ruby
[23:31:44] mim1k: has joined #ruby
[23:34:33] pharma_joe: has joined #ruby
[23:36:24] connor_goodwolf: has joined #ruby
[23:39:09] jinie: has joined #ruby
[23:40:33] mtkd: has joined #ruby
[23:45:21] s00pcan: has joined #ruby
[23:45:50] cdg: has joined #ruby
[23:47:00] abrcdbr: has joined #ruby
[23:49:09] goyox86__: has joined #ruby
[23:51:48] justthisguy: has joined #ruby
[23:52:11] frozengeek: has joined #ruby
[23:53:12] whippythellama: has joined #ruby
[23:56:50] goyox86: has joined #ruby