« Back to channel list

#ruby - 22 March 2019

« Back 1 day Forward 1 day »
[00:01:11] alexeev: has joined #ruby
[00:01:12] nowhere_man: has joined #ruby
[00:10:06] Nicmavr: has joined #ruby
[00:10:55] a1ph4g33k: has joined #ruby
[00:14:54] Tempesta_: has joined #ruby
[00:15:17] orbyt_: has joined #ruby
[00:16:04] Tempesta_K: has joined #ruby
[00:17:21] jottr: has joined #ruby
[00:21:47] naught-fowl: has joined #ruby
[00:22:27] Tempesta: has joined #ruby
[00:24:59] naught-fowl: has joined #ruby
[00:33:18] jottr: has joined #ruby
[00:36:47] naught-fowl: has joined #ruby
[00:38:36] xco: has joined #ruby
[00:41:39] naught-fowl: has joined #ruby
[00:45:38] bmurt: has joined #ruby
[00:49:06] jottr: has joined #ruby
[00:53:56] naught-fowl: has joined #ruby
[01:01:39] dar123: has joined #ruby
[01:04:56] jottr: has joined #ruby
[01:06:35] alexeev: has joined #ruby
[01:08:51] naught-fowl: has joined #ruby
[01:12:04] bambanx: has joined #ruby
[01:12:57] dar123: has joined #ruby
[01:14:24] xco: i have two arrays like this [a, b], [c, d] how do i get [c, a, d, b]?
[01:17:34] leftylink: if there were to be a built in method for it, it would be called something like "interleave". you might try that as a search term and see what happens (I don't know what will happen off the top of my head)
[01:18:58] sherlime: .zip.flatten maybe?
[01:20:16] naught-fowl: has joined #ruby
[01:20:49] jottr: has joined #ruby
[01:21:13] xco: looks like it :)
[01:22:37] leftylink: under no circumstances confuse the mesh with the interleave operator
[01:22:43] leftylink: except in confusing circumstances
[01:24:16] sherlime: https://github.com/JuanitoFatas/what-do-you-call-this-in-ruby perfect
[01:24:42] krawchyk: has joined #ruby
[01:26:00] leftylink: hmm. kinda makes you wish there were a serious section and a srs section
[01:26:22] sherlime: yeah, unfortunately it was the only relevant thing i could find with a mesh operator
[01:26:24] leftylink: gotta put "ain't" for !=
[01:28:13] leftylink: consternation at the fact that ~> is called both pessimistic and optimistic
[01:28:32] leftylink: that is my consterned face
[01:33:31] leftylink: ... uh oh. was the correct english word consternated instead
[01:36:40] jottr: has joined #ruby
[01:40:32] naught-fowl: has joined #ruby
[01:43:27] AMDPhenomX4Q: has joined #ruby
[01:44:47] xco: has joined #ruby
[01:48:03] naught-fowl: has joined #ruby
[01:48:51] Swyper: has joined #ruby
[01:49:56] AMDPhenomX4Q: So if I wanted to grab a webpage every 5 seconds to check for changes in a leaderboard, make an active job and loop it? Or is a new thread more appropriate.
[01:52:42] jottr: has joined #ruby
[02:01:49] naught-fowl: has joined #ruby
[02:07:24] Swyper: has joined #ruby
[02:10:08] naught-fowl: has joined #ruby
[02:17:08] naught-fowl: has joined #ruby
[02:22:19] jottr: has joined #ruby
[02:24:10] naught-fowl: has joined #ruby
[02:32:54] naught-fowl: has joined #ruby
[02:38:24] jottr: has joined #ruby
[02:54:15] jottr: has joined #ruby
[02:55:04] cthulchu_: has joined #ruby
[03:00:59] naught-fowl: has joined #ruby
[03:03:15] havenwood: AMDPhenomX4Q: You could just use AJAX with polling or long-polling every 5 seconds if that's really what you want.
[03:03:15] havenwood: AMDPhenomX4Q: MessageBus would be a good abstraction for that: https://github.com/SamSaffron/message_bus
[03:03:57] havenwood: AMDPhenomX4Q: With Action Cable, you could push the leaderboard changes from an Active Job worker on event without polling.
[03:05:25] havenwood: AMDPhenomX4Q: MessageBus polling for the work to be done or the worker pushing the event to an Action Cable channel both work.
[03:05:52] daqing: has joined #ruby
[03:06:22] havenwood: AMDPhenomX4Q: https://blog.jakewilkins.com/2017/08/25/building-something-besides-a-chat-app-with-actioncable/
[03:08:41] havenwood: AMDPhenomX4Q: If you want to use Active Job, but just want Threading and no Redis, SuckerPunch does just that: https://github.com/brandonhilkert/sucker_punch
[03:09:45] havenwood: AMDPhenomX4Q: If you're using Heroku or such, it lets you do Active Job workers "on Dyno" with Threads.
[03:10:09] jottr: has joined #ruby
[03:21:52] Tau: has joined #ruby
[03:24:28] jmcgnh: has joined #ruby
[03:26:04] jottr: has joined #ruby
[03:29:43] phaul: has joined #ruby
[03:30:00] rubydoc: has joined #ruby
[03:32:53] evdubs: has joined #ruby
[03:36:03] agent_white: has joined #ruby
[03:41:41] jmcgnh_: has joined #ruby
[03:41:58] jottr: has joined #ruby
[03:58:11] jottr: has joined #ruby
[03:58:39] Swyper: has joined #ruby
[03:59:16] mangold: has joined #ruby
[04:05:01] bambanx: has joined #ruby
[04:05:02] bambanxx: has joined #ruby
[04:07:21] ur5us: has joined #ruby
[04:11:05] braincrash: has joined #ruby
[04:13:18] akosednar: has joined #ruby
[04:13:19] akosednar: has joined #ruby
[04:13:58] jottr: has joined #ruby
[04:19:59] daqing: has left #ruby: ()
[04:29:49] jottr: has joined #ruby
[04:31:47] epochwolf: has joined #ruby
[04:32:56] sjm: has joined #ruby
[04:32:59] coffeejunk: has joined #ruby
[04:34:32] Pillus: has joined #ruby
[04:36:11] JJonah: has joined #ruby
[04:36:11] ctp: has joined #ruby
[04:36:12] Nuck: has joined #ruby
[04:36:28] zipkid: has joined #ruby
[04:36:42] kspencer: has joined #ruby
[04:39:08] twe4ked: has joined #ruby
[04:39:34] jtperreault: has joined #ruby
[04:39:51] mcspud: has joined #ruby
[04:45:47] jottr: has joined #ruby
[04:54:00] dar123: has joined #ruby
[05:01:32] jottr: has joined #ruby
[05:01:57] alexeev: has joined #ruby
[05:15:11] _whitelogger: has joined #ruby
[05:30:58] jottr: has joined #ruby
[05:32:04] sauvin: has joined #ruby
[05:33:13] CrazyEddy: has joined #ruby
[05:33:36] Azure|dc: has joined #ruby
[05:41:32] Devalo: has joined #ruby
[05:45:32] dionysus69: has joined #ruby
[05:46:47] jottr: has joined #ruby
[05:47:24] alexeev: has joined #ruby
[05:53:59] alexeev_: has joined #ruby
[05:55:53] iMadper: has joined #ruby
[06:16:42] conta: has joined #ruby
[06:16:53] laaron: has joined #ruby
[06:22:39] Swyper: has joined #ruby
[06:36:14] waheedi: has joined #ruby
[06:39:43] reber: has joined #ruby
[06:49:18] dionysus69: has joined #ruby
[06:54:55] alexeev: has joined #ruby
[06:56:34] mangold: has joined #ruby
[06:58:45] aufi_: has joined #ruby
[07:00:50] postmodern: has joined #ruby
[07:08:15] za1b1tsu: has joined #ruby
[07:08:49] alexeev: has joined #ruby
[07:18:02] za1b1tsu: has joined #ruby
[07:27:56] alexeev: has joined #ruby
[07:29:44] hahuang6-: has joined #ruby
[07:39:35] clemens3_: has joined #ruby
[07:43:31] andikr: has joined #ruby
[07:46:57] Dbugger: has joined #ruby
[07:53:09] _joes_: has joined #ruby
[08:09:23] rindolf: has joined #ruby
[08:09:53] arekushi: has joined #ruby
[08:10:39] jottr: has joined #ruby
[08:14:16] aqd_: has joined #ruby
[08:14:20] waheedi: has joined #ruby
[08:14:36] Swyper: has joined #ruby
[08:20:49] Swyper: has joined #ruby
[08:33:35] schleppel: has joined #ruby
[08:42:40] vondruch: has joined #ruby
[08:51:36] mikecmpbll: has joined #ruby
[08:55:42] claudiuinberlin: has joined #ruby
[09:06:05] teclator_: has joined #ruby
[09:07:46] Swyper: has joined #ruby
[09:17:03] teclator_: has joined #ruby
[09:17:20] alem0lars: has joined #ruby
[09:21:01] kyrylo: has joined #ruby
[09:28:07] yqt: has joined #ruby
[09:31:54] dhollinger: has joined #ruby
[09:33:36] _joes_: has joined #ruby
[09:44:41] Nicmavr: has joined #ruby
[09:49:24] evdubs: has joined #ruby
[09:50:08] agent_white: has joined #ruby
[09:50:37] nemesit|znc: has joined #ruby
[09:57:33] evdubs: has joined #ruby
[10:02:08] Swyper: has joined #ruby
[10:05:03] hightower2: has joined #ruby
[10:14:24] mangold: has joined #ruby
[10:19:52] ferr: has joined #ruby
[10:24:49] ellcs: has joined #ruby
[10:29:45] laaron: has joined #ruby
[10:45:19] _joes_: has joined #ruby
[10:57:59] Emmanuel_Chanel: has joined #ruby
[11:00:49] sjm: has joined #ruby
[11:00:55] JJonah: has joined #ruby
[11:00:56] ctp: has joined #ruby
[11:06:12] Cthulu201: has joined #ruby
[11:07:52] CodingFrisson: has joined #ruby
[11:09:11] CodingFrisson: hello, could someone help me identify the spots where this little code could be shrinked even more? https://kopy.io/UBW57 it's for a small competition against my buddy :)
[11:09:20] CodingFrisson: no need to be precise, just any hint would do
[11:11:08] reber: has joined #ruby
[11:11:46] CodingFrisson: hm, count vs size; size is more concise :)
[11:11:58] phaul: nope. count with block
[11:12:06] phaul: instead of reject
[11:13:43] CodingFrisson: that's amazing thanks
[11:16:12] Sylario: has joined #ruby
[11:17:12] Sylario: Did something changed in 2.4 around regexp ? this code do not seems to works anymore : "05/01/2018" =~ /\A\d{1,2}\/\d{4}\z/
[11:17:23] waheedi: has joined #ruby
[11:18:32] phaul: &23>> "05/01/2018" =~ /\A\d{1,2}\/\d{4}\z/
[11:18:34] rubydoc: # => nil (https://carc.in/#/r/6jq9)
[11:18:40] phaul: &24>> "05/01/2018" =~ /\A\d{1,2}\/\d{4}\z/
[11:18:41] rubydoc: # => nil (https://carc.in/#/r/6jqa)
[11:18:50] phaul: looks the same to me
[11:20:25] Sylario: it was returning true, some time ago
[11:21:32] Sylario: my bad it was expecting "05/1212"
[11:22:01] schleppel: has left #ruby: ("Konversation terminated!")
[11:26:22] jrafanie: has joined #ruby
[11:27:17] conta: has joined #ruby
[11:28:48] laaron-: has joined #ruby
[11:30:38] Emmanuel_Chanel: has joined #ruby
[11:31:36] sleetdrop: has joined #ruby
[11:32:49] _joes_: has joined #ruby
[11:46:55] naught-fowl: has joined #ruby
[11:49:07] ldnunes: has joined #ruby
[11:49:21] mangold: has joined #ruby
[11:53:51] AJA4350: has joined #ruby
[11:54:44] _joes_: has joined #ruby
[11:56:24] Swyper: has joined #ruby
[12:06:42] strmpnk_: has joined #ruby
[12:06:54] bvdw6: has joined #ruby
[12:07:02] WA9ACE_: has joined #ruby
[12:07:07] Iambchop_: has joined #ruby
[12:07:10] hhzza_: has joined #ruby
[12:07:12] netz: has joined #ruby
[12:07:27] fowlduck_: has joined #ruby
[12:09:34] asio_: has joined #ruby
[12:12:22] matthewd_: has joined #ruby
[12:13:09] russt_: has joined #ruby
[12:13:11] jacksoow_: has joined #ruby
[12:13:22] Jello_Raptor_: has joined #ruby
[12:14:27] TheMoonMaster: has joined #ruby
[12:15:17] goez: has joined #ruby
[12:19:51] bmurt: has joined #ruby
[12:21:15] LightStalker: has joined #ruby
[12:21:36] i1nfusion: has joined #ruby
[12:23:27] jonjitsu: has joined #ruby
[12:24:18] e4: has joined #ruby
[12:31:05] infernix: has joined #ruby
[12:33:27] ldnunes: has joined #ruby
[12:35:58] alem0lars: has joined #ruby
[12:36:20] mikecmpbll: has joined #ruby
[12:40:22] lucasb: has joined #ruby
[12:40:28] hightower2: has joined #ruby
[12:41:03] aqd: has joined #ruby
[12:48:44] xco: has joined #ruby
[12:51:33] ferr: has joined #ruby
[12:54:20] nowhere_man: has joined #ruby
[12:54:41] i1nfusion: has joined #ruby
[13:00:30] jottr: has joined #ruby
[13:03:54] sina: has joined #ruby
[13:09:10] jottr_: has joined #ruby
[13:10:15] evdubs: has joined #ruby
[13:10:42] jcalla: has joined #ruby
[13:13:05] nowhere_man: has joined #ruby
[13:14:17] _joes_: has joined #ruby
[13:18:22] rippa: has joined #ruby
[13:22:09] hightower2: has joined #ruby
[13:30:57] xco: has joined #ruby
[13:31:05] Swyper: has joined #ruby
[13:39:28] Swyper: has joined #ruby
[13:40:42] wickdbloodfart: has joined #ruby
[13:44:20] wickdbloodfart: hey all. having a problem with datetime. i have this string "May 13, 2014 8:29:38 AM" that i'd like to parse with DateTime.strptime("May 13, 2014 8:29:38 AM", '%b %-d, %Y %l:%M:%S %p'). i get an 'invalid date' error, but i don't know why. any help is appreciated. thanks!
[13:44:47] jrafanie: has joined #ruby
[13:45:23] apparition: has joined #ruby
[13:51:57] griffindy: has joined #ruby
[13:53:21] phaul: &>> require 'date'; DateTime.parse('May 13, 2014 8:29:38 AM').strftime('%b %-d, %Y %l:%M:%S %p')
[13:53:24] rubydoc: # => "May 13, 2014 8:29:38 AM" (https://carc.in/#/r/6js5)
[13:53:26] naught-fowl: has joined #ruby
[13:57:40] phaul: &>> require 'date'; DateTime.strptime(DateTime.parse('May 13, 2014 8:29:38 AM').strftime('%b %-d, %Y %l:%M:%S %p'), '%b %-d, %Y %l:%M:%S %p')
[13:57:41] rubydoc: stderr: -e:2:in `strptime': invalid date (ArgumentError) (https://carc.in/#/r/6js9)
[13:57:59] wickdbloodfart: it's strange... DateTime.parse("May 13, 2014 8:29:38 AM") returns Tue, 17 Jun 2014 22:04:50 +0000
[14:00:16] phaul: donno. but I would have expected DateTime.strptime(x.strftime(fmt), fmt) to be idenpotent
[14:00:32] phaul: apparently not
[14:01:13] xco: has joined #ruby
[14:01:16] wickdbloodfart: hmmm, strange. i'll keep plugging away. thank you for taking a peek. i'll report back if i get it working the way i want.
[14:03:28] wickedbloodfart: has joined #ruby
[14:06:34] gnufied: has joined #ruby
[14:08:17] alexeev: has joined #ruby
[14:09:49] alexeev: has joined #ruby
[14:11:07] alexeev_: has joined #ruby
[14:16:31] Swyper: has joined #ruby
[14:26:04] Rapture: has joined #ruby
[14:29:59] wickedbloodfart: ahh, silly mistake. this api i'm using isn't returning the dates in a consistent order. the dates are close enough where it was causing some confusion. thanks for your help!
[14:36:47] _joes_: has joined #ruby
[14:43:45] agent_white: has joined #ruby
[14:45:42] duderonomy: has joined #ruby
[14:55:55] grilix: has joined #ruby
[15:03:19] catbusters: has joined #ruby
[15:15:51] polishdub: has joined #ruby
[15:19:16] orbyt_: has joined #ruby
[15:30:22] SeepingN: has joined #ruby
[15:32:48] waheedi: has joined #ruby
[15:36:50] nowhere_man: has joined #ruby
[15:41:38] t0x: has joined #ruby
[15:45:14] mangold: has joined #ruby
[15:46:33] xco: has joined #ruby
[15:46:34] grilix: has joined #ruby
[15:48:04] tekniq: has joined #ruby
[15:50:39] xco: i have an array like this [departure1, arrival1, departure2, arrival2, departure3, arrival3] of times of depature and arrival at an aiport i want to find the time gap between arrival2 and depature2 of all elements in the array. how can i achieve this? i’m not sure how to iteratively do depature2-arrival1 … through the array. i’d appreciate some help
[15:51:54] xco: the array can also be represented as [[departure1, arrival1], [departure2, arrival2], [departure3, arrival3]] whichever way will be easier to work with
[15:54:07] phaul: xco look at each_cons
[15:54:26] phaul: &ri Enumerable#each_cons
[15:54:28] rubydoc: https://ruby-doc.org/core-2.6/Enumerable.html#method-i-each_cons
[15:55:38] phaul: the second representation combined with each_cons is easier
[15:57:56] xco: phaul: the second combination and then use each_cons(2)? that won’t work
[15:59:12] havenwood: &>> [[1, 2], [3, 5], [8, 13], [21, 34]].map { |arrival, departure| [[arrival, departure], departure - arrival] }
[15:59:15] rubydoc: # => [[[1, 2], 1], [[3, 5], 2], [[8, 13], 5], [[21, 34], 13]] (https://carc.in/#/r/6jub)
[15:59:56] havenwood: xco: you only care about the time between arrivals and departures? so you don't care about the time between departures and the next arrival?
[16:00:11] phaul: probably I have misunderstood the task then
[16:00:38] phaul: I thought you are interested in how much time you spend in transit and not in the air
[16:01:17] havenwood: phaul: you might be right
[16:01:50] havenwood: xco: what is it you want again?
[16:02:13] xco: havenwood: i only care about the time between arrival of flight A and the depature of flight B. but data is represented as A[departure, arrival] B[departure, arrival]
[16:02:16] havenwood: xco: could you should example data with the desired result?
[16:02:51] xco: so i want to know time left between when i arrival with flight A until my next flight B’s departure
[16:03:15] xco: havenwood: yeah sure
[16:03:19] havenwood: sounds like phaul interpreted it right
[16:04:02] havenwood: &>> [[1, 2], [3, 5], [8, 13], [21, 34]].each_cons(2).map { |(_, departure), (arrival, _)| arrival - departure }
[16:04:03] rubydoc: # => [1, 3, 8] (https://carc.in/#/r/6juc)
[16:10:09] xco: https://gist.github.com/xcobar/da73f5f5b64e6fe5102fe318519da32f
[16:10:32] xco: ooo look like it close or is what i’ve been trying out
[16:10:48] xco: i showed an example anyway
[16:13:38] yqt: has joined #ruby
[16:15:01] cthulchu_: has joined #ruby
[16:18:42] mangold: has joined #ruby
[16:20:59] marmotini_: has joined #ruby
[16:22:31] i1nfusion: has joined #ruby
[16:26:05] Swyper: has joined #ruby
[16:28:20] stryek: has joined #ruby
[16:31:47] alexeev: has joined #ruby
[16:34:44] orbyt_: has joined #ruby
[16:37:29] bambanx: has joined #ruby
[16:37:48] conta: has joined #ruby
[16:42:45] Swyper: has joined #ruby
[16:44:55] Tau: has joined #ruby
[16:46:14] hightower2: has joined #ruby
[16:52:33] hightower2: has joined #ruby
[17:03:58] Swyper: has joined #ruby
[17:07:38] hightower2: has joined #ruby
[17:08:26] DTZUZO: has joined #ruby
[17:08:34] ellcs: has joined #ruby
[17:10:05] mangold: has joined #ruby
[17:11:57] nowhere_man: has joined #ruby
[17:12:07] _joes_: has joined #ruby
[17:14:34] Lytol: has joined #ruby
[17:15:33] hightower2: has joined #ruby
[17:22:20] Dbugger: has joined #ruby
[17:24:32] themsay: has joined #ruby
[17:25:04] havenwood: https://www.youtube.com/watch?v=6Ue6-BPI-9k
[17:25:21] havenwood: Stranger Things ^ on Sonic Pi
[17:25:42] orbyt_: has joined #ruby
[17:27:40] jrafanie: has joined #ruby
[17:31:14] KeyJoo: has joined #ruby
[17:40:13] poguez_: has joined #ruby
[17:43:41] fanta7531: has joined #ruby
[17:47:48] hightower2: has joined #ruby
[17:48:20] zachk: has joined #ruby
[17:56:46] cd: has joined #ruby
[18:01:00] mikecmpbll: has joined #ruby
[18:04:06] bambanx: has joined #ruby
[18:08:23] al2o3-cr: has joined #ruby
[18:19:49] Renich: has joined #ruby
[18:23:20] grilix: has joined #ruby
[18:25:52] laaron: has joined #ruby
[18:44:19] jrafanie_: has joined #ruby
[18:46:47] jrafanie: has joined #ruby
[18:47:18] pietia: has joined #ruby
[18:51:12] Swyper: has joined #ruby
[18:57:50] TomyLobo: has joined #ruby
[19:01:56] t0x: has joined #ruby
[19:10:38] ellcs: has joined #ruby
[19:18:19] Swyper_: has joined #ruby
[19:18:39] naught-fowl: has joined #ruby
[19:30:41] cthulchu_: has joined #ruby
[19:35:28] duderonomy: Is there a way to force the display of the banner as if OptionParse.new block parse failed? My goal is to force a display of the banner (usage string) when a position parameter is not present, e.g. ARGV[1] == nil.
[19:35:34] Devalo: has joined #ruby
[19:44:24] bambanx: has joined #ruby
[19:46:09] gix: has joined #ruby
[19:47:23] Swyper: has joined #ruby
[19:51:44] havenwood: duderonomy: an OptionParser::InvalidArgument?
[19:52:02] havenwood: duderonomy: here's one way to handle a missing argument: https://gist.github.com/havenwood/02123198a79447543a3ea053e7e592fd#file-paint-L33-L34
[19:52:19] duderonomy: thanks havenwood. I will look into that
[19:52:30] havenwood: duderonomy: if it's really a parse error, more like: https://gist.github.com/havenwood/02123198a79447543a3ea053e7e592fd#file-paint-L21
[19:52:40] havenwood: duderonomy: no, you're welcome.
[19:57:37] duderonomy: I guess there is a little bit of expertise required to make this happen; that is for the usage banner message to appear. So far I have only managed to error out in a ugly way with "invalid argument: (OptionParser::InvalidArgument)" which is to be expected. :-)
[19:57:47] duderonomy: I'll do some reading. Thanks for the pointer for sure!
[20:00:39] ericwood_: has joined #ruby
[20:04:17] darkxploit: has joined #ruby
[20:04:41] darkxploit: Hello guys. I have a package download with a gemfile in it. How do i install it ?
[20:05:06] darkxploit: its a package download from source
[20:05:13] darkxploit: i want to compile it and install it
[20:06:18] ericwood_: has left #ruby: ()
[20:11:40] themsay: has joined #ruby
[20:12:31] i1nfusion: has joined #ruby
[20:22:41] orbyt_: has joined #ruby
[20:23:49] zleap: has joined #ruby
[20:25:14] naught-fowl: has joined #ruby
[20:25:50] havenwood: darkxploit: gem install bundler && bundle
[20:26:06] havenwood: darkxploit: or if it's not Rails: gem install -g
[20:26:53] havenwood: darkxploit: or Ruby 2.6+: bundle
[20:32:26] Nicmavr: has joined #ruby
[20:37:45] havenwood: TL;DR: gem install bundler && bundle
[20:40:30] johnny56: has joined #ruby
[20:46:33] naught-fowl: has joined #ruby
[20:48:32] bambanx: has joined #ruby
[20:48:54] hightower2: has joined #ruby
[20:51:45] naught-fowl: has joined #ruby
[20:53:19] tdy: has joined #ruby
[20:53:40] Devalo: has joined #ruby
[21:15:17] ur5us: has joined #ruby
[21:15:54] kyrylo: has joined #ruby
[21:20:56] ur5us: has joined #ruby
[21:28:26] Renich: has joined #ruby
[21:32:18] ellcs: has joined #ruby
[21:32:48] zenspider: duderonomy: I answered your question on the list... did that help?
[21:39:00] Brainium: has joined #ruby
[21:42:41] ellcs: has joined #ruby
[21:48:31] bambanxx: has joined #ruby
[21:48:52] bonhoeffer: has joined #ruby
[21:58:04] xco_: has joined #ruby
[22:02:53] duderonomy: Thx zenspider! That helped.
[22:12:22] Fernando-Basso: has joined #ruby
[22:13:27] orbyt_: has joined #ruby
[22:33:06] alexeev: has joined #ruby
[22:47:15] duderonomy: Thx for the help, folks. Finally wrapped my head around optparse. Distilled my needs down to this: https://dpaste.de/SyV9
[22:48:08] duderonomy: the exit code was a helpful bonus that I needed too
[22:48:46] sherlime: duderonomy: just fyi, you can stick the .parse! right after the end
[22:48:51] sherlime: do ... end.parse!
[22:50:29] t0x: has joined #ruby
[22:50:35] duderonomy: I saw that too. So functional <grin>. I did not know if it was still ok if I was assigning to the label 'parser'. I'll test and go with that.
[22:57:40] bmurt: has joined #ruby
[22:58:39] tdy: has joined #ruby
[22:58:55] xco_: has joined #ruby
[22:59:23] tfitts: has joined #ruby
[22:59:43] orbyt_: has joined #ruby
[23:09:09] dviola: has joined #ruby
[23:22:20] houhoulis: has joined #ruby
[23:30:59] wald0: has joined #ruby