« Back to channel list

#ruby - 07 June 2018

« Back 1 day Forward 1 day »
[00:00:34] baweaver: So you can have a group of "guards" to transform a value, then just mix it in with a ` reduce { |_ v| status, result = guard[v]; break result if status } `
[00:02:06] baweaver: ...or just use Qo which wraps this all up in a nice package: Qo.match(value) { |m| m.when(cond) { |v| v * 20 } }
[00:02:55] jenrzzz: has joined #ruby
[00:02:55] jenrzzz: has joined #ruby
[00:03:04] baweaver: This is Qo - https://github.com/baweaver/qo
[00:03:17] baweaver: We are Qo. Everything is Qo
[00:09:08] raynold: has joined #ruby
[00:09:10] Lytol: has joined #ruby
[00:11:36] crankharder: has joined #ruby
[00:14:18] ramfjord: has joined #ruby
[00:20:13] ramfjord: has joined #ruby
[00:20:24] cagomez: has joined #ruby
[00:26:18] ramfjord: has joined #ruby
[00:26:42] ciscam: has joined #ruby
[00:26:53] dendazen: has joined #ruby
[00:28:23] Radar: baweaver: hax
[00:28:38] Radar: baweaver: one cookie for you 🍪
[00:29:33] ResidentBiscuit: has joined #ruby
[00:32:26] minimalism: has joined #ruby
[00:44:56] mikeiniowa: has joined #ruby
[00:47:54] fredlinhares: has joined #ruby
[00:53:19] dreamthese: has joined #ruby
[01:01:02] amar_: has joined #ruby
[01:03:36] regedit: anyone? how can i do this the Sidekiq way https://github.com/httprb/http/wiki/Thread-Safety
[01:04:07] regedit: trying to persist connection (keep-alive) across many executions of a sidekiq worker
[01:05:01] herbmillerjr: has joined #ruby
[01:05:03] regedit: ex. imagine queueing up a bunch of Sidekiq tasks each of which performs an API call to the same host
[01:05:47] gizmore|2: has joined #ruby
[01:06:34] ramfjord: has joined #ruby
[01:07:01] tdy: has joined #ruby
[01:10:12] orbyt_: has joined #ruby
[01:15:35] cagomez: has joined #ruby
[01:26:02] nicht_: has joined #ruby
[01:30:59] ramfjord_: has joined #ruby
[01:40:59] BlopMonster: has joined #ruby
[01:41:56] eelster: has joined #ruby
[01:48:35] chamar: has joined #ruby
[01:54:47] Azure: has joined #ruby
[02:08:38] mjolnird: has joined #ruby
[02:21:34] nicht_: has joined #ruby
[02:31:54] SuperLag: has joined #ruby
[02:35:14] ciscam: has joined #ruby
[02:40:23] pabs: has joined #ruby
[02:49:57] nicht_: has joined #ruby
[02:50:19] akaiiro: has joined #ruby
[02:51:40] nicht_: has joined #ruby
[03:00:15] cadillac_: has joined #ruby
[03:01:03] Puffball: has joined #ruby
[03:10:09] braincrash: has joined #ruby
[03:15:36] banisterfiend: has joined #ruby
[03:33:20] cagomez: has joined #ruby
[03:34:23] nicht_: has joined #ruby
[03:37:50] gix: has joined #ruby
[03:39:38] hello_joe: has joined #ruby
[03:40:27] barq_: has joined #ruby
[03:41:33] barq_: has left #ruby: ()
[03:50:54] dinfuehr: has joined #ruby
[04:01:25] bmurt: has joined #ruby
[04:05:27] guille-moe: has joined #ruby
[04:15:42] BlopMonster: has joined #ruby
[04:36:26] claw: has joined #ruby
[04:43:29] dminuoso: regedit: Use concurrent-ruby?
[04:43:37] kmurphy4: has joined #ruby
[04:44:30] dminuoso: regedit: the sidekiq way is to use idempotent actions, so you wont care if its executed twice
[05:02:45] amar: has joined #ruby
[05:11:07] ur5us: has joined #ruby
[05:14:05] byte00: has joined #ruby
[05:16:35] ur5us: has joined #ruby
[05:23:30] aupadhye: has joined #ruby
[05:25:49] reber: has joined #ruby
[05:32:14] BTRE: has joined #ruby
[05:46:34] venmx: has joined #ruby
[05:52:36] aufi: has joined #ruby
[05:56:19] anisha: has joined #ruby
[05:58:50] ciscam: has joined #ruby
[06:07:37] ur5us: has joined #ruby
[06:16:54] BlopMonster: has joined #ruby
[06:18:21] clemens3_: has joined #ruby
[06:24:29] venmx: has joined #ruby
[06:35:16] ethic: has joined #ruby
[06:39:55] tAn: has joined #ruby
[06:42:41] aupadhye: has joined #ruby
[06:51:47] psychicist__: has joined #ruby
[06:51:51] hfp_work: has joined #ruby
[06:52:27] elsurudo: has joined #ruby
[06:54:25] dionysus69: has joined #ruby
[06:56:02] amar: has joined #ruby
[07:01:25] byte00: has joined #ruby
[07:01:44] andikr: has joined #ruby
[07:07:52] amar_: has joined #ruby
[07:10:18] amelliaa: has joined #ruby
[07:11:01] mint: has joined #ruby
[07:11:04] mtkd: has joined #ruby
[07:11:54] kmurphy4: has joined #ruby
[07:13:19] clemens3: has joined #ruby
[07:17:12] ramfjord: has joined #ruby
[07:18:30] claudiuinberlin: has joined #ruby
[07:19:29] sysvalve: has joined #ruby
[07:20:23] pabs: has joined #ruby
[07:21:49] \void: has joined #ruby
[07:27:09] aupadhye: has joined #ruby
[07:31:56] burgestrand: has joined #ruby
[07:33:13] drale2k_: has joined #ruby
[07:37:01] aufi: has joined #ruby
[07:43:45] biberu: has joined #ruby
[07:47:50] amar: has joined #ruby
[07:53:13] jottr: has joined #ruby
[07:57:50] amar: has joined #ruby
[08:01:29] burgestrand: has joined #ruby
[08:01:38] drale2k_: has joined #ruby
[08:03:44] _aeris_: has joined #ruby
[08:04:07] Lee_Ash: has joined #ruby
[08:06:10] suukim: has joined #ruby
[08:16:40] plexigras: has joined #ruby
[08:22:49] syndikate: What was rib navigation shortcut inspiration?
[08:22:53] syndikate: I see resemblance to emacs
[08:23:46] schleppel: has joined #ruby
[08:26:17] roshanavand: has joined #ruby
[08:26:30] arne: has joined #ruby
[08:34:06] dr3wo: has joined #ruby
[08:35:25] jinie: has joined #ruby
[08:42:28] amar: has joined #ruby
[08:44:49] dinfuehr: has joined #ruby
[08:47:05] Mrgoose: has joined #ruby
[08:48:48] amar: has joined #ruby
[08:49:25] armando: has joined #ruby
[08:52:09] linduxed: has joined #ruby
[08:53:05] psychicist__: has joined #ruby
[08:53:34] kapil___: has joined #ruby
[08:54:12] tvw: has joined #ruby
[08:54:13] ur5us: has joined #ruby
[09:00:51] dinfuehr: has joined #ruby
[09:04:34] kliq: has joined #ruby
[09:06:00] amar_: has joined #ruby
[09:08:16] conta: has joined #ruby
[09:17:35] basic: has joined #ruby
[09:18:08] basic: how would you guys generate rsa keys without delay? as in.. http request comes and asks for a rsa key?
[09:18:40] basic: would you have a thread that sleeps all the time and has keys in a queueh
[09:20:35] basic: but then i would have to generate a trillion rsa keys on startup
[09:22:41] burgestrand: … or at least enough of them to satisfy the rate going out.
[09:23:09] basic: i feel like saving them in a database is overkill
[09:23:17] basic: but it would be the correct approach wouldnt it?
[09:23:48] burgestrand: Instant-generating RSA keys sounds like an interesting problem to create for yourself, but if you really want to do that it's a classic producer/consumer problem and reducing the latency between them, so pre-creating enough to satisfy demand and generating them in the background if your queue ever shrinks sounds like a sane idea.
[09:25:24] basic: i remember doing this already, and it reduced startup time
[09:25:48] basic: increased*
[09:25:56] Mrgoose2: has joined #ruby
[09:32:12] tomeaton17: has joined #ruby
[09:32:19] NL3limin4t0r: has joined #ruby
[09:34:16] anisha_: has joined #ruby
[09:38:06] aufi_: has joined #ruby
[09:41:24] venmx: has joined #ruby
[09:43:33] kmurphy4: has joined #ruby
[09:44:28] Guest93035: has joined #ruby
[09:45:21] sina: has joined #ruby
[09:45:21] sina: has joined #ruby
[09:46:10] Charliebr73: has joined #ruby
[09:51:13] drale2k_: has joined #ruby
[09:57:25] cliq: has joined #ruby
[09:58:07] dminuoso: Burgestrand: Hah you dont even need to be that crazy.
[10:01:43] ramfjord: has joined #ruby
[10:03:02] amar_: has joined #ruby
[10:04:30] dminuoso: Burgestrand: gotta admit the beauty of STM: https://gist.github.com/dminuoso/51023c49eba66de21ac3776ee14003c7
[10:04:40] conta: has joined #ruby
[10:13:31] anisha: has joined #ruby
[10:15:43] arne: if i want to redefine a class method programaticially
[10:15:45] arne: what do i use
[10:15:48] arne: define_singleton_method
[10:17:12] dminuoso: arne: You should rethink what you are doing.
[10:17:13] byte00: has joined #ruby
[10:17:25] arne: yeah still, what would i use
[10:17:36] arne: im just playing around how to solve this
[10:17:42] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[10:17:56] BlopMonster: has joined #ruby
[10:17:59] arne: well.. i want to exchange a method for a cached version of the methid
[10:18:11] dminuoso: arne: so you want memoization?
[10:18:20] arne: kinda, but not really
[10:18:29] dminuoso: Can you elaborate on this?
[10:18:31] arne: the code returns a rsa key, and that takes long
[10:18:32] sphenxes: has joined #ruby
[10:18:36] arne: this is okay for most of my cases
[10:18:51] arne: but one program, using the same codebase, needs it quick
[10:19:06] dminuoso: arne: check my previous gist.
[10:19:36] arne: still would love to know, what would be the "correct" way, just so i know ruby
[10:19:38] dminuoso: if you are happy with just a single slot, you can toss the array/if/raise away
[10:19:41] arne: class = singleton object, right?
[10:19:44] anisha: has joined #ruby
[10:20:00] dminuoso: arne: I'd just use a TVar
[10:20:29] drale2k_: has joined #ruby
[10:20:50] dminuoso: Its a powerful abstraction, and doesnt rely on horrible "lets modify code at runtime"
[10:21:08] arne: yeah, still i would love to know :> i know it wouldn't be pretty
[10:21:08] apeiros: arne: redefining a method is the same as defining
[10:21:26] apeiros: only difference being that there already was a method of the same name before.
[10:21:28] arne: my only "real" approach to this would be to safe the thing in the database
[10:21:48] arne: so.. def self.something;def self self.otherthing;"x";end;end; would work?
[10:21:59] apeiros: so yes, define_singleton_method, or def theclass.method, or singleton_class.define_method
[10:22:05] dminuoso: arne: Like I said. Spin up a simple thread, and have that thread pump RSA keys into a tvar.
[10:22:07] dminuoso: and then just consume that tvar.
[10:22:15] dminuoso: things will work out automatically with no real overhead
[10:22:20] arne: i have no clue what a tvar is
[10:22:27] dminuoso: arne: a transactional variable
[10:22:32] apeiros: but IMO what Burgestrand & dminuoso said.
[10:22:44] dminuoso: arne: it's a 5 lines of code solution
[10:23:07] dminuoso: arne: its thread safe, and it can be scaled to provide filled buffers with less than 10 lines of code.
[10:24:16] arne: well but i don't have concurrent-ruby in my gemfile.. and it feels a bit overhead to use that just for that one feature
[10:28:14] riceandbeans: has joined #ruby
[10:28:38] riceandbeans: When using rubocop, how would you tackle ABC complaints?
[10:36:40] elphe: has joined #ruby
[10:37:41] cadillac_: has joined #ruby
[10:45:42] bbobb: has joined #ruby
[10:45:58] RougeR: has joined #ruby
[10:45:58] RougeR: has joined #ruby
[10:50:01] nullmoose[m]: has left #ruby: ("Kicked by @appservice-irc:matrix.org : removing from IRC because user idle on matrix for 30+ days")
[10:56:02] amar_: has joined #ruby
[10:58:30] aufi_: has joined #ruby
[11:05:43] elphe: has joined #ruby
[11:08:27] ferr: has joined #ruby
[11:08:33] jrafanie: has joined #ruby
[11:10:23] ur5us: has joined #ruby
[11:12:36] suukim: has joined #ruby
[11:13:56] AJA4350: has joined #ruby
[11:15:33] apparition47: has joined #ruby
[11:20:39] Terens: has joined #ruby
[11:21:27] karapetyan: has joined #ruby
[11:26:23] arne: terens: hello!
[11:28:16] shinnya: has joined #ruby
[11:28:19] reber: has joined #ruby
[11:33:43] ldnunes: has joined #ruby
[11:43:06] NL3limin4t0r: riceandbeans: By reducing code complexity. ABC is calculated by sqrt( assignment_count**2 + method_call_count**2 + condition_count**2 )
[11:44:16] NL3limin4t0r: If you for example use many method calls and no variables you might want to even it up a little.
[11:45:34] NL3limin4t0r: If the method is still too complex you might want to extract some complexity to it's own method.
[11:46:52] NL3limin4t0r: Alternatively you can up the abc threshold in the RuboCop settings (if the default setting doesn't suit your taste).
[11:47:53] beefjoe: has joined #ruby
[11:49:55] NL3limin4t0r: Keep in mind that there are some not so obvious cases, for example this is a variable assignment `some_variable = 1` and this is a method call `hash[:some_key] = 1`.
[11:50:42] mtkd: has joined #ruby
[11:53:43] NL3limin4t0r: See: http://c2.com/cgi/wiki?AbcMetric and http://www.softwarerenovation.com/ABCMetric.pdf for futher info.
[11:54:46] zapata: has joined #ruby
[12:00:50] amar_: has joined #ruby
[12:03:23] yohji: has joined #ruby
[12:04:12] za1b1tsu: has joined #ruby
[12:04:57] yohji: has joined #ruby
[12:09:31] burgestrand: has joined #ruby
[12:10:15] synthroid: has joined #ruby
[12:14:11] ramfjord: has joined #ruby
[12:19:04] BlopMonster: has joined #ruby
[12:21:10] elphe: has joined #ruby
[12:21:55] vondruch_: has joined #ruby
[12:22:37] fmcgeough: has joined #ruby
[12:24:47] vondruch_: has joined #ruby
[12:37:13] BlopMonster: has joined #ruby
[12:38:13] kapil___: has joined #ruby
[12:40:10] Zaab1t: has joined #ruby
[12:41:16] bmurt: has joined #ruby
[12:46:09] joast: has joined #ruby
[12:56:48] jottr: has joined #ruby
[12:57:06] elphe: has joined #ruby
[13:03:12] jds: has joined #ruby
[13:06:49] ren0v0: has joined #ruby
[13:08:29] gnufied: has joined #ruby
[13:08:57] fmcgeough: has joined #ruby
[13:10:34] mtkd: has joined #ruby
[13:12:15] akem2: has joined #ruby
[13:19:03] elphe: has joined #ruby
[13:26:09] Nahra: has joined #ruby
[13:28:22] ruby[bot]: -b stopboylovers!*@*$#ruby-banned
[13:28:49] elphe: has joined #ruby
[13:28:58] asio: has joined #ruby
[13:29:56] gil_: has joined #ruby
[13:30:13] ramfjord: has joined #ruby
[13:31:14] Nahra`: has joined #ruby
[13:33:15] synthroid: has joined #ruby
[13:35:11] Nahra: has joined #ruby
[13:38:06] banisterfiend: has joined #ruby
[13:38:45] elphe: has joined #ruby
[13:39:47] griffindy: has joined #ruby
[13:40:11] asio: has joined #ruby
[13:47:44] beefjoe: has joined #ruby
[13:48:10] elphe: has joined #ruby
[13:48:50] k0mpa: has joined #ruby
[13:50:32] pastorinni: has joined #ruby
[13:56:29] BlopMonster: has joined #ruby
[13:56:47] dendazen: has joined #ruby
[13:58:06] Rapture: has joined #ruby
[14:00:38] Asher: has joined #ruby
[14:03:40] Nuve: has joined #ruby
[14:06:04] psychicist__: has joined #ruby
[14:13:05] mtkd: has joined #ruby
[14:18:49] jrafanie: has joined #ruby
[14:21:33] pastorinni: has joined #ruby
[14:23:00] Rapture: has joined #ruby
[14:23:49] bmurt: has joined #ruby
[14:24:53] elomatreb: has joined #ruby
[14:25:47] ciscam: has joined #ruby
[14:27:48] rprimus: hey guys - trying to figure why $_ is not 'working as expected':
[14:27:50] rprimus: : ; echo 'fred' | /usr/bin/ruby -pe 'print %x(echo $_)'
[14:27:50] rprimus: /usr/bin/ruby
[14:28:11] rprimus: : ; echo 'fred' | /usr/bin/ruby -ne 'print %x(echo $_)'
[14:28:12] rprimus: /usr/bin/ruby
[14:28:52] rprimus: ... with '-p', it correctly prints $_
[14:29:35] rprimus: however, within %x(), it's picking up the interpreter.
[14:29:56] Puffball: has joined #ruby
[14:30:03] rprimus: : ; /usr/bin/ruby --version
[14:30:05] rprimus: ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17]
[14:31:37] pastorinni: has joined #ruby
[14:35:15] RougeR: has joined #ruby
[14:37:33] apeiros: rprimus: `echo $_` is literally echo $_ in a subshell. you want interpolation: `echo #{$_}`
[14:41:37] pastorinni: has joined #ruby
[14:41:40] rprimus: aperios: Thank you!
[14:42:15] rprimus: perl -> ruby != 1:1
[14:42:18] apeiros: ?tabnick rprimus
[14:42:19] ruby[bot]: rprimus: pro-tip - use tab completion for nicks. avoids typos in nicks.
[14:43:15] rprimus: apeiros: learnt something else new today! Thanks.
[14:47:46] troys: has joined #ruby
[14:49:09] elomatreb: has joined #ruby
[14:49:28] elomatreb: has left #ruby: ()
[14:49:31] elphe: has joined #ruby
[14:49:35] elomatreb: has joined #ruby
[14:51:32] rippa: has joined #ruby
[14:51:36] pastorinni: has joined #ruby
[14:55:40] BlopMonster: has joined #ruby
[14:59:21] elphe: has joined #ruby
[15:01:00] cschneid: has joined #ruby
[15:01:34] pastorinni: has joined #ruby
[15:03:19] sphenxes: has joined #ruby
[15:08:09] mikecmpbll: has joined #ruby
[15:09:23] thadtheman: has joined #ruby
[15:09:40] thadtheman: Is there a good way of tracing a ruby program?
[15:10:47] rprimus: try rbspy.github.io
[15:10:47] apeiros: &ri TracePoint thadtheman
[15:11:00] apeiros: oh dear, that bot is still offline, right…
[15:11:38] pastorinni: has joined #ruby
[15:12:47] karapetyan: has joined #ruby
[15:13:40] apeiros: thadtheman: https://ruby-doc.org/stdlib-2.5.1/libdoc/tracer/rdoc/Tracer.html
[15:14:12] apeiros: and https://ruby-doc.org/core-2.5.1/TracePoint.html
[15:17:02] KeyJoo: has joined #ruby
[15:19:04] elphe: has joined #ruby
[15:21:37] pastorinni: has joined #ruby
[15:26:22] ruby[bot]: -bb $a:hojuruku$#ruby-banned hojuruku!*@*$#ruby-banned
[15:26:29] tcopeland: has joined #ruby
[15:29:45] akaiiro: has joined #ruby
[15:30:04] amar_: has joined #ruby
[15:30:33] amar_: has joined #ruby
[15:31:38] pastorinni: has joined #ruby
[15:31:40] TvL2386: has joined #ruby
[15:33:17] jamesaxl: has joined #ruby
[15:34:03] karapetyan: has joined #ruby
[15:34:12] mtkd: has joined #ruby
[15:35:28] ShekharReddy: has joined #ruby
[15:37:01] elphe: has joined #ruby
[15:41:38] pastorinni: has joined #ruby
[15:42:14] jcarl43: has joined #ruby
[15:43:22] BlopMonster: has joined #ruby
[15:44:51] amatas: has joined #ruby
[15:46:38] amatas: has joined #ruby
[15:46:53] elphe: has joined #ruby
[15:47:11] pabs: has joined #ruby
[15:47:17] nythalcrow: has joined #ruby
[15:51:37] pastorinni: has joined #ruby
[15:57:28] dminuoso: I wrote myself a sleek transactional queue for ruby
[15:57:43] dminuoso: I should gemify it.
[15:57:52] dminuoso: micro gems are good.
[15:58:16] cagomez: has joined #ruby
[15:59:38] amar_: has joined #ruby
[16:00:07] grilix: has joined #ruby
[16:01:37] pastorinni: has joined #ruby
[16:04:18] karapetyan: has joined #ruby
[16:06:35] elphe: has joined #ruby
[16:08:13] chouhoulis: has joined #ruby
[16:08:34] [Butch]: has joined #ruby
[16:10:28] banisterfiend: has joined #ruby
[16:11:37] pastorinni: has joined #ruby
[16:11:57] chouhoulis: has joined #ruby
[16:13:20] [Butch]: has joined #ruby
[16:16:21] elphe: has joined #ruby
[16:17:22] synthroid: has joined #ruby
[16:21:34] pastorinni: has joined #ruby
[16:24:48] TomyLobo: has joined #ruby
[16:26:16] elphe: has joined #ruby
[16:31:36] pastorinni: has joined #ruby
[16:31:50] Asher: has joined #ruby
[16:32:31] SeepingN: has joined #ruby
[16:32:49] banisterfiend: has joined #ruby
[16:33:01] dminuoso: Not bad, discovered some fundamental bugs in concurrent-ruby..
[16:34:44] jcarl43: has joined #ruby
[16:39:24] amar_: has joined #ruby
[16:41:37] pastorinni: has joined #ruby
[16:45:16] oz: has joined #ruby
[16:45:54] elphe: has joined #ruby
[16:46:18] Eiam: has joined #ruby
[16:49:31] jrich523: has joined #ruby
[16:50:05] jrich523: hey guys, is there a cmd to install a gem from a git like you can in a gemfile?
[16:50:28] pocketprotector: has joined #ruby
[16:50:34] jrich523: google makes it seem like i cant, but i feel like if it can easily be done by the file, i should be able to do it via the cmdline?
[16:51:17] dminuoso: jrich523: Download the repository and install the gem manually?
[16:51:37] jrich523: yeah, was wondering if there was any other options, just seems like it should be built in
[16:51:37] pastorinni: has joined #ruby
[16:51:44] jrich523: if thats it, thats it... thanks :)
[16:51:51] dminuoso: jrich523: Dunno whether it should be built in..
[16:52:00] dminuoso: jrich523: globally installing gems is generally not a good thing
[16:52:04] dminuoso: Especially not unstable gems.
[16:52:06] dminuoso: Use Bundler.
[16:53:59] jrich523: wanted to test just a part of a larger app via IRB, just needed to pull in one gem for this test.. was mostly just curious if there was a way outside of manual stuff
[16:54:18] dminuoso: jrich523: modify the Gemfile.
[16:54:29] lmat: has left #ruby: ()
[16:55:19] jrich523: im not sure i follow? the app's gemfile is fine.... i dont want to run the app, i just want to screw around with a segement of code... and to do that i need to load the module
[16:55:53] dminuoso: jrich523: You modify the Gemfile of the project.
[16:55:55] biberu: has joined #ruby
[16:55:57] pastorinni: has joined #ruby
[16:56:03] jrich523: its to query puppet, so i want to run some queries to mess around with the return data, so i know what im getting and need to work with
[16:56:26] dminuoso: jrich523: So the code uses bundler right?
[16:56:41] jrich523: the app has a gemfile, and is used via bundler, yes
[16:57:04] jrich523: the app is all well and good.. just large, and i just want to know the format of the data its getting from puppet, so i can extend what info the app has
[16:57:09] jrich523: i'd rather not run the whole app to do this
[16:57:23] jrich523: i was going to load the puppetdb module (our copy of it inhouse)
[16:57:48] jrich523: so that i could query puppet, in a similar way that the app does, so i can play with the data, and perhaps tweak the query
[16:58:06] jrich523: seemed the the best way to play with the returned data, was to just hop in IRB and start running some queries
[17:00:24] dminuoso: jrich523: You dont have to run the whole app.
[17:00:29] npgm: has joined #ruby
[17:00:32] dminuoso: jrich523: A Gemfile is basically a sandbox of gems.
[17:00:41] dminuoso: Bundler lets you run things with that sandbox.
[17:00:42] pastorinni: has joined #ruby
[17:00:53] dminuoso: If you modify the Gemfile, you change the gems that are available from within that sandbox
[17:01:03] dminuoso: You can use bundler to execute arbitrary things
[17:01:04] jrich523: oh, i didnt realize that was possible
[17:01:18] jrich523: still pretty new to ruby
[17:01:20] dminuoso: like `bundler exec irb`
[17:01:26] dminuoso: or `bundler ruby some_file.rb`
[17:01:36] dminuoso: and it will execute them from within that sandbox environment
[17:01:36] havenwood: jrich523: You can just modify an installed gem as well: gem open GEM_NAME
[17:01:48] havenwood: jrich523: And restore it to original condition: gem pristine GEM_NAME
[17:01:54] dminuoso: ACTION spanks havenwood
[17:02:37] za1b1tsu: has joined #ruby
[17:02:41] dminuoso: bad case of ruby monkeypatcherities today?
[17:02:56] jrich523: also, whoever told me to get eloquent ruby, thanks, its been a good book... tad wordy, but good :)
[17:04:29] dminuoso: I consider it bad taste to manipulate your global gems.
[17:04:45] ramfjord: has joined #ruby
[17:05:32] elphe: has joined #ruby
[17:08:34] nowhereman_: has joined #ruby
[17:12:32] jottr: has joined #ruby
[17:13:09] eckhardt_: has joined #ruby
[17:14:39] psychicist__: has joined #ruby
[17:15:29] elphe: has joined #ruby
[17:17:29] Eiam: I just have a monkeypatch.rb
[17:17:32] Eiam: that contains all of that
[17:23:28] ciscam: has joined #ruby
[17:24:03] akem: has joined #ruby
[17:24:50] sanscoeur: has joined #ruby
[17:26:59] hph^: has joined #ruby
[17:34:33] pastorinni: has joined #ruby
[17:35:29] akaiiro: has joined #ruby
[17:36:20] regedit: has joined #ruby
[17:38:13] amar_: has joined #ruby
[17:38:54] mtkd: has joined #ruby
[17:40:09] elphe: has joined #ruby
[17:42:41] claudiuinberlin: has joined #ruby
[17:43:36] dr3wo: has joined #ruby
[17:44:38] jottr: has joined #ruby
[17:46:02] kliq: has joined #ruby
[17:49:02] za1b1tsu: has joined #ruby
[17:50:01] elphe: has joined #ruby
[17:59:55] elphe: has joined #ruby
[18:01:04] pastorinni: has joined #ruby
[18:02:42] pastorinni: has joined #ruby
[18:04:25] ramfjord_: has joined #ruby
[18:04:41] plujon: has joined #ruby
[18:04:58] cagomez: has joined #ruby
[18:05:42] karapetyan: has joined #ruby
[18:06:42] hph^: has joined #ruby
[18:07:01] hph^: has joined #ruby
[18:07:20] hph^: has joined #ruby
[18:07:40] hph^: has joined #ruby
[18:08:05] hph^: has joined #ruby
[18:08:25] hph^: has joined #ruby
[18:08:45] hph^: has joined #ruby
[18:09:49] elphe: has joined #ruby
[18:12:22] Creatornator: has joined #ruby
[18:15:11] cagomez: has joined #ruby
[18:16:50] biberu: has joined #ruby
[18:17:43] jottr: has joined #ruby
[18:24:00] eckhardt_: has joined #ruby
[18:24:35] ramfjord: has joined #ruby
[18:25:11] eckhardt_: has joined #ruby
[18:29:29] elphe: has joined #ruby
[18:30:58] ramfjord: has joined #ruby
[18:30:59] sameerynho: has joined #ruby
[18:35:28] BlopMonster: has joined #ruby
[18:36:05] tdy: has joined #ruby
[18:36:57] ramfjord: has joined #ruby
[18:39:24] elphe: has joined #ruby
[18:40:37] jrich523: any good blog posts on exploring objects?
[18:40:59] \void: has joined #ruby
[18:41:06] jrich523: i came across .inspect and because the object has a lot of data, its mostly worthless
[18:42:55] ramfjord: has joined #ruby
[18:43:20] mtkd: has joined #ruby
[18:49:34] jrich523: has joined #ruby
[18:49:36] hays: has joined #ruby
[18:49:36] hays: has joined #ruby
[18:50:06] mzo: has joined #ruby
[18:51:16] armando: has joined #ruby
[18:53:36] kapil___: has joined #ruby
[18:55:23] za1b1tsu: has joined #ruby
[18:57:17] Ethan: has joined #ruby
[18:59:14] elphe: has joined #ruby
[18:59:17] baweaver: jrich523: define exploring
[19:03:26] jrich523: baweaver well, here is what i would do in Powershell, and just looking for something similar to easily browse an object https://gist.github.com/jrich523/263255120c38996de5bce6d2a6bb6e7a
[19:04:31] havenwood: ?pry jrich523
[19:04:31] ruby[bot]: jrich523: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[19:06:14] dendazen: has joined #ruby
[19:07:22] kliq: has joined #ruby
[19:11:17] ldepandis: has joined #ruby
[19:15:43] karapetyan: has joined #ruby
[19:16:59] desperek: has joined #ruby
[19:18:41] elphe: has joined #ruby
[19:22:05] jrich523: that something different?
[19:22:24] jrich523: in looking for it, all i found was, what appears to be an extension to it? (pry-plus via github)
[19:25:12] Eiam: no I'm commenting that pry is good
[19:25:39] jrich523: ahh gotcha lol :)
[19:31:25] dionysus69: has joined #ruby
[19:32:35] nythalcrow: has joined #ruby
[19:36:53] agent_white: has joined #ruby
[19:38:26] elphe: has joined #ruby
[19:40:39] Mia: has joined #ruby
[19:40:39] Mia: has joined #ruby
[19:45:41] ramfjord: has joined #ruby
[19:50:56] mikeric: has joined #ruby
[19:56:08] mikeric: has joined #ruby
[19:58:02] elphe: has joined #ruby
[20:00:39] ramfjord_: has joined #ruby
[20:00:40] jottr: has joined #ruby
[20:03:44] za1b1tsu: has joined #ruby
[20:07:54] elphe: has joined #ruby
[20:08:59] cthulchu_: has joined #ruby
[20:10:03] Creatornator: has joined #ruby
[20:11:47] pabs: has joined #ruby
[20:14:21] amar: has joined #ruby
[20:17:32] nicht_: has joined #ruby
[20:17:34] karapetyan: has joined #ruby
[20:17:46] elphe: has joined #ruby
[20:20:00] conr: has joined #ruby
[20:22:04] jud: has joined #ruby
[20:22:04] jud: has joined #ruby
[20:29:11] clemens3: has joined #ruby
[20:31:23] DarkM00ns: has joined #ruby
[20:32:29] DarkM00ns: has joined #ruby
[20:32:50] burgestrand: has joined #ruby
[20:33:02] bipul: has joined #ruby
[20:34:03] weaksauce: has joined #ruby
[20:37:28] elphe: has joined #ruby
[20:42:36] jottr: has joined #ruby
[20:44:00] kliq: has joined #ruby
[20:47:19] elphe: has joined #ruby
[20:52:34] tycoon177: has anyone here run into issues unzipping a zip file created with rubyzip on a mac? the files are unzipped just fine when using `unzip` from the terminal, but simply double clicking on them to open them with archiveutility fails with "Error 1 - Operation not permitted" (and this is only sometimes)
[20:52:50] tycoon177: I haven't found a common factor with the files themselves, but this has been driving me nuts
[20:53:28] tycoon177: because the fix thusfar has been to have marketing (who uses these zip files) send the files to me where i unzip and rezip the files manually
[20:53:39] edwardly: has joined #ruby
[20:53:39] edwardly: has joined #ruby
[20:54:14] jottr: has joined #ruby
[20:55:49] elomatreb: "Operation not permitted" sounds like an OS problem, rather than something specific to the zip files tbh
[20:56:13] ramfjord: has joined #ruby
[20:58:24] aeontech: has joined #ruby
[20:58:55] blackmesa: has joined #ruby
[20:59:10] tycoon177: elomatreb: I agree, but I feel like there should be a way for this to be corrected :/ oh well, I'll just continue to deal with it I suppose
[21:00:04] jottr: has joined #ruby
[21:02:02] dendazen: has joined #ruby
[21:02:08] ramfjord: has joined #ruby
[21:02:49] kliq: has joined #ruby
[21:04:41] zululee: has joined #ruby
[21:06:51] kliq: has joined #ruby
[21:06:59] elphe: has joined #ruby
[21:08:02] ramfjord: has joined #ruby
[21:09:02] Xiti: has joined #ruby
[21:11:11] Xiti: has joined #ruby
[21:14:09] tycoon177: elomatreb: i just got a response in ##mac and it turns out the issue *is* with the OS. OSx uses bsdtar under the hood whereas most linux distros use gnutar
[21:14:47] karapetyan: has joined #ruby
[21:14:52] elomatreb: "operation not permitted" sounds strange for that, but that could easily be it
[21:17:58] Xiti: has joined #ruby
[21:22:15] tycoon177: I just switched from using the built in archive utility to using "The Unarchiver" and it fixed the issue
[21:22:57] darkhanb: has joined #ruby
[21:24:24] dviola: has joined #ruby
[21:25:41] segy: has joined #ruby
[21:26:44] elphe: has joined #ruby
[21:31:02] ur5us: has joined #ruby
[21:36:32] elphe: has joined #ruby
[21:37:51] omth: has joined #ruby
[21:38:08] chouhoul_: has joined #ruby
[21:43:26] minimalism: has joined #ruby
[21:46:23] elphe: has joined #ruby
[21:47:14] cconstantine: has joined #ruby
[21:48:29] cconstantine: Does anyone know if it’s possible to extract the server_name from an SNI connection in event_machine without terminating the SLL/TLS connection?
[21:56:13] Emmanuel_Chanel: has joined #ruby
[21:56:15] elphe: has joined #ruby
[21:56:41] Emmanuel_Chanel: has joined #ruby
[21:56:44] rawburtz: has joined #ruby
[21:57:13] pabs: has joined #ruby
[21:59:56] wkoszek2: has joined #ruby
[22:00:19] kmurphy4_: has joined #ruby
[22:02:47] apeiros_: has joined #ruby
[22:03:06] Mrgoose2: has joined #ruby
[22:03:31] SeepingN: has joined #ruby
[22:03:48] agent_white: has joined #ruby
[22:05:36] Cthulu201: has joined #ruby
[22:07:59] jordanm: has joined #ruby
[22:12:29] zenspider: has joined #ruby
[22:15:55] elphe: has joined #ruby
[22:22:33] ramfjord: has joined #ruby
[22:23:04] akem2: has joined #ruby
[22:25:31] raynold: has joined #ruby
[22:35:39] elphe: has joined #ruby
[22:39:54] cadillac_: has joined #ruby
[22:40:41] weaksauce: has joined #ruby
[22:47:27] dendazen: has joined #ruby
[22:47:44] shinnya: has joined #ruby
[22:52:09] cconstantine: has joined #ruby
[22:57:13] ciscam: has joined #ruby
[22:58:58] cthulchu_: guys, what does @ mean?
[22:59:06] cthulchu_: if @selenium_wrapper.browser_safari? || @selenium_wrapper.browser_firefox?
[22:59:24] cthulchu_: looks like it's something like this.
[23:00:08] eam: it means instance variable
[23:00:23] eam: @selenium_wrapper's scope is the instance of self
[23:03:05] c0ncealed1: has joined #ruby
[23:03:31] cthulchu_: what is an instance?
[23:04:58] eam: yes, an individual instantiation of an object class
[23:05:13] eam: String is a class, x = "" is an instance of a String
[23:08:09] eam: a local variable is just a bare word "x". Maybe you'd create one inside a method, and it exists for the duration of the method call
[23:08:44] eam: an instance variable is prefixed with @, like @x, and it exists for the duration of the object instance
[23:09:09] eam: a class variable is prefixed with @@ and it exists for the duration of the class itself (so, essentially globally)
[23:10:59] kay: has joined #ruby
[23:11:43] akem: has joined #ruby
[23:11:55] grilix: has joined #ruby
[23:17:54] dreamthese: has joined #ruby
[23:21:47] tvw: has joined #ruby
[23:25:54] mjolnird: has joined #ruby
[23:36:01] Creatornator: has joined #ruby
[23:37:58] zenspider: has joined #ruby
[23:38:14] chmurifree: has joined #ruby
[23:38:43] srruby: has joined #ruby
[23:39:58] srruby: Does every language have its own testing software tools? Is rspec used much outside the Ruby community?
[23:40:19] havenwood: srruby: Not every language ships with testing tools. Most have them.
[23:40:26] havenwood: srruby: Ruby ships with Minitest.
[23:40:41] havenwood: srruby: RSpec is Ruby-specific. It's written in Ruby and can't be used in other languages.
[23:48:47] ciscam: has joined #ruby
[23:49:14] griffindy: has joined #ruby
[23:55:42] nicht_: has joined #ruby