« Back to channel list

#ruby - 14 September 2017

« Back 1 day Forward 1 day »
[00:00:18] FahmeF: has joined #ruby
[00:00:55] nobody: has joined #ruby
[00:02:05] FahmeF: has joined #ruby
[00:03:57] FahmeF: has joined #ruby
[00:05:47] FahmeF: has joined #ruby
[00:06:17] cagomez: has joined #ruby
[00:07:35] FahmeF: has joined #ruby
[00:09:25] FahmeF: has joined #ruby
[00:11:12] FahmeF: has joined #ruby
[00:13:02] FahmeF: has joined #ruby
[00:14:55] FahmeF: has joined #ruby
[00:14:58] bronson: has joined #ruby
[00:16:43] FahmeF_: has joined #ruby
[00:18:36] FahmeF: has joined #ruby
[00:20:13] r3QuiEm_cL: has joined #ruby
[00:20:21] FahmeF: has joined #ruby
[00:20:25] chuck_: has joined #ruby
[00:22:13] FahmeF_: has joined #ruby
[00:23:34] BTRE: has joined #ruby
[00:24:00] FahmeF: has joined #ruby
[00:25:51] FahmeF: has joined #ruby
[00:27:39] FahmeF: has joined #ruby
[00:28:09] weaksauce: has joined #ruby
[00:28:16] nobody: has joined #ruby
[00:29:31] FahmeF: has joined #ruby
[00:31:21] FahmeF: has joined #ruby
[00:33:11] FahmeF: has joined #ruby
[00:34:59] FahmeF: has joined #ruby
[00:36:41] knight33: has joined #ruby
[00:36:48] FahmeF_: has joined #ruby
[00:38:34] FahmeF: has joined #ruby
[00:40:24] FahmeF_: has joined #ruby
[00:41:12] lxnr: has joined #ruby
[00:42:09] FahmeF: has joined #ruby
[00:44:05] FahmeF_: has joined #ruby
[00:45:52] FahmeF: has joined #ruby
[00:47:16] neo95: has joined #ruby
[00:47:44] FahmeF: has joined #ruby
[00:48:58] kn-928: has joined #ruby
[00:49:32] FahmeF: has joined #ruby
[00:51:21] FahmeF: has joined #ruby
[00:53:11] FahmeF_: has joined #ruby
[00:54:57] FahmeF: has joined #ruby
[00:56:22] r3QuiEm_cL: has joined #ruby
[00:56:46] FahmeF: has joined #ruby
[00:57:17] millerti: has joined #ruby
[00:58:39] FahmeF_: has joined #ruby
[00:59:45] mtkd: has joined #ruby
[01:00:02] gnufied: has joined #ruby
[01:00:27] FahmeF: has joined #ruby
[01:02:16] FahmeF_: has joined #ruby
[01:04:02] FahmeF: has joined #ruby
[01:05:53] FahmeF_: has joined #ruby
[01:07:47] FahmeF: has joined #ruby
[01:09:34] FahmeF_: has joined #ruby
[01:11:23] FahmeF: has joined #ruby
[01:13:13] FahmeF: has joined #ruby
[01:15:03] FahmeF_: has joined #ruby
[01:16:19] r3QuiEm_cL: has joined #ruby
[01:16:53] FahmeF: has joined #ruby
[01:18:42] FahmeF: has joined #ruby
[01:20:33] FahmeF_: has joined #ruby
[01:20:55] gizmore|2: has joined #ruby
[01:21:03] cagomez: has joined #ruby
[01:22:22] FahmeF: has joined #ruby
[01:23:10] __Yiota: has joined #ruby
[01:24:08] cschneid: has joined #ruby
[01:24:12] FahmeF: has joined #ruby
[01:25:58] FahmeF_: has joined #ruby
[01:27:51] FahmeF: has joined #ruby
[01:27:54] pskosinski: has joined #ruby
[01:28:25] nofxx: has joined #ruby
[01:29:37] FahmeF_: has joined #ruby
[01:31:26] FahmeF: has joined #ruby
[01:36:13] cagomez: has joined #ruby
[01:37:57] cdg: has joined #ruby
[01:40:02] pharma_joe: has joined #ruby
[01:46:04] gnufied: has joined #ruby
[01:47:27] mim1k: has joined #ruby
[01:48:27] Jameser: has joined #ruby
[01:52:19] PresidentBiscuit: has joined #ruby
[01:53:22] ForeignBiscuit: has joined #ruby
[01:58:14] michael2: has joined #ruby
[01:58:27] roonsauce: has joined #ruby
[01:58:52] Slinky_Pete: has joined #ruby
[01:59:01] roonsauce: has joined #ruby
[01:59:10] sneakernet: has joined #ruby
[02:01:55] arescorpio: has joined #ruby
[02:02:12] runescape07rsps: has joined #ruby
[02:05:06] pharma_joe: has joined #ruby
[02:12:54] benlieb: has joined #ruby
[02:15:46] guardianx: has joined #ruby
[02:15:53] bronson: has joined #ruby
[02:16:32] _p0p0pr37_: has joined #ruby
[02:17:17] Slinky_Pete: has joined #ruby
[02:27:04] _p0p0pr37: has joined #ruby
[02:27:54] orbyt_: has joined #ruby
[02:32:53] kies: has joined #ruby
[02:35:02] chouhoulis: has joined #ruby
[02:36:37] dionysus69: has joined #ruby
[02:38:41] lxnr_: has joined #ruby
[02:40:05] cdg: has joined #ruby
[02:47:20] d^sh: has joined #ruby
[02:53:09] roonsauce: has joined #ruby
[03:00:10] cadillac_: has joined #ruby
[03:07:41] kies: has joined #ruby
[03:10:50] Trynemjoel: has joined #ruby
[03:18:26] Slinky_Pete: has joined #ruby
[03:19:03] FahmeF: has joined #ruby
[03:19:19] pharma_joe: has joined #ruby
[03:26:23] uZiel: has joined #ruby
[03:30:54] gnufied: has joined #ruby
[03:31:33] gix: has joined #ruby
[03:32:02] harfangk: has joined #ruby
[03:36:41] griffindy: has joined #ruby
[03:47:06] Bock: has joined #ruby
[03:47:35] roonsauce: has joined #ruby
[03:47:55] mim1k: has joined #ruby
[03:50:21] mtkd: has joined #ruby
[03:50:37] mkali: has joined #ruby
[03:52:43] Kero: has joined #ruby
[03:54:56] Slinky_Pete: has joined #ruby
[03:59:34] BSaboia: has joined #ruby
[04:04:46] SteenJobs_: has joined #ruby
[04:14:03] pharma_joe: has joined #ruby
[04:15:59] pharma_joe: has joined #ruby
[04:17:35] bronson: has joined #ruby
[04:22:00] chuck_: has joined #ruby
[04:27:34] e2021: has joined #ruby
[04:28:57] ascarter: has joined #ruby
[04:30:27] nadir: has joined #ruby
[04:34:52] e2021: has joined #ruby
[04:35:42] Silthias1: has joined #ruby
[04:42:00] lxnr_: has joined #ruby
[04:42:52] kn-928: has joined #ruby
[04:46:20] mim1k: has joined #ruby
[04:47:26] anisha: has joined #ruby
[04:48:01] tor-browser: has joined #ruby
[04:48:29] RealMarc: has joined #ruby
[04:49:20] Slinky_Pete: has joined #ruby
[04:50:16] rabajaj: has joined #ruby
[04:51:51] dtcristo: has joined #ruby
[04:52:47] nekomune: has joined #ruby
[04:56:07] cdg: has joined #ruby
[04:59:31] ascarter: has joined #ruby
[04:59:35] jinie: has joined #ruby
[04:59:58] __Yiota: has joined #ruby
[05:06:17] tessi_zz: has joined #ruby
[05:12:27] anisha: has joined #ruby
[05:13:48] teatime: has left #ruby: ()
[05:15:02] mbr: has joined #ruby
[05:15:09] facest: has joined #ruby
[05:16:39] jenrzzz: has joined #ruby
[05:16:39] jenrzzz: has joined #ruby
[05:21:01] cagomez: has joined #ruby
[05:24:58] pharma_joe: has joined #ruby
[05:26:17] csaunders: has joined #ruby
[05:26:47] Muz: has joined #ruby
[05:27:31] DanKnox: has joined #ruby
[05:27:45] uZiel: has joined #ruby
[05:28:04] Puffball: has joined #ruby
[05:28:38] tsunamie: has joined #ruby
[05:29:18] vdl: has joined #ruby
[05:29:34] s00pcan: has joined #ruby
[05:30:04] cschneid: has joined #ruby
[05:30:16] howdoi: has joined #ruby
[05:33:12] jinie: has joined #ruby
[05:35:28] taurgal: has joined #ruby
[05:36:10] herbmillerjr: has joined #ruby
[05:42:44] FastJack: has joined #ruby
[05:43:01] lxnr_: has joined #ruby
[05:43:42] Slinky_Pete: has joined #ruby
[05:50:43] cschneid: has joined #ruby
[05:52:23] roonsauce: has joined #ruby
[05:52:53] frozengeek: has joined #ruby
[05:57:41] enterprisey: has joined #ruby
[05:58:22] qwedfg: has joined #ruby
[06:02:21] anas: has joined #ruby
[06:03:27] alex``: has joined #ruby
[06:07:06] high_fiver: has joined #ruby
[06:07:45] govg: has joined #ruby
[06:17:22] pharma_joe: has joined #ruby
[06:18:15] bronson: has joined #ruby
[06:19:43] Mortomes|Work: has joined #ruby
[06:25:39] anas: has joined #ruby
[06:28:13] naprimer2: has joined #ruby
[06:33:40] workmad3: has joined #ruby
[06:34:21] biberu: has joined #ruby
[06:36:11] conta: has joined #ruby
[06:39:03] ur5us: has joined #ruby
[06:43:50] lxnr_: has joined #ruby
[06:44:08] Bock: has joined #ruby
[06:46:46] roonsauce: has joined #ruby
[06:51:00] r7c: has joined #ruby
[06:51:48] kn-928: has joined #ruby
[06:52:03] ShalokShalom: has joined #ruby
[07:01:45] TomyWork: has joined #ruby
[07:02:24] cadillac_: has joined #ruby
[07:02:35] tAn: has joined #ruby
[07:03:44] workmad3: has joined #ruby
[07:11:11] harfangk: has joined #ruby
[07:17:03] flughafen_: has joined #ruby
[07:20:02] claudiuinberlin: has joined #ruby
[07:20:09] Dry_Lips: has joined #ruby
[07:20:10] Dry_Lips: has joined #ruby
[07:21:21] roshanavand: has joined #ruby
[07:26:48] cagomez: has joined #ruby
[07:28:54] mark_66: has joined #ruby
[07:29:46] frozengeek: has joined #ruby
[07:31:44] Slinky_Pete: has joined #ruby
[07:34:20] phaul: has joined #ruby
[07:37:18] dminuoso: havenwood: The more I discover fp things, the less transducers look interesting.
[07:37:39] guille-moe: has joined #ruby
[07:37:45] havenwood: dminuoso: hah
[07:38:28] burgestrand: has joined #ruby
[07:39:24] connor_goodwolf: has joined #ruby
[07:40:53] roonsauce: has joined #ruby
[07:45:04] frozengeek_: has joined #ruby
[07:45:05] lxnr_: has joined #ruby
[07:45:57] Sylario: has joined #ruby
[07:46:25] claudiuinberlin: has joined #ruby
[07:46:55] quobo: has joined #ruby
[07:47:32] MyMind: has joined #ruby
[07:48:20] roshanavand: has joined #ruby
[07:52:30] jaruga: has joined #ruby
[07:58:12] frozengeek: has joined #ruby
[07:59:52] InfinityFye: has joined #ruby
[08:01:54] mostlybadfly: has joined #ruby
[08:12:08] marr: has joined #ruby
[08:14:02] Siyfion: has joined #ruby
[08:14:20] ashZ_: has joined #ruby
[08:14:50] Jameser`: has joined #ruby
[08:17:29] lxnr_: has joined #ruby
[08:19:07] bvcosta: has joined #ruby
[08:19:10] bronson: has joined #ruby
[08:19:44] jenrzzz: has joined #ruby
[08:22:47] taurgal: has joined #ruby
[08:22:53] Silthias: has joined #ruby
[08:23:34] chuck_: has joined #ruby
[08:26:11] Guest80049: has joined #ruby
[08:26:11] Guest80049: has joined #ruby
[08:27:15] claudiuinberlin: has joined #ruby
[08:33:49] kn-928: has joined #ruby
[08:35:19] roonsauce: has joined #ruby
[08:35:52] lxsameer: has joined #ruby
[08:35:54] FastJack_: has joined #ruby
[08:37:33] mim1k: has joined #ruby
[08:40:47] dminuoso: havenwood: Next up is RX.
[08:40:51] dminuoso: That stuff looks pretty amazing.
[08:40:51] FastJack: has joined #ruby
[08:42:36] mim1k_: has joined #ruby
[08:46:30] phaul: has joined #ruby
[08:46:57] bvcosta: has joined #ruby
[08:56:34] phaul: has joined #ruby
[08:56:34] cdg: has joined #ruby
[08:57:18] tvw: has joined #ruby
[08:59:55] qwedfg: has joined #ruby
[09:15:45] t-recx: has joined #ruby
[09:18:11] lxnr_: has joined #ruby
[09:18:52] harfangk: has joined #ruby
[09:20:07] Slinky_Pete: has joined #ruby
[09:24:06] flips: has joined #ruby
[09:25:25] lxnr_: has joined #ruby
[09:28:03] snowy: has joined #ruby
[09:29:30] roonsauce: has joined #ruby
[09:29:53] jenrzzz: has joined #ruby
[09:30:05] alex``: has joined #ruby
[09:30:57] workmad3: has joined #ruby
[09:31:14] belmoussaoui_: has joined #ruby
[09:34:30] mkali: has joined #ruby
[09:38:29] FahmeF: has joined #ruby
[09:40:36] claudiuinberlin: has joined #ruby
[09:42:25] bruno-: has joined #ruby
[09:42:37] cagomez: has joined #ruby
[09:46:47] nickjj: has joined #ruby
[09:48:23] gigetoo: has joined #ruby
[09:58:28] cagomez: has joined #ruby
[09:59:29] ur5us: has joined #ruby
[10:01:10] Serpent7776: has joined #ruby
[10:05:28] nopolitica: has joined #ruby
[10:13:28] depesz: has joined #ruby
[10:13:44] depesz: hi. we have in ruby programs line like: "gem 'aws-sdk', '~> 2'"
[10:14:02] depesz: where can I find information on what is the syntax for version thing?
[10:14:46] ashZ_: has joined #ruby
[10:19:04] tbuehlmann: depesz: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
[10:20:28] bronson: has joined #ruby
[10:20:34] depesz: thanks a lot.
[10:22:38] roonsauce: has joined #ruby
[10:26:48] ShalokShalom_: has joined #ruby
[10:33:19] burgestrand: has joined #ruby
[10:34:10] jenrzzz: has joined #ruby
[10:37:45] bvcosta: has joined #ruby
[10:39:50] thinkpad: has joined #ruby
[10:41:16] bigkevmcd: has joined #ruby
[10:41:35] jgjorgji: has joined #ruby
[10:42:10] workmad3_: has joined #ruby
[10:44:33] A124: has joined #ruby
[10:44:52] kn-928: has joined #ruby
[10:54:56] Gadgetoid: has joined #ruby
[10:58:35] uZiel: has joined #ruby
[11:00:17] cagomez: has joined #ruby
[11:04:24] frozengeek_: has joined #ruby
[11:04:55] apparition: has joined #ruby
[11:07:58] bvcosta: has joined #ruby
[11:08:30] Slinky_Pete: has joined #ruby
[11:16:10] cagomez: has joined #ruby
[11:18:47] rabajaj: has joined #ruby
[11:20:56] skweek: has joined #ruby
[11:26:04] frozengeek_: has joined #ruby
[11:28:21] claudiuinberlin: has joined #ruby
[11:28:21] chuck_: has joined #ruby
[11:28:59] charliesome: has joined #ruby
[11:34:48] ldnunes: has joined #ruby
[11:35:10] matled: has joined #ruby
[11:35:36] GodFather: has joined #ruby
[11:36:24] soyokaze: has joined #ruby
[11:38:52] sekmo: has joined #ruby
[11:39:06] frozengeek_: has joined #ruby
[11:39:13] skweek: has joined #ruby
[11:39:17] burgestrand: has joined #ruby
[11:43:43] claudiuinberlin: has joined #ruby
[11:48:35] ur5us: has joined #ruby
[11:51:55] ShalokShalom: has joined #ruby
[12:02:33] synthroid: has joined #ruby
[12:02:35] Slinky_Pete: has joined #ruby
[12:03:37] Pisuke: has joined #ruby
[12:05:56] claudiuinberlin: has joined #ruby
[12:06:06] phaul: has joined #ruby
[12:06:32] snowy: has joined #ruby
[12:07:03] _aeris_: has joined #ruby
[12:08:29] gnufied: has joined #ruby
[12:08:32] gr33n7007h: has joined #ruby
[12:10:40] uZiel: has joined #ruby
[12:10:58] zeitchef: has joined #ruby
[12:11:31] guille-moe: has joined #ruby
[12:19:31] claudiuinberlin: has joined #ruby
[12:20:44] flughafen_: has joined #ruby
[12:21:42] bronson: has joined #ruby
[12:28:15] dminuoso: depesz: What brought you over to #ruby?
[12:28:21] dminuoso: Shouldn't you be fiddling with postgres? :-)
[12:28:35] FahmeF: has joined #ruby
[12:30:31] depesz: dminuoso: i am, and was, but needed informationa bout "gem" thing.
[12:31:22] depesz: i've seen ruby script, working in ruby 2.1, that has line "gem ....", despite not requiribng anything earlier, and I didn't know where to find information about it, some docs? what module? I couldn't find it in core
[12:35:57] jenrzzz: has joined #ruby
[12:35:57] jenrzzz: has joined #ruby
[12:36:23] millerti: has joined #ruby
[12:37:48] kn-928: has joined #ruby
[12:38:50] alex``: has joined #ruby
[12:38:58] ShalokShalom: has joined #ruby
[12:43:22] Salmonidae: hi depesz. it is a method implemented by rubygems. i think it ensures the version that is required is the version you specify, gem "foo", "= 1.0.0".
[12:43:22] ShalokShalom: has joined #ruby
[12:43:28] Salmonidae: require "foo"
[12:44:41] Salmonidae: try look here, rubygems/core_ext/kernel_gem.rb
[12:44:46] bmurt: has joined #ruby
[12:44:56] depesz: i now know - t_buehlmann helped me already (modified his nick to avoid unnessary notification for him)
[12:45:37] depesz: the thing is - how come it's available, if http://ruby-doc.org/core-2.1.6/ doesn't list anything with *gem* ?
[12:46:05] Salmonidae: because.. the rubygems authors are bad at documentation, imo
[12:46:13] Salmonidae: but. do you use pry?
[12:46:56] depesz: well, when I need to, yes.
[12:47:02] Salmonidae: show-source Kernel#gem .. show-doc Kernel#gem if you do. otherwise, puts method(:gem).source_location
[12:47:05] bvcosta: has joined #ruby
[12:47:09] depesz: as in: i don't use irb, instead i use pry, but not at the moment
[12:47:24] Salmonidae: then reference the file/lineno, for cases where there is no docs at all
[12:47:45] depesz: ah, thanks. helpful.
[12:48:42] Salmonidae: yes. the reason it might not show up in yard (no idea for ruby-doc, i avoid it), is here: https://github.com/rubygems/rubygems/blob/master/lib/rubygems/core_ext/kernel_gem.rb#L72
[12:48:54] Salmonidae: private visibility methods are usually hidden by default, in yard
[12:50:32] depesz: ok. for now my problem is solved. I just wish it was somehow easier to find, instead of asking in here.
[12:51:59] Salmonidae: yeah. it's tough sometimes.especially since ruby-doc.org ranks so highly in search engines. try ruby-doc.info instead. it can search by class/method name (in browser, not "cmd+f" filter as recommended by rdoc). and is just generally much better. so it might help a tiny bit more. anyway it wouldn't have helped in this case regardless :(
[12:53:19] Salmonidae: sorry. wrong link. that's http://www.rubydoc.info
[12:54:14] foxxx0: has joined #ruby
[12:54:50] pilne: has joined #ruby
[12:55:30] pilne: is this where i'd ask how to "update" the ruby-versions available to ruby-install? I've googled around and i can't get my ruby-install to show higher than 2.3.3
[12:55:39] knight33: has joined #ruby
[12:56:58] mkali: has joined #ruby
[12:58:26] __Yiota: has joined #ruby
[12:58:52] bruce_lee: has joined #ruby
[12:58:52] bruce_lee: has joined #ruby
[13:03:33] matthewd: rubygems is stdlib, not core... but since ruby 1.9, there's a hidden `require "rubygems"` that's executed by default (unless run with --disable=gems)
[13:04:21] Sembei: has joined #ruby
[13:05:05] Salmonidae: what a mess. http://ruby-doc.org/stdlib-2.4.1/libdoc/rubygems/rdoc/index.html
[13:05:14] Salmonidae: feels like looking at playdoh
[13:06:17] Salmonidae: somewhere in there, it might be documented
[13:06:19] Salmonidae: i cant find it
[13:06:24] Salmonidae: not even with the method filter
[13:07:20] matthewd: Scrolling to g for gem worked for me ¯\_(ツ)_/¯
[13:07:56] Salmonidae: yes. i think it has to >3 chars to apply the filter. not sure.
[13:08:16] matthewd: The filter applies to the module too
[13:08:37] Salmonidae: ah yeah. that works better.
[13:08:44] matthewd: So filtering for kernel has more hope, as we're looking for a method whose name appears in every namespace in the gem :P
[13:08:45] Salmonidae: but it's still terribe
[13:10:03] roshanavand: has joined #ruby
[13:10:27] matthewd: Everything's terrible... but at least it contains the current version, and uses a parser compatible with the source
[13:11:19] Salmonidae: in what sense is everything terrible? that website is low quality, and it's almost official for how often it is used, for a major programming language. this fact is lost on most rubyists.
[13:14:00] matthewd: It's used often because alternatives are also terrible. Thus: everything's terrible.
[13:14:51] Salmonidae: i think it's better to say, "nothing's perfect", and there's varying levels of good, with rdoc at the bottom and yard at the top. you may say its subjective, but look at the technical merits too
[13:15:01] cdg: has joined #ruby
[13:15:40] roshanavand: has joined #ruby
[13:18:23] matthewd: If someone would teach yard to parse rdoc inputs, I'd be a happy person. But right now, saying yard makes better docs is about as useful as saying that javadoc does: neither one can (or wants to) properly parse the source I want documented.
[13:18:49] Salmonidae: so. your issue is clearly that you do not like the @tags, right?
[13:19:18] matthewd: My issue is that I want documentation of ruby core and stdlib
[13:19:35] Salmonidae: yard does so. do you know that mruby also uses yard?
[13:19:53] matthewd: For Rails, yes, the problem is that people don't like @tags. I do, but people don't.
[13:20:26] Salmonidae: sure. personally, i think they're great and have proven to be able to document the "meta magic" of ruby.
[13:21:15] matthewd: Well, maybe I don't know what's going on, but http://www.rubydoc.info/stdlib/securerandom is observably less useful than https://ruby-doc.org/stdlib-2.4.1/libdoc/securerandom/rdoc/index.html
[13:21:43] cdg_: has joined #ruby
[13:22:08] Salmonidae: i agree with you, but click on 'methods', it's documented. the landing page is just not good.
[13:23:12] claudiuinberlin: has joined #ruby
[13:23:53] matthewd: Yeah, yard has much better powers with meta stuff. That's why I'd seriously like to see a yard that could fully parse rdoc hints: so we could use it on Rails, without having to sell people on a mass change of existing doc-comments, and just use @tags on things that rdoc currently can't handle.
[13:24:46] Salmonidae: sure. the thing is tho yard is designed to be pluggable, so it just requires someone to take the effort. that's why i think it is the best ruby doc tool.
[13:24:51] matthewd: Ah, that's fair. Because of the presentation, I went for SecureRandom module in yard, then couldn't see where to go.
[13:25:33] GodFather: has joined #ruby
[13:25:52] Salmonidae: i have seen yard plugins that can document AS::Concern and so on, properly, for example
[13:26:08] Salmonidae: actually think it was 'concerning'
[13:26:13] Salmonidae: documenting its meta
[13:27:16] matthewd: Yes. That sort of stuff's why I want it. But until it can learn :doc: and :nodoc:, I'll buy that it's likely the best tool to document one's gem, but not that it's the best tool to document someone else's rdoc-written gem.
[13:27:42] matthewd: (see the fact that it wasn't showing Kernel#gem)
[13:27:44] GodFather_: has joined #ruby
[13:27:58] Salmonidae: i think it could support it (i don't know for sure). i think the author of yard simply thinks both of those are a bad idea, for good reason actually. his argument makes sense.
[13:28:31] Salmonidae: his argument is that ruby visibility rules can apply
[13:28:37] Salmonidae: for is and isn't documentable
[13:28:56] matthewd: Well Kernel#gem seems a pretty good counterargument IMO, but that's beside the point
[13:28:56] Salmonidae: his opinionated but his tool is pluggable, so you can add your own opinions and take his away, to a certain extent.
[13:29:23] Salmonidae: sure, but actually solveable. you just need an appropiate .yardopts, probably.
[13:30:01] matthewd: Yep. But as long as the tool isn't so plugged, it's deliberately misdocumenting stdlib, so rubydoc.info is bad. Prettier, but bad.
[13:30:23] GodFather_: has joined #ruby
[13:30:23] matthewd: I can't do much about rubydoc.info, but having someone solve this for Rails is in fact on my todo list, FWIW
[13:31:25] govg: has joined #ruby
[13:32:01] Salmonidae: sure. nothing's perfect. i just think yard has the most potential
[13:32:07] matthewd: My challenge is somewhat larger, though: to manage a smooth transition, I think I need both a read-rdoc-formatting plugin, and an output formatter that'll match our current API site
[13:33:02] DLSteve: has joined #ruby
[13:33:18] Salmonidae: hm, not sure. i'm not familiar with rails that much. it supports templates though, although i have never seen one besides the default (rubydoc.info).
[13:34:02] matthewd: (which is itself not without its problems, though I think somewhat better than the rdoc default... I'd just rather not get an argument for a new engine get bogged down in a comparison of their outputs)
[13:34:40] Salmonidae: well. that's the headache of major project. have to walk slow, and listen to a lot of noise. so it can be hard to get things done.
[13:34:41] matthewd: Yeah, I haven't looked in real detail, but assume a new output template would be the relatively easier of the two tasks
[13:37:07] GodFather: has joined #ruby
[13:37:51] cout: has joined #ruby
[13:41:30] jgjorgji: has joined #ruby
[13:43:48] claudiuinberlin: has joined #ruby
[13:45:38] KevinSjoberg: has joined #ruby
[13:49:48] kn-928: has joined #ruby
[13:50:39] Slinky_Pete: has joined #ruby
[13:53:09] selim: has joined #ruby
[13:54:35] charliesome: has joined #ruby
[13:58:22] claudiuinberlin: has joined #ruby
[14:00:06] swills: has joined #ruby
[14:00:06] swills: has joined #ruby
[14:01:25] swills: has joined #ruby
[14:01:25] swills: has joined #ruby
[14:02:08] spt0: has joined #ruby
[14:02:11] chouhoulis: has joined #ruby
[14:04:07] dionysus69: has joined #ruby
[14:04:19] bvcosta: has joined #ruby
[14:04:20] NeverTired: has joined #ruby
[14:05:05] chouhoulis: has joined #ruby
[14:06:50] gnufied: has joined #ruby
[14:06:56] Ishido: has joined #ruby
[14:07:16] webnanners: has joined #ruby
[14:08:44] claudiuinberlin: has joined #ruby
[14:09:32] chuck_: has joined #ruby
[14:12:35] guardian: has joined #ruby
[14:13:44] anas: has joined #ruby
[14:18:37] _aeris_: has joined #ruby
[14:19:47] bvcosta: has joined #ruby
[14:20:04] bladdezz: has left #ruby: ()
[14:20:10] synthroid: has joined #ruby
[14:22:21] bronson: has joined #ruby
[14:23:12] uZiel: has joined #ruby
[14:24:13] Rapture: has joined #ruby
[14:25:21] FrostCandy: has joined #ruby
[14:25:27] ForeignBiscuit: has joined #ruby
[14:26:58] duckpuppy: has joined #ruby
[14:26:58] cagomez: has joined #ruby
[14:27:06] skweek: has joined #ruby
[14:27:16] roonsauce: has joined #ruby
[14:29:49] millerti: has joined #ruby
[14:31:00] GodFather: has joined #ruby
[14:32:06] balazs_: has joined #ruby
[14:34:09] __Yiota: has joined #ruby
[14:36:37] MarkBilk: has joined #ruby
[14:37:42] roonsauce: has joined #ruby
[14:37:50] jenrzzz: has joined #ruby
[14:37:50] jenrzzz: has joined #ruby
[14:39:23] snowy: has joined #ruby
[14:41:18] mtkd: has joined #ruby
[14:42:57] rgr: has joined #ruby
[14:42:58] bvcosta: has joined #ruby
[14:48:14] ledestin: has joined #ruby
[14:48:15] Archrover: has joined #ruby
[14:52:54] npgm: has joined #ruby
[14:53:56] alex``: has joined #ruby
[14:54:06] chouhoul_: has joined #ruby
[14:56:05] hogetaro: has joined #ruby
[14:57:17] claudiuinberlin: has joined #ruby
[15:00:41] rippa: has joined #ruby
[15:00:42] gusrub: has joined #ruby
[15:01:51] skweek: has joined #ruby
[15:03:22] mkali: has joined #ruby
[15:03:55] __Yiota: has joined #ruby
[15:04:09] amosbird: has joined #ruby
[15:04:19] amosbird: hi, how can I modify this to work
[15:04:21] amosbird: ruby -r json -e 'printf "{\"args\":%s, \"target_arg\":%s, \"protocol_version\":1}\n", JSON.generate(ARGV)' -- "$@", "$window" | socat - UNIX-CONNECT:"${socket[0]}" && exit 0
[15:05:37] bvcosta: has joined #ruby
[15:07:33] polishdub: has joined #ruby
[15:08:04] baroquebobcat: has joined #ruby
[15:09:24] bruno-: has joined #ruby
[15:09:45] jinie: has joined #ruby
[15:11:38] cschneid: has joined #ruby
[15:14:44] troys: has joined #ruby
[15:14:58] sepp2k: has joined #ruby
[15:15:16] Siyfion: has joined #ruby
[15:15:55] al2o3-cr: amosbird: what are you trying to do?
[15:21:39] claudiuinberlin: has joined #ruby
[15:24:00] jrafanie: has joined #ruby
[15:25:27] synthroid: has joined #ruby
[15:26:37] Dimik: has joined #ruby
[15:26:38] synthroid: has joined #ruby
[15:29:27] bmurt: has joined #ruby
[15:31:32] Dimik: has joined #ruby
[15:32:30] phaul: has joined #ruby
[15:32:40] dviola: has joined #ruby
[15:32:46] cagomez: has joined #ruby
[15:34:57] jrafanie_: has joined #ruby
[15:38:36] Slinky_Pete: has joined #ruby
[15:41:29] skweek: has joined #ruby
[15:43:15] Asher: has joined #ruby
[15:52:04] charliesome: has joined #ruby
[15:54:13] milardovich: has joined #ruby
[15:55:57] mustmodify_: has joined #ruby
[15:57:04] mustmodify_: I'm doing a half-hour presentation about Ruby to a developer meetup. I know a ton about Ruby. I love Ruby. But I'm having a hard time thinking of exactly how to express what I love about Ruby in small examples that will be digestable to non-Ruby devs. Any thoughts?
[15:57:58] TomyLobo: has joined #ruby
[15:59:03] duckpupp1: has joined #ruby
[16:00:53] knight33: has joined #ruby
[16:01:07] milardovich: has joined #ruby
[16:02:20] ascarter: has joined #ruby
[16:03:20] frozengeek_: has joined #ruby
[16:06:16] [Butch]: has joined #ruby
[16:08:36] KevinSjoberg: has joined #ruby
[16:09:07] millerti: has joined #ruby
[16:09:25] Asher: has joined #ruby
[16:09:56] claudiuinberlin: has joined #ruby
[16:11:16] duckpuppy: has joined #ruby
[16:11:22] ChanServ: +o havenwood
[16:12:31] ChanServ: -o havenwood
[16:12:40] frozengeek: has joined #ruby
[16:15:05] roonsauce: has joined #ruby
[16:17:08] duckpuppy: has joined #ruby
[16:19:14] duckpuppy: has joined #ruby
[16:19:48] roonsauce: has joined #ruby
[16:20:33] synthroid: has joined #ruby
[16:20:38] qwedfg: has joined #ruby
[16:21:34] mustmodify_: has left #ruby: ()
[16:21:35] orbyt_: has joined #ruby
[16:21:53] duckpuppy: has joined #ruby
[16:23:34] bronson: has joined #ruby
[16:24:36] havenwood: RVM, ruby-build and ruby-install are all updated for Ruby 2.4.2, 2.3.5 and 2.2.8.
[16:28:47] duckpuppy: has joined #ruby
[16:29:00] bmurt: has joined #ruby
[16:29:54] duckpuppy: has joined #ruby
[16:31:12] KevinSjoberg: has joined #ruby
[16:31:46] ascarter: has joined #ruby
[16:31:55] duckpuppy: has joined #ruby
[16:33:18] Slinky_Pete: has joined #ruby
[16:34:14] workmad3: has joined #ruby
[16:34:43] skweek: has joined #ruby
[16:35:52] KevinSjoberg: has joined #ruby
[16:36:07] chuck_: has joined #ruby
[16:39:26] bvcosta: has joined #ruby
[16:39:46] jenrzzz: has joined #ruby
[16:39:46] jenrzzz: has joined #ruby
[16:40:37] frozengeek: has joined #ruby
[16:41:25] __Yiota: has joined #ruby
[16:42:05] r3QuiEm_cL: has joined #ruby
[16:42:54] banko: has joined #ruby
[16:46:20] TchanZ: has joined #ruby
[16:46:46] mostlybadfly: has joined #ruby
[16:47:20] bvcosta: has joined #ruby
[16:48:18] KevinSjoberg: has joined #ruby
[16:48:40] bruno-: has joined #ruby
[16:55:06] jenrzzz: has joined #ruby
[16:55:22] hahuang65: has joined #ruby
[16:56:25] KevinSjoberg: has joined #ruby
[16:56:53] justthisguy: has joined #ruby
[16:56:54] orbyt_: Why does 'Hello \n\n' not work, but "Hello \n\n" does? (Notice the double quotes)
[16:57:57] orbyt_: I guess that's just the lang design?
[16:59:46] zacts: has joined #ruby
[17:02:14] jrafanie: has joined #ruby
[17:02:55] cjs226: has joined #ruby
[17:03:37] SeepingN: has joined #ruby
[17:04:45] chouhoulis: has joined #ruby
[17:04:59] baroquebobcat: has joined #ruby
[17:05:09] madnessless: has joined #ruby
[17:05:34] bronson: has joined #ruby
[17:05:42] jamiejackson: has joined #ruby
[17:06:30] jamiejackson: has joined #ruby
[17:12:22] frozengeek_: has joined #ruby
[17:14:57] jrafanie: has joined #ruby
[17:15:32] quobo: has joined #ruby
[17:18:13] ShalokShalom: has joined #ruby
[17:18:38] banisterfiend: has joined #ruby
[17:18:46] jamesaxl: has joined #ruby
[17:20:24] bvcosta: has joined #ruby
[17:20:43] eckhardt: has joined #ruby
[17:23:39] gusrub: has joined #ruby
[17:24:13] high_fiver: has joined #ruby
[17:26:17] oleo: has joined #ruby
[17:27:22] Slinky_Pete: has joined #ruby
[17:28:48] dionysus69: has joined #ruby
[17:30:27] frozengeek_: has joined #ruby
[17:32:01] AgentVenom: has joined #ruby
[17:34:09] kies: has joined #ruby
[17:35:02] mtkd: has joined #ruby
[17:36:19] AgentVenom: has joined #ruby
[17:37:40] AgentVenom: has joined #ruby
[17:38:49] rabajaj: has joined #ruby
[17:38:53] kn-928: has joined #ruby
[17:39:33] baweaver: orbyt_: single quotes escape special characters
[17:39:41] baweaver: same reason single quote interpolation doesn't work
[17:39:59] orbyt_: I assume you mean *don't* escape
[17:40:00] baweaver: It works the same in several languages.
[17:40:26] lxsameer: has joined #ruby
[17:40:36] baweaver: Did I say it backwards?
[17:40:38] KevinSjoberg: has joined #ruby
[17:40:45] baweaver: ACTION drinks more of his coffee and tries to wake up
[17:41:05] orbyt_: I..think? "\n" works, '\n' is interpreted literally..
[17:41:09] baweaver: rephrase: Single quotes present the literal string
[17:41:31] orbyt_: Or maybe I'm the one that needs more coffee....
[17:41:33] orbyt_: Regardless, I get what you're saying
[17:41:48] frozengeek_: has joined #ruby
[17:42:22] konsolebox: has joined #ruby
[17:42:26] chuck_: has joined #ruby
[17:43:54] Slinky_Pete: has joined #ruby
[17:45:34] TchanZ: has joined #ruby
[17:45:54] TchanZ: has left #ruby: ()
[17:46:53] roonsauce: has joined #ruby
[17:46:53] _aeris_: has joined #ruby
[17:53:51] dionysus69: has joined #ruby
[17:55:20] lxsameer: has joined #ruby
[17:56:03] Tempesta: has joined #ruby
[17:57:05] orbyt_: has joined #ruby
[18:01:53] Asher: has joined #ruby
[18:03:31] Asher: has joined #ruby
[18:06:48] perniciouscaffei: has joined #ruby
[18:10:46] baroquebobcat: has joined #ruby
[18:12:33] GodFather_: has joined #ruby
[18:12:59] jrafanie: has joined #ruby
[18:13:08] gnufied: has joined #ruby
[18:18:16] oleo: has joined #ruby
[18:19:07] baroquebobcat: has joined #ruby
[18:19:51] def_jam: has joined #ruby
[18:20:44] Siyfion: has joined #ruby
[18:21:25] bmurt: has joined #ruby
[18:22:24] uZiel: has joined #ruby
[18:23:04] cdg: has joined #ruby
[18:23:10] rgr: has joined #ruby
[18:27:24] baroquebobcat_: has joined #ruby
[18:29:30] yuppie: has joined #ruby
[18:29:36] yuppie: where is matz
[18:29:39] Dimik: has joined #ruby
[18:30:14] chuck_: has joined #ruby
[18:30:38] dminuoso: yuppie, heya you wont find him in here.
[18:30:45] yuppie: why's that?
[18:30:59] dminuoso: yuppie, for one his English sucks
[18:31:01] roshanavand: has joined #ruby
[18:31:03] yuppie: also, im very new to ruby
[18:31:06] yuppie: OOP vs. ???
[18:31:20] ascarter: has joined #ruby
[18:31:37] baroquebobcat_: has joined #ruby
[18:34:44] jrafanie: has joined #ruby
[18:35:25] chouhoulis: has joined #ruby
[18:35:46] baroquebobcat_: has joined #ruby
[18:38:31] cdg_: has joined #ruby
[18:38:57] imode: has joined #ruby
[18:40:12] cdg__: has joined #ruby
[18:41:17] jrafanie: has joined #ruby
[18:44:28] thuryn: has joined #ruby
[18:44:39] thuryn: if i do this, will it create an infinite loop?
[18:44:46] kn-928: has joined #ruby
[18:45:19] thuryn: my_string = 'this\r\n and that\r\n'.gsub(/\//, '//')
[18:45:33] al2o3-cr: has joined #ruby
[18:45:40] thuryn: my_string = 'this\r\n and that\r\n'.gsub(/\//, '\\') # this rather, making each \ into \\
[18:46:44] ruby[bot]: Why don't you try it and see for yourself?
[18:47:11] KevinSjoberg: has joined #ruby
[18:47:24] frozengeek_: has joined #ruby
[18:48:54] shwouchk: has joined #ruby
[18:49:20] belmoussaoui_: has joined #ruby
[18:50:32] jolamb: has joined #ruby
[18:54:02] thuryn: it doesn't, but the number of '\\' you have to have in the replacement part is mind-bending.
[18:55:03] dminuoso: thuryn, thats because \ is an escape character in gsub itself
[18:55:13] dminuoso: thuryn, its used for things like \1 or \&
[18:55:31] dminuoso: so the "real single" backslash is \\
[18:55:43] thuryn: not in practice.
[18:56:02] chuck_: has left #ruby: ()
[18:56:04] thuryn: to turn a single \ into \\, it took this: my_string.gsub(/\\/,'\\\\\\')
[18:56:14] thuryn: SIX backslashes, not four.
[18:56:47] thuryn: 8 backslashes has identical results. TEN backslashes results in \ becoming \\\
[18:56:57] thuryn: it's WEIRD i tell ya
[18:57:01] dminuoso: thuryn, that's because a "real single" backslash serves as a different escape char on its own
[18:57:40] vivus: has joined #ruby
[18:57:41] benlieb: has joined #ruby
[18:58:02] gusrub: has joined #ruby
[18:58:18] thuryn: that doesn't explain why the first "\\" seems to not do anything, but the after that, "\\\\" becomes "\" in the final form.
[18:58:19] matthewd: '\\' is one slash in a string; '\\\\' is one slash in a replacement, because of what dminuoso said
[18:58:28] vivus: Hello all. If I have a ruby/rails project that has a Procfile and other (what I would assume are setup/config files), how would I go about executing/running such a setup?
[18:58:32] thuryn: so where does the final \\ go?
[18:59:00] tAn: has joined #ruby
[18:59:01] matthewd: You need more than four because you want more than one slash in your result
[18:59:12] baroquebobcat: has joined #ruby
[18:59:25] matthewd: ?rails vivus
[18:59:25] ruby[bot]: vivus: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[18:59:33] matthewd: vivus: But you probably want Foreman
[18:59:54] vivus: matthewd: I want to build this project locally: https://github.com/veganstraightedge/h-card-as-a-service
[19:00:16] milardovich: has joined #ruby
[19:00:38] havenwood: vivus: You can just run: bundle exec puma -C config/puma.rb
[19:01:04] havenwood: vivus: Or: bin/rails s
[19:01:09] thuryn: why does it take SIX backslashes to get TWO in the final result, instead of eight?
[19:01:20] thuryn: it's the odd number that makes no sense
[19:01:34] havenwood: vivus: Or for that matter, just: rackup
[19:01:47] havenwood: vivus: If you wanted, you could also run it locally with heroku: heroku local
[19:01:54] matthewd: thuryn: Because a slash with nothing after it has nothing better to do than be interpreted as a literal
[19:01:59] thuryn: unless gsub is taking a single escaped backslash at the end of its input as a literal backslash
[19:02:04] thuryn: yeah that
[19:02:10] havenwood: vivus: https://github.com/ddollar/foreman
[19:02:13] vivus: havenwood: which method would you recommend?
[19:02:21] havenwood: vivus: rails s
[19:02:35] vivus: havenwood: so I need to have rails installed first?
[19:02:41] tvw: has joined #ruby
[19:02:42] matthewd: vivus: bundle install
[19:02:44] havenwood: The Procfile is uninteresting and only runs the Rails server anyways.
[19:02:50] havenwood: vivus: gem install bundler && bundle
[19:02:51] raynold: has joined #ruby
[19:03:05] havenwood: (This particular Procfile.
[19:03:09] matthewd: And you need ruby installed before that ;)
[19:03:17] uZiel: has joined #ruby
[19:03:42] synthroid: has joined #ruby
[19:03:42] minimalism: has joined #ruby
[19:03:51] dminuoso: thuryn, just write it out in a normal string, and then double the amount of slashes for usage on the gsub RHS. ;-)
[19:03:52] vivus: installed that with the PPA (it looks like it requires ruby > 2.3
[19:04:07] havenwood: Yup, need a modern Ruby installed.
[19:04:26] havenwood: vivus: What OS/distro are you on?
[19:04:38] vivus: LXC > 14.04 ubuntu containers
[19:04:40] cadillac_: has joined #ruby
[19:04:44] dminuoso: thuryn, i.e. no matter how you write it in the normal string, if you mechanically replace \ for \\ you obtain the same thing for gsub RHS
[19:05:00] vivus: will 2.3.1 suffice or should I get the latest 2.x release?
[19:05:33] havenwood: vivus: Brightbox maintains up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
[19:05:34] havenwood: vivus: 2.4.2 or 2.3.5 are both fine.
[19:05:58] havenwood: vivus: Or here's a tutorial for installing ruby-install and chruby, if you want more options: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you
[19:06:20] vivus: ruby 2.3.4p301 (2017-03-30 revision 58214)
[19:06:51] havenwood: vivus: 2.3.5 came out today, so that'll probably have to do for the moment.
[19:06:54] vivus: looks okay I guess? I know that ruby isn't critical for containers, so there would be no conflicts with any system-ruby (although none is present)
[19:07:11] vivus: s/containers/ubuntu-OS
[19:07:33] havenwood: vivus: Ruby version managers and Brightbox packages play nicely with system Ruby anyways.
[19:14:24] phaul: has joined #ruby
[19:14:55] jrafanie: has joined #ruby
[19:16:00] claudiuinberlin: has joined #ruby
[19:21:39] sameerynho: has joined #ruby
[19:23:13] knight33: has joined #ruby
[19:23:15] Slinky_Pete: has joined #ruby
[19:25:07] rawste: has joined #ruby
[19:28:11] jrafanie_: has joined #ruby
[19:30:00] Dimik: has joined #ruby
[19:41:54] milardovich: has joined #ruby
[19:42:12] orbyt_: has joined #ruby
[19:47:44] dionysus69: has joined #ruby
[19:52:30] gr33n7007h: has joined #ruby
[19:52:56] yqt: has joined #ruby
[19:53:10] ozcanesen: has joined #ruby
[19:53:55] jenrzzz: has joined #ruby
[19:53:55] jenrzzz: has joined #ruby
[19:55:40] __Yiota: has joined #ruby
[19:56:53] zeitchef: has joined #ruby
[20:03:33] claudiuinberlin: has joined #ruby
[20:03:51] benlieb: has joined #ruby
[20:04:03] ledestin: has joined #ruby
[20:08:10] oleo: has joined #ruby
[20:08:34] Slinky_Pete: has joined #ruby
[20:10:41] synthroid: has joined #ruby
[20:13:20] jrafanie: has joined #ruby
[20:13:57] knight33: has joined #ruby
[20:18:14] cdg: has joined #ruby
[20:20:53] jenrzzz: has joined #ruby
[20:22:21] duckpuppy: has joined #ruby
[20:23:03] claudiuinberlin: has joined #ruby
[20:24:48] cdg: has joined #ruby
[20:26:20] ur5us: has joined #ruby
[20:27:25] duckpuppy: has joined #ruby
[20:30:11] Dimik: has joined #ruby
[20:30:11] gusrub: has joined #ruby
[20:31:28] GodFather_: has joined #ruby
[20:34:16] eckhardt: has joined #ruby
[20:34:32] baroquebobcat: has joined #ruby
[20:35:21] duckpuppy: has joined #ruby
[20:36:11] conta1: has joined #ruby
[20:39:58] blindMoe: has joined #ruby
[20:45:23] zeitchef: has joined #ruby
[20:47:46] burgestrand: has joined #ruby
[20:48:24] LastWhisper____: has joined #ruby
[20:51:19] eputnam: has joined #ruby
[20:52:56] ascarter: has joined #ruby
[20:58:29] benlieb: has joined #ruby
[21:07:45] bronson: has joined #ruby
[21:13:05] zapata: has joined #ruby
[21:15:34] enterprisey: has joined #ruby
[21:16:37] preyalone: has joined #ruby
[21:19:23] MyMind: has joined #ruby
[21:20:00] orbyt_: has joined #ruby
[21:24:53] tfitts: has joined #ruby
[21:29:24] wald0: has joined #ruby
[21:30:07] goyox86: has joined #ruby
[21:30:22] Dimik: has joined #ruby
[21:33:50] millerti: has joined #ruby
[21:33:59] Guest85415: has joined #ruby
[21:34:53] phinxy: has joined #ruby
[21:36:04] GodFather_: has joined #ruby
[21:36:19] phinxy: has left #ruby: ()
[21:38:39] GodFather_: has joined #ruby
[21:40:03] goyox86: has joined #ruby
[21:40:37] noobineer: has joined #ruby
[21:40:42] mim1k: has joined #ruby
[21:46:03] dviola: has joined #ruby
[21:48:42] TomyLobo: has joined #ruby
[21:50:20] benlieb: has joined #ruby
[21:50:34] twillkens: has joined #ruby
[21:55:25] orbyt_: has joined #ruby
[22:01:51] gusrub: has joined #ruby
[22:02:26] charliesome: has joined #ruby
[22:02:51] imode: has joined #ruby
[22:06:35] __Yiota: has joined #ruby
[22:07:13] iszak: has joined #ruby
[22:07:14] iszak: has joined #ruby
[22:08:54] roonsauce: has joined #ruby
[22:10:54] r3QuiEm_cL: has joined #ruby
[22:19:11] quuxman: If "dict = {a: 1, b: 2}; foo(dict)" is the same as "foo(a:1, b:2)" how do I pass dict to foo as one argument?
[22:21:20] gusrub: has joined #ruby
[22:21:28] ozcanesen: has joined #ruby
[22:22:40] s3nd1v0g1us: has joined #ruby
[22:24:23] goyox86: has left #ruby: ()
[22:24:51] __Yiota: has joined #ruby
[22:26:35] havenwood: quuxman: In both your examples there's a lone hash as the sole argument. (Presuming the latter is a bare Hash and not optional keyword arguments, which it is also valid syntax for.)
[22:26:58] goyox86_: has joined #ruby
[22:31:24] nofxx: has joined #ruby
[22:33:22] s3nd1v0g1us: has joined #ruby
[22:33:58] enterprisey: has joined #ruby
[22:34:18] selim: has joined #ruby
[22:34:42] chouhoul_: has joined #ruby
[22:34:47] s3nd1v0g1us: has joined #ruby
[22:35:47] goyox86_: has left #ruby: ()
[22:36:18] goyox86_: has joined #ruby
[22:38:25] skweek: has joined #ruby
[22:44:18] quuxman: havenwood: so if I understand the behavior of "foo(dict)" depends on the definition of foo, in that if it has named arguments, it will pass the contents of dict, otherwise it will pass dict as a single argument
[22:46:16] havenwood: >> def foo h; h; end; foo aim: true # quuxman
[22:46:17] ruby[bot]: havenwood: # => {:aim=>true} (https://eval.in/862193)
[22:46:47] havenwood: quuxman: as opposed to a keyword argument:
[22:46:49] havenwood: >> def foo aim:; aim; end; foo aim: true
[22:46:50] ruby[bot]: havenwood: # => true (https://eval.in/862194)
[22:46:56] ozcanesen: has joined #ruby
[22:47:42] havenwood: quuxman: With just `foo(a:1, b:2)` you don't know if it's a naked hash or keyword arguments.
[22:48:19] havenwood: quuxman: You can ask the method which it is though.
[22:48:26] quuxman: havenwood: thanks
[22:48:50] havenwood: >> def foo aim:; aim; end; method(:foo).parameters
[22:48:52] ruby[bot]: havenwood: # => [[:keyreq, :aim]] (https://eval.in/862195)
[22:48:54] havenwood: quuxman: no prob
[22:49:16] quuxman: haha metaprogramming is frighteningly easy in Ruby :-P
[22:50:31] SeepingN: and nothing else matas ♫
[22:54:40] lele: has joined #ruby
[22:56:39] orbyt_: What's the difference between a .ru file and a .rb file? .ru appears to still be ruby...
[22:56:58] SeepingN: russian ruby?
[22:59:07] Silthias1: has joined #ruby
[23:03:28] matthewd: orbyt_: config.ru is a rackup file: it's ruby, but to be evaluated in a specific context.. like a rakefile
[23:03:42] orbyt_: matthewd Thought as much, thanks!
[23:03:55] ozcanesen: has joined #ruby
[23:11:50] DTZUZO: has joined #ruby
[23:17:54] skweek: has joined #ruby
[23:21:45] r3QuiEm_cL: has joined #ruby
[23:22:39] ozcanesen: has joined #ruby
[23:22:44] nofxx: has joined #ruby
[23:22:44] nofxx: has joined #ruby
[23:23:30] nofxx: Anyone running Ryzen? wondering if ruby/spec will have more gain in ryzen 16 cores, on i7 single core speed
[23:30:41] enterprisey: has joined #ruby
[23:35:38] Puffball_: has joined #ruby
[23:36:48] __Yiota: has joined #ruby
[23:38:48] carnegie: has joined #ruby
[23:39:46] ozcanesen: has joined #ruby
[23:41:14] mim1k: has joined #ruby
[23:42:40] Silthias: has joined #ruby
[23:47:58] bronson: has joined #ruby
[23:48:31] brent__: has joined #ruby
[23:50:03] quuxman: havenwood: how do I apply a list as function arguments?
[23:52:05] quuxman: nm, just like python: foo(*L)
[23:58:16] quuxman: What is going on?? In a test I have: expect(Foo::Bar).to receive(:call).with(*EXAMPLE_DICT.values) # but I'm getting "error expected (foo, bar, ...) got: ({:a:foo, b:bar})". How is that passing a dictionary?
[23:59:36] quuxman: doh this other class uses named args