« Back to channel list

#ruby - 16 March 2019

« Back 1 day Forward 1 day »
[00:01:40] miah: yes, but i avoid system ruby
[00:02:26] miah: reruning the xcode enable shouldnt make things any worse and it may resolve your issue
[00:03:55] physikoi: gonna try. brb and ty
[00:04:58] tdy1: has joined #ruby
[00:10:45] physikoi: sorry miah , what do you mean by "xcode enable"? I did do `xcode-select --install` but i just get a notice that CLT are installed. I also signed the license again. Oh, and I'm using latest version of Xcode.
[00:11:02] orbyt_: has joined #ruby
[00:11:35] miah: this seems familiar https://github.com/jekyll/jekyll/issues/7274
[00:11:48] jaddison: has joined #ruby
[00:12:16] miah: same error you're getting
[00:13:11] physikoi: ty reading it now.
[00:13:25] miah: fwiw i use chruby / ruby-install and avoid the system ruby because apple always messes it up in some way
[00:14:46] mangold: has joined #ruby
[00:15:22] physikoi: miah: i think i will do likewise rather than pulling my hair trying to get system version working.
[00:32:19] AJA4350: has joined #ruby
[00:33:25] physikoi: miah: back in business! I installed ruby2.6.x via macports, updated GEM_HOME, GEM_PATH to paths owned by me, and BAM
[00:33:31] physikoi: thanks a lot for helping me :)
[00:45:23] devil_tux: has joined #ruby
[00:51:22] dar123: has joined #ruby
[01:13:19] dogweather: has joined #ruby
[01:15:07] ellcs: has joined #ruby
[01:31:19] segy: has joined #ruby
[01:39:11] Swyper: has joined #ruby
[01:43:51] kapil____: has joined #ruby
[01:44:44] t0xik: has joined #ruby
[01:49:55] segy: has joined #ruby
[01:53:41] scientes: has joined #ruby
[01:53:50] scientes: how do i use ruby as sed?
[01:54:05] scientes: this post sucks https://nithinbekal.com/posts/ruby-sed-awk/
[01:54:54] uplime: read from stdin, do a regex replace on it, write to stdout?
[01:56:10] alanmaxwell: has joined #ruby
[01:56:52] scientes: meh, my real problem is dealing with the shell actually...
[01:56:55] scientes: ughh i hate the shell
[02:06:02] mangold: has joined #ruby
[02:11:58] physikoi: has joined #ruby
[02:14:50] devil_tux: has joined #ruby
[02:20:03] devil_tu1: has joined #ruby
[02:28:11] houhoulis: has joined #ruby
[02:38:55] xall: has joined #ruby
[02:46:33] hightower3: has joined #ruby
[02:53:43] bambanx: has joined #ruby
[02:54:35] apparition: has joined #ruby
[02:57:37] bmurt: has joined #ruby
[03:07:55] gambl0re: has joined #ruby
[03:12:10] physikoi: has joined #ruby
[03:20:25] Swyper: has joined #ruby
[03:46:52] jcalla: has joined #ruby
[03:59:58] tpanarch1st: has joined #ruby
[04:03:51] gambl0re: has left #ruby: ("Leaving")
[04:06:48] Swyper: has joined #ruby
[04:09:57] braincrash: has joined #ruby
[04:24:05] bjpenn: has joined #ruby
[04:24:27] Swyper: has joined #ruby
[04:27:41] kapil____: has joined #ruby
[04:34:59] mochiyoda: has joined #ruby
[04:41:56] j416: has joined #ruby
[04:54:57] j416: has joined #ruby
[05:12:42] dogweather: has joined #ruby
[05:18:09] mangold: has joined #ruby
[05:19:44] houhoulis: has joined #ruby
[05:31:29] xall: has joined #ruby
[05:36:20] laaron: has joined #ruby
[05:40:48] helpa-bot: has joined #ruby
[05:42:32] vcavallo: has joined #ruby
[05:43:18] helpa: has joined #ruby
[05:45:30] sauvin: has joined #ruby
[05:49:04] reber: has joined #ruby
[06:36:37] voidwatch: has joined #ruby
[06:44:56] evdubs: has joined #ruby
[06:50:20] Ai9zO5AP: has joined #ruby
[06:59:18] rippa: has joined #ruby
[07:16:45] wilbert: has joined #ruby
[07:23:32] uplime: has joined #ruby
[07:41:10] za1b1tsu: has joined #ruby
[07:45:50] xall: has joined #ruby
[07:46:17] hightower3: has joined #ruby
[08:05:54] xall: has joined #ruby
[08:12:07] sameerynho: has joined #ruby
[08:18:07] t0xik: has joined #ruby
[08:18:32] za1b1tsu: has joined #ruby
[08:20:55] bjpenn: has joined #ruby
[08:39:05] ur5us: has joined #ruby
[08:40:47] schleppel: has joined #ruby
[08:42:10] waheedi: has joined #ruby
[08:50:13] insu: has joined #ruby
[09:02:36] za1b1tsu: has joined #ruby
[09:08:39] nowhere_man: has joined #ruby
[09:09:07] Dbugger: has joined #ruby
[09:13:02] ellcs: has joined #ruby
[09:13:28] al2o3-cr: has joined #ruby
[09:18:40] waheedi: has joined #ruby
[09:20:04] rprimus: has joined #ruby
[09:21:55] Swyper: has joined #ruby
[09:22:29] Swyper: has joined #ruby
[09:31:52] dionysus69: has joined #ruby
[09:37:13] Fusl__: has joined #ruby
[09:49:09] a_le_x: has joined #ruby
[09:52:53] hphhphhphhphhph: has joined #ruby
[10:04:40] hightower3: has joined #ruby
[10:14:30] _joes_: has joined #ruby
[10:19:21] laaron: has joined #ruby
[10:33:46] dionysus69: has joined #ruby
[10:37:49] ravenousmoose: has joined #ruby
[10:40:59] Fernando-Basso: has joined #ruby
[10:58:38] Devalo: has joined #ruby
[11:07:30] Devalo: has joined #ruby
[11:10:48] gix: has joined #ruby
[11:13:59] Fernando-Basso: has joined #ruby
[11:31:51] kapil____: has joined #ruby
[11:37:11] dionysus69: has joined #ruby
[11:37:37] tens0r: has joined #ruby
[11:53:57] AJA4350: has joined #ruby
[12:01:38] Devalo: has joined #ruby
[12:11:04] ellcs: has joined #ruby
[12:11:13] jonian: has joined #ruby
[12:11:20] sameerynho: has left #ruby: ("WeeChat 2.3")
[12:44:11] nowhere_man: has joined #ruby
[12:44:28] dante: has joined #ruby
[12:52:11] dante: has joined #ruby
[13:07:03] conta: has joined #ruby
[13:17:49] Devalo: has joined #ruby
[13:37:25] lucasb: has joined #ruby
[13:53:54] shahshahshah: has joined #ruby
[13:55:27] Devalo: has joined #ruby
[14:02:55] Swyper: has joined #ruby
[14:15:48] mangold: has joined #ruby
[14:17:25] Devalo: has joined #ruby
[14:19:59] dar123: has joined #ruby
[14:27:36] Swyper: has joined #ruby
[14:40:56] aniarya82: has joined #ruby
[14:49:50] tdy1: has joined #ruby
[15:02:05] Fusl: has joined #ruby
[15:04:47] Nicmavr: has joined #ruby
[15:08:22] Devalo: has joined #ruby
[15:15:15] dviola: has joined #ruby
[15:24:47] za1b1tsu: has joined #ruby
[15:29:46] physikoi: has joined #ruby
[15:31:39] conta: has joined #ruby
[15:33:02] helpa: has joined #ruby
[15:33:37] phaul: you can use the "new" hash syntax
[15:33:58] phaul: {:a => 'xxx'} is the same as {a: 'xxx'}
[15:34:28] fyber: it'd still be "subject: params[:subject]"
[15:34:48] orbyt_: has joined #ruby
[15:34:49] fyber: which is little bit better, but I thought there might be a way to remove that repetitiveness entirely (since they're named the same)
[15:34:54] phaul: you could splat the hash, but that's not exactly the same
[15:35:04] phaul: Message.new(**params)
[15:35:19] c-c: make a function that takes p[:s], p[:b], p[:r]?
[15:35:38] c-c: - and calls message new with that
[15:36:12] c-c: also, could just change from hash to array for params
[15:36:54] apparition: has joined #ruby
[15:37:18] irdr: has joined #ruby
[15:37:39] phaul: &>> def f(a:, b:) 'hi'; end; h = {a: 1, b: 2}; f(**h)
[15:37:43] rubydoc: # => "hi" (https://carc.in/#/r/6icq)
[15:37:55] phaul: &>> def f(a:, b:) 'hi'; end; h = {a: 1, b: 2, c: 3}; f(**h)
[15:37:55] rubydoc: stderr: -e:2:in `f': unknown keyword: c (ArgumentError) (https://carc.in/#/r/6icr)
[15:38:22] c-c: Heh I often do weird stuff like a[9], a[0], a[1] and everything is an array and just have to ensure its all in the arr
[15:38:38] c-c: ACTION https://www.youtube.com/watch?v=sUtoxEZvPyY
[15:40:10] wilbert: has joined #ruby
[15:45:07] phaul: fyber: if you know that your hash exactly contains the args for the method than splat. ^, just be aware of that error I demonstrated
[15:45:48] bastilian: has joined #ruby
[15:46:55] c-c: &>> def f(a:, b:, q=[]) 'hi'; end; h = {a: 1, b: 2, c: 3}; f(**h)
[15:46:56] rubydoc: stderr: -e:2: syntax error, unexpected tIDENTIFIER (https://carc.in/#/r/6ict)
[15:48:58] phaul: that's just a wrong method definition.
[15:49:08] phaul: &>> def f(a:, b:, q=[]) 'hi'; end
[15:49:09] rubydoc: stderr: -e:2: syntax error, unexpected tIDENTIFIER (https://carc.in/#/r/6icu)
[15:49:38] Devalo: has joined #ruby
[15:50:49] fyber: phaul: yeah I figured, just going to stick with the "subject: params[:subject]" syntax
[15:52:39] c-c: I wonder if one could somehow do **h.to_a[0..2]
[15:52:53] c-c: - It works on the hash alone, but not inside a method call + splat
[15:55:46] c-c: duh, then the splat is not needed! *forehead slap*
[15:57:49] c-c: - but one has to see that the keys are inserted in the correct order, or some such obscurity 8P
[16:12:31] lele: has joined #ruby
[16:13:27] turt2live: has joined #ruby
[16:13:27] sepp2k: has joined #ruby
[16:13:28] supergeek[m]: has joined #ruby
[16:13:28] jonjitsu: has joined #ruby
[16:13:28] Turnikov[m]: has joined #ruby
[16:13:59] jcarl43: has joined #ruby
[16:17:08] Tau: has joined #ruby
[16:25:39] kaleido: has joined #ruby
[16:43:12] physikoi: has joined #ruby
[17:13:15] cd: has joined #ruby
[17:17:09] themsay: has joined #ruby
[17:24:57] houhoulis: has joined #ruby
[17:34:34] code_zombie: has joined #ruby
[17:35:42] physikoi: has joined #ruby
[17:36:42] conta: has joined #ruby
[17:38:15] Xiti: has joined #ruby
[17:39:28] Swyper: has joined #ruby
[17:45:51] dar123: has joined #ruby
[17:48:14] Swyper: has joined #ruby
[17:48:32] Swyper: has joined #ruby
[17:50:58] TomyLobo: has joined #ruby
[17:57:41] xrexeon: has joined #ruby
[17:57:50] tpanarch1st: has joined #ruby
[17:58:41] dionysus69: has joined #ruby
[18:01:42] clemens3_: has joined #ruby
[18:18:47] Devalo: has joined #ruby
[18:20:44] salasrod: has joined #ruby
[18:27:22] cow[moo]: has joined #ruby
[18:32:00] johnny56: has joined #ruby
[18:33:37] Dbugger: has joined #ruby
[18:36:57] Devalo: has joined #ruby
[18:40:17] dar123: has joined #ruby
[18:49:46] tdy1: has joined #ruby
[18:53:51] laaron: has joined #ruby
[19:00:13] physikoi: has joined #ruby
[19:00:38] ellcs: has joined #ruby
[19:06:10] nowhere_man: has joined #ruby
[19:08:56] laaron: has joined #ruby
[19:09:04] DTZUZO: has joined #ruby
[19:09:06] cow[moo]: has joined #ruby
[19:10:40] tpanarch1st: has joined #ruby
[19:13:21] cow[moo]: has joined #ruby
[19:14:45] Swyper: has joined #ruby
[19:17:23] nowhere_man: has joined #ruby
[19:17:34] dionysus69: has joined #ruby
[19:18:32] Swyper: has joined #ruby
[19:19:37] Renich: has joined #ruby
[19:20:37] zachk: has joined #ruby
[19:21:46] zachk: has joined #ruby
[19:23:52] SeepingN: has joined #ruby
[19:24:41] ellcs: has joined #ruby
[19:25:14] orbyt_: has joined #ruby
[19:31:04] ur5us: has joined #ruby
[19:34:33] dogweather: has joined #ruby
[19:39:27] terabytes: has joined #ruby
[19:45:25] terabytes: has joined #ruby
[19:53:55] duderonomy: has joined #ruby
[19:54:06] conta: has joined #ruby
[20:00:39] dionysus69: has joined #ruby
[20:08:20] cow[moo]: has joined #ruby
[20:10:21] ur5us_: has joined #ruby
[20:25:49] cow[moo]: has joined #ruby
[20:48:22] dviola: has joined #ruby
[20:50:29] cyberarm_: has joined #ruby
[20:53:15] dogweather: has joined #ruby
[21:02:26] za1b1tsu_: has joined #ruby
[21:02:50] ubuntuisloved: has joined #ruby
[21:08:06] orbyt_: has joined #ruby
[21:13:00] Devalo: has joined #ruby
[21:21:44] Stan: has joined #ruby
[21:22:31] Renich: has joined #ruby
[21:23:37] Renich: has joined #ruby
[21:25:12] Devalo: has joined #ruby
[21:42:53] leah2: has joined #ruby
[21:43:47] Swyper: has joined #ruby
[21:53:04] Tharbakim: has joined #ruby
[21:53:04] Tharbakim: has joined #ruby
[21:54:42] Swyper: has joined #ruby
[22:02:04] nowhere_man: has joined #ruby
[22:06:15] eckhardt: has joined #ruby
[22:12:38] Xiti: has joined #ruby
[22:18:15] AJA4350: has joined #ruby
[22:24:13] zachk: has joined #ruby
[22:25:40] zachk: has joined #ruby
[22:27:22] zachk: has joined #ruby
[22:40:40] orbyt_: has joined #ruby
[22:45:37] xrexeon: has joined #ruby
[22:47:13] Swyper: has joined #ruby
[22:54:20] physikoi: has joined #ruby
[23:09:39] leah2: has joined #ruby
[23:16:58] u1d0514e: has joined #ruby
[23:17:24] t0xik: has joined #ruby
[23:43:22] Swyper: has joined #ruby
[23:47:19] orbyt_: has joined #ruby
[23:47:57] Devalo: has joined #ruby