« Back to channel list

#ruby - 08 May 2017

« Back 1 day Forward 1 day »
[00:03:42] cisco: has joined #ruby
[00:04:03] cisco: has joined #ruby
[00:04:20] cisco: has joined #ruby
[00:04:43] cisco: has joined #ruby
[00:05:37] jrafanie: has joined #ruby
[00:06:00] skade_: has joined #ruby
[00:09:52] northfurr: has joined #ruby
[00:13:00] tristanp: has joined #ruby
[00:14:31] romeoh_: has joined #ruby
[00:14:40] JeanCarloMachado: has joined #ruby
[00:15:15] cschneid_: has joined #ruby
[00:17:51] electrostat: has joined #ruby
[00:20:59] Azure: has joined #ruby
[00:27:00] rhyselsmore: has joined #ruby
[00:27:05] nankyokusei: has joined #ruby
[00:30:18] JeanCarloMachado: has joined #ruby
[00:30:27] spheric: has joined #ruby
[00:33:25] spheric: has joined #ruby
[00:33:27] xco: has joined #ruby
[00:34:17] xco: has joined #ruby
[00:35:11] xco: has joined #ruby
[00:36:01] xco: has joined #ruby
[00:36:52] xco: has joined #ruby
[00:37:36] xco: has joined #ruby
[00:38:23] xco: has joined #ruby
[00:39:06] JeanCarloMachado: has joined #ruby
[00:39:13] xco: has joined #ruby
[00:46:33] duderonomy: has joined #ruby
[00:56:07] patr0clus: has joined #ruby
[01:03:55] XZIST: has joined #ruby
[01:04:07] Jameser: has joined #ruby
[01:04:26] JeanCarloMachado: has joined #ruby
[01:05:53] apparition: has joined #ruby
[01:06:49] d^sh: has joined #ruby
[01:07:37] Pumukel: has joined #ruby
[01:07:42] skade_: has joined #ruby
[01:08:07] wethu: has joined #ruby
[01:10:22] latemus: has joined #ruby
[01:11:53] wethu: Hi, trying to find an answer with google, however not sure how to word this, what exactly is this: `def Foo(bar); Foo.new(bar); end; Foo("bar") returns an instance of Foo, init'd with "bar" but what is Foo(bar) ? a `method` or `constant_method` ?
[01:12:16] JeanCarloMachado: has joined #ruby
[01:12:48] wethu: Something clearer: https://gist.github.com/wethu/a44249492b965b5d08caa8553b6d1690
[01:13:14] AlexRussia_: has joined #ruby
[01:14:57] hutch34: has joined #ruby
[01:16:18] rkazak: has joined #ruby
[01:16:32] wethu: seem it might just be a capitalised method
[01:16:56] elomatreb: wethu: It's a regular method, defined on (try `p self.class`). The uppercase naming is just a convention
[01:18:35] arvindsaik: has joined #ruby
[01:19:22] wethu: thanks elomatreb, yeah that makes sense now. Not sure ill write much of this, what conventions are these usually used in?
[01:20:18] elomatreb: Uppercase methods like that are usually used for "casting" methods (e.g. Integer() or Array())
[01:20:41] elomatreb: But they're usually not defined on Object like that, rather on Kernel http://ruby-doc.org/core-2.4.1/Kernel.html
[01:21:57] elomatreb: Although if you want a method like that for a module you wrote yourself it's generally considered good practice not to monkeypatch the global namespace, but rather use the #[] method on your module instead
[01:22:44] elomatreb: Uh, .[]. So if you wrote "MyFancyLibrary", it'd be called as MyFancyLibrary[some_object_to_convert]
[01:24:51] JeanCarloMachado: has joined #ruby
[01:26:09] romeoh: has joined #ruby
[01:30:30] enterprisey: has joined #ruby
[01:33:13] apparition: has joined #ruby
[01:35:00] esObe_: has joined #ruby
[01:35:13] wethu: Thanks again for that, i was distracted with real work just now. Very interesting :)
[01:35:31] KnownSyntax: has joined #ruby
[01:36:37] cschneid_: has joined #ruby
[01:37:06] newrubycoder: anyone got some win32 experience? i need ruby to press keys for me
[01:37:21] esObe_: has joined #ruby
[01:41:19] jenrzzz: has joined #ruby
[01:41:20] jenrzzz: has joined #ruby
[01:46:32] JeanCarloMachado: has joined #ruby
[01:49:29] romeoh_: has joined #ruby
[01:49:39] gizmore|2: has joined #ruby
[01:51:14] charliesome: has joined #ruby
[01:57:51] enterprisey: has joined #ruby
[01:59:02] JeanCarloMachado: has joined #ruby
[02:03:00] gusrub: has joined #ruby
[02:06:11] libastral: has joined #ruby
[02:06:32] xaxisx: has joined #ruby
[02:08:09] spheric: has joined #ruby
[02:08:47] xaxisx: has joined #ruby
[02:09:12] skade_: has joined #ruby
[02:12:01] spheric_: has joined #ruby
[02:21:56] PorcoRex: has joined #ruby
[02:22:04] PorcoRex: Good evening.
[02:26:04] northfurr: has joined #ruby
[02:27:56] nankyokusei: has joined #ruby
[02:30:13] aglorei: has joined #ruby
[02:30:21] jcao219: has joined #ruby
[02:32:54] porfa: has joined #ruby
[02:36:47] t-recx: has joined #ruby
[02:37:46] hutch34: has joined #ruby
[02:38:25] esObe_: has joined #ruby
[02:41:39] aupadhye: has joined #ruby
[02:45:32] astrobunny: has joined #ruby
[02:53:35] bkxd: has joined #ruby
[02:54:30] rkazak: has joined #ruby
[02:56:38] jenrzzz: has joined #ruby
[02:56:38] jenrzzz: has joined #ruby
[02:58:40] c_nick: has joined #ruby
[02:58:59] c_nick: Do i need the TCL/TK Bindings when i install Ruby ?
[02:59:15] c_nick: I am trying to understand why do we need it or what is it
[02:59:54] elomatreb: It's a graphics library. Unless you're using it somewhere you probably don't really need it
[03:01:21] c_nick: Sqlite3 on ruby 2.3.3 WIndows, so safe for me to ignore that option
[03:02:08] __Yiota: has joined #ruby
[03:08:55] Pumukel: has joined #ruby
[03:09:10] djbkd_: has joined #ruby
[03:09:33] c_nick: thanks elomatreb
[03:10:18] skade_: has joined #ruby
[03:11:34] charliesome: has joined #ruby
[03:13:54] XZIST: has joined #ruby
[03:16:11] pankaj: has joined #ruby
[03:16:52] hugo_dc: has joined #ruby
[03:18:10] BTRE: has joined #ruby
[03:21:47] francuz: has joined #ruby
[03:24:41] northfurr: has joined #ruby
[03:37:51] bkxd: has joined #ruby
[03:40:04] esObe_: has joined #ruby
[03:50:07] enterprisey: has joined #ruby
[03:56:57] pifon: has joined #ruby
[04:01:50] gix: has joined #ruby
[04:05:22] XZIST: has joined #ruby
[04:06:26] patarr: has joined #ruby
[04:08:36] guardianJ: has joined #ruby
[04:09:20] xall: has joined #ruby
[04:10:43] Pumukel: has joined #ruby
[04:11:36] skade_: has joined #ruby
[04:18:32] xall: has joined #ruby
[04:22:42] bkxd: has joined #ruby
[04:25:05] aupadhye: has joined #ruby
[04:28:47] nankyokusei: has joined #ruby
[04:31:14] blackwind_123: has joined #ruby
[04:33:37] skade_: has joined #ruby
[04:38:46] ski7777: has joined #ruby
[04:40:39] xall_: has joined #ruby
[04:41:22] esObe_: has joined #ruby
[04:44:02] xall: has joined #ruby
[04:48:29] tildes: has joined #ruby
[04:57:28] guardianJ: has joined #ruby
[04:57:56] treaki_: has joined #ruby
[04:58:55] jenrzzz: has joined #ruby
[05:02:27] xall: has joined #ruby
[05:07:16] latemus: has joined #ruby
[05:08:02] hndk: has joined #ruby
[05:09:01] guardianJ: has joined #ruby
[05:12:22] hutch34: has joined #ruby
[05:19:35] Guest96: has joined #ruby
[05:20:47] xall: has joined #ruby
[05:24:51] xall_: has joined #ruby
[05:26:22] cfec0b8d: has joined #ruby
[05:33:40] roamingdog: has joined #ruby
[05:34:30] roamingdog: has joined #ruby
[05:35:05] Guest96: has joined #ruby
[05:35:15] roamingdog: has joined #ruby
[05:36:08] roamingdog: has joined #ruby
[05:36:50] guardianJ: has joined #ruby
[05:36:53] roamingdog: has joined #ruby
[05:37:04] xall: has joined #ruby
[05:37:56] tristanp: has joined #ruby
[05:39:23] enterprisey: has joined #ruby
[05:42:41] esObe_: has joined #ruby
[05:46:46] aupadhye: has joined #ruby
[05:49:04] xall_: has joined #ruby
[05:49:58] xall: has joined #ruby
[05:55:36] dminuoso: !goodmorning
[05:58:11] aupadhye: has joined #ruby
[06:04:17] djbkd: has joined #ruby
[06:05:16] yogg-saron: has joined #ruby
[06:07:23] patarr: has joined #ruby
[06:11:51] anisha: has joined #ruby
[06:12:04] Pumukel: has joined #ruby
[06:12:18] xall_: has joined #ruby
[06:12:25] Ishido: has joined #ruby
[06:17:15] jcao219: has joined #ruby
[06:17:48] bigkevmcd: has joined #ruby
[06:19:36] hayden___: has joined #ruby
[06:19:38] swills: has joined #ruby
[06:19:39] Guest37310: has joined #ruby
[06:19:44] bkxd: has joined #ruby
[06:19:48] ben_h: has joined #ruby
[06:20:01] minimalism: has joined #ruby
[06:20:08] d^sh: has joined #ruby
[06:20:46] pifon: has joined #ruby
[06:21:47] yo61: has joined #ruby
[06:22:14] User458764: has joined #ruby
[06:23:49] Mortomes|Work: has joined #ruby
[06:24:15] zenspider[m]: has joined #ruby
[06:24:30] dman[m]: has joined #ruby
[06:27:54] infernix: has joined #ruby
[06:28:59] tim_: has joined #ruby
[06:29:40] nankyokusei: has joined #ruby
[06:31:38] tim_: has left #ruby: ()
[06:44:01] esObe_: has joined #ruby
[06:49:17] ThePortWhisperer: has joined #ruby
[06:49:29] ThePortWhisperer: i have a large framework that runs on ruby 2.3 on my box
[06:50:07] ThePortWhisperer: theres another app that requires 2.4 (jekyll) and last time I installed it things seemed to go haywire with the versions stepping on each other
[06:50:30] ThePortWhisperer: is there some way to install this other ruby version while keeping everything segregated properly
[06:51:28] Radar: ThePortWhisperer: yes
[06:51:32] Radar: ThePortWhisperer: use chruby + ruby-install
[06:51:40] Radar: ThePortWhisperer: what OS are you on?
[06:58:04] loveablelobster: has joined #ruby
[06:58:11] andrzejku: has joined #ruby
[07:01:31] TomyWork: has joined #ruby
[07:02:19] andikr: has joined #ruby
[07:08:12] xall_: has joined #ruby
[07:09:42] bigkevmcd: has joined #ruby
[07:10:53] ddffg: has joined #ruby
[07:13:09] Pumukel: has joined #ruby
[07:14:12] unshadow: has joined #ruby
[07:16:36] spheric: has joined #ruby
[07:16:59] xenops: has joined #ruby
[07:17:37] dminuoso: ThePortWhisperer: So the real solution is to actually keep them entirely separate.
[07:18:05] dminuoso: ThePortWhisperer: If you however must share a physical server, look into chruby. Be sure to have the shell set the correct chruby for each
[07:19:08] ThePortWhisperer: dminuoso, interesting.
[07:20:02] ThePortWhisperer: i guess i can fire up another VM that is used only for jekyll
[07:20:37] ThePortWhisperer: i had to go through hell and high water to recover last time so if the only way to safely avoid that is to put jekyll on another box i'll take the step
[07:23:34] User458764: has joined #ruby
[07:26:08] Puffball: has joined #ruby
[07:27:50] jackrandom: has joined #ruby
[07:28:01] last_staff: has joined #ruby
[07:29:19] skade_: has joined #ruby
[07:29:45] Guest96: has joined #ruby
[07:29:49] mark_66: has joined #ruby
[07:31:49] dminuoso: ThePortWhisperer: Im a big fan of completely isolating apps. Here we dockerize everything.
[07:32:04] dminuoso: It avoids such issues entirely.
[07:32:54] ThePortWhisperer: i see. i dont know docker at all yet
[07:33:06] burgestrand: has joined #ruby
[07:33:07] ThePortWhisperer: so if i dockerize the jekyll install it should avoid breaking my other app
[07:34:12] dminuoso: ThePortWhisperer: A docker container is very much like a VM. Except a VM virtualizes the hardware, whereas docker virtualizes the operating system.
[07:34:36] dminuoso: ThePortWhisperer: Im not saying you should use it, but you should definitely explore it to know what it's all about.
[07:35:01] charliesome: has joined #ruby
[07:35:30] jenrzzz: has joined #ruby
[07:35:30] jenrzzz: has joined #ruby
[07:43:17] charliesome: has joined #ruby
[07:44:52] Pumukel: has joined #ruby
[07:45:17] esObe_: has joined #ruby
[07:45:33] patientj: has joined #ruby
[07:45:38] mim1k: has joined #ruby
[07:50:28] blackmesa: has joined #ruby
[07:51:13] toretore: has joined #ruby
[07:52:05] patientj: has left #ruby: ()
[07:55:04] roshanavand: has joined #ruby
[07:58:36] xco: has joined #ruby
[07:59:20] User458764: has joined #ruby
[08:00:46] burgestrand: has joined #ruby
[08:02:03] jamesaxl: has joined #ruby
[08:02:17] Seenox: Hello everyone. Sorry if this is a very simple question, but how can I add " in a puts? for example puts ""Hello""?
[08:04:07] burgestrand: Seenox you can either escape it by putting a \ before it, or change the quotes so that you don't use " to surround your string
[08:04:23] burgestrand: >> "Hello \" World"
[08:04:24] ruby[bot]: Burgestrand: # => "Hello \" World" (https://eval.in/789239)
[08:04:32] burgestrand: >> 'Hello " World'
[08:04:33] ruby[bot]: Burgestrand: # => "Hello \" World" (https://eval.in/789240)
[08:05:03] antib: has joined #ruby
[08:06:00] Seenox: Burgestrand: Hello again my beloved teacher!
[08:06:27] Seenox: Burgestrand: I have something like this, but I need to add " at the beginning of my output and ", at the end of it.
[08:06:31] Seenox: https://gist.github.com/anonymous/3db66e1232a2c552d590be42d1c64b93
[08:07:23] burgestrand: Seenox for what purpose do you need the quotes?
[08:07:39] burgestrand: Seenox I'm thinking if it's mean to make the output machine-readable there might be a better way
[08:08:11] patarr: has joined #ruby
[08:08:26] Seenox: Burgestrand: My script outputs something like this for the "hosts" : [{"Name"=>"git"}, {"Name"=>"ntp"}, {"Name"=>"synfacts"}]
[08:09:00] Seenox: Burgestrand: Then I need to read all the "Name" values, add " before everyone of them and add ", at the end of it and then use it for another purpose.
[08:09:17] xco: has left #ruby: ()
[08:09:34] burgestrand: Seenox you want e.g.: "git", "ntp", "synfacts"
[08:09:46] Seenox: without space after ,
[08:10:02] Seenox: Also add another, at the end of it.
[08:10:06] Ishido: has joined #ruby
[08:10:21] burgestrand: Seenox what about if there's a backslash in any of the names?
[08:10:30] burgestrand: Seenox or a comma in one of the names?
[08:11:06] Seenox: Burgestrand: You mean from the source arrays? It won't be any in them, they are puppet classes names.
[08:11:19] burgestrand: Seenox I'm fishing for if you're actually trying to output CSV, or this slightly arbitrary format you're describing :)
[08:11:33] Seenox: Burgestrand: One second please.
[08:11:33] jsrn_: has joined #ruby
[08:11:49] jsrn: has joined #ruby
[08:12:17] Seenox: Burgestrand: https://gist.github.com/anonymous/42827516a862be875ce2caaa535661ce
[08:14:29] Seenox: Burgestrand: I will then use this output in another one like the "hosts" I have above to add multiple values.
[08:15:00] mim1k: has joined #ruby
[08:15:37] tomphp: has joined #ruby
[08:16:12] Ishido: has joined #ruby
[08:16:17] Seenox: Burgestrand: https://eval.in/789277
[08:16:38] esObe_: has joined #ruby
[08:16:59] Seenox: Burgestrand: If you look at the output, it is missing a starting " and also an ending ",
[08:17:43] burgestrand: Seenox I think you might be making a mistake, but here's your gun: https://eval.in/789279
[08:17:55] burgestrand: Seenox if you need a comma at the end you can add it :)
[08:18:17] Seenox: Burgestrand: Can you please explain what mistake I am making here?
[08:18:38] HashNuke: has joined #ruby
[08:19:12] burgestrand: Seenox usually trying to massage output into some arbitrary unknown but unforgiving format for parsing via machine somewhere else is riddled with weird edge-cases you tend to forget about, that'd be solved by using a known format and a known serializer for it!
[08:19:52] binaryplease: has joined #ruby
[08:19:59] gizmore|2: has joined #ruby
[08:20:00] burgestrand: Seenox e.g. people that write/read their own CSV reader/writer without using a well-tested one, and end up making a mess :)
[08:20:34] Seenox: Burgestrand: Hmm, I can't understand you. You mean the output is a mess?
[08:21:47] burgestrand: Seenox no. CSV for example is a text format where you separate values into columns and rows, like an excel sheet.
[08:22:04] Seenox: Burgestrand: to explain a little bit more about it, the script should have a variable like this and then we add our own name at the end of it to use it like this: hammer hostgroup update --title MANUALLYADDEDTITLE --puppet-classes "THEOUTPUTWEHAVE","MANUALLYADDEDNAME"
[08:22:32] burgestrand: Seenox ah, so your intent is to use the output in a shell command?
[08:22:39] Seenox: Burgestrand: Exactly.
[08:23:11] Seenox: Burgestrand: Am I still making a mess here or I am good to go?
[08:23:34] burgestrand: Seenox I'm sure you're aware that shell commands can be a bit finnicky with special characters, e.g. $, '. If you're a 100% sure that your names won't be interpreted by the shell in some weird way then you're good to go.
[08:23:35] sepp2k: has joined #ruby
[08:24:34] Seenox: Burgestrand: I think in this particular thing, it will be ok.
[08:25:22] burgestrand: Seenox I can almost see it, `hammer hostgroup update --title "Oh no" --puppet-classes "${rm -rf /}","git"
[08:25:22] Seenox: Burgestrand: Can you please explain what exactly \ did in that puts?
[08:26:04] Seenox: Burgestrand: so I can use \ "," to it and it will add the ending comma?
[08:27:01] Seenox: Burgestrand: Since the data coming from another command in a json format, I think it will be safe to use it like that, or maybe I am lost here.
[08:27:28] burgestrand: Seenox if you have a puppet class with the name "${rm -rf /}" you could be in some trouble :)
[08:27:57] Seenox: Burgestrand: That's true... How to avoid such a thing in general?
[08:28:44] burgestrand: Seenox ideally you'd output it in a format tailored for the next usage
[08:30:36] nankyokusei: has joined #ruby
[08:30:47] burgestrand: Seenox e.g. ruby has a module called `shellwords` that's meant to make strings safely passable to bash
[08:32:52] Seenox: Burgestrand: For example before the last step, I put it through shelljoin?
[08:33:37] burgestrand: Seenox yeah, it might be that shelljoin is not good for you here since it splits the values by space, and hammer might require commas, but you could pass each name through shellescape
[08:34:24] burgestrand: Seenox e.g. https://eval.in/789328
[08:35:17] Seenox: Burgestrand: So in the end, the third value in hash will be ineffective?
[08:35:38] burgestrand: Seenox yeah, that's the idea, but according to the documentation that only holds if the value is not quoted
[08:36:09] Seenox: Burgestrand: the name, or quoted in the hash array?\
[08:36:11] morfin: has joined #ruby
[08:36:25] morfin: Gemfile accepts any Ruby code?
[08:36:28] burgestrand: Seenox the final output
[08:36:33] Seenox: Burgestrand: I see.
[08:37:16] gizmore|2: has joined #ruby
[08:37:50] porfa: has joined #ruby
[08:37:58] morfin: that's why thing reloading code suggested me to add some code for FreeBSD to use rb-kqueue
[08:39:03] Seenox: Burgestrand: Thanks a lot for your time and help every single time!
[08:39:14] KeyJoo: has joined #ruby
[08:39:24] Seenox: Burgestrand: I really appreciate it. Thanks man.
[08:40:28] burgestrand: Seenox You're welcome! I might not be a man though, you never know :).
[08:41:04] renchan: has joined #ruby
[08:41:17] Seenox: Burgestrand: :) haha.
[08:44:09] arup_r: has joined #ruby
[08:45:21] Seenox: Burgestrand: At the end it worked very great. https://gist.github.com/anonymous/4824d1c58dff0cfca93254af53fce98f
[08:46:10] Seenox: Burgestrand: Now I just need to add shellescape before the last step.
[08:46:27] vali: has joined #ruby
[08:47:31] User458764: has joined #ruby
[08:47:33] burgestrand: Seenox nice :). Looks like line #5 is unnecessary though.
[08:49:00] Seenox: Burgestrand: The first output is like this: https://gist.github.com/anonymous/cd12350a7672e5f40e41e947b15365c3
[08:49:22] Seenox: Burgestrand: I can still call the name key and get the values without removing the IDs, right?
[08:49:45] burgestrand: Seenox yup, `hosts.map { … }` retrieves the name only, so no need to filter out the ID.
[08:50:12] Seenox: Burgestrand: Great!
[08:50:34] burgestrand: Seenox additionally, if you do: `puppet_classes = pcnames + [puppetclass_name]`, then you can manipulate your class names only once and not worry about the trailing comma
[08:50:43] swarm: has joined #ruby
[08:50:49] lxsameer: has joined #ruby
[08:51:19] pandaant: has joined #ruby
[08:51:20] swarm: Anyone want to make some cash? I have a quickish programming problem I need help with, and I'm willing to pay someone $200 to solve it.
[08:51:34] xall_: has joined #ruby
[08:52:08] dgs_: no, but i'd like to see the problem regardless
[08:52:11] Seenox: Burgestrand: What would be the difference in my case? Isn't it same?
[08:53:28] swarm: dgs_, provided this schema: http://sqlfiddle.com/#!9/dcc6d/1 -- I need a program that outputs a table like: https://puu.sh/vJlzM/0ca8bf663f.png
[08:56:18] burgestrand: Seenox similar, but not the same, it'd allow you to remove that `+ ","` from line #7 and only use `#{puppetclass_names}` (notice plural) instead of `#{pcnames}#{puppetclass_name}` at the final line
[08:56:44] Seenox: Burgestrand: ah I missed that "s".
[08:57:14] burgestrand: Seenox and thus you'd only have a single list of names to pass on, instead of one list and then a lonesome value that you need to tack on to the end :)
[08:57:33] Seenox: Burgestrand: Perfect. thanks for the tip.
[08:58:32] burgestrand: Seenox also, a final tip that might not be relevant depending on the environment you're in, `Kernel.exec` in Ruby can take multiple parameters for shell commands, which makes it safer than trying to build a command string that you then pass to the shell, downside is that it doesn't return the output as text.
[09:00:08] burgestrand: Seenox e.g. `exec("/usr/bin/hammer", "update", "--title", hostgroup_title, "--puppet-classes", puppet_class_names)`
[09:00:56] burgestrand: Seenox also takes care of escaping if you have any nasty characters in the command
[09:01:14] burgestrand: >> exec "echo", "Hello $USER"
[09:01:15] ruby[bot]: Burgestrand: # => (https://eval.in/789401)
[09:01:29] burgestrand: I guess it makes sense that ruby bot does not allow exec, oh well :)
[09:01:47] Seenox: Burgestrand: lol
[09:02:56] Seenox: Burgestrand: The downside is it doesn't return the output as text, what is the advantage?
[09:03:24] mfaeh: has joined #ruby
[09:03:29] Seenox: Burgestrand: I had another case in my script that I had to end it with 2>/dev/null
[09:03:44] burgestrand: Seenox safer, the string is not interpreted by the shell so the horror scenario of a pcname with `${rm -rf /}` is not an issue
[09:03:46] mfaeh: join *pug
[09:04:31] burgestrand: Seenox there are ways to retrieve stdout/stderr but it's slightly more cumbersome than what you have when you execute your %x[command] :)
[09:04:32] romank: has joined #ruby
[09:04:37] aupadhye: has joined #ruby
[09:05:01] Seenox: Burgestrand: https://gist.github.com/anonymous/7bab3155b373b1a12d5d49281f982989
[09:05:25] Seenox: Burgestrand: So in this case, I could use exec instead and avoid 2>/dev/null?
[09:06:34] meinside: has joined #ruby
[09:06:48] burgestrand: Seenox oh, sorry, it's not exec, I mean `system` (`exec` replaces the calling process with the called process)
[09:07:09] burgestrand: Seenox same thing here though, not quite, because `system` returns a true/false if the command exited with success or not, and not the output of the command
[09:07:42] Seenox: Burgestrand: Also using system, I can't do the same thing with for example in this case "hammer"?
[09:08:15] burgestrand: Seenox no, because `hosts = …` you expect that `hosts` has the parsed output of hammer, but if you use system then it just returns true/false, not the output.
[09:08:42] Seenox: Burgestrand: I see. So in my case it wouldn't be correct.
[09:09:33] Seenox: Burgestrand: True or false, as in if the command exists or not?
[09:09:44] burgestrand: Seenox true/false as in command exit status
[09:10:29] Seenox: Burgestrand: What if the program outputs a text regardless of success or fail?
[09:10:44] jgnagy: has joined #ruby
[09:10:56] burgestrand: Seenox return value is exit status only, e.g. 0 == true, anything else == false.
[09:11:27] Seenox: Burgestrand: Got it.
[09:12:47] marr: has joined #ruby
[09:18:51] bronson: has joined #ruby
[09:25:20] swarm: dgs_: what did you think of the problem?
[09:25:40] itarato: has joined #ruby
[09:27:52] rhyselsmore: has joined #ruby
[09:33:18] tvw: has joined #ruby
[09:33:27] jackjackdripper: has joined #ruby
[09:36:07] dgs_: seems like a home problem?
[09:36:12] dgs_: *home work
[09:36:38] dgs_: i'd work out the html to draw that table by hand (or text editor)
[09:36:48] jenrzzz: has joined #ruby
[09:36:51] swarm: sorta, but i'm not in school. but learning it.
[09:37:04] dgs_: then just do that select and iterate over it building similar html
[09:37:24] dgs_: obviously need basic css to give it the same colors/borders etc
[09:37:42] jackjackdripper1: has joined #ruby
[09:38:11] swarm: the html/css/js part is no issue for me. it's the logic of building the tree and iterating through it... it seems inefficient
[09:39:52] roamingdog: has joined #ruby
[09:39:55] jackjackdripper2: has joined #ruby
[09:40:15] ledestin: has joined #ruby
[09:40:21] bubble1994: has joined #ruby
[09:42:12] jackjackdripper: has joined #ruby
[09:44:23] dgs_: what are you using to pull out the data? in active record it would be something like
[09:45:32] dgs_: employee.find(:all).each{|e| print "<tr><td>#name</td><td>#boss</td></tr>"}
[09:45:55] dgs_: now that has to be worth at least $50
[09:52:35] petems: has joined #ruby
[09:54:32] tvw: has joined #ruby
[09:56:13] pwnd_nsfw`: has joined #ruby
[09:58:35] Guest96: has joined #ruby
[09:59:50] hutch34: has joined #ruby
[10:02:39] troter__________: has joined #ruby
[10:03:32] flying: has joined #ruby
[10:05:29] A124: has joined #ruby
[10:05:31] mortimer: has joined #ruby
[10:09:01] patarr: has joined #ruby
[10:12:36] ishahnaz: has joined #ruby
[10:13:33] roshanavand: has left #ruby: ()
[10:17:35] xall_: has joined #ruby
[10:18:52] kiltzman: has joined #ruby
[10:19:11] bronson: has joined #ruby
[10:20:34] roshanavand: has joined #ruby
[10:22:18] User458764: has joined #ruby
[10:28:38] conta: has joined #ruby
[10:29:06] porfa: has joined #ruby
[10:31:23] nankyokusei: has joined #ruby
[10:33:59] roshanavand: has left #ruby: ()
[10:36:59] scrooloose: has joined #ruby
[10:40:41] gregf_: has joined #ruby
[10:43:43] millerti: has joined #ruby
[10:45:59] blackmesa: has joined #ruby
[10:48:52] dionysus69: has joined #ruby
[10:49:39] Silthias: has joined #ruby
[10:52:04] AlexRussia_: has joined #ruby
[10:55:43] User458764: has joined #ruby
[10:58:55] ferr: has joined #ruby
[11:01:34] SenpaiSilver: has joined #ruby
[11:03:11] jcao219: has joined #ruby
[11:06:58] patarr: has joined #ruby
[11:07:01] Ishido: has joined #ruby
[11:14:07] ishahnaz: has joined #ruby
[11:20:03] petruff: has joined #ruby
[11:20:10] bronson: has joined #ruby
[11:22:02] jackrandom: has joined #ruby
[11:22:33] d10n-work: has joined #ruby
[11:28:42] bweston92: has joined #ruby
[11:28:56] HoierM: has joined #ruby
[11:32:06] romeoh: has joined #ruby
[11:34:34] wethu: has joined #ruby
[11:38:52] jenrzzz: has joined #ruby
[11:38:52] jenrzzz: has joined #ruby
[11:38:54] ldnunes: has joined #ruby
[11:39:04] JeanCarloMachado: has joined #ruby
[11:40:52] ixti: has joined #ruby
[11:51:07] conta: has joined #ruby
[11:54:08] randomguy: has joined #ruby
[11:56:28] fusta: has joined #ruby
[12:03:39] dionysus69: has joined #ruby
[12:05:03] dangerousdave: has joined #ruby
[12:05:05] bubble1994: has left #ruby: ()
[12:05:46] synthroid: has joined #ruby
[12:08:22] randomguy: has joined #ruby
[12:08:40] romank: has joined #ruby
[12:12:30] ineb: i have a design question. I have a singleton object in my App and basically all other Objects need access to that object. So what are good design approaches here? Make that singleton global and have all other objects access it. Or make every constructor take that singleton object? Or use inheritance, mixins?
[12:13:01] armyriad: has joined #ruby
[12:14:19] ishahnaz: has joined #ruby
[12:14:28] nadir: has joined #ruby
[12:18:10] Guest96: has joined #ruby
[12:19:27] paulgafton: ineb: have the singleton instance static, and the rest of the objects access it as Class.SINGLETON
[12:21:55] GodFather: has joined #ruby
[12:22:59] Seenox: I am trying to compare two arrays, but am stucked... https://gist.github.com/anonymous/b28819c4f945b638040ebd518dfa9372 Can anyone please check and tell what am I doing wrong?
[12:23:02] Seenox: Burgestrand: ^
[12:23:38] Trynemjoel: has joined #ruby
[12:26:39] houhoulis: has joined #ruby
[12:27:30] chouhoulis: has joined #ruby
[12:28:41] newrubycoder: has joined #ruby
[12:29:27] hutch34: has joined #ruby
[12:30:58] dangerousdave: has joined #ruby
[12:32:19] nankyokusei: has joined #ruby
[12:32:35] dminuoso: ineb: The solution is to avoid singletons in the first place.
[12:32:43] dminuoso: ineb: They are usually a strong code smell.
[12:32:51] XZIST: has joined #ruby
[12:33:02] dminuoso: Singletons imply global access. Global access means you cant reason about code flow and how state can evolve over the lifetime of your application.
[12:33:19] dminuoso: (Read-only singletons, or special singletons that dont impact your application such as loggers are fine however)
[12:33:20] canton7: ineb, creating singletons through DI means that your classes are still testable, which is a big plus
[12:34:05] ineb: so what are your suggestions?
[12:34:07] t-recx: has joined #ruby
[12:34:17] canton7: constructor injection
[12:34:58] canton7: if you're modelling something of which there is only 1, then a singleton makes sense. One example is the configuration management for your application
[12:35:23] ineb: in my case, it is an access token
[12:35:26] canton7: the smell with singletons is that they're traditionally done using static instances, which ihurts testability
[12:35:49] ineb: every class needs it to do useful things
[12:36:43] canton7: I'd be more likely to write a class which encapsulates the API the access token is used for, hide the access token inside that class, then inject a singleton instance of that class into whatever needs it
[12:37:27] marr: has joined #ruby
[12:38:26] A124: has joined #ruby
[12:38:44] ineb: yes, iam encapsulating it, but we can talk about a token here for the sake of simplicity
[12:38:45] TomyWork: has joined #ruby
[12:39:54] canton7: well, I would never inject a token, but I would inject a class which encapsulates an API (and the token is an implementation detail of that class)
[12:39:56] canton7: so it *does* matter
[12:41:25] cronolio: has joined #ruby
[12:41:31] khronos: has joined #ruby
[12:42:09] Blobson: has joined #ruby
[12:43:05] cronolio: there have someone expirience with rbot and rss plugin ?
[12:43:06] northfurr: has joined #ruby
[12:44:18] interki: has joined #ruby
[12:46:48] roamingdog: has joined #ruby
[12:49:01] randomswede: If i want to 301 redirect a ruby app to a new domain, whats the best way to do this? Is rack-rewrite gem a viable option? Or should i do this at the load balancer level?
[12:49:18] mim1k: has joined #ruby
[12:49:36] ineb: canton7: from what you are saying, i came up with this approach: https://paste.xinu.at/iQxk20/
[12:53:09] rhyselsmore: has joined #ruby
[12:53:10] mfaeh: has joined #ruby
[12:53:38] jackrandom: has joined #ruby
[12:54:35] starmix: has joined #ruby
[12:54:41] ineb: no singletons involved
[12:54:57] jphase: has joined #ruby
[12:57:47] milardovich: has joined #ruby
[12:58:24] canton7: ineb, that's called property injection (and you might well have done 'service.authentication = whatever', rather than that oddly-named method :P)
[12:58:52] canton7: ineb, the issue with that is that the service needs the authentication to be present in order to function, but you can end up in a state where it isn't present, if you don't set that property
[12:58:58] canton7: so it's preferable to pass it as a ctor parameter
[12:59:36] canton7: also like I said, I'll pass around an API service, not the token itself
[13:01:25] canton7: ineb, (and if you pass that same Auth instance to multiple services, it is effectively a singleton)
[13:02:21] cfec0b8d: has joined #ruby
[13:03:04] ineb: canton7: i dont understand what you mean by 'API service' in that context. You are talking about something like TokenManager or whatever?
[13:03:23] canton7: presumably your access token is to access an API of some sort?
[13:04:35] ramortegui: has joined #ruby
[13:04:36] ineb: that is correct, but there is no API service to that. this it what i want to write
[13:05:15] canton7: right, so I'd write a class which represents the API, and which owns the token
[13:05:29] canton7: that's the only class which owns the token
[13:06:10] ineb: i understand
[13:06:21] nowhereman: has joined #ruby
[13:06:50] ineb: i think iam all set now
[13:07:51] Jameser: has joined #ruby
[13:09:34] conta: has joined #ruby
[13:12:05] dangerousdave: has joined #ruby
[13:12:23] jgnagy: has joined #ruby
[13:19:29] stupidsenpai: has joined #ruby
[13:19:57] gnufied: has joined #ruby
[13:21:00] bronson: has joined #ruby
[13:21:16] fmcgeough: has joined #ruby
[13:23:20] tomphp: has joined #ruby
[13:24:07] haylon: has joined #ruby
[13:24:11] Ellimist: has joined #ruby
[13:26:46] randomguy: has joined #ruby
[13:29:20] nhhc: has joined #ruby
[13:30:04] conta: has joined #ruby
[13:30:08] gabrielgizotti: has joined #ruby
[13:31:22] bernd27: has joined #ruby
[13:35:08] BSAlb: has joined #ruby
[13:35:30] DLSteve: has joined #ruby
[13:38:41] DLSteve: has joined #ruby
[13:40:55] jenrzzz: has joined #ruby
[13:40:57] jenrzzz: has joined #ruby
[13:42:26] Eindoofus: has joined #ruby
[13:46:38] patarr: has joined #ruby
[13:47:27] shinnya: has joined #ruby
[13:51:06] Jameser: has joined #ruby
[13:52:53] aupadhye: has joined #ruby
[13:54:08] JeanCarloMachado: has joined #ruby
[13:55:33] Pumukel: has joined #ruby
[13:58:37] millerti: has joined #ruby
[13:59:27] romank: has joined #ruby
[14:00:26] govg: has joined #ruby
[14:02:05] dangerousdave: has joined #ruby
[14:05:18] milardovich: has joined #ruby
[14:05:23] gchristensen: has joined #ruby
[14:05:28] chouhoulis: has joined #ruby
[14:05:47] gchristensen: Hi, is it possible to tell pry to turn off the nice features and act like more like irb? ie: disable color and paging
[14:06:04] gchristensen: preferably via environment variablesl
[14:07:11] jphase: has joined #ruby
[14:07:14] Benshiro: has joined #ruby
[14:10:26] theunraveler: has joined #ruby
[14:10:28] jrafanie: has joined #ruby
[14:11:33] AlexRussia_: has joined #ruby
[14:11:37] Papierkorb: gchristensen: why not use irb in that case?
[14:12:03] fusta: has joined #ruby
[14:13:07] kspencer: if you were to initialize a OpenStruct with a layered dictionary, would it convert every layer
[14:13:15] kspencer: s/dictionary/hash/
[14:13:29] Papierkorb: kspencer: No
[14:13:45] morfin: can i somehow avoid having different Gemfile.lock for FreeBSD and Linux?
[14:13:51] gchristensen: Papierkorb: I have a 3rd party program that I'm calling that drops me in to a pry session as an "API"
[14:14:02] gchristensen: so I'm trying to use expect to drive it
[14:14:43] Papierkorb: kspencer: You can either 1) not use OpenStruct and use #dig instead if that's enough or 2) use the `recursive-open-struct` gem which does what you want
[14:15:11] morfin: I got suggestion to add this http://paste.ubuntu.com/24536971/ to Gemfile but i will have different lock files for FreeBSD and Linux
[14:15:12] Papierkorb: kspencer: Well, of course, or you can build the open structs yourself too
[14:15:31] morfin: that sounds bad because i work in Git and don't want to ignore Gemfile.lock
[14:15:37] morfin: and Gemfile..
[14:16:28] Papierkorb: gchristensen: https://github.com/pry/pry/wiki/Customization-and-configuration
[14:17:33] PatrikasZvaigzde: has joined #ruby
[14:17:40] gchristensen: Papierkorb: <3 thank you!
[14:18:32] DeeJayh: has joined #ruby
[14:19:40] gchristensen: "Pry.color = false; Pry.pager = false; Pry.auto_indent = false;\r" <- this has largely solved the problems I've had
[14:21:52] morfin: bad solution - don't ever commit Gemfile and Gemfile.lock from FreeBSD
[14:23:58] futilegames: has joined #ruby
[14:27:55] User458764: has joined #ruby
[14:29:01] Jameser: has joined #ruby
[14:29:24] porfa: has joined #ruby
[14:31:38] cdg: has joined #ruby
[14:32:26] milardovich: has joined #ruby
[14:33:07] nankyokusei: has joined #ruby
[14:36:21] choke: has joined #ruby
[14:38:24] conta: has joined #ruby
[14:44:28] hsiktas: has joined #ruby
[14:47:59] petruff: has joined #ruby
[14:48:39] Guest96: has joined #ruby
[14:52:14] Meow-J: has joined #ruby
[14:52:29] spiette: has joined #ruby
[14:53:54] biberu: has joined #ruby
[14:54:21] hobodave: has joined #ruby
[14:54:48] enterprisey: has joined #ruby
[14:54:58] pankaj: has joined #ruby
[14:55:08] jrafanie: has joined #ruby
[14:58:04] __Yiota: has joined #ruby
[14:58:46] jrafanie_: has joined #ruby
[14:59:53] d10n-work: has joined #ruby
[15:00:16] polishdub: has joined #ruby
[15:02:07] jud: has joined #ruby
[15:02:51] dlitvak: has joined #ruby
[15:03:52] patarr1: has joined #ruby
[15:08:25] rjungemann: has joined #ruby
[15:09:17] northfurr: has joined #ruby
[15:09:26] petruff: has joined #ruby
[15:09:34] quobo: has joined #ruby
[15:10:07] haylon_: has joined #ruby
[15:10:11] guardianJ: has joined #ruby
[15:11:09] joseCova: has joined #ruby
[15:11:40] pankaj: has joined #ruby
[15:13:07] nfsnobody-: has joined #ruby
[15:13:27] gchristensen: has left #ruby: ("WeeChat 0.4.2")
[15:14:41] ixti: has joined #ruby
[15:16:14] Voxxit: has joined #ruby
[15:16:44] cyphase: has joined #ruby
[15:19:01] cschneid_: has joined #ruby
[15:19:07] bmurt: has joined #ruby
[15:21:13] KeyJoo: has joined #ruby
[15:21:56] conta: has joined #ruby
[15:22:00] bronson: has joined #ruby
[15:23:47] ohjn__: has joined #ruby
[15:24:01] bove: has joined #ruby
[15:25:18] raspado: has joined #ruby
[15:25:58] jgnagy: has joined #ruby
[15:28:13] imanc: has joined #ruby
[15:30:19] jrafanie: has joined #ruby
[15:38:10] jusa: has joined #ruby
[15:38:56] haylon: has joined #ruby
[15:39:24] gaucheph: has joined #ruby
[15:41:07] pmarreck: has joined #ruby
[15:41:27] brent__: has joined #ruby
[15:41:31] hobodave: has joined #ruby
[15:42:26] brent__: has joined #ruby
[15:42:39] jenrzzz: has joined #ruby
[15:42:40] jenrzzz: has joined #ruby
[15:45:41] caw: has joined #ruby
[15:47:19] Voxxit: has joined #ruby
[15:48:01] bascht1: has joined #ruby
[15:48:59] patarr: has joined #ruby
[15:49:21] anisha: has joined #ruby
[15:51:34] hobodave_: has joined #ruby
[15:51:56] xaxisx: has joined #ruby
[15:52:04] TomyLobo: has joined #ruby
[15:54:38] amclain: has joined #ruby
[15:54:49] mikecmpbll: has joined #ruby
[15:55:25] chouhoulis: has joined #ruby
[15:55:35] bronson: has joined #ruby
[15:56:18] jcao219: has joined #ruby
[15:57:09] synthroid: has joined #ruby
[15:59:27] kegster: has joined #ruby
[16:00:20] jackjackdripper: has joined #ruby
[16:01:16] kegster: I have a restful api that let's me run custom scripts, but everytime i run a function in the script, i need to check to make sure it doesn't error out, as only 1 script function can touch the db at a time-- so basically i need to wrap each function with something that checks the output to make sure it's not an error (json format)-- and keep retrying until it can get a valid response
[16:01:18] kegster: is this even possible?
[16:01:20] blackmesa: has joined #ruby
[16:01:29] [Butch]: has joined #ruby
[16:02:02] heftig: has joined #ruby
[16:02:03] voltai[m]: has joined #ruby
[16:02:03] KevinMGranger: has joined #ruby
[16:02:03] Giphy[m]: has joined #ruby
[16:02:03] M107262[m]: has joined #ruby
[16:02:03] johnson[m]: has joined #ruby
[16:02:03] thulsa_legume[m]: has joined #ruby
[16:02:03] travisr: has joined #ruby
[16:02:03] daveyboi[m]: has joined #ruby
[16:02:03] aviraldg: has joined #ruby
[16:02:04] jakebriggs[m]: has joined #ruby
[16:02:04] Tagami[m]: has joined #ruby
[16:02:04] zenspider[m]: has joined #ruby
[16:02:04] dman[m]: has joined #ruby
[16:02:04] jonjits[m]: has joined #ruby
[16:02:10] el_ocho[m]: has joined #ruby
[16:02:10] testnick[m]: has joined #ruby
[16:02:11] velu_aon[m]: has joined #ruby
[16:03:14] kegster: basically, i know it's an error only if there's some data in my json object
[16:04:04] baweaver: What have you tried?
[16:04:12] kegster: i've tried begin rescue ensure, etc
[16:04:18] jackjackdripper: has joined #ruby
[16:04:21] kegster: but i am not sure how to catch it based on the json output
[16:04:30] baweaver: that'll only work if there's a raised exception
[16:04:51] marxarelli: has joined #ruby
[16:04:56] baweaver: you can always use conditional branches y'know `if condition`
[16:05:18] baweaver: like if json[:error]
[16:05:19] kegster: baweaver, so i guess i need to see if the "error" is throwing an exception OR if it's just json output huh
[16:05:25] mrsolo: has joined #ruby
[16:05:30] kegster: sounds to me like it may actually be raising an exception, bc my code dies
[16:05:41] baweaver: Got a stack trace?
[16:05:44] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[16:05:44] kegster: too much to explain what i mean by that, bc this is such a niche
[16:05:54] baweaver: throw it up there and it might be easier to trace
[16:05:57] kegster: unfortunately no. i'm writing jruby for a scripting api for a 3rd party engine
[16:06:02] kegster: there is no "console"
[16:06:10] kegster: i have to manage my output, but if i get an error, it just dies on me lol
[16:06:15] kegster: so looks like ill need to do some trial/error ---
[16:06:25] kegster: can i jsut do begin, rescue, end, or do i need a resuce => something
[16:06:25] baweaver: binding.remote_pry
[16:06:44] baweaver: https://github.com/Mon-Ouie/pry-remote
[16:07:00] baweaver: It allows you to open a "remote" session that you can bind to and screw around in
[16:07:14] baweaver: ie a 3rd party you can't get into potentially
[16:07:21] kegster: the problem is, i can only initiate the request via RESTFul api call--- and it then runs the script internally haha
[16:07:46] kegster: more specifically, NUIX -- i am not sure if i can coddle it from there
[16:07:51] kegster: i def am goign to try :)
[16:10:00] trampi: has joined #ruby
[16:11:17] haylon_: has joined #ruby
[16:13:03] patarr: has joined #ruby
[16:14:29] Archrover: has joined #ruby
[16:16:07] porfa: has joined #ruby
[16:16:43] tildes: has joined #ruby
[16:18:50] xenops: has joined #ruby
[16:21:05] xall_: has joined #ruby
[16:23:34] nitric: has joined #ruby
[16:23:35] d10n-work: has joined #ruby
[16:26:04] porfa: has joined #ruby
[16:26:38] nebben: has joined #ruby
[16:26:47] bronson: has joined #ruby
[16:27:21] rippa: has joined #ruby
[16:28:09] rkazak: has joined #ruby
[16:29:17] gusrub: has joined #ruby
[16:33:10] dlitvak: has joined #ruby
[16:33:58] nankyokusei: has joined #ruby
[16:34:02] zarubin: has joined #ruby
[16:35:04] cronolio: has left #ruby: ()
[16:35:30] skade_: has joined #ruby
[16:37:34] LastWhisper____: has joined #ruby
[16:39:55] cseder: has joined #ruby
[16:40:25] oleo: has joined #ruby
[16:40:28] conta2: has joined #ruby
[16:41:20] cseder: Hi! I'm working through a Ruby book, trying to learn, but in this example: https://gist.github.com/cseder/c2433ebb94e072531a7d62ae8cfefd12 Do I in effect override the built in String class?
[16:41:54] JeanCarloMachado: has joined #ruby
[16:42:11] hobodave: has joined #ruby
[16:42:18] canton7: you add something to the built-in String class, yeah
[16:42:33] canton7: it's called money-patching
[16:42:41] elomatreb: Classes are never "finished" in Ruby, you can open and add or redefine them at any point
[16:42:56] nhhc: has joined #ruby
[16:43:02] cseder: canton7 is this what is called a mixin?
[16:44:50] cseder: But I don't declare that I'm extending anything, so if I just "add" to the String class, how come I don't have to mention that I do and create overridden functions from String
[16:45:32] cseder: It just magically gives String a frequency counter function?
[16:48:26] ljarvis: cseder: yes, it's not really magic though because you wrote it inside the String class explicitly
[16:48:48] ljarvis: that's just how re-opening classes in Ruby works
[16:49:49] cseder: ljarvis so if this adds functionality to a class, what is it called if it's not a "mixin"?
[16:50:10] ljarvis: cseder: it's called monkey-patching, as canton7 pointed out
[16:50:23] llua: he forgot the k
[16:50:57] cseder: ah, ok, didn't see it, didn't tag my name
[16:51:35] ljarvis: cseder: mixins are basically just modules. You "mix in" behaviour
[16:51:51] cseder: so is this a common way of extending classes in Ruby or is it a better way?
[16:52:05] ljarvis: you generally shouldn't monkey-patch core ruby classes
[16:52:18] cseder: ljarvis right
[16:52:20] ljarvis: but, if you want to extend the String class, that's generally how you would do it, yes
[16:53:09] cseder: monkey-patching sounds like something one should avoid...
[16:54:42] yo61: has joined #ruby
[16:55:28] ljarvis: it's helpful sometimes, you should generally approach it with caution, though
[17:00:05] jphase: has joined #ruby
[17:00:13] AlexRussia_: has joined #ruby
[17:01:56] jphase_: has joined #ruby
[17:04:56] gusrub: has joined #ruby
[17:05:21] Fridtjof: has joined #ruby
[17:07:09] sija: has joined #ruby
[17:07:28] haylon: has joined #ruby
[17:07:39] pankaj: has joined #ruby
[17:10:36] gusrub: has joined #ruby
[17:14:33] haylon: has joined #ruby
[17:14:37] SeepingN: has joined #ruby
[17:15:06] northfurr: has joined #ruby
[17:17:07] haylon: I thought I had a grasp on this, but it seems like I don't. I have a ruby script that I made that reads in a few variables and sets them as ENV variables for the duration of the run. Then within this script, I call Packer, but packer doesn't seem to be either understanding my ENV variables, or Ruby just isn't doing it the way I think its handling ENV variables being passed to child processes.
[17:19:44] BTRE: has joined #ruby
[17:20:08] User458764: has joined #ruby
[17:20:36] haylon: Am I correct in thinking that external programs beign called from Ruby should inherit the ENV variables being set by the script calling it?
[17:21:14] SeepingN: One would expect that. But in my experience, expect the unexpected
[17:21:33] SeepingN: ruby and command line stuff can be a lot trickier than it seems
[17:22:48] SeepingN: I had FileUtils.mkdir_p creating some VERY wacky permissions if I didn't put in :mode => 0664. I checked umask and it was normal at "2" (just 2, no octal value, I foudn that interesting)
[17:23:15] jphase: has joined #ruby
[17:23:39] SeepingN: it may start a fresh shell with absolutely nothing loaded. I usually have to source a dotfile if I don't want to futz with things much)
[17:23:55] mim1k: has joined #ruby
[17:24:48] haylon: So far, everything I've tested, shell scripts, other ruby scripts, echo, and some other external programs seem to understand the ENV variables being set by my ruby script, just not packer.
[17:24:56] haylon: So, it might be something with Packer itself.
[17:27:55] SeepingN: an setting your own. ok so that's nice, you can set than and "pass them on" (normally, apparently not with this Packer thing)
[17:28:00] AndrewIsHere: has joined #ruby
[17:28:38] SeepingN: how do you call Packer?
[17:29:18] SeepingN: I've resorted to using PTY for local calls so I can "stream" it's output while capturing it
[17:30:13] tildes: has joined #ruby
[17:30:17] haylon: I was using Open3.popen2e
[17:30:31] haylon: to do the shell execution so I can print the output,and write it to a file
[17:31:08] SeepingN: I tried so hard last year to avoid going into pty and open3 stuff but it seems inevitable if you "want it all"
[17:31:13] haylon: at first I was using %x[ packer build -machine-readable -debug template.json ]
[17:31:27] haylon: but that wouldn't output any text until it was over
[17:36:12] enterprisey: has joined #ruby
[17:38:56] wald0: has joined #ruby
[17:42:25] SeepingN: ACTION installs anti2html :\
[17:42:48] SeepingN: yeah that's the problemwith exec and system
[17:43:00] haylon: So, figured out what my issue was
[17:43:20] haylon: I just wasn't using the correct Profile name from my .aws/credentials file in my packer template
[17:43:35] haylon: its working now. thank you SeepingN
[17:44:04] SeepingN: ahh. yeah, the little stuff, eh?
[17:44:12] jenrzzz: has joined #ruby
[17:44:12] jenrzzz: has joined #ruby
[17:47:07] Fridtjof: has joined #ruby
[17:48:45] Guest96: has joined #ruby
[17:50:00] jrafanie: has joined #ruby
[17:50:35] morfin: i am going to try install Ruby using rbenv on Windows(with MinGW) that would work how do you think?
[17:51:00] morfin: or that's path of pain and suffering
[17:51:57] baweaver: I've seen Windows in general to be the path of pain and suffering for Ruby
[17:52:05] baweaver: unless you have 10 with Bash built in
[17:52:38] morfin: well, i am on 7
[17:53:15] baweaver: Most of the reason is that most gem devs explicitly don't test against Windows anything
[17:53:15] pankaj: has joined #ruby
[17:53:25] lancetw: has joined #ruby
[17:53:28] morfin: but msys2 with pacman should work probably hmm
[17:53:54] morfin: yes i hate builduing stuff on Windows too
[17:55:18] morfin: even to build ICU you should be freaking genius
[17:56:03] morfin: i don't say about WebKit with all dependencies
[17:56:19] ltem: has joined #ruby
[17:57:42] Heero__: has joined #ruby
[17:58:11] oleo: has joined #ruby
[17:58:52] bmurt: has joined #ruby
[18:01:03] kirun: has joined #ruby
[18:03:57] roamingdog: has joined #ruby
[18:05:18] binaryplease: has joined #ruby
[18:06:40] postmodern: has joined #ruby
[18:07:53] rkellermeyer: has joined #ruby
[18:12:00] machty: has joined #ruby
[18:13:12] cseder: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[18:15:47] epocS60: has joined #ruby
[18:15:55] tlarevo: has joined #ruby
[18:16:01] epocS60: hello ruby lovers
[18:17:16] tlarevo: has left #ruby: ()
[18:20:48] binaryplease: has joined #ruby
[18:21:33] fmccann: has joined #ruby
[18:21:58] ThePortWhisperer: has joined #ruby
[18:22:15] esObe_: has joined #ruby
[18:24:24] Lloyd: has joined #ruby
[18:24:44] govg: has joined #ruby
[18:25:36] mlhess: has joined #ruby
[18:27:15] skade_: has joined #ruby
[18:32:48] skade_: has joined #ruby
[18:34:36] raspado: has joined #ruby
[18:34:37] cschneid_: has joined #ruby
[18:35:07] Morrolan: has joined #ruby
[18:35:13] fmccann: has joined #ruby
[18:36:26] facest: has joined #ruby
[18:38:18] nhhc: has joined #ruby
[18:41:44] gheegh: has joined #ruby
[18:42:41] bronson: has joined #ruby
[18:47:00] hobodave: has joined #ruby
[18:48:21] JoshS: has joined #ruby
[18:52:33] mlhess: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[18:52:59] __Yiota: has joined #ruby
[18:53:22] aarongodin: has joined #ruby
[18:56:31] auv: has joined #ruby
[18:58:22] Fridtjof: has joined #ruby
[19:05:18] dviola: has joined #ruby
[19:06:42] haylon_: has joined #ruby
[19:09:47] lxsameer: has joined #ruby
[19:12:45] bash2: has joined #ruby
[19:14:26] Pumukel: has joined #ruby
[19:14:33] LukyCZ: has joined #ruby
[19:16:54] JeanCarloMachado: has joined #ruby
[19:19:10] skade_: has joined #ruby
[19:19:42] ishahnaz: has joined #ruby
[19:19:49] __Yiota: has joined #ruby
[19:21:37] Fridtjof: has joined #ruby
[19:21:59] kiltzman: has joined #ruby
[19:23:31] yqt: has joined #ruby
[19:23:50] kiltzman: has joined #ruby
[19:24:38] cfec0b8d: has joined #ruby
[19:37:31] cagomez: has joined #ruby
[19:38:30] tildes: has joined #ruby
[19:38:33] northfurr: has joined #ruby
[19:41:36] jackjackdripper: has joined #ruby
[19:42:24] bronson: has joined #ruby
[19:45:58] jenrzzz: has joined #ruby
[19:47:20] fusta: has joined #ruby
[19:50:35] cagomez: has joined #ruby
[19:55:00] cek: has joined #ruby
[19:55:07] cfec0b8d: has joined #ruby
[19:55:23] cek: wondering why is Numberic#% faster than Numeric#modulo ?
[19:56:15] baweaver: &ri Numeric#%
[19:56:15] `derpy: http://ruby-doc.org/core-2.4.1/Numeric.html#method-i-25
[19:56:19] baweaver: &ri Numeric#modulo
[19:56:20] `derpy: http://ruby-doc.org/core-2.4.1/Numeric.html#method-i-modulo
[19:56:23] skade_: has joined #ruby
[19:56:26] baweaver: let's look at the source on them
[19:56:56] cek: yeah. be my guest.
[19:57:14] bunniez: has left #ruby: ()
[19:57:52] baweaver: Probably because modulo is calling divmod, but they look like aliases
[19:57:56] baweaver: not sure really
[19:59:41] cek: next q. How do I optimize %? I'm looking for numbers having 0 mods for a specific number.
[20:00:22] al2o3-cr: Numeric#% and Numeric#modulo have exactly the same C source
[20:00:35] baweaver: Looked like it.
[20:01:05] baweaver: though I think it's splitting hairs to try and optimize that
[20:01:14] baweaver: more than likely the surrounding algorithm is the issue
[20:01:30] __Yiota: has joined #ruby
[20:01:39] roamingdog: has joined #ruby
[20:04:15] cek: >> Benchmark.measure { i=0; max = 10**7; while i<max do i % 128 == 0 ; i+=1; end }
[20:04:16] ruby[bot]: cek: # => uninitialized constant Benchmark (NameError) ...check link for more (https://eval.in/790059)
[20:04:29] cek: >> require 'benchmark; print Benchmark.measure { i=0; max = 10**7; while i<max do i % 128 == 0 ; i+=1; end }
[20:04:30] ruby[bot]: cek: # => /tmp/execpad-1fb91661db18/source-1fb91661db18:2: unterminated string meets end of file ...check link for more (https://eval.in/790061)
[20:04:35] cek: >> require 'benchmark'; print Benchmark.measure { i=0; max = 10**7; while i<max do i % 128 == 0 ; i+=1; end }
[20:04:37] ruby[bot]: cek: # => 0.910000 0.000000 0.910000 ( 0.913510) ...check link for more (https://eval.in/790062)
[20:04:46] brkkyk: has joined #ruby
[20:04:48] cek: >> require 'benchmark'; print Benchmark.measure { i=0; max = 10**7; while i<max do i.modulo(128) == 0 ; i+=1; end }
[20:04:59] brkkyk: hey everyone
[20:05:41] ishahnaz: has joined #ruby
[20:06:15] baweaver: also bot is acting up a bit
[20:06:53] blackmes1: has joined #ruby
[20:06:59] jcao219: has joined #ruby
[20:08:45] baweaver: well, was earlier.
[20:09:52] brkkyk: how actioncable act like under pressure?
[20:10:17] haylon: has joined #ruby
[20:10:44] ecdsa521: has left #ruby: ("mIRC 1.0 @ XENIX")
[20:11:16] cdg: has joined #ruby
[20:11:55] hobodave: has joined #ruby
[20:19:44] dionysus69: has joined #ruby
[20:21:09] gusrub: has joined #ruby
[20:21:31] patr0clus: has joined #ruby
[20:25:34] Silthias: has joined #ruby
[20:26:03] northfurr: has joined #ruby
[20:26:19] JeanCarloMachado: has joined #ruby
[20:26:24] zapata: has joined #ruby
[20:28:05] ltem: has joined #ruby
[20:28:56] synthroid: has joined #ruby
[20:29:14] enterprisey: has joined #ruby
[20:29:20] morfin: bin/rbenv contains only one line "../libexec/rbenv" which gives me "../libexec/rbenv: No such file or directory"
[20:29:55] cagomez: has joined #ruby
[20:30:12] morfin: any idea why it could happen?
[20:30:25] haylon_: has joined #ruby
[20:31:30] morfin: but file exists
[20:33:15] brkkyk: what is the output of "which rbenv"
[20:33:15] catileptic: has joined #ruby
[20:33:25] zapata: has joined #ruby
[20:33:29] catileptic: has left #ruby: ()
[20:33:36] morfin: it's /home/Alexander/.rbenv/bin/rbenv
[20:34:01] brkkyk: and when you execute rbenv
[20:34:05] brkkyk: whats the output of that
[20:34:11] username1: has joined #ruby
[20:34:28] morfin: i get jsut message "/home/Alexander/.rbenv/bin/rbenv: line 2: ../libexec/rbenv: No such file or directory"
[20:34:49] morfin: my bash can't handle relative path?
[20:35:42] cek: has left #ruby: ()
[20:36:47] skade_: has joined #ruby
[20:37:15] jackrandom: has joined #ruby
[20:37:15] brkkyk: hmm interesting
[20:37:33] brkkyk: maybe you should try fetch the HEAD of rbenv
[20:37:57] brkkyk: cd ~/.rbenv
[20:37:57] brkkyk: git fetch origin
[20:37:57] brkkyk: git reset --hard origin/master
[20:38:05] mim1k: has joined #ruby
[20:38:40] brkkyk: and then can you try this
[20:38:41] brkkyk: git config --global core.autocrlf input
[20:40:06] morfin: still breaks
[20:40:27] morfin: i am on Msys2 so i am wondering maybe it's console is not working
[20:41:25] morfin: basically i am reinstalling rbenv on FreeBSD(not from ports tree but using Git) also
[20:41:34] morfin: but it worked for me
[20:42:05] brkkyk: oops maybe it's about paths in Msys2
[20:42:25] brkkyk: i cant really rely on cygwin or something like that
[20:42:28] jenrzzz: has joined #ruby
[20:42:31] morfin: but why on FreeBSD after checking out and builduing "extension"
[20:42:50] morfin: i have full script on .rbenv/bin/rbenv
[20:43:12] space: has joined #ruby
[20:43:31] morfin: nevermind it's symlink
[20:43:41] morfin: msys2 can't symlinks
[20:43:45] sagax: has joined #ruby
[20:44:39] brkkyk: why you are using msys2
[20:45:44] morfin: because it's closest to Linux environment on Windows?
[20:45:52] brkkyk: nope not actually
[20:46:13] brkkyk: if you're using windows 10 then try ubuntu bash for windows
[20:46:22] brkkyk: @space hey
[20:46:54] morfin: windows 7 as i said
[20:47:19] brkkyk: then i suggest you to use virtual machines
[20:47:34] brkkyk: even if you run ruby with msys2
[20:47:49] brkkyk: then problems becomes with gems
[20:48:04] brkkyk: native extensions not really work well on windows
[20:48:16] brkkyk: so linux is the way to go
[20:48:26] fmccann: has joined #ruby
[20:48:55] morfin: i knew i gonna have pain
[20:48:56] fmccann_: has joined #ruby
[20:49:24] morfin: btw i allowed msys2 use native NT symlinks
[20:51:12] brkkyk: xubuntu works really well on vm even with 1gig of ram
[20:52:05] morfin: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[20:52:10] __Yiota: has joined #ruby
[20:52:23] morfin: i use that on my work
[20:55:43] fmccann_: has joined #ruby
[20:56:17] morfin: i guess there was only one Linux distro worse than that
[20:56:32] fmccann: has joined #ruby
[21:02:07] qmr: has joined #ruby
[21:03:54] brkkyk: has joined #ruby
[21:04:10] brkkyk: why is that?
[21:04:13] brkkyk: i like xubuntu
[21:05:22] AlexRussia_: has joined #ruby
[21:08:34] qmr: https://ptpb.pw/c2r8 <-- ??!
[21:10:02] roamingdog: has joined #ruby
[21:12:41] roamingdog: has joined #ruby
[21:13:07] swills: has joined #ruby
[21:13:28] duderonomy: has joined #ruby
[21:15:19] fmccann: has joined #ruby
[21:15:45] swills: has joined #ruby
[21:16:51] marxarelli: has joined #ruby
[21:16:57] blackmes1: has joined #ruby
[21:17:25] qmr: Any idea what that is?
[21:19:41] qmr: ok, it looks like it's because I'm trying to run on 1.8.7
[21:19:51] __Yiota: has joined #ruby
[21:19:55] roamingdog: has joined #ruby
[21:20:18] jenrzzz: has joined #ruby
[21:20:18] jenrzzz: has joined #ruby
[21:20:26] brkkyk_: has joined #ruby
[21:24:09] Pumukel: has joined #ruby
[21:25:08] jcao219: has joined #ruby
[21:28:53] morfin: has joined #ruby
[21:28:56] __Yiota: has joined #ruby
[21:29:20] morfin: s**t i think i broke my motherboard
[21:29:21] northfurr: has joined #ruby
[21:29:46] brkkyk: has joined #ruby
[21:30:15] morfin: i hate ASRock already
[21:30:30] brent__: has joined #ruby
[21:30:32] shinnya: has joined #ruby
[21:30:40] jusa: has joined #ruby
[21:30:43] morfin: so, i think i almost built Ruby
[21:31:39] binaryplease: has joined #ruby
[21:33:06] haylon: has joined #ruby
[21:33:43] haylon: Hello everyone. Why would STDIN.noecho(&gets).chomp throw a file not found error when using Thor for command line processing?
[21:34:12] haylon: I'm getting: `gets': No such file or directory @ rb_sysopen - login (Errno::ENOENT) when using Thor
[21:35:51] brkkyk_: has joined #ruby
[21:36:14] morfin: are you sure it's not &:gets?
[21:36:21] morfin: STDIN.noecho(&:gets).chomp
[21:37:10] haylon: Yeah, that's it, sorry
[21:37:54] haylon: This was workign until I threw it in a class, and then used Thor to call that class
[21:39:09] __Yiota: has joined #ruby
[21:41:04] ResidentBiscuit: has joined #ruby
[21:41:29] ResidentBiscuit: has joined #ruby
[21:41:39] haylon: I've read that I'm supposed to use Thor's `ask` function, but then that changes my code base for now
[21:41:51] jenrzzz: has joined #ruby
[21:41:51] jenrzzz: has joined #ruby
[21:41:54] ResidentBiscuit: has joined #ruby
[21:41:57] morfin: crap i hope install does not hang up PC when i build Ruby
[21:42:19] ResidentBiscuit: has joined #ruby
[21:42:26] haylon: are you using rbenv,or rvm to install?
[21:43:35] bronson: has joined #ruby
[21:44:37] morfin: basically proper symlink fixed my issue... i think
[21:44:40] haylon: When I compile/build Ruby, I notice that it throttles my PC pretty hard until its done
[21:44:55] morfin: well, my PC died already twice
[21:45:01] morfin: some hardware issues
[21:45:05] haylon: because of this?
[21:46:25] morfin: basically first time it compiled ruby but for some reason did not move output/finish procedure
[21:46:45] mnemon: has joined #ruby
[21:46:53] al2o3-cr: haylon: if you're using >= 2.3 you can use STDIN.getpass :)
[21:46:57] mochiyoda_: has joined #ruby
[21:47:19] haylon: Do I need to require anything, or still 'io/console'?
[21:47:20] jcao219: has joined #ruby
[21:47:37] al2o3-cr: io/console needs requiring
[21:47:53] haylon: I'll give that a whirl, thank you al2o3-cr, brb
[21:48:13] morfin: hmm /home/Alexander/.rbenv/plugins/ruby-build/bin/ruby-build: line 1011: /home/Alexander/.rbenv/versions/2.3.0/bin/ruby: No such file or directory
[21:48:20] Qommand0r: has joined #ruby
[21:48:28] __Yiota: has joined #ruby
[21:48:47] northfurr: has joined #ruby
[21:49:35] morfin: http://paste.ubuntu.com/24539190/
[21:49:41] morfin: could be some gem a reason for that?
[21:49:43] bcavileer: has joined #ruby
[21:49:55] morfin: rdoc maybe?
[21:50:09] roamingdog: has joined #ruby
[21:50:10] haylon: al2o3-cr, that worked, however, I'm still getting an error for a differnt plain gets block.
[21:50:35] haylon: morfin, permissions?
[21:52:53] morfin: since it's 1. Windows. 2. I am an administrator. 3. I own whole msys2 dir
[21:58:19] millerti: has joined #ruby
[21:59:01] TomyLobo: can i disable the "Object#timeout is deprecated, use Timeout.timeout instead" warning somehow?
[21:59:03] SCHAPiE: has joined #ruby
[21:59:11] TomyLobo: it's occurring in a gem I'm using
[21:59:15] haylon: morfin, can't say I can help you. I usually just use RubyInstaller.org
[22:00:52] cagomez: has joined #ruby
[22:00:59] cagomez: has joined #ruby
[22:01:47] al2o3-cr: TomyLobo: $VERBOSE = nil
[22:02:06] roamingdog: has joined #ruby
[22:02:32] lupine: switch to an implementation that doesn't use Timeout at all
[22:02:36] lupine: seriosuly
[22:03:04] TomyLobo: there is none
[22:03:13] TomyLobo: there is just this one
[22:04:10] TomyLobo: lupine, btw, why?
[22:04:22] MrBusiness: has joined #ruby
[22:04:47] TomyLobo: thanks, al2o3-cr
[22:05:04] TomyLobo: al2o3-cr, uh, this looks like it also disables other stuff
[22:05:48] morfin: too bad there is no more verbose mode than just verbose
[22:05:50] cagomez: has joined #ruby
[22:05:52] lupine: TomyLobo: because it uses Thread#kill under the hood
[22:05:55] morfin: or even -vvv
[22:05:58] lupine: and that leads to all sorts of incredibly bad outcomes
[22:06:11] lupine: random memory leaks and segfaults are the least of it
[22:06:22] TomyLobo: well it's a short-running script
[22:06:32] TomyLobo: about memory leaks at least
[22:06:36] TomyLobo: segfaults, never had one
[22:06:37] lupine: standards.... slipping
[22:06:44] lupine: must... resist
[22:08:01] morfin: proper threads are better
[22:09:15] danzilio: has joined #ruby
[22:11:32] Dimik: has joined #ruby
[22:12:01] SeepingN: anyone have experience with command line conversion tools like recode and ansi2html? I'm trying to convert ANSI Colorized output with UTF-8 type characters into HTML colors with encoded characters. But feed one of those 2 tools into the other leads to too-many-conversions
[22:13:04] ResidentBiscuit: has joined #ruby
[22:15:21] lxsameer: has joined #ruby
[22:16:09] GodFather: has joined #ruby
[22:16:18] blackmes1: has joined #ruby
[22:19:28] morfin: i guess i just need to install lots of packages
[22:19:31] gaucheph: has joined #ruby
[22:19:47] brkkyk: has joined #ruby
[22:22:38] fmccann: has joined #ruby
[22:23:25] blackmes1: has joined #ruby
[22:24:39] Pumukel: has joined #ruby
[22:27:11] __Yiota: has joined #ruby
[22:31:03] morfin: psych is one of "standard" gems?
[22:31:34] havenwood: morfin: Psych is in the stdlib.
[22:31:38] baweaver: YAML parser, I think so
[22:31:45] baweaver: vacation, shoo
[22:31:45] havenwood: baweaver: \o
[22:31:51] havenwood: ACTION shoos
[22:32:07] morfin: in stdlib? i thought it's separate thing
[22:32:48] cagomez: has joined #ruby
[22:33:55] baweaver: https://ruby-doc.org/stdlib-2.4.1/libdoc/psych/rdoc/Psych.html
[22:35:25] fmccann_: has joined #ruby
[22:35:45] BSaboia: has joined #ruby
[22:35:57] northfurr: has joined #ruby
[22:36:47] fmccann: has joined #ruby
[22:39:12] patr0clus: has joined #ruby
[22:40:40] bmurt: has joined #ruby
[22:40:42] __Yiota: has joined #ruby
[22:42:35] mikecmpbll: has joined #ruby
[22:45:32] ishahnaz: has joined #ruby
[22:47:39] MrJoshua: has joined #ruby
[22:54:55] cyphase: has joined #ruby
[23:00:10] roamingdog: has joined #ruby
[23:01:35] cschneid_: has joined #ruby
[23:02:04] Polysics: has joined #ruby
[23:03:24] brent__: has joined #ruby
[23:05:46] fmccann: has joined #ruby
[23:06:50] alveric3: has joined #ruby
[23:07:51] wethu: has joined #ruby
[23:15:04] bmurt: has joined #ruby
[23:16:31] XZIST: has joined #ruby
[23:17:54] ged: has joined #ruby
[23:25:27] avdi: has joined #ruby
[23:25:37] Pumukel: has joined #ruby
[23:29:07] patarr: has joined #ruby
[23:29:25] nhhc: has joined #ruby
[23:31:50] jusa: has joined #ruby
[23:31:59] cschneid_: has joined #ruby
[23:32:56] ged_: has joined #ruby
[23:35:08] northfurr: has joined #ruby
[23:35:23] patarr: has joined #ruby
[23:35:24] ged_: has joined #ruby
[23:38:29] esObe_: has joined #ruby
[23:44:42] bronson: has joined #ruby
[23:45:01] Archrover: has joined #ruby
[23:45:05] DLSteve: has joined #ruby
[23:48:54] enterprisey: has joined #ruby
[23:51:34] petruff: has joined #ruby
[23:52:41] patarr: has joined #ruby
[23:54:55] northfurr: has joined #ruby
[23:55:00] skmp: has joined #ruby
[23:56:14] cagomez: has joined #ruby
[23:58:11] Polysics: has joined #ruby