« Back to channel list

#ruby - 03 February 2019

« Back 1 day Forward 1 day »
[00:06:45] blackmesa: sry did anyone write me back later ago?
[00:07:40] havenwood: blackmesa: https://freenode.irclog.whitequark.org/ruby/2019-02-02#23985352;
[00:09:28] Swyper: has joined #ruby
[00:11:11] blackmesa: thx havenwood and leftylink
[00:27:29] mostlybadfly: has joined #ruby
[00:28:29] tdy: has joined #ruby
[00:33:37] tdy: has joined #ruby
[00:43:17] robscomputer: has joined #ruby
[01:08:49] orbyt_: has joined #ruby
[01:14:14] laaron: has joined #ruby
[01:46:11] AJA4350: has joined #ruby
[01:47:25] robscomputer: has joined #ruby
[01:50:06] ellcs: has joined #ruby
[01:55:04] houhoulis: has joined #ruby
[02:01:26] laaron: has joined #ruby
[02:15:04] jmcgnh: has joined #ruby
[02:26:39] funnel: has joined #ruby
[02:32:03] rkazak: has joined #ruby
[03:11:46] Swyper: has joined #ruby
[03:16:27] jottr: has joined #ruby
[03:24:11] _whitelogger: has joined #ruby
[03:33:11] _whitelogger: has joined #ruby
[03:45:11] _whitelogger: has joined #ruby
[03:45:33] jgarcia: has joined #ruby
[03:57:00] orbyt_: has joined #ruby
[04:05:03] laaron: has joined #ruby
[04:09:00] braincrash: has joined #ruby
[04:09:10] havenwood: has joined #ruby
[04:16:32] laaron: has joined #ruby
[04:17:43] laaron: has joined #ruby
[04:26:50] MzrE: has joined #ruby
[04:31:23] Tempesta: has joined #ruby
[04:34:28] cnsvc: has joined #ruby
[04:40:08] Xiti: has joined #ruby
[04:56:41] Azure: has joined #ruby
[05:07:48] segy: has joined #ruby
[05:09:41] akem: has joined #ruby
[05:25:14] jottr: has joined #ruby
[05:30:01] segy: has joined #ruby
[05:40:50] orbyt_: has joined #ruby
[05:47:42] akem: has joined #ruby
[05:51:00] robscomputer: has joined #ruby
[05:54:11] _whitelogger: has joined #ruby
[05:57:42] akem: has joined #ruby
[06:02:56] marmotini_: has joined #ruby
[06:05:59] rippa: has joined #ruby
[06:33:11] _whitelogger: has joined #ruby
[06:54:02] alfiemax: has joined #ruby
[07:05:33] Nicmavr: has joined #ruby
[07:09:01] robscomputer: has joined #ruby
[07:09:17] marmotini_: has joined #ruby
[07:20:38] dellavg__: has joined #ruby
[07:22:06] marmotini_: has joined #ruby
[07:28:58] marmotini: has joined #ruby
[07:32:17] jottr: has joined #ruby
[08:07:35] Swyper: has joined #ruby
[08:19:00] vonfry: has joined #ruby
[08:36:15] mikecmpbll: has joined #ruby
[08:50:03] Swyper: has joined #ruby
[08:51:33] reber: has joined #ruby
[09:26:45] dellavg__: has joined #ruby
[09:27:51] catbusters: has joined #ruby
[09:30:38] jottr: has joined #ruby
[09:38:46] clemens3_: has joined #ruby
[09:42:05] blackmesa: has joined #ruby
[09:42:38] alfiemax: has joined #ruby
[09:42:45] nfk: has joined #ruby
[09:49:05] blackmesa: has joined #ruby
[09:52:00] al2o3-cr: &>> class NilClass def |(n) n % 2 == 0 ? ":)" : ":(" end; def coerce(n) [self, n] end end; 10.times.map { |n| n | () }
[09:52:01] rubydoc: # => [":)", ":(", ":)", ":(", ":)", ":(", ":)", ":(", ":)", ":("] (https://carc.in/#/r/65rt)
[09:52:15] al2o3-cr: morning peeps ;)
[09:53:14] obiwahn: has joined #ruby
[09:53:39] obiwahn: i am a user on a system and i would like to install something with rake
[09:54:08] obiwahn: i will not get root so how can i install something to my local directroy?
[09:55:15] obiwahn: i tried to install a single gem with `gem install -l ./path/to/file.gem`
[09:55:33] obiwahn: but it seems that that needs another gem that would be provided when calling rake
[09:56:00] elomatreb: There is the --user-install option for installing to your home directory instead of the global default
[09:56:20] al2o3-cr: obiwahn: gem i --user-install <gem>
[09:56:20] elomatreb: You may need to add something additional to your PATH though if you want to use executables installed by gem
[09:56:23] obiwahn: I have never coded in ruby so i know almost nothing about the eco-system. But I would like to try some software written in ruby
[09:56:55] obiwahn: al2o3-cr: is there some option for rake?
[09:57:01] obiwahn: i could not find it in the manpage
[09:58:32] obiwahn: shouln't it have something like --prefix
[10:00:51] elomatreb: rake usually doesn't install anything, it's a task runner system (rake = Ruby Make)
[10:01:59] yasumi2136: has joined #ruby
[10:17:03] ravenousmoose: has joined #ruby
[10:28:57] Fernando-Basso: has joined #ruby
[10:29:37] GodFather: has joined #ruby
[10:33:02] gix: has joined #ruby
[10:38:25] dellavg__: has joined #ruby
[10:41:07] kapil____: has joined #ruby
[10:49:02] clemens3: has joined #ruby
[11:01:57] ellcs: has joined #ruby
[11:22:55] roshanavand: has joined #ruby
[11:35:21] roshanavand: has joined #ruby
[11:41:39] lucasb: has joined #ruby
[11:42:00] jottr: has joined #ruby
[11:43:11] conta: has joined #ruby
[11:48:38] petems_: has joined #ruby
[12:14:18] roshanavand: has joined #ruby
[12:14:33] phaul: is it possible to use yard @!macro attach automatic expansion on DSL methods defined in a concern that has a nested module for class methods and the included hook extends with class methods?
[12:15:33] phaul: I create a quick gist to demonstrate what I want..
[12:23:06] phaul: https://gist.github.com/0497a95d058f3896cdeea2451f676ef6
[12:23:35] lxsameer: has joined #ruby
[12:24:59] phaul: now the expectation is to have blah automatically documented in X
[12:25:03] phaul: but it's not.
[12:33:38] Puffball: has joined #ruby
[12:40:41] Guest16678: has joined #ruby
[12:42:12] AJA4350: has joined #ruby
[12:47:24] manakanapa: has joined #ruby
[12:51:13] jottr: has joined #ruby
[13:02:19] ravenousmoose: has joined #ruby
[13:05:11] blackmesa: has joined #ruby
[13:08:53] phaul: https://github.com/lsegal/yard/issues/1019#issuecomment-241185927
[13:08:59] phaul: oh well. whatever
[13:16:07] phaul: FTR his suggestion worked on the gist.
[13:30:05] catbusters: has joined #ruby
[13:40:29] ravenousmoose: has joined #ruby
[13:42:02] marmotini_: has joined #ruby
[13:45:35] AJA4351: has joined #ruby
[13:48:30] Azure: has joined #ruby
[14:05:11] ua: has joined #ruby
[14:28:33] mostlybadfly: has joined #ruby
[14:42:55] conta: has joined #ruby
[14:54:52] AJA4351: has joined #ruby
[15:05:04] dellavg__: has joined #ruby
[15:35:34] Ai9zO5AP: has joined #ruby
[16:01:11] blackmesa: has joined #ruby
[16:02:33] roshanavand: has joined #ruby
[16:15:58] blackmesa1: has joined #ruby
[16:16:53] Dbugger: has joined #ruby
[16:18:23] DTZUZO: has joined #ruby
[17:10:12] blackmesa1: has joined #ruby
[17:12:03] al2o3-cr: &>> RubyVM.resolve_feature_path 'openssl'
[17:12:06] rubydoc: # => [:rb, "/usr/lib/ruby/2.6.0/openssl.rb"] (https://carc.in/#/r/65uc)
[17:12:25] al2o3-cr: nice feature.
[17:12:46] phaul: &ri resolve_feature_path
[17:12:46] rubydoc: Found no entry that matches method resolve_feature_path
[17:13:20] phaul: ACTION slaps rubydoc
[17:13:51] cthulchu: has joined #ruby
[17:18:02] phaul: although to be fair I can't find documentation by hand either
[17:21:46] alfiemax: has joined #ruby
[17:22:46] al2o3-cr: phaul: it's new in 2.6 so fair.
[17:29:59] dionysus70: has joined #ruby
[17:31:02] tdy: has joined #ruby
[17:38:43] za1b1tsu: has joined #ruby
[17:45:13] Nicmavr: has joined #ruby
[17:47:01] cow[moo]: has joined #ruby
[17:51:00] liya: has joined #ruby
[17:51:09] liya: what are some best resources to learn ruby
[17:54:17] tdy: has joined #ruby
[17:54:51] liya: tdy hello
[18:11:56] octos: has joined #ruby
[18:20:39] octos: has joined #ruby
[18:21:46] mzo: has joined #ruby
[18:22:04] orbyt_: has joined #ruby
[18:26:58] AJA4350: has joined #ruby
[18:29:23] houhoulis: has joined #ruby
[18:40:16] Renich: has joined #ruby
[18:44:35] \void: has joined #ruby
[18:45:18] Swyper: has joined #ruby
[18:46:23] za1b1tsu: has joined #ruby
[19:04:27] al2o3-cr: &ri Enumerator#= Enumerable#chain
[19:04:27] rubydoc: did not understand that, parser error @ char position 13
[19:04:34] al2o3-cr: &ri Enumerator#+
[19:04:34] rubydoc: https://ruby-doc.org/core-2.6/Enumerator.html#method-i-2B
[19:04:41] al2o3-cr: &ri Enumerable#chain
[19:04:41] rubydoc: https://ruby-doc.org/core-2.6/Enumerable.html#method-i-chain
[19:11:40] conta: has joined #ruby
[19:14:58] cd: has joined #ruby
[19:18:42] cnsvc: has joined #ruby
[19:21:49] AJA4350: has joined #ruby
[19:28:06] themsay: has joined #ruby
[19:40:33] ellcs: has joined #ruby
[19:47:29] za1b1tsu: has joined #ruby
[20:01:57] duderonomy: has joined #ruby
[20:25:21] hahuang6-: has joined #ruby
[20:34:10] d^sh: has joined #ruby
[20:35:53] carbone5: has joined #ruby
[20:38:12] Pinchiukas: has joined #ruby
[20:39:34] Pinchiukas: I'm a Ruby newbie and I just cannot understand how from a hash I can return the key which matches a given string.
[20:41:13] carbone5: has joined #ruby
[20:41:22] krawchyk: has joined #ruby
[20:41:36] al2o3-cr: Enumerable#detect Pinchiukas
[20:41:47] al2o3-cr: &ri Enumerable#detect Pinchiukas
[20:41:47] rubydoc: Pinchiukas: https://ruby-doc.org/core-2.6/Enumerable.html#method-i-detect
[20:43:48] al2o3-cr: Pinchiukas: example?
[20:45:13] Pinchiukas: This seems to only return one match.
[20:45:23] Pinchiukas: I have a hash with block devices and their properties.
[20:45:33] Pinchiukas: I want to return the key if it matches one of two strings.
[20:46:20] Pinchiukas: Though I only needed just the one so I guess this works. :)
[20:47:05] al2o3-cr: Pinchiukas: return multiple matches use #select
[20:49:10] al2o3-cr: Pinchiukas: example input/output?
[20:51:16] al2o3-cr: Pinchiukas: ah, Hash#invert
[20:51:27] uplime: has joined #ruby
[20:52:56] al2o3-cr: &>> {[1,2,3]=>"foo"}.invert["foo"]
[20:52:58] rubydoc: # => [1, 2, 3] (https://carc.in/#/r/65x0)
[20:53:45] al2o3-cr: Pinchiukas: inverts keys with values
[20:58:15] jokester: has joined #ruby
[21:02:48] robscomputer: has joined #ruby
[21:05:12] AJA4350: has joined #ruby
[21:05:25] uplime: has joined #ruby
[21:07:13] yxhuvud: has joined #ruby
[21:21:30] AJA4351: has joined #ruby
[21:24:27] roshanavand: has joined #ruby
[21:26:30] cnsvc: has joined #ruby
[21:36:31] armyriad: has joined #ruby
[21:50:50] xrexeon: has joined #ruby
[21:55:56] AJA4351: has joined #ruby
[22:15:41] wildermind: has joined #ruby
[22:30:23] AJA4351: has joined #ruby
[22:44:45] Eldritch: has joined #ruby
[22:54:46] carbone5: has joined #ruby
[23:01:11] ItsAVortex: has joined #ruby
[23:03:12] fuzzface: has joined #ruby
[23:03:16] AJA4351: has joined #ruby
[23:04:36] carbone5: has joined #ruby
[23:21:52] carbone5: has joined #ruby
[23:23:28] Swyper: has joined #ruby
[23:31:34] carbone5: has joined #ruby
[23:37:25] AJA4351: has joined #ruby
[23:49:23] roshanavand: has joined #ruby
[23:57:30] nowhere_man: has joined #ruby