« Back to channel list

#ruby - 07 July 2017

« Back 1 day Forward 1 day »
[00:00:52] Papierkorb: I used that one to serialize the applications state into a log file. Oh the funny things you can do with the binding_of_caller gem :)
[00:02:08] quuxman: How do I go about setting a TracePoint?
[00:02:27] quuxman: Papierkorb: my approach was using pry-rescue and pry-byebug, but they're incompatible
[00:03:16] Papierkorb: You should only need to use pry-rescue by itself
[00:03:26] Papierkorb: quuxman: https://ruby-doc.org/core-2.4.0/TracePoint.html
[00:03:47] quuxman: Papierkorb: but with just pry-rescue there's no way to navigate the stack in the debugger that I know of
[00:03:58] Papierkorb: got the stack_explorer plugin?
[00:04:21] quuxman: Papierkorb: is more required then installing the gem?
[00:04:41] Papierkorb: install the stack_explorer pry plugin
[00:14:04] __Yiota: has joined #ruby
[00:19:38] ozcanesen: has joined #ruby
[00:19:57] quuxman: nice, that does work. I can live with this. Odd that I have to install packages to get normal debugging functionality though
[00:21:46] skweek: has joined #ruby
[00:22:58] quuxman: I'm pretty confused about Sequel.require still. Looks like a broken version of require_relative to me
[00:26:19] ascarter: has joined #ruby
[00:29:03] Radar: Maybe file an issue on the sequel repo about it? jeremy's pretty responsive.
[00:30:42] mistym: Okay I found the commit!! https://github.com/ruby/ruby/commit/50226fb61cb10c5be9e2745e7b1a29228987a4ee
[00:31:11] quuxman: Radar: I'll ask him about it when I finish this PR. I'm sure there's a reason
[00:31:35] mistym: Aside from the double ternary, it definitely messes around with the install-rb rule, hopefully not a hard fix
[00:35:00] skweek: has joined #ruby
[00:36:38] Radar: mistym: good work tracking that down )
[00:39:30] brent__: has joined #ruby
[00:41:30] duderonomy: has joined #ruby
[00:42:49] charliesome: has joined #ruby
[00:50:24] __Yiota: has joined #ruby
[00:53:48] Dreamer3: has joined #ruby
[00:57:04] lacuna: has joined #ruby
[01:00:55] mistym: Okay yeah, it's the conditional in the inner ternary that got its logic swapped which broke it
[01:06:53] charliesome: has joined #ruby
[01:07:35] mistym: Aha, and it's been fixed in a commit which hasn't been backported into the 2.3 or 2.4 branches: https://github.com/ruby/ruby/commit/b3dbeb6e90f
[01:08:32] hinbody: has joined #ruby
[01:10:09] uZiel: has joined #ruby
[01:10:42] yoongkang: has joined #ruby
[01:11:34] ozcanesen: has joined #ruby
[01:14:17] darix: mistym: just ask for backporting then
[01:14:27] mistym: darix: Yeah, added a comment to the issue
[01:14:30] mistym: Now to figure out why trunk broke :/
[01:14:41] mistym: My bet's on a different static-linked-ext bug
[01:14:53] darix: i havent stated packaging 2.5 snapshots yet
[01:15:23] darix: still have to track down why some features on gitlab-ce silently break when using 2.4 instead of 2.3
[01:21:55] Joufflu: has joined #ruby
[01:24:53] brent__: has joined #ruby
[01:27:20] ascarter: has joined #ruby
[01:34:16] contradictioned: has joined #ruby
[01:43:36] ketan: has joined #ruby
[01:44:02] gizmore: has joined #ruby
[01:44:05] mim1k: has joined #ruby
[01:44:42] __Yiota: has joined #ruby
[01:51:25] ozcanesen: has joined #ruby
[01:52:47] mim1k: has joined #ruby
[01:57:38] cschneid_: has joined #ruby
[02:01:17] ecuanaso: has joined #ruby
[02:02:35] d^sh: has joined #ruby
[02:08:20] mim1k: has joined #ruby
[02:11:16] __Yiota: has joined #ruby
[02:12:52] zephiro: has joined #ruby
[02:14:03] arescorpio: has joined #ruby
[02:18:10] Jameser: has joined #ruby
[02:22:41] CrazyEddy: has joined #ruby
[02:23:04] bkxd: has joined #ruby
[02:23:06] bkxd_: has joined #ruby
[02:26:14] MarkBilk_: has joined #ruby
[02:28:02] ascarter: has joined #ruby
[02:30:28] rohitpaulk: has joined #ruby
[02:31:25] brent__: has joined #ruby
[02:38:47] herbmillerjr: has joined #ruby
[02:41:42] herbmillerjr: has joined #ruby
[02:49:48] mim1k: has joined #ruby
[02:53:31] patarr: has joined #ruby
[02:54:07] yoongkang: has joined #ruby
[02:57:08] Rr4sT: has joined #ruby
[02:57:48] xall: has joined #ruby
[03:00:51] jenrzzz: has joined #ruby
[03:00:51] jenrzzz: has joined #ruby
[03:01:56] uZiel: has joined #ruby
[03:07:30] milardovich: has joined #ruby
[03:10:53] comet23: has joined #ruby
[03:11:12] comet23: i am having trouble wrapping my head around fib numbers
[03:11:41] comet23: i can create a function just fine that returns an array of fib numbers, but i can't create a function that sums all even or odd fibs
[03:13:09] mkaito: comet23: try looking into Array#select
[03:13:29] zyklonbee: has joined #ruby
[03:13:55] comet23: the idea that i'm trying to go for is not have a huge array, but have a variable with the current fib number already in it to save space
[03:14:16] mkaito: should work, fib is kind of a rolling algo
[03:14:32] comet23: https://repl.it/JRYN
[03:15:43] mkaito: are you familiar with recursion?
[03:22:00] jenrzzz: has joined #ruby
[03:22:00] jenrzzz: has joined #ruby
[03:22:56] mkaito: I'll take that as a 'no'. look into it. fib is just the thing traditionally used to introduce someone to recursion.
[03:25:38] herbmillerjr: has joined #ruby
[03:26:00] mim1k: has joined #ruby
[03:28:26] cam27: has joined #ruby
[03:29:10] comet23: i'm familiar with recursion, but i'm not really good at it
[03:33:47] mkaito: then fib is a really good place to practice :)
[03:34:24] comet23: i looked at the solution and i don't understand fib(n - 1) + fib(n - 2)
[03:34:42] comet23: is there a way to make the recursive solution forwards not backwards?
[03:34:45] mkaito: that's a contrived one
[03:34:48] mkaito: look at a different one
[03:34:58] mkaito: people love being too clever
[03:36:37] comet23: i see why it has to be backwards, it's because i have a limit of 10 i can't really go forwards
[03:36:54] comet23: let's say i pass 10 as a limit, calling it recursively forwards will be forever infinite
[03:37:27] mkaito: traditionally, you just keep going forward until you pass the limit, then take a step back.
[03:37:32] mkaito: but backwards works too
[03:37:38] comet23: how would i go forwards?
[03:44:28] ketan: has joined #ruby
[03:44:36] zephiro: has joined #ruby
[03:45:49] gix: has joined #ruby
[03:46:08] mkaito: you keep putting values into an array based on the sum of the previous two?
[03:48:51] Immune_: has joined #ruby
[03:51:46] gwilkes: has joined #ruby
[03:54:59] claw: has joined #ruby
[03:58:12] Joufflu: has joined #ruby
[04:05:29] zephiro: has joined #ruby
[04:06:34] kculpis: has joined #ruby
[04:08:04] patarr: has joined #ruby
[04:10:29] uZiel: has joined #ruby
[04:21:02] mim1k: has joined #ruby
[04:27:03] Joufflu: has joined #ruby
[04:30:36] rhyselsmore: has joined #ruby
[04:30:53] zyklonbee: has left #ruby: ()
[04:42:11] _whitelogger: has joined #ruby
[04:47:54] gothicsouth: has joined #ruby
[04:51:17] tolerablyjake: has joined #ruby
[04:53:25] aglorei: has joined #ruby
[04:54:24] Puffball: has joined #ruby
[04:54:27] perniciouscaffei: has joined #ruby
[04:55:00] brent__: has joined #ruby
[04:56:55] yoongkang: has joined #ruby
[04:59:31] patrontechnosoft: has joined #ruby
[05:02:10] SeepingN: has joined #ruby
[05:06:10] minimalism: has joined #ruby
[05:09:27] minimalism: has joined #ruby
[05:23:35] bkxd: has joined #ruby
[05:24:58] cam27: has joined #ruby
[05:25:20] jenrzzz: has joined #ruby
[05:25:20] jenrzzz: has joined #ruby
[05:28:38] bkxd_: has joined #ruby
[05:29:41] Bock: has joined #ruby
[05:31:33] apeiros: darix: don't, that hurts!
[05:33:26] enterprisey: has joined #ruby
[05:35:31] Mortomes|Work: has joined #ruby
[05:37:38] lacuna: has joined #ruby
[05:37:59] Jameser: has joined #ruby
[05:42:37] biberu: has joined #ruby
[05:45:19] ketan: has joined #ruby
[05:46:27] conta: has joined #ruby
[05:46:32] anisha: has joined #ruby
[05:46:53] nofxxx: has joined #ruby
[05:47:27] _mak: has left #ruby: ("..")
[05:48:09] Jameser: has joined #ruby
[05:49:14] perniciouscaffei: has joined #ruby
[05:50:16] pankaj_: has joined #ruby
[05:50:42] milardovich: has joined #ruby
[05:51:40] shinnya: has joined #ruby
[05:54:34] podlech: has joined #ruby
[05:55:19] SeepingN: has joined #ruby
[05:56:27] Jameser: has joined #ruby
[06:07:28] rohitpaulk: has joined #ruby
[06:08:54] patarr: has joined #ruby
[06:13:28] yoongkang: has joined #ruby
[06:24:51] savoir-faire: has joined #ruby
[06:25:02] howdoi: has joined #ruby
[06:25:15] uZiel: has joined #ruby
[06:27:00] vifino: has joined #ruby
[06:28:32] Fridtjof: has joined #ruby
[06:29:38] xall: has joined #ruby
[06:29:41] Silthias: has joined #ruby
[06:35:50] rohitpaulk: has joined #ruby
[06:37:19] DarthGandalf: has joined #ruby
[06:38:16] perniciouscaffei: has joined #ruby
[06:38:24] mr_rich101: has joined #ruby
[06:38:34] Toledo: has joined #ruby
[06:38:58] TinkerTyper: has joined #ruby
[06:39:03] sinduck: has joined #ruby
[06:39:08] tsunamie: has joined #ruby
[06:39:12] iooner: has joined #ruby
[06:39:28] miah: has joined #ruby
[06:39:37] mlehrer: has joined #ruby
[06:39:39] theRoUS: has joined #ruby
[06:39:58] bw\: has joined #ruby
[06:40:33] pankaj_: has joined #ruby
[06:40:43] mtkd: has joined #ruby
[06:40:52] djbkd: has joined #ruby
[06:40:52] Neptu: has joined #ruby
[06:41:28] brixen: has joined #ruby
[06:41:59] modin: has joined #ruby
[06:43:42] potatoe: has joined #ruby
[06:43:42] potatoe: has joined #ruby
[06:44:03] sniffer: has joined #ruby
[06:44:10] sonne: has joined #ruby
[06:44:40] edwardly: has joined #ruby
[06:44:40] edwardly: has joined #ruby
[06:46:28] clamstar: has joined #ruby
[06:47:17] cjk101010: has joined #ruby
[06:47:52] konsolebox: has joined #ruby
[06:51:34] andikr: has joined #ruby
[06:52:41] aglorei: has joined #ruby
[07:00:40] xall: has joined #ruby
[07:03:24] ltem: has joined #ruby
[07:03:33] Dimik: has joined #ruby
[07:04:12] Silthias: has left #ruby: ()
[07:04:39] Silthias: has joined #ruby
[07:05:50] ledestin: has joined #ruby
[07:06:57] duderonomy: has joined #ruby
[07:10:54] tAn: has joined #ruby
[07:17:12] nobitanobi: has joined #ruby
[07:21:23] zenspider_: forwards? infinite?
[07:21:33] zenspider: has joined #ruby
[07:22:40] zenspider: mistym: yay! glad it has been fixed. yes, add a comment, or if you can tag it with the appropriate backports
[07:25:48] vondruch: has joined #ruby
[07:28:55] mark_66: has joined #ruby
[07:30:29] alex``: has joined #ruby
[07:31:31] jaruga: has joined #ruby
[07:35:52] lacuna: has joined #ruby
[07:37:31] danguita: has joined #ruby
[07:37:33] vondruch: has joined #ruby
[07:38:38] tao_: has joined #ruby
[07:39:21] rohitpaulk: has joined #ruby
[07:40:50] milardovich: has joined #ruby
[07:45:16] dionysus69: has joined #ruby
[07:46:11] ketan: has joined #ruby
[07:55:11] marr: has joined #ruby
[07:57:55] alex```: has joined #ruby
[08:00:04] danguita: has joined #ruby
[08:01:29] xall: has joined #ruby
[08:03:16] ur5us: has joined #ruby
[08:05:21] ddddddd: has joined #ruby
[08:06:21] Hanmac: has joined #ruby
[08:06:39] jenrzzz: has joined #ruby
[08:06:39] jenrzzz: has joined #ruby
[08:10:01] patarr: has joined #ruby
[08:12:51] clemens3: has joined #ruby
[08:13:37] xall: has joined #ruby
[08:14:06] montanonic: has joined #ruby
[08:15:42] weathermaker: has joined #ruby
[08:16:03] mitt3ns: has joined #ruby
[08:21:01] nobitanobi: has joined #ruby
[08:21:23] vondruch: has joined #ruby
[08:21:32] nobitanobi: has joined #ruby
[08:23:28] milardovich: has joined #ruby
[08:24:06] bkxd: has joined #ruby
[08:24:06] Xeago: has joined #ruby
[08:24:28] moei: has joined #ruby
[08:25:33] vondruch: has joined #ruby
[08:25:50] hinbody: has joined #ruby
[08:25:53] Polysics: has joined #ruby
[08:27:15] Polysics_: has joined #ruby
[08:30:24] Cork: is there a way to get around uninitialized constant OpenSSL::Digest::DSS1 ? (i'm trying to use Net::SSH, and i must support this crypto, and yes i know it is insecure)
[08:31:45] ljarvis: Cork: require "openssl"
[08:31:56] Cork: ljarvis: i have
[08:32:03] Cork: its uninitialized constant OpenSSL::Digest::>DSS1< that is missing
[08:32:03] ljarvis: what ruby version?
[08:32:38] ljarvis: ~% ruby -ve 'p require "openssl"'
[08:32:38] ljarvis: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
[08:32:59] ljarvis: How did you compile Ruby?
[08:32:59] Cork: (for good reason, but the site i need to connect to uses a 9 year old server with ssh-dss only crypto *sigh*)
[08:33:09] Cork: rvm install 2.4.1
[08:33:47] rohitpaulk: has joined #ruby
[08:33:53] elnino11: has joined #ruby
[08:34:11] ljarvis: Cork: what's `openssl version`
[08:34:45] Cork: OpenSSL 1.1.0f 25 May 2017
[08:34:52] ljarvis: that's why
[08:35:00] ljarvis: DSS1 isn't supported in 1.1+
[08:35:04] Cork: its the default on debian stretch
[08:35:16] ljarvis: you'll have to revert to an older version
[08:35:24] Cork: not really an option
[08:36:23] Cork: my current only option (and it sucks bad) is system('sftp -o HostKeyAlgorithms=+ssh-dss -o KexAlgorithms=diffie-hellman-group1-sha1') but i really REALLY don't want to do there...
[08:36:39] Cork: do there == go there
[08:36:52] hightower2: has joined #ruby
[08:37:09] ljarvis: well, you want to connect to an old server so you'd better go back in time a bit :)
[08:37:38] Cork: sigh ya freaking ironmountain...
[08:38:40] elnino11: Hello everyone . I am working on making a PCI complaint payment gateway on ruby on rails and as per the requirements listed in it, I have to 'use strong credentials to render all authentication credentials undreadable'. I would love to have help from you all on what steps and direction to proceed in. Thank you.
[08:40:32] tolerablyjake: has joined #ruby
[08:42:04] roshanavand: has joined #ruby
[08:42:11] hinbody: has joined #ruby
[08:42:15] elnino11: My project is currently working on ruby 1.9.3 and jruby 1.7.0
[08:45:20] mim1k: has joined #ruby
[08:46:49] uZiel: has joined #ruby
[08:47:46] workmad3: has joined #ruby
[08:48:19] balo: PCI is an artform itself. and to be PCI compliant, a PCI certified dev needs to be the committer. A friendly advice: keep the PCI scope as small as possible, don't mix it in your existing [probably old and big legacy] project
[08:49:18] balo: you won't find an ensure_pci_compliance gem :D so I hope you know what you are doing or ask for help otherwise
[08:49:30] noname: has joined #ruby
[08:52:17] elnino11: We are actually already PCI compliant of minimal level, and are now moving towards a higher level of compliance. We have our vaults and everything in place but we have some extra requirements and I want to use the right methodology with each task I do. I actually did come across this https://github.com/rocketjob/symmetric-encryption
[08:53:31] elnino11: I want to know if there are better methods to things or better gems which can help me
[08:55:05] zenspider: Cork: if stfp works... maybe stunnel?
[08:55:24] zenspider: I don't know if you can specify
[08:56:00] Cork: zenspider: could you be a little bit more specific? it doesn't tell me anything and google gives me nothing
[08:56:37] Cork: ah you mean the system command
[08:57:10] lxsameer: has joined #ruby
[08:57:18] zenspider: stunnel is just a secure tunnelling tool I've used in the past, esp when I wanted to punch holes in things... if sftp can actually deal with dss then maybe stunnel can too but then you can use that to route through
[08:57:49] Cork: sftp can deal with it cause openssh still have the crypto in the lib
[08:58:04] Cork: even though it is disabled by default
[08:59:28] Cork: this makes me quite sick to my stomach but regulations requires me to do this so... -_-'
[09:00:32] Cork: i'm just trying to find a not horrible solution, but it really doesn't look like there is one
[09:00:45] zenspider: I'm sure you can containerize the solution... that's not horrible... right? right?
[09:05:12] vondruch: has joined #ruby
[09:06:27] frmendes: has joined #ruby
[09:07:44] pandaant: has joined #ruby
[09:08:23] roshanavand: has joined #ruby
[09:10:32] urux: has joined #ruby
[09:12:14] croberts: is there a way to fix this rubocop error https://gist.github.com/chris1984/93c8362b863462aa8ab96560b28555f9
[09:12:30] croberts: sadly the directory in question has a "k" in it
[09:12:58] ljarvis: croberts: you're using interpolation, why?
[09:13:12] ljarvis: just remove the #{}
[09:13:45] croberts: the qpid_linerstore var has to be there, i guess i could make it constant
[09:14:00] croberts: oh nm i see it
[09:14:08] ljarvis: #{qpid_linearstore}/dat2
[09:14:22] croberts: blah, yeah i just caught it
[09:14:26] croberts: sorry to bother :(
[09:14:29] InfinityFye: has joined #ruby
[09:18:53] ShekharReddy: has joined #ruby
[09:23:15] rhyselsmore: has joined #ruby
[09:25:24] vondruch: has joined #ruby
[09:26:44] xall: has joined #ruby
[09:33:18] ascarter: has joined #ruby
[09:34:08] psychicist__: has joined #ruby
[09:40:14] mim1k: has joined #ruby
[09:40:37] TomyLobo2: has joined #ruby
[09:41:37] tvw: has joined #ruby
[09:42:07] hutch34: has joined #ruby
[09:42:39] patarr: has joined #ruby
[09:47:03] ketan: has joined #ruby
[09:48:04] stamina: has joined #ruby
[09:51:46] xall: has joined #ruby
[09:52:09] rileyy: has joined #ruby
[09:58:41] cschneid_: has joined #ruby
[09:59:08] Polysics: has joined #ruby
[10:02:33] dunk: has left #ruby: ()
[10:03:43] sepp2k: has joined #ruby
[10:13:13] showstyle: has joined #ruby
[10:16:14] romankapitonov: has joined #ruby
[10:23:06] vikas027: has joined #ruby
[10:23:23] vikas027: Hi Gurus, I have multiline variable. How Do I append it to a file so that new line char doesn't gets deleted? https://dpaste.de/W6EG
[10:33:02] dminuoso: vikas027: Don't use the trailing backslashes?
[10:33:39] vikas027: dminuoso: I want to add those for making the syntax consistent across other files.
[10:36:16] belmoussaoui_: has joined #ruby
[10:36:21] ljarvis: vikas027: add the char in yourself?
[10:36:51] vikas027: ljarvis: Sorry, I didn't get that
[10:37:07] ljarvis: vikas027: "....\n" \
[10:37:10] vikas027: I am just converting a bash script to ruby. All but htis part is done
[10:41:59] vikas027: ljarvis: Perfect, this works like a charm SecRule REQUEST_URI "@beginsWith /v2-beta/"\n \ Thanks a ton !!
[10:46:08] hutch34: has joined #ruby
[10:49:39] bkxd: has joined #ruby
[10:49:39] bkxd_: has joined #ruby
[10:52:34] kthibodeaux: has joined #ruby
[10:58:42] xall: has joined #ruby
[11:11:01] xall_: has joined #ruby
[11:14:40] xall: has joined #ruby
[11:17:05] shinnya: has joined #ruby
[11:17:16] bkxd__: has joined #ruby
[11:22:17] bkxd: has joined #ruby
[11:23:55] petruff: has joined #ruby
[11:29:32] rhyselsmore: has joined #ruby
[11:31:39] BSaboia: has joined #ruby
[11:34:20] shiranuidong: has joined #ruby
[11:43:48] ldnunes: has joined #ruby
[11:47:25] uZiel: has joined #ruby
[11:47:55] ketan: has joined #ruby
[11:50:49] hutch34: has joined #ruby
[11:54:31] petruff: has joined #ruby
[11:59:37] ketan: has joined #ruby
[12:02:11] bkxd: has joined #ruby
[12:02:31] bkxd_: has joined #ruby
[12:07:29] ur5us: has joined #ruby
[12:10:11] aglorei: has joined #ruby
[12:10:51] iomotoko: has joined #ruby
[12:11:34] vondruch: has joined #ruby
[12:13:53] ketan: has joined #ruby
[12:15:14] vondruch: has joined #ruby
[12:15:20] ShekharReddy: has joined #ruby
[12:15:25] milardovich: has joined #ruby
[12:15:40] ogotai: has joined #ruby
[12:17:07] workmad3: has joined #ruby
[12:18:30] InfinityFye: has joined #ruby
[12:20:35] uZiel: has joined #ruby
[12:21:59] Ishido: has joined #ruby
[12:22:51] synthroid: has joined #ruby
[12:23:56] ar1a_: has joined #ruby
[12:25:05] ar1a: hi! im trying to use this lib (https://github.com/chrokh/normalizr). I'm following the example and try to make a schema, but ruby throws an error saying "uninitialized constnat mymodulehere::Schema (NameError)", so i tried using Normalizr::Schema but that failed too. I'll paste my code in a second
[12:25:06] InfinityFye: has joined #ruby
[12:25:33] ar1a: https://gist.github.com/Snorflake/da4996fe84ba4d289f29aa1be8103b8c
[12:27:06] splitshot: has joined #ruby
[12:29:04] hutch34: has joined #ruby
[12:29:57] ar1a: http://www.rubydoc.info/gems/normalizr.rb/Normalizr/Schema doc page
[12:32:28] kthibodeaux: has left #ruby: ("WeeChat 1.5")
[12:33:45] danguita: has joined #ruby
[12:35:04] swills: has joined #ruby
[12:35:04] swills: has joined #ruby
[12:37:26] vondruch: has joined #ruby
[12:44:08] t-recx: has joined #ruby
[12:45:10] ar1a: irb(main):010:0> Normalizr.constants
[12:45:13] ar1a: => [:VERSION, :RSpec, :Configuration, :MissingNormalizer, :Concern, :OptionsParser]
[12:45:14] __Yiota: has joined #ruby
[12:45:15] ar1a: strange, the classes arent there
[12:47:28] ar1a: oh the lib has problems
[12:47:36] ar1a: cant require it
[12:47:40] ar1a: because it has a .rb
[12:48:34] ar1a: https://gist.github.com/67d1ae51f56f32ecd6ebc29d885e1d94
[12:48:37] nobitanobi: has joined #ruby
[12:48:38] ar1a: and no gemspec
[12:53:42] vondruch: has joined #ruby
[12:56:03] psychicist__: has joined #ruby
[12:57:23] vondruch: has joined #ruby
[13:03:47] oleo: has joined #ruby
[13:05:29] antgel_: has joined #ruby
[13:10:22] elnino11: has joined #ruby
[13:12:55] ljarvis: ar1a: you can require it if it has .rb in the name
[13:13:08] ar1a: i fixed that issue
[13:13:13] ar1a: now i just have to try and get it to work with my data
[13:15:59] hutch34: has joined #ruby
[13:17:33] vondruch: has joined #ruby
[13:18:22] cam27: has joined #ruby
[13:18:23] BSAlb: has joined #ruby
[13:21:13] vondruch: has joined #ruby
[13:27:07] zapata: has joined #ruby
[13:27:48] truenito: has joined #ruby
[13:32:05] mim1k: has joined #ruby
[13:37:17] ascarter: has joined #ruby
[13:41:24] TheBloke-: has joined #ruby
[13:43:01] xco: has joined #ruby
[13:44:04] d10n-work: has joined #ruby
[13:44:08] nobitanobi: has joined #ruby
[13:44:19] xco: hi. i have a question. are these two methods identical? https://gist.github.com/siaw23/6952f5c554210f6bbda5b9649e236bcc
[13:44:33] xco: if so what’s the preferred style?
[13:44:54] uZiel: has joined #ruby
[13:45:20] griffindy: has joined #ruby
[13:46:30] tobiasvl: xco: they're equivalent, yes. most style guides will tell you to avoid using "return" unless you have to (control flow, for example)
[13:46:47] tobiasvl: xco: in that case you don't do either of those, since puts returns nil anyway
[13:46:53] tobiasvl: so just def hi; puts "hi"; end
[13:47:21] xco: forget the “puts hi” stuff
[13:47:46] tobiasvl: OK, it's erased from my memory
[13:47:46] xco: if i NEEDED to return something
[13:47:51] my123: has joined #ruby
[13:47:51] my123: has joined #ruby
[13:47:52] xco: i could used just “return”
[13:47:55] xco: or “nil”
[13:48:21] tobiasvl: yes, just "nil" is preferred unless you have to explicitly return inside an if test or something (control flow)
[13:48:29] xco: but talking about style guides, “nil” is preferred
[13:48:44] xco: gotcha ;)
[13:48:50] tobiasvl: https://github.com/bbatsov/ruby-style-guide#no-explicit-return
[13:51:11] gwilkes: has joined #ruby
[13:55:08] uZiel: has joined #ruby
[13:56:10] dminuoso: tobiasvl: That particular one I have real issues with.
[13:56:25] dminuoso: I hate implicit returns so much for anything but 1-statement methods.
[13:56:54] dminuoso: i.e. the JS equivalent of () => (expr)
[13:59:58] maattdd: has joined #ruby
[14:00:23] theunraveler: has joined #ruby
[14:00:25] haylon: has joined #ruby
[14:00:32] gwilkes: has joined #ruby
[14:02:10] cdg: has joined #ruby
[14:03:28] cdg_: has joined #ruby
[14:03:43] _DanN_: has left #ruby: ()
[14:11:38] chouhoulis: has joined #ruby
[14:12:13] gwilkes: has joined #ruby
[14:12:17] chouhoulis: has joined #ruby
[14:18:00] mim1k: has joined #ruby
[14:19:39] theRoUS: has joined #ruby
[14:21:23] mostlybadfly: has joined #ruby
[14:22:19] ldnunes: has joined #ruby
[14:25:46] stamina: has joined #ruby
[14:27:48] scarar: has joined #ruby
[14:29:24] kculpis: has joined #ruby
[14:33:38] qsx: has joined #ruby
[14:34:01] scarar: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:35:08] cschneid_: has joined #ruby
[14:35:16] qsx: using thor for a cli application, is there a way to write this cleanly? http://paste.phcn.ws/?i=1499438095
[14:39:52] patarr: has joined #ruby
[14:40:19] Papierkorb: qsx: 1) in general, `hsh[:key] ||= "some default value"` is the idiomatic way 2) thor has the `default:` option on #option
[14:40:30] Papierkorb: .... I think it was 'default:'
[14:41:13] ljarvis: but you can't extract the basename from there i guess
[14:41:15] tvw: has joined #ruby
[14:41:20] qsx: ljarvis: exactly.
[14:41:29] ljarvis: i think the code is fine anyway, is the dup necessary though?
[14:41:36] duderonomy: has joined #ruby
[14:41:39] qsx: options is immutable
[14:41:55] ljarvis: ah, right. Well what do you want to clean up? seems fine to me
[14:42:05] qsx: mainly the hack with the default option
[14:42:21] tvw: has joined #ruby
[14:42:26] ljarvis: it's not really a hack, but as Papierkorb suggests you could just use loptions[:key] ||= "..."
[14:43:14] ljarvis: loptions = options.dup.update(key: options[:key] || "#{basename}.key") # would also work
[14:44:49] gwilkes: has joined #ruby
[14:45:50] vdl: has joined #ruby
[14:49:01] uZiel: has joined #ruby
[14:49:13] my123: has joined #ruby
[14:49:20] vondruch: has joined #ruby
[14:49:32] my123: has joined #ruby
[14:50:08] Tau: has joined #ruby
[14:51:50] uZiel: has joined #ruby
[14:56:42] romankapitonov: has joined #ruby
[14:59:35] apeiros: ljarvis: huh? why .dup.update and not just .merge? (or is it not a hash?)
[15:02:25] hutch34: has joined #ruby
[15:03:47] ljarvis: whoops that's what i meant
[15:03:53] ljarvis: the original .dup threw me
[15:04:10] ljarvis: I assume it's a hash
[15:05:40] Polysics_: has joined #ruby
[15:06:06] mim1k: has joined #ruby
[15:06:13] [Butch]: has joined #ruby
[15:10:20] ljarvis: Does anyone use rubocop with a service that comments on GitHub PRs with offences?
[15:11:10] matthewd: ljarvis: I'm pretty sure CodeClimate does that for us
[15:12:10] ljarvis: ah ok, yeah I've heard good things about CodeClimate
[15:19:05] enterprisey: has joined #ruby
[15:19:07] mim1k: has joined #ruby
[15:31:14] lamduh: has joined #ruby
[15:31:29] lamduh: what is the best way for an experienced developer to quicly get up to speed with ruby for RoR dev
[15:31:46] duderonomy: has joined #ruby
[15:32:38] Papierkorb: learning ruby
[15:33:32] vondruch: has joined #ruby
[15:33:36] Papierkorb: No secrets there. you're experience, you know yourself how you learn new stuff the fastest. Just skim over the ruby community style guide first to get you on good tracks w.r.t how ruby code should (according to it) look
[15:34:44] lamduh: sure...just didn't know if something like codeacademy would be good just for initial syntax, but I should probably just read the docs
[15:34:56] baweaver: learnxinyminutes
[15:34:59] baweaver: then Eloquent Ruby
[15:35:07] baweaver: The first will give you a shotgun syntax tour
[15:35:09] g^k_1^w^m_s^u: has joined #ruby
[15:35:17] baweaver: the second will teach you to Ruby like a Ruby person
[15:35:45] baweaver: Then you should be good to hit whatever rails tutorials, docs, style guides, or otherwise.
[15:35:50] lamduh: Sounds good thanks
[15:35:59] baweaver: lamduh: what's your base experience in?
[15:36:22] g^k_1^w^m_s^u: has left #ruby: ()
[15:37:41] lamduh: Idk....I have a lot of experience with a lot of languages. Professionally, C# web dev, but I've written compilers in scala and python, and multiple games with SDL so I am pretty comfortable with C++ and C as well.
[15:37:52] lamduh: and ofc javascript for react stuff.
[15:38:01] baweaver: You'll find Scala and JS to be the closest feeling.
[15:38:09] baweaver: Python to look the most similar
[15:38:12] lamduh: I'm trying to move to the west coast and all these companies want me to know ROR for some reason
[15:38:26] baweaver: Also note #RubyOnRails
[15:38:45] baweaver: Rails 4 in Action was written by our beloved Radar and takes you through a lot of what you need to know.
[15:38:53] lamduh: Yeah I'm already on it..Appreciate it though. Was asking if the development experience is better on windows yet but doesnt seem like it
[15:39:13] Papierkorb: People have reported success with that linux subsystem stuff
[15:39:32] lamduh: Yeah....I don't know why but linux subsystem just feels hacky to me
[15:39:46] Papierkorb: It's windows
[15:39:55] baweaver: Still surprised that that's a thing
[15:40:02] lamduh: I'm in an airport waiting for my flight to the bahamas downloading Lubuntu for a VM
[15:40:06] baweaver: not sure what I think of it.
[15:40:07] brent__: has joined #ruby
[15:40:09] lamduh: unity always kills my laptop when I run it in a vm
[15:40:23] g^k_1^w^m_s^u: has joined #ruby
[15:40:25] lamduh: and yeah....Microsoft has turned a new leaf....obviously for profits...but I think they will startt being more open source friendly soon
[15:40:45] baweaver: If you want something fun, look into Raganwald's 'Kestrels, Quirky Birds, and Hopeless Egocentricy'
[15:40:46] lamduh: C# is a good language. .NET core and vs code are cross platform...idk i'd rather write enterprise web apps with .NET core than java tbh
[15:41:04] baweaver: https://leanpub.com/combinators
[15:41:15] baweaver: If I can ever spell egocentricity right.
[15:41:28] lamduh: That is quite the hipster title haha
[15:41:41] baweaver: Raganwald does a lot of JS and Ruby writing, interesting stuff.
[15:42:05] lamduh: Probably need to do a bit more of the basics before I get into it but thanks for the usggestion
[15:42:20] lamduh: plane just got here so thanks for all the help. ill bbl. c ya
[15:46:17] mim1k: has joined #ruby
[15:47:55] Paraxial: has joined #ruby
[15:51:20] ski7777: has joined #ruby
[15:53:15] Joufflu: has joined #ruby
[15:54:32] cam27: has joined #ruby
[15:56:33] hutch34: has joined #ruby
[16:00:27] amclain: has joined #ruby
[16:04:39] xco_: has joined #ruby
[16:04:54] eckhardt: has joined #ruby
[16:12:44] FastJack: has joined #ruby
[16:16:46] AgentVenom: has joined #ruby
[16:17:40] __Yiota: has joined #ruby
[16:19:49] _1_w_m__s_u__g_k: has joined #ruby
[16:21:09] Domon: has joined #ruby
[16:24:04] gusrub: has joined #ruby
[16:27:15] Paraxial: has joined #ruby
[16:30:19] haylon: has joined #ruby
[16:30:44] konsolebox: has joined #ruby
[16:31:04] npgm: has joined #ruby
[16:31:25] Axsuul: I would like to run a command via Ruby. Right now, system() gives me what I need except I also need access to the output. Sometimes the command will return blank and I need to know if that's the case. It doesn't seem like system() can do this. Another caveat is it also needs to support interaction (i.e. a byebug inspection). What can I use to run a command that supports interaction but also allows me to get access to output?
[16:33:12] vondruch: has joined #ruby
[16:33:43] __Yiota: has joined #ruby
[16:35:07] Papierkorb: axsuul: Use `: "puts `ls some_dir/*`"
[16:35:23] Papierkorb: axsuul: ` will return whatever the command wrote to STDOUT as string
[16:35:57] lxsameer: has joined #ruby
[16:35:59] Axsuul: Papierkorb: I've tried that however, backticks don't support interaction
[16:36:17] lxsameer: axsuul: use Process module if you need to interact with that process.
[16:36:39] Papierkorb: axsuul: See the Open3 lib. it's bundled with ruby.
[16:36:56] Axsuul: Papierkorb: I've also tried that but all it does is separate stdout, stderr, stdin
[16:37:02] Axsuul: I need to be able to interact with the command
[16:37:12] Axsuul: as if I were running the command natively in terminal
[16:37:30] Axsuul: #system works cause it redirects all output (I believe it streams it)
[16:38:23] ledestin: has joined #ruby
[16:38:44] dar123: has joined #ruby
[16:39:24] stamina: has joined #ruby
[16:39:27] Axsuul: lxsameer: Is that Process#exec?
[16:39:45] eam: axsuul: Papierkorb gave you the best answer: Open3
[16:40:11] eam: it's called open3 because it does a popen and returns three descriptors: stdin, stdout and stderr for your subprocess
[16:40:32] Papierkorb: axsuul: Do you actually need to do all that, or can you just check the processes exit code?
[16:41:17] Axsuul: eam: how would I redirect the interaction with Open3?
[16:41:33] Axsuul: all it does is hang if I place a byebug or binding.pry call within the code, for example
[16:41:49] eam: as I said it returns three descriptors
[16:41:52] ozcanesen: has joined #ruby
[16:41:53] eam: you'll need to service them
[16:41:57] Axsuul: Papierkorb: yep because, in my case, the exit code is always the same (1) but the output can be different
[16:42:16] eam: axsuul: this is somewhat of a complex situation, you may need to spend some time studying the fundamentals
[16:42:32] eam: dealing with i/o on >1 descriptor requires event driven operations
[16:42:39] eam: or threads
[16:52:10] tolerablyjake: has joined #ruby
[16:54:22] mim1k: has joined #ruby
[17:01:05] GinoMan: has joined #ruby
[17:02:10] dviola: has joined #ruby
[17:06:14] mim1k: has joined #ruby
[17:06:49] __Yiota: has joined #ruby
[17:13:23] duderonomy: has joined #ruby
[17:13:38] xco: has joined #ruby
[17:15:42] jzigmund: has joined #ruby
[17:17:20] pocketprotector-: has joined #ruby
[17:18:18] mim1k: has joined #ruby
[17:20:12] jgnagy: has joined #ruby
[17:21:36] unreal: has joined #ruby
[17:22:10] shinnya: has joined #ruby
[17:29:06] jzigmund: has joined #ruby
[17:30:17] mim1k: has joined #ruby
[17:31:18] DrCode: has joined #ruby
[17:32:04] vuoto: has joined #ruby
[17:36:23] jzigmund: has joined #ruby
[17:39:31] dionysus69: has joined #ruby
[17:39:48] PatrikasZvaigzde: has joined #ruby
[17:41:14] knight33: has joined #ruby
[17:42:25] mim1k: has joined #ruby
[17:42:52] arup_r: has joined #ruby
[17:53:23] vondruch: has joined #ruby
[17:53:57] ltem: has joined #ruby
[17:54:05] bit_lySLH2uSZHed: has joined #ruby
[17:55:38] sepp2k: has joined #ruby
[17:55:52] gothicsouth: has joined #ruby
[17:56:39] bit_lySLH2uSZHed: has left #ruby: ()
[17:57:43] vondruch: has joined #ruby
[17:58:07] cdg: has joined #ruby
[18:01:23] vondruch: has joined #ruby
[18:03:39] nobitanobi: has joined #ruby
[18:04:50] birdyondrugs: has joined #ruby
[18:04:56] skweek: has joined #ruby
[18:06:36] mim1k: has joined #ruby
[18:14:13] jzigmund: has joined #ruby
[18:16:11] rapofran_: has joined #ruby
[18:18:43] mim1k: has joined #ruby
[18:18:56] iceden|2: has joined #ruby
[18:19:14] rapofran_: has left #ruby: ()
[18:21:37] kobain: has joined #ruby
[18:24:16] Fworld101: has joined #ruby
[18:26:07] SeepingN: has joined #ruby
[18:26:53] jrm: has joined #ruby
[18:29:59] bit_lySLH2uSZHed: has joined #ruby
[18:30:44] mim1k: has joined #ruby
[18:31:13] chouhoul_: has joined #ruby
[18:33:07] JoshS: has joined #ruby
[18:33:44] bit_lySLH2uSZHed: has joined #ruby
[18:34:21] knight33: has joined #ruby
[18:35:19] bit_lySLH2uSZHed: has left #ruby: ()
[18:35:45] milardovich: has joined #ruby
[18:40:56] bit_lySLH2uSZHed: has joined #ruby
[18:41:05] polishdub: has joined #ruby
[18:42:48] mim1k: has joined #ruby
[18:42:57] jinie_: has joined #ruby
[18:45:33] vondruch: has joined #ruby
[18:45:39] bit_lySLH2uSZHed: has joined #ruby
[18:46:55] gusrub: has joined #ruby
[18:47:31] darix: eam: you can also do it serialized!
[18:48:43] mim1k: has joined #ruby
[18:49:04] tolerablyjake: has joined #ruby
[18:49:33] bit_lySLH2uSZHed: has joined #ruby
[18:52:29] arup_r: has joined #ruby
[18:54:14] bit_lySLH2uSZHed: has joined #ruby
[18:55:06] Mia: has joined #ruby
[18:57:55] cdg: has joined #ruby
[18:59:34] Ishido: has joined #ruby
[19:01:53] alex``: has joined #ruby
[19:01:54] bit_lySLH2uSZHed: has joined #ruby
[19:03:16] bit_lySLH2uSZHed: has left #ruby: ()
[19:03:44] Dimik: has joined #ruby
[19:06:46] ketan: has joined #ruby
[19:07:39] milardovich: has joined #ruby
[19:10:32] nhhc: has joined #ruby
[19:10:32] nhhc_: has joined #ruby
[19:12:18] Renich: has joined #ruby
[19:16:05] Tristan-Speccy: has joined #ruby
[19:21:27] bit_lySLH2uSZHed: has joined #ruby
[19:21:46] bit_lySLH2uSZHed: has left #ruby: ()
[19:22:09] chouhoulis: has joined #ruby
[19:24:52] BlkDynmt: has joined #ruby
[19:26:25] mim1k: has joined #ruby
[19:28:24] minimalism: has joined #ruby
[19:31:34] uZiel: has joined #ruby
[19:32:35] Fysicus: has joined #ruby
[19:36:21] ged: has joined #ruby
[19:37:56] patarr: has joined #ruby
[19:42:00] ascarter: has joined #ruby
[19:47:07] gothicsouth: has joined #ruby
[19:47:52] jzigmund: has joined #ruby
[19:47:55] PatrikasZvaigzde: has joined #ruby
[19:52:38] dkings: has joined #ruby
[19:54:03] latemus: has joined #ruby
[19:55:11] vondruch: has joined #ruby
[19:55:16] jzigmund: has joined #ruby
[19:56:34] maesitos: has joined #ruby
[19:56:43] maesitos: Hello, quick question. How come I can use the private method Module#alias_method inside a class definition
[19:59:00] Papierkorb: maesitos: `class Foo; alias_method :new_name, :old_name; end`
[19:59:14] apeiros: class SomeClass; alias_method :existing_method, :new_name
[19:59:17] apeiros: graaah Papierkorb!
[19:59:22] vondruch: has joined #ruby
[19:59:26] apeiros: ACTION swings fist in general direction of Papierkorb!
[19:59:30] maesitos: Papierkorb: but it's private isn't it?
[19:59:46] apeiros: private just means "can't be invoked with an explicit receiver"
[20:00:09] darix: apeiros: Gewalt ist keine Loesung!
[20:00:11] apeiros: and you are within the scope of the private method… it's a private instance method of Module
[20:00:17] apeiros: your class is an instance of Module
[20:00:21] Papierkorb: maesitos: Note that #alias_method isn't only an alias, but it actually *copies* the method. Try this: `class Object; alias_method :gimme, :to_s; end`, and then call it on an int: `123.gimme`. This won't give you "123" as you might expect, but it actually calls #to_s from its implementation in Object.
[20:00:29] apeiros: darix: that wasn't violence. it was only posturing.
[20:01:17] apeiros: Papierkorb: eh, it aliases the method as in the code. it's like a hard-link vs. a soft-link :)
[20:01:47] Papierkorb: maesitos: So if you want to add something to an existing implementation, a common idiom is this: `alias_method :old_foo, :foo; def foo; old_foo(...); end`
[20:02:10] jenrzzz: has joined #ruby
[20:02:11] jenrzzz: has joined #ruby
[20:02:18] Papierkorb: apeiros: Yeah well, I meant that it doesn't generate a simple `def x; y; end` as one might expect
[20:02:47] mim1k: has joined #ruby
[20:04:09] maesitos: Papierkorb: but my question is: how is it possible that the method alias_method is available inside a class definition?
[20:04:09] eam: darix: serialized with an event driven function, yeah?
[20:04:17] eam: aka select
[20:04:33] apeiros: maesitos: classes are objects
[20:04:46] apeiros: maesitos: and code of a class body is executed within the scope of the class itself
[20:04:49] apeiros: which is an instance of Class
[20:04:54] apeiros: and Class is a subclass of Module
[20:05:02] maesitos: apeiros: got it
[20:05:06] apeiros: hence instance methods of both Class and Module are available in the class body
[20:05:14] apeiros: >> class Foo; p self_is: self; end
[20:05:15] ruby[bot]: apeiros: # => {:self_is=>Foo} ...check link for more (https://eval.in/829477)
[20:05:24] Papierkorb: maesitos: what apeiros said. Try this: Create a class and give it a private method. Then add a public method. Call that private method once without self, and once with explicit self.
[20:05:32] vondruch: has joined #ruby
[20:05:34] cam27: has joined #ruby
[20:05:37] apeiros: note that that's why `class Foo; def self.bar; …` defines a "class" method
[20:05:59] maesitos: apeiros: that was the missing link for me, I didn't recall Class is a subclass of Module
[20:06:00] apeiros: it's just a specific case of `def some_obj.foo; …; end`, where some_obj == self == Foo
[20:06:37] apeiros: (which in turn defines an instance method on the singleton_class of some_obj - there aren't really any other kinds of methods in ruby than instance methods)
[20:07:03] Ishido: has joined #ruby
[20:08:04] maesitos: apeiros: I'm almost finishing "grounded rubyist" and it's now clear to me that everything is an object and all that but I was missing the fact that Class is a subclass of Module
[20:08:36] maesitos: apeiros: Thanks!
[20:09:13] ddddddd: has joined #ruby
[20:09:36] apeiros: weeeeell, actually… :D
[20:10:13] apeiros: (not everything is an object, but most)
[20:10:58] apeiros: things which aren't objects f.ex.: code, variables, methods, blocks (you can create objects from the latter two, though, and one could consider it an implementation detail that they aren't)
[20:11:22] Papierkorb: Not everything is an Object. Some are just BasicObject's *runs*
[20:11:49] apeiros: BasicObject… makes me yearn for something like Introspection even more…
[20:12:11] apeiros: like: intro = Introspection.new(some_basic_object); intro.instance_variables
[20:12:46] baweaver: So they're Basically Objects
[20:13:07] Joufflu: has joined #ruby
[20:13:41] vondruch: has joined #ruby
[20:21:21] vondruch: has joined #ruby
[20:23:12] rapha: say, is there any HTML manipulation library you like better than Nokogiri?
[20:23:54] rapha: (performance is pretty much irrelevant, I'm after a fun-to-use API)
[20:24:53] havenwood: rapha: I'd suggest taking a look at Oga.
[20:25:18] havenwood: rapha: For API beauty there was the much-loved but now abandoned Hpricot.
[20:25:26] rapha: ACTION looks at both
[20:25:30] vondruch: has joined #ruby
[20:25:53] havenwood: rapha: http://code.yorickpeterse.com/oga/latest/
[20:26:01] rapha: yup, google knew :)
[20:29:30] knight33: has joined #ruby
[20:31:38] vondruch: has joined #ruby
[20:33:08] rapha: havenwood: Oh, ouch: "Why are you writing an XML parser? Why not use Nokogiri?" - Answer: "In short, because Nokogiri doesn't work."
[20:37:56] milardovich: has joined #ruby
[20:38:57] mim1k: has joined #ruby
[20:40:18] Zarthus: normally i'd recommend fixing nokogiri, but that's only because 99% of projects that think that don't actually release a better product and give up halfway through :P
[20:40:36] Zarthus: seems like this guy kind of commited
[20:42:12] Mia: has joined #ruby
[20:42:12] Mia: has joined #ruby
[20:43:07] shanecav: has joined #ruby
[20:43:22] weaksauce: has joined #ruby
[20:43:26] darix: rapha: mechanize? not sure how much it abstracts from nokogiri
[20:43:34] milardovich: has joined #ruby
[20:48:43] lxsameer: has joined #ruby
[20:48:49] xzhao: has joined #ruby
[20:49:17] vondruch: has joined #ruby
[20:49:37] nhhc: has joined #ruby
[20:49:51] br0d1n: has joined #ruby
[20:51:48] mim1k: has joined #ruby
[20:52:34] cam27: has joined #ruby
[20:53:12] Joufflu: has joined #ruby
[20:53:24] vondruch: has joined #ruby
[20:54:32] nobitanobi: has joined #ruby
[20:55:49] milardovich: has joined #ruby
[20:57:34] vondruch: has joined #ruby
[20:57:48] chouhoulis: has joined #ruby
[20:59:31] GinoMan2440: has joined #ruby
[21:01:09] Joufflu: has joined #ruby
[21:01:13] vondruch: has joined #ruby
[21:02:19] Tau: has joined #ruby
[21:03:16] zenspider: nokogiri doesn't work??? uhhh
[21:05:34] zenspider: oh... yorick's BS again... n/m.
[21:07:06] zenspider: "nokogiri doesn't work... (on rubinius)" ... which isn't ruby.
[21:07:37] ketan: has joined #ruby
[21:10:01] jenrzzz: has joined #ruby
[21:11:03] __Yiota: has joined #ruby
[21:11:27] Tau: has left #ruby: ()
[21:13:22] rapha: Well, it's still possible that someone will produce good software, no matter their motivation.
[21:13:33] gusrub: has joined #ruby
[21:14:18] rapha: Anyone have any experience with Ox?
[21:15:21] vondruch: has joined #ruby
[21:16:21] nowhere_man: has joined #ruby
[21:17:51] jenrzzz: has joined #ruby
[21:20:13] gusrub: has joined #ruby
[21:25:28] vondruch: has joined #ruby
[21:26:53] InfinityFye: has joined #ruby
[21:27:31] mim1k: has joined #ruby
[21:29:35] rapha: darix: thanks for the mechanize suggestion, I'll keep that at the back of my mind.
[21:33:31] shinnya: has joined #ruby
[21:33:39] mistym: Finally found why trunk is broken 😩 Another long bisect session.
[21:33:51] jenrzzz: has joined #ruby
[21:33:51] jenrzzz: has joined #ruby
[21:34:38] milardovich: has joined #ruby
[21:37:38] vondruch: has joined #ruby
[21:39:37] zenspider: mistym: yay! congrats
[21:40:02] mistym: Looks like a commit in January added parallel ext configuration: https://github.com/ruby/ruby/commit/17b748df2bebc3e02abcf48c06ad73469b642779
[21:40:25] mistym: Which is broken if building --with-static-linked-ext
[21:40:42] zenspider: I'm a bit stumped... I recently switched to a new laptop and one of my main processes stopped working. It's part of my multi-project review / CI / etc thingies. I'm not sure why it would have stopped working after this switch tho.
[21:41:02] zenspider: turns out, I'm trying to run the following array:
[21:41:06] zenspider: ["/Users/ryan/.rbenv/versions/2.4.0/bin/ruby", "/Users/ryan/Work/p4/zss/src/hoe/dev/tmp/isolate/ruby-2.4.0/bin/rdoc", "--title", "nope", "-o", "doc", "--main", "README.rdoc", "-C", "lib", "History.rdoc", "Manifest.txt", "README.rdoc"]
[21:41:21] zenspider: oops, not that array... that's the correct one
[21:41:35] zenspider: the bad one has an empty string right after the first arg (ruby)
[21:41:46] zenspider: that empty string stops the process dead in its tracks, but... used to work
[21:41:53] zenspider: any clue what I missed?
[21:42:22] gothicsouth: has joined #ruby
[21:43:17] vondruch: has joined #ruby
[21:44:40] havenwood: zenspider: Is it splitting on "/" and there's a double "//" maybe?
[21:44:44] havenwood: >> 'x/y//z/'.split '/'
[21:44:45] ruby[bot]: havenwood: # => ["x", "y", "", "z"] (https://eval.in/829495)
[21:44:51] brent__: has joined #ruby
[21:45:00] havenwood: That's my best guess.
[21:45:45] zenspider: no split. just passing array to system
[21:46:43] zenspider: eg this hangs: system(*%W[ruby #{nil} -S rdoc -h])
[21:47:24] zenspider: either it used to not hang... or ... I dunno. something changed somewhere around the time I switched... but I can't isolate where/how/why
[21:49:27] vondruch: has joined #ruby
[21:49:37] eam: you don't know if it had that empty arg on your old laptop?
[21:49:43] enodata: has joined #ruby
[21:50:47] zenspider: I must have the way the code was written...
[21:51:03] zenspider: but I was running off the same version of ruby (absolute path)... so *shrug*?
[21:51:30] zenspider: just so strange
[21:51:41] milardovich: has joined #ruby
[21:53:43] mistym: When filing an issue at bugs.ruby-lang.org, is there a way to cc the author of a related commit?
[21:53:51] zenspider: glad I found the fix tho... had to chase it down through 2 projects
[21:54:10] zenspider: mmmm... lemme go remind myself. sec
[21:54:39] brent__: has joined #ruby
[21:56:08] mostlybadfly: has joined #ruby
[21:56:18] zenspider: mistym: well... you can add watchers to the issue... I don't think that/remember if rubymine is dynamic enough to just trigger such a thing by name in the description
[21:56:30] zenspider: like... I can add you to a new issue as a watcher
[21:56:38] mistym: zenspider: Yeah, maybe not... I'll add a watcher after I file it I guess. Thanks!
[21:56:56] scarar: has joined #ruby
[21:57:35] zenspider: I'd add the watcher while you create it... that way they get a notification for sure. Not sure about after the fact until there is another event
[21:57:47] scarar: has left #ruby: ()
[21:58:02] zenspider: you can also link to their issue by #nnn or revision via rnnn
[21:59:00] zenspider: but I don't think it'll notify the owner of that issue or revision
[21:59:03] patarr1: has joined #ruby
[21:59:06] mistym: Hm, I can't seem to see the option 🤔 Is it restricted for non-admin users, maybe?
[21:59:18] mistym: Yeah, I linked the revision already, but I doubt it'd notify the author
[21:59:27] mistym: (Issue, for reference https://bugs.ruby-lang.org/issues/13730)
[21:59:36] zenspider: if it is related, you can also consider adding them as owner
[22:00:21] zenspider: huh... I can't add a watcher either. it is definitely on the "new issue" screen for me, but maybe that's just for those with commit bit? *shrug*
[22:00:36] mistym: It's the specific commit that introduced the bug, so yeah, related
[22:00:37] mistym: Huh, maybe
[22:00:38] zenspider: I can't delete the spam ticket at the top tho... I don't know how granular the perms are
[22:01:30] zenspider: I can assign to nobu if you can't
[22:01:34] vondruch: has joined #ruby
[22:02:37] mistym: Thank you! Yeah, I don't seem to be able to
[22:02:38] dionysus69: has joined #ruby
[22:03:13] aglorei: has joined #ruby
[22:03:52] mim1k: has joined #ruby
[22:05:56] Silthias: has joined #ruby
[22:07:06] kobain: has joined #ruby
[22:11:28] sspreitzer: has joined #ruby
[22:11:28] sspreitzer: has joined #ruby
[22:13:19] mistym: zenspider: Thanks for the help!
[22:13:42] InfinityFye: has joined #ruby
[22:17:13] jenrzzz: has joined #ruby
[22:19:16] patarr: has joined #ruby
[22:26:51] meshsmith: has joined #ruby
[22:26:52] meshsmith: has joined #ruby
[22:28:32] brent__: has joined #ruby
[22:29:36] rapha: So it seems for now I'll be staying with Nokogiri.
[22:35:22] Ishido: has joined #ruby
[22:38:37] patarr: has joined #ruby
[22:40:01] mim1k: has joined #ruby
[22:41:47] gothicsouth: has joined #ruby
[22:43:37] ecuanaso: has joined #ruby
[22:48:42] patarr: has joined #ruby
[22:49:18] dionysus69: has joined #ruby
[22:55:46] ledestin: has joined #ruby
[22:58:23] rhyselsmore: has joined #ruby
[22:59:59] NightMonkey: has joined #ruby
[23:03:48] johnny56: has joined #ruby
[23:07:45] patarr: has joined #ruby
[23:08:05] gothicsouth: has joined #ruby
[23:08:29] ketan: has joined #ruby
[23:09:22] preyalone: has joined #ruby
[23:13:52] belmoussaoui_: has joined #ruby
[23:15:36] brent__: has joined #ruby
[23:15:52] GodFather_: has joined #ruby
[23:17:31] cahoots: has joined #ruby
[23:18:00] cahoots: hi, why does "^#define\\s+\\w+\\s*\\w*$".gsub("+", "\\+") return "^#define\\s\\w\\s*\\w*$" ?
[23:19:09] cahoots: dang, the gsub escapes it after it substitutes for some reason
[23:19:13] cahoots: so i need "\\\\+"
[23:21:54] mtkd: has joined #ruby
[23:22:49] elomatreb: cahoots: Depending on how you're printing the result, you may be seeing the #inspect of the String, which shows escape sequences (If I understand your problem correctly)
[23:24:16] milardovich: has joined #ruby
[23:24:16] gothicsouth: has joined #ruby
[23:24:34] jol_: has joined #ruby
[23:26:28] comet23: has joined #ruby
[23:26:38] comet23: what are your thoughts on the imac pro?
[23:29:13] cahoots: idk why they'd couple a cpu with a monitor for high-end stuff
[23:29:29] cahoots: like if i want a data center of macs, i don't want a bunch of monitors along with
[23:30:32] comet23: if you're doing creative work with photoshop or 3d programs you can use that and it will help you out really well or if you need to run multiple vms at the same time or create test servers, i think it's great
[23:31:32] mim1k: has joined #ruby
[23:31:56] cahoots: they can just by a separate monitor though
[23:32:15] comet23: my imac is my favorite computer
[23:33:02] rhyselsmore: has joined #ruby
[23:34:24] cahoots: sure, but they have more customers than just you
[23:35:56] zenspider: cahoots: I'd recommend also sticking to regexps and not strings
[23:38:36] brent__: has joined #ruby
[23:39:23] duderono_: has joined #ruby
[23:41:13] vondruch: has joined #ruby
[23:43:24] sgen: has joined #ruby
[23:44:50] tastygradient: has joined #ruby
[23:46:15] Joufflu: has joined #ruby
[23:47:34] tvw: has joined #ruby
[23:52:02] dionysus69: has joined #ruby
[23:53:25] vondruch: has joined #ruby