« Back to channel list

#ruby - 13 July 2017

« Back 1 day Forward 1 day »
[00:02:40] infernix: has joined #ruby
[00:03:21] AnoHito: has joined #ruby
[00:03:21] nesoi: has joined #ruby
[00:03:33] brent__: has joined #ruby
[00:04:46] rundor: has joined #ruby
[00:05:54] AnoHito_: has joined #ruby
[00:08:04] gavxn: has joined #ruby
[00:08:50] gavxn: Are there any Windows Ruby programmers here?
[00:09:48] AnoHito: has joined #ruby
[00:12:06] guardianx: has joined #ruby
[00:14:28] sarmiena_: has joined #ruby
[00:15:31] sarmiena_: trying to track down a tricky bug and think it would be useful to see the a stacktrace of objects that invoked the current method i’m in. is this possible?
[00:16:58] HumbleBee: has joined #ruby
[00:18:15] zwild: has joined #ruby
[00:19:09] mim1k: has joined #ruby
[00:19:28] gix: has joined #ruby
[00:20:57] rundor: has joined #ruby
[00:22:30] JoshS: has joined #ruby
[00:24:34] gavxn: https://stackoverflow.com/questions/45069400/unpredictable-behavior-with-ruby-vt100-escape-sequences-on-windows-10
[00:24:56] gavxn: Probably the weirdest thing I've seen in a while lol
[00:25:14] ecuanaso: has joined #ruby
[00:26:50] ketan: has joined #ruby
[00:27:11] jenrzzz: has joined #ruby
[00:29:18] umaaji: has joined #ruby
[00:32:43] AnoHito_: has joined #ruby
[00:33:47] nesoi: sorry if this is a really dumb question, but how do I convert a TIme value to text in this format? 2009-03-29T14:50:29Z
[00:37:07] nesoi: it's a value which outputs "Time" for this puts: puts "#{r.last_updated_at}"
[00:38:01] npgm: has joined #ruby
[00:38:56] jenrzzz: has joined #ruby
[00:38:56] jenrzzz: has joined #ruby
[00:39:44] mim1k: has joined #ruby
[00:40:04] mokiwis: has joined #ruby
[00:42:43] nesoi: I tried Time.parse(timeVariable) but get: `_parse': no implicit conversion of Time into String
[00:42:44] elomatreb: nesoi: That format looks like ISO8601. If it's an actual time object you can call #iso8601 on it to get that
[00:43:25] nesoi: elomatreb: by call you mean timeVariable.iso8601 ?
[00:43:38] nesoi: thanks btw!
[00:43:45] elomatreb: Yes, r.last_updated_at.iso8601 in your case it seems
[00:44:08] kculpis: has joined #ruby
[00:44:31] nesoi: yes, that does it!
[00:44:55] nesoi: was that a breaking change between Ruby 1.9x and 2.4x?
[00:45:48] TomyLobo: has joined #ruby
[00:48:20] jenrzzz: has joined #ruby
[00:48:21] jenrzzz: has joined #ruby
[00:51:04] mahlon: has joined #ruby
[00:52:21] brent__: has joined #ruby
[00:52:22] __Yiota: has joined #ruby
[00:53:04] raspado: has joined #ruby
[00:53:47] DaniG2k: has joined #ruby
[00:56:24] savoir-faire: has joined #ruby
[00:56:59] mim1k: has joined #ruby
[00:57:17] MrBismuth: has joined #ruby
[00:58:33] minimalism: has joined #ruby
[00:59:42] blindMoe: has joined #ruby
[01:00:04] ascarter: has joined #ruby
[01:00:19] blindMoe: anyone mind helping me with this problem? Want to use avariable to store the name of an idenfier inside an object to grab it but am not sure how to do it in Ruby. https://gist.github.com/anonymous/35dc8b4126f14296873c71daf48d28c5 Lines 8 and 10 are the pertinent ones
[01:02:13] cdg: has joined #ruby
[01:02:22] Lien: has joined #ruby
[01:04:17] AnoHito: has joined #ruby
[01:04:49] wilbert: has joined #ruby
[01:06:06] blindMoe: has left #ruby: ("Yeap")
[01:11:48] ddubs: has joined #ruby
[01:17:04] bronson: has joined #ruby
[01:17:31] mim1k: has joined #ruby
[01:19:11] AnoHito: has joined #ruby
[01:23:10] elevenx0: has joined #ruby
[01:23:24] jenrzzz: has joined #ruby
[01:23:24] jenrzzz: has joined #ruby
[01:24:58] dcunit3d: has joined #ruby
[01:26:04] elevenx0: hello! just starting some ruby exercises on exercism.io and need help, was wondering if someone could kindly assist :)
[01:27:04] AnoHito: has joined #ruby
[01:30:34] havenn: has joined #ruby
[01:31:20] comet23: has joined #ruby
[01:31:25] comet23: i'm having trouble with regex
[01:31:26] zwild: has joined #ruby
[01:31:31] comet23: where can i learn?
[01:32:40] milardovich: has joined #ruby
[01:33:51] raspado: has joined #ruby
[01:37:36] gizmore: has joined #ruby
[01:38:02] mim1k: has joined #ruby
[01:39:24] mtkd: has joined #ruby
[01:45:37] Jameser: has joined #ruby
[01:50:16] Jameser`: has joined #ruby
[01:56:28] d^sh: has joined #ruby
[01:58:15] havenn: has joined #ruby
[02:00:33] mokiwis: has joined #ruby
[02:00:55] ascarter: has joined #ruby
[02:04:06] dviola: has joined #ruby
[02:07:43] wilbert: has joined #ruby
[02:15:45] JoshS: has joined #ruby
[02:17:55] mim1k: has joined #ruby
[02:19:12] cpruitt: has joined #ruby
[02:19:45] br|ck: has joined #ruby
[02:25:29] mokiwis: has joined #ruby
[02:27:41] ketan: has joined #ruby
[02:30:41] wilbert_: has joined #ruby
[02:34:11] Axy: has joined #ruby
[02:36:52] empty_cup: has joined #ruby
[02:39:07] dstrunk: has joined #ruby
[02:42:59] dstrunk: has joined #ruby
[02:44:06] Asher: has joined #ruby
[02:44:11] cdg: has joined #ruby
[02:53:38] rubycoder37: has joined #ruby
[02:54:17] mim1k: has joined #ruby
[02:54:50] mrconfused: has joined #ruby
[02:57:29] astrobunny: has joined #ruby
[02:57:44] millerti: has joined #ruby
[03:01:54] Emmanuel_Chanel: has joined #ruby
[03:10:12] nesoi: how do I unallocate a string value or otherwise get it to test as False? I have something like: if string which tests to see if there's a value in the string. how do I reset it to have no value so that test will fail?
[03:12:03] nesoi: is it just =nil?
[03:14:25] justbleed: has joined #ruby
[03:14:38] nesoi: that didn't work
[03:15:44] nesoi: can anyone give me a clue? :/
[03:17:58] bronson: has joined #ruby
[03:18:12] elomatreb: You want that a string will be treated as falsy in an if?
[03:25:34] duderonomy: has joined #ruby
[03:27:37] rubycoder37: how do I unslice this (1..100).each_slice(3).to_a so I can grab all the numbers from the first slice and the second, third, etc?
[03:29:11] ecuanaso: has joined #ruby
[03:29:23] chouhoulis: has joined #ruby
[03:29:56] ecuanaso: has joined #ruby
[03:30:21] mim1k: has joined #ruby
[03:31:50] elomatreb: rubycoder37: You want the elements of the first N slices?
[03:32:19] ecuanaso: has joined #ruby
[03:32:46] elomatreb: rubycoder37: Like so? https://eval.in/831741
[03:36:02] cdg: has joined #ruby
[03:36:42] anisha: has joined #ruby
[03:37:55] rubycoder37: elomatreb: yes, thanks
[03:40:30] cdg: has joined #ruby
[03:47:31] kies: has joined #ruby
[03:55:40] gix: has joined #ruby
[03:57:14] kculpis: has joined #ruby
[03:58:45] jenrzzz: has joined #ruby
[03:58:45] jenrzzz: has joined #ruby
[04:02:41] ascarter: has joined #ruby
[04:06:15] sarbs: has joined #ruby
[04:06:40] mim1k: has joined #ruby
[04:08:41] djbkd: has joined #ruby
[04:12:10] claw: has joined #ruby
[04:12:29] nesoi: elomatreb: yes, falsey in an if, but I did it another way.. still interested to know how to get that to work
[04:12:36] mrconfused: has joined #ruby
[04:12:47] elomatreb: You won't. Only nil and false are falsy, nothing else
[04:14:40] pb122: has joined #ruby
[04:15:06] renchan: has joined #ruby
[04:15:10] jenrzzz: has joined #ruby
[04:15:11] jenrzzz: has joined #ruby
[04:23:38] ledestin: has joined #ruby
[04:27:34] pb122: has joined #ruby
[04:28:34] ketan: has joined #ruby
[04:29:14] tunaBee_2: has joined #ruby
[04:33:50] rundor: has joined #ruby
[04:38:56] knight33: has joined #ruby
[04:39:44] uZiel: has joined #ruby
[04:40:29] charliesome: has joined #ruby
[04:45:58] patrontechnosoft: has joined #ruby
[04:49:57] shiranuidong: has joined #ruby
[04:51:06] eightlimbed: has joined #ruby
[04:53:16] milardovich: has joined #ruby
[04:53:39] cadillac_: has joined #ruby
[04:58:07] auzty: has joined #ruby
[05:01:36] snath: has left #ruby: ("Leaving")
[05:03:52] ascarter: has joined #ruby
[05:04:02] umaaji: has joined #ruby
[05:04:09] brent__: has joined #ruby
[05:04:14] comet23: has joined #ruby
[05:04:19] bronson: has joined #ruby
[05:04:43] comet23: how can i match this in regex?
[05:04:56] comet23: Hello, your name is John.
[05:05:05] comet23: I want to match the "H" and the "."
[05:07:00] eam: comet23: you want to match the whole line?
[05:07:07] Bock: has joined #ruby
[05:07:16] eam: /Hello, your name is John\./ will match that
[05:07:32] rikai: has joined #ruby
[05:08:09] comet23: i want to match the first character, to see if it's upper cased and the last character if it has punctuation
[05:08:19] eam: you want to capture them, you mean?
[05:15:46] rundor: has joined #ruby
[05:18:16] mim1k: has joined #ruby
[05:20:26] elomatreb: comet23: /\A(.).*(.)\z/ will do what you want. Keep in mind that in a regex, . does not mean a literal dot but "any single character"
[05:23:12] comet23: elomatreb i've tried learning regex from interactive sites and reading books, what did you do to make it click?
[05:24:11] sarmiena_: has joined #ruby
[05:25:31] eightlimbed: has joined #ruby
[05:28:38] Radar: Practiced a lot.
[05:28:49] comet23: practice is one thing
[05:28:57] comet23: but practice what?
[05:29:05] comet23: where did you learn the basics, this stuff is hard
[05:32:00] baweaver: comet23: https://regexone.com/
[05:32:35] comet23: i don't like that site because there are multiple correct answers
[05:33:02] baweaver: Welcome to regex
[05:33:05] comet23: like you can match the first item or the last or all of them and it will tell you that's correct and it passes and lets you go to the next exercise
[05:33:21] comet23: you don't really learn anything from there, at least i didn't
[05:34:24] baweaver: Not sure what you're talking about. It works fine for me.
[05:34:36] comet23: go to the first exercise
[05:35:07] comet23: you can do (*) or [a-z] or abc or a or b or c
[05:35:27] baweaver: That's the point
[05:35:36] baweaver: and that means that you understand how to match all of them
[05:35:46] milardovich: has joined #ruby
[05:35:55] comet23: my point is that it's not useful to beginners like me who want to learn regex
[05:36:02] baweaver: Experiment with aforementioned different ways
[05:36:28] comet23: what elomatreb posted doesn't match what i need
[05:36:39] comet23: i don't understand what he wrote means either
[05:37:38] baweaver: http://www.rexegg.com/regex-quickstart.html
[05:37:47] nesoi: comet23: if you go through it character by character, referring to a regex reference, you can understand what it means
[05:37:56] baweaver: One of these days you're going to have to be self-sufficient in finding these things.
[05:38:34] baweaver: because for the most part people are just surface level googling and shooting you the first link they find when you ask for sites.
[05:39:09] comet23: i'm not just asking for sites, books are better than sites
[05:39:16] baweaver: That being said regexone is pretty decent for what it is. The entire point is that there are multiple solutions to matching something until you get to a certain level of specificity
[05:39:40] comet23: everything else is too advanced for beginners because it's a reference manual
[05:40:05] baweaver: https://www.codewars.com/kata/latest/my-languages?tags=Regular+Expressions
[05:40:20] baweaver: That's a pretty broad statement
[05:41:43] baweaver: There are plenty of basic tutorials online for this, and if you think the books aren't reference manuals you're in for a surprise later
[05:41:54] aupadhye: has joined #ruby
[05:44:00] baweaver: Packt one was predictably bad. Sifting through the O'Reilly ones
[05:45:00] anisha: has joined #ruby
[05:45:45] baweaver: Cookbook is tome level. Mastering is tome level. Introducing Regular Expressions is of a similar level to frontpage google results.
[05:48:23] comet23: if i ever become good at regular expressions i am going to host a site on github that teaches newcomers to regular expressions in an easy to understand way
[05:49:45] Radar: I would hope it explains the emailregex.com regex.
[05:49:47] Radar: (?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
[05:50:40] comet23: i mean it should be pretty easy to read once you know the basics
[05:51:18] Radar: comet23: ok so what is [a-z0-9]
[05:51:29] Radar: and what is the difference between /[a-z0-9]/ and /[a-z0-9]/i
[05:51:57] comet23: from my understanding any letter or number from a-z and 0-9 and there isn't a difference
[05:52:08] comet23: since a-z is lower case
[05:52:19] baweaver: case insensitive match is i
[05:52:32] Radar: baweaver: spoilers
[05:52:51] baweaver: comet23: Trust me when I say no one understands that email regex
[05:52:53] uZiel: has joined #ruby
[05:52:54] comet23: i know that i is insensitive, but i thought that was redundant since he has a-z lowercased
[05:52:56] baweaver: including the poor fool who wrote it.
[05:53:18] Radar: >> /[a-z0-9]/ =~ "A"
[05:53:18] comet23: i have a hard time believig that
[05:53:21] ruby[bot]: Radar: # => nil (https://eval.in/831804)
[05:53:24] Radar: >> /[a-z0-9]/i =~ "A"
[05:53:30] ruby[bot]: Radar: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[05:53:38] baweaver: ACTION snickers
[05:53:57] Radar: ruby[bot]: I seriously am >< to giving up on you
[05:54:03] baweaver: comet23: point being that's not a simple one to read for anyone.
[05:54:27] baweaver: some regex is super hairy and not meant for human eyes
[05:54:44] comet23: they say the same thing about binary
[05:54:53] bougyman: those regex should bever be used.
[05:55:09] baweaver: Most of it written by Randal Munroe or Peter Norvig trying to emulate him.
[05:55:45] Radar: bougyman: what's the best way to validate an email address is valid?
[05:56:34] comet23: what i don't understand is why use regex when arrays work just as well
[05:56:38] baweaver: https://xkcd.com/1313/ and later Norvig was cheeky and this happened: http://nbviewer.jupyter.org/url/norvig.com/ipython/xkcd1313.ipynb
[05:57:21] baweaver: comet23: I want you to take an array of log lines and find ones with IP addresses in them
[05:57:43] baweaver: if you can do that with arrays only I'd be impressed and subsequently horrified
[05:57:44] Radar: baweaver: that is amazing
[05:57:54] Radar: baweaver: ipv4 or ipv6?
[05:57:54] comet23: split the string then iterate through them and put the ips into a new array and return it?
[05:58:14] baweaver: No, find every line which contains an IP and ignore the others
[05:58:57] comet23: you want the line numbers?
[05:58:59] Radar: baweaver: got a test file?
[05:59:04] comet23: or the ip addresses?
[05:59:15] baweaver: test with: ['ohai 10.0.0.1', 'nope', '455.1.2.3 eh?', 'another nope']
[05:59:15] Radar: [15:57:22] <baweaver> comet23: I want you to take an array of log lines and find ones with IP addresses in them
[05:59:34] Radar: instructions seem pretty clear to me
[05:59:50] comet23: no it's not really clear
[06:00:08] comet23: but when he explained it better it is clear now
[06:00:18] apeiros: > baweaver: comet23: Trust me when I say no one understands that email regex
[06:00:28] apeiros: I wrote one, would you trust me that I understand mine?
[06:00:32] havenn_: has joined #ruby
[06:00:35] apeiros: (translated the bnf of the spec)
[06:00:39] baweaver: With you? No.
[06:01:28] Radar: baweaver: is it ok that I googled for the regex to match IP addresses? ;)
[06:01:42] comet23: so each line ends with an \n so split on \n
[06:01:56] baweaver: test with: ['ohai 10.0.0.1', 'nope', '455.1.2.3 eh?', 'another nope']
[06:02:08] baweaver: >> ['ohai 10.0.0.1', 'nope', '455.1.2.3 eh?', 'another nope']
[06:02:14] ruby[bot]: baweaver: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[06:02:22] baweaver: ACTION punches rubybot
[06:02:31] comet23: then further split the items, create methods that check for conditions such as haiving all numbers but not greater than 3 per set
[06:03:06] baweaver: or, you know, use a regex
[06:03:17] Radar: apeiros: Can we please kill ruby[bot] or at least punish it hard like?
[06:03:25] Radar: time to write it in Elixir ;)
[06:03:30] Radar: comet23: code plz
[06:03:33] comet23: if it's just numbers on that line with the ip you return index + 1 into an array or a hash
[06:03:37] Radar: less talk more code
[06:03:43] comet23: i'm not going to code that
[06:03:47] comet23: because i want to learn regex
[06:03:53] apeiros: Radar: it's still not rubybots fault, though. it's eval.in. (it's rubybot's fault to fail handling eval.in's error, though)
[06:04:01] apeiros: ACTION gotta commute, cya
[06:04:27] baweaver: I'll be nice
[06:04:34] baweaver: &ri Enumerable#select
[06:04:34] `derpy: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-select
[06:04:34] comet23: i would totally believe you that you understood what you wrote
[06:04:49] comet23: because if you didn't understand what you were writing you wouldn't be able to have written it in the first place
[06:04:52] baweaver: It's a joke...
[06:05:15] ascarter: has joined #ruby
[06:05:26] baweaver: Programmers often joke that they can't understand code they wrote a month ago if it's sufficiently complicated enough and not commented well
[06:05:27] pmden: has joined #ruby
[06:06:50] comet23: good night everyone thank you for the help
[06:06:54] Radar: comet23: sorry, I'm not understanding why you didn't write any code.
[06:07:02] Radar: Maybe you will write some tomorrow.
[06:07:03] Radar: Sleep well :wave:
[06:07:17] baweaver: Someone's been using Slack too much again Radar
[06:07:22] Radar: baweaver: :+1:
[06:07:28] baweaver: :thumbs-up:
[06:07:36] elomatreb: comet23: Just got back. To answer your earlier question, as has been said, practice makes perfect
[06:07:49] baweaver: Huh. So this is what eam deals with every day.
[06:09:35] roshanavand: has joined #ruby
[06:10:33] DeeJayh-L: has joined #ruby
[06:11:28] krmela: has joined #ruby
[06:12:01] gothicsouth: has joined #ruby
[06:18:57] mim1k: has joined #ruby
[06:19:40] andikr: has joined #ruby
[06:20:10] djbkd: has joined #ruby
[06:24:10] howdoi: has joined #ruby
[06:27:07] andrzejku: has joined #ruby
[06:29:45] ketan: has joined #ruby
[06:34:49] jenrzzz: has joined #ruby
[06:34:49] jenrzzz: has joined #ruby
[06:41:46] havenwood_: has joined #ruby
[06:43:14] havenwood_: has joined #ruby
[06:45:39] szymon: has joined #ruby
[06:46:07] Mortomes|Work: has joined #ruby
[06:46:30] enterprisey: has joined #ruby
[06:49:56] conta: has joined #ruby
[06:52:55] ricer2: has joined #ruby
[06:54:51] szymon: has joined #ruby
[06:55:44] alex``: has joined #ruby
[06:56:14] pootiscoder: has joined #ruby
[06:59:20] ricer2: has joined #ruby
[07:01:26] aufi: has joined #ruby
[07:04:10] djbkd: has joined #ruby
[07:05:15] bronson: has joined #ruby
[07:06:07] ascarter: has joined #ruby
[07:07:48] xall: has joined #ruby
[07:12:30] havenwood: has joined #ruby
[07:12:34] hs366: has joined #ruby
[07:14:26] InfinityFye: has joined #ruby
[07:18:11] ltem: has joined #ruby
[07:19:29] Ishido: has joined #ruby
[07:19:46] jenrzzz: has joined #ruby
[07:19:47] jenrzzz: has joined #ruby
[07:20:47] mim1k: has joined #ruby
[07:33:47] havenwood: has joined #ruby
[07:34:38] Guest63175: has joined #ruby
[07:35:49] mark_66: has joined #ruby
[07:39:03] patarr: has joined #ruby
[07:39:08] DaniG2k: has joined #ruby
[07:40:15] cyphase: has joined #ruby
[07:45:24] ur5us: has joined #ruby
[07:47:35] DoubleMalt: has joined #ruby
[07:48:10] pandaant: has joined #ruby
[07:55:49] mikecmpbll: has joined #ruby
[08:02:24] havenwood: has joined #ruby
[08:02:24] havenwood: has joined #ruby
[08:03:12] romankapitonov: has joined #ruby
[08:07:03] aufi: has joined #ruby
[08:11:11] sarbs: has joined #ruby
[08:11:15] Guest74581: has joined #ruby
[08:11:51] Beams: has joined #ruby
[08:18:01] bigkevmcd: has joined #ruby
[08:18:57] misery_: has joined #ruby
[08:24:37] rundor: has joined #ruby
[08:30:17] ketan: has joined #ruby
[08:32:11] ferr: has joined #ruby
[08:33:37] TomyWork: has joined #ruby
[08:33:39] rohitpaulk: has joined #ruby
[08:35:22] nofxxx: has joined #ruby
[08:39:38] lxsameer: has joined #ruby
[08:40:36] tunaBee_: has joined #ruby
[08:42:10] marr: has joined #ruby
[08:48:00] mim1k: has joined #ruby
[08:48:08] Winter_Foxo: has joined #ruby
[08:50:05] hightower2: has joined #ruby
[08:52:39] Serpent7776: has joined #ruby
[08:54:15] oded: has joined #ruby
[08:56:38] ketan: has joined #ruby
[08:57:45] ketan: has joined #ruby
[08:59:11] shmoon: has joined #ruby
[09:00:40] shmoon: someone can help with https://pastebin.com/raw/MTPrDppc ?
[09:00:40] ruby[bot]: shmoon: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[09:00:58] shmoon: which is why I pasted raw link :P
[09:01:10] biberu: has joined #ruby
[09:03:02] mim1k: has joined #ruby
[09:03:45] milardovich: has joined #ruby
[09:04:35] havenwood: has joined #ruby
[09:04:52] brent__: has joined #ruby
[09:05:54] shmoon: no one ? :/
[09:06:11] bronson: has joined #ruby
[09:07:26] dionysus69: has joined #ruby
[09:07:54] szymon: shmoon, i think you need gem runt
[09:08:03] szymon: shmoon, gem install runt
[09:10:13] shmoon: did that szymon
[09:10:48] antgel: has joined #ruby
[09:10:54] shmoon: szymon: https://pastebin.com/raw/HFGU6481
[09:10:54] ruby[bot]: shmoon: as I told you already, please use https://gist.github.com
[09:11:09] havenwood: shmoon: Why does it complain about `date/format` when you're requiring `runt`?
[09:11:37] havenwood: You're not requiring "date/format" on the next line or something?
[09:13:49] GodFather: has joined #ruby
[09:15:38] workmad3: has joined #ruby
[09:18:11] GodFather: has joined #ruby
[09:24:13] Terens: has joined #ruby
[09:25:12] Terens: Do first 5 lines break single responsibility pattern?
[09:25:15] Terens: https://gist.github.com/anonymous/ada126a329db71269f63a1d20b0b492f
[09:27:59] encounter_ekamba: has joined #ruby
[09:32:43] aupadhye: has joined #ruby
[09:38:14] ljarvis: terens: no they're fine
[09:38:35] ljarvis: you don't want to parse the JSON twice
[09:38:55] cseder: has joined #ruby
[09:39:17] aupadhye: has joined #ruby
[09:39:53] patarr: has joined #ruby
[09:40:41] dasher00: has joined #ruby
[09:43:55] kassav_: has joined #ruby
[09:44:05] GodFather: has joined #ruby
[09:49:56] Chinggis6: has joined #ruby
[10:04:41] govg_: has joined #ruby
[10:05:42] szymon: hello i have problem with som object i try Create Car class and when do Car.new(:smth) color car should change every when choise .new
[10:05:47] szymon: https://gist.github.com/synion/89d6c3858c44bc7733e11e0ee5fcb48d
[10:15:53] shmoon: nope haver
[10:16:02] Terens: Although I rescue exceptions their output appears to stdout. Why?
[10:16:04] shmoon: havenwood:
[10:18:51] dminuoso: szymon: What?
[10:19:39] szymon: dminuoso, i think in gist it is beeter explain
[10:20:04] dminuoso: I dont read gists until I have a readable summary.
[10:20:13] SpComb: https://gist.github.com/SpComb/6f8dca298474b7f88fb52b7e0ef603ad I noticed something odd on alpine linux ruby 2.3.3... OpenSSL does not respect the SSL_CERT_FILE= env?
[10:20:47] szymon: dminuoso, a have some class Car
[10:21:11] szymon: dminuoso, and they hava a :name and :color
[10:22:08] szymon: dminuoso, i can create Car be Car.new(:name,:color) but i can create to Car.new(:name)
[10:22:08] dminuoso: szymon: Let me rephrase. What's wrong with your code?
[10:22:26] dminuoso: Seems to work fine
[10:23:05] szymon: dminuoso, it not change color when have new create
[10:23:14] dminuoso: szymon: Don't lie to me.
[10:23:19] dminuoso: szymon: It does.
[10:25:05] noe: has joined #ruby
[10:26:25] cseder: has joined #ruby
[10:27:14] nowhere_man: has joined #ruby
[10:28:05] loveablelobster: has joined #ruby
[10:29:21] pandaant: has joined #ruby
[10:29:25] szymon: dminuoso, you have right somthing in spec :) thx
[10:38:36] pootiscoder: has joined #ruby
[10:40:56] rundor: has joined #ruby
[10:41:29] Jameser: has joined #ruby
[10:43:00] pootiscoder: has joined #ruby
[10:43:09] gregf_: has joined #ruby
[10:51:39] sarbs: has joined #ruby
[10:56:05] Ishido: has joined #ruby
[11:06:10] _whitelogger: has joined #ruby
[11:07:49] bronson: has joined #ruby
[11:12:23] nowhere_man: has joined #ruby
[11:18:07] nowhere_man: has joined #ruby
[11:18:11] mrconfused: has joined #ruby
[11:20:31] brent__: has joined #ruby
[11:22:55] patarr: has joined #ruby
[11:26:07] savoir-faire: has joined #ruby
[11:31:14] Ishido: has joined #ruby
[11:35:43] ldnunes: has joined #ruby
[11:41:29] __Yiota: has joined #ruby
[11:42:03] rundor: has joined #ruby
[11:42:19] Jameser: has joined #ruby
[11:43:20] rohitpaulk: has joined #ruby
[11:43:21] nowhere_man: has joined #ruby
[11:45:18] mrconfused: has joined #ruby
[11:47:58] himynameisvic: has joined #ruby
[11:50:37] nowhere_man: has joined #ruby
[11:51:32] petruff: has joined #ruby
[11:58:23] sepp2k: has joined #ruby
[12:01:26] romankap_: has joined #ruby
[12:02:31] synthroid: has joined #ruby
[12:05:09] Jameser: has joined #ruby
[12:08:57] bkxd: has joined #ruby
[12:08:58] bkxd_: has joined #ruby
[12:09:51] ascarter: has joined #ruby
[12:11:51] pootiscoder: has joined #ruby
[12:15:42] oded: has joined #ruby
[12:16:53] rohitpaulk: has joined #ruby
[12:18:31] troulouliou_div2: has joined #ruby
[12:20:59] tAn: has joined #ruby
[12:25:05] Guest33663: has joined #ruby
[12:27:14] gnufied: has joined #ruby
[12:27:57] chouhoulis: has joined #ruby
[12:30:53] splitshot: has joined #ruby
[12:33:07] deep-book-gk_: has joined #ruby
[12:34:03] Guest33663: has joined #ruby
[12:34:41] deep-book-gk_: has left #ruby: ()
[12:35:51] truenito: has joined #ruby
[12:36:19] Guest33663: dminuoso, ok thats help but i find bug in my code when i first time use new for car that give me a second color from constatn i must have first
[12:36:49] romankapitonov: has joined #ruby
[12:37:04] Guest33663: dminuoso, https://gist.github.com/synion/89d6c3858c44bc7733e11e0ee5fcb48d
[12:40:18] im0nde: has joined #ruby
[12:40:25] cgfbee: has joined #ruby
[12:41:29] __Yiota: has joined #ruby
[12:43:11] Axy: has joined #ruby
[12:47:18] szymon_: has joined #ruby
[12:48:52] Silthias: has joined #ruby
[12:52:03] dminuoso: g3funk: color = AVAILABLE_COLORS.first; AVAILABLE_COLORS.rotate!; return color
[12:52:11] Silthias1: has joined #ruby
[12:52:13] cdg: has joined #ruby
[12:53:11] mrconfused: has joined #ruby
[12:53:24] Jameser: has joined #ruby
[12:55:16] szymon_: omg it was so simply thanks
[12:55:35] szymon_: dminuoso, it`s work thanks
[12:56:37] mim1k: has joined #ruby
[13:00:45] millerti: has joined #ruby
[13:01:36] apparition: has joined #ruby
[13:02:40] Jameser: has joined #ruby
[13:03:33] cagmz: has joined #ruby
[13:03:47] hightower2: has joined #ruby
[13:08:32] bronson: has joined #ruby
[13:19:42] johnzorn: has joined #ruby
[13:21:16] tacoboy: has joined #ruby
[13:23:13] cdg_: has joined #ruby
[13:24:55] knight33: has joined #ruby
[13:28:35] roshanavand: has joined #ruby
[13:29:22] uZiel: has joined #ruby
[13:30:08] DLSteve: has joined #ruby
[13:30:53] mim1k: has joined #ruby
[13:32:41] justbleed: has joined #ruby
[13:36:20] rickumali: has joined #ruby
[13:37:26] rkellermeyer: has joined #ruby
[13:38:26] mrconfused: has joined #ruby
[13:40:54] shinnya: has joined #ruby
[13:43:29] Jameser: has joined #ruby
[13:45:05] jphase: has joined #ruby
[13:53:53] DoubleMalt: has joined #ruby
[13:59:11] cam27: has joined #ruby
[13:59:15] Kanibal: hey! I'm once again working on my text file cutting problem. I now have an array of "cut positions" that I remove from my string using the following code: cut.each {|c| @file.slice! (c[0]..c[1])}
[13:59:40] Kanibal: Problem is that the indexes change after each loop
[13:59:52] milardovich: has joined #ruby
[14:00:05] Kanibal: Does anybody have a clever idea how I could solve that?
[14:00:39] oleo: has joined #ruby
[14:01:20] mrconfused: has joined #ruby
[14:01:37] milardovich: has joined #ruby
[14:02:03] cpruitt: has joined #ruby
[14:03:21] Rapture: has joined #ruby
[14:04:42] dionysus70: has joined #ruby
[14:07:52] milardovich: has joined #ruby
[14:08:07] rohitpaulk: has joined #ruby
[14:08:39] daivyk: has joined #ruby
[14:11:32] mrconfused: has joined #ruby
[14:11:44] rubydude: has joined #ruby
[14:12:46] rubydude: Why does 1 <=> 1 == 0 result in a "syntax error, unexpected =="? However if I run the same code like this it works: 1.<=>(1).==(0) # => true
[14:13:52] millerti: has joined #ruby
[14:13:56] Ishido: has joined #ruby
[14:14:31] dminuoso: rubydude: Optional parens have a metric fuckton of cases where you end up with ambiguities.
[14:14:31] rundor: has joined #ruby
[14:14:46] dminuoso: rubydude: The rule is this: If it parses, be happy. If not, add parens.
[14:15:15] rubydude: dminuoso: So it's not because of some kind of precedence rule right?
[14:15:52] rubydude: dminuoso: Because both <=> and == have the same precedence so it should work.
[14:16:01] dminuoso: rubydude: Right.
[14:16:38] dminuoso: rubydude: It's a fundamental LALR(1) thing.
[14:16:41] jhooker: has joined #ruby
[14:16:46] dminuoso: It's just not parsable without parens.
[14:18:47] truenito: has joined #ruby
[14:20:30] mrconfused: has joined #ruby
[14:21:08] rundor: has joined #ruby
[14:21:51] himynameisvic: has joined #ruby
[14:21:53] rundor: has joined #ruby
[14:22:43] rundor: has joined #ruby
[14:23:31] rundor: has joined #ruby
[14:24:21] rundor: has joined #ruby
[14:24:42] antgel: has joined #ruby
[14:26:49] jschoolcraft: has joined #ruby
[14:32:46] __Yiota: has joined #ruby
[14:33:48] charliesome: has joined #ruby
[14:36:26] Ishido: has joined #ruby
[14:37:02] kassav__: has joined #ruby
[14:40:14] rohitpaulk: has joined #ruby
[14:41:44] npgm: has joined #ruby
[14:42:21] mikecmpb_: has joined #ruby
[14:51:44] ldnunes: has joined #ruby
[14:54:56] rippa: has joined #ruby
[14:58:12] polishdub: has joined #ruby
[14:59:56] m4sk1n: has joined #ruby
[15:00:38] m4sk1n: has left #ruby: ()
[15:00:44] Bish: has joined #ruby
[15:00:50] Bish: real stupid question i might be blind here
[15:00:58] Bish: how do i find and get the result of the block
[15:01:43] Kanibal: block.call
[15:02:04] Bish: >> [1].find {|x| x**2 <= 1 }
[15:02:13] Bish: >> [1].find {|x| x**2 <= 1 }
[15:02:14] ruby[bot]: Bish: # => 1 (https://eval.in/832160)
[15:02:23] Bish: Kanibal: that would execute it twice
[15:02:54] Kanibal: can you describe the problem further? your line seems to behave correctly?
[15:03:23] Bish: well i have a huge hash, i want to find something, but find determines it "return" value very complicated
[15:03:31] Bish: and i dont want to calculate it again on the found element
[15:04:01] Kanibal: >> [1, 2, 3].find {|x| x**2 if x**2 <= 1 }.compact
[15:04:13] Kanibal: no eval? :(.
[15:04:20] Bish: >> [1, 2, 3].find {|x| x**2 if x**2 <= 1 }.compact
[15:04:21] ruby[bot]: Bish: # => undefined method `compact' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/832161)
[15:04:42] m4sk1n: has joined #ruby
[15:04:49] Bish: map on the other hand.. does not stop after the value was found
[15:04:57] Bish: i could do a lazy map and find.. that would probably work
[15:04:58] m4sk1n: hello, is there any channel for Ruby-related questions dedicated to newbies?
[15:05:20] Kanibal: Ah, you only want the first result?
[15:05:26] Bish: m4sk1n: you're in it, you can ask simple questions or hard questions ( like mine, lol )
[15:05:29] Bish: Kanibal: yes
[15:06:27] Kanibal: >> [1, 2, 3].map {|x| x**2 if x**2 <= 1 }.compact.first
[15:06:44] Kanibal: but that would of course run on the whole heavy hash
[15:06:51] Bish: yes that is my problem
[15:07:08] Kanibal: then I'd probably combine .find and afterwards .map
[15:07:19] Bish: that would calculate it twice :o
[15:08:10] m4sk1n: I'm trying to add Otter Browser detection togithub.com/fnando/browser/, it's my PR: https://github.com/fnando/browser/pull/310 my first contribition in Ruby project, what I'm doing wrong?
[15:09:23] bronson: has joined #ruby
[15:09:56] Bish: oh i know that gem i used it before!
[15:10:52] splitshot: m4sk1n, nando listed out what he didn't like right there in the comments.
[15:12:04] m4sk1n: the comments are from Ebert
[15:12:14] splitshot: Ah. Well did you review this https://travis-ci.org/fnando/browser/builds/250867260?utm_source=github_status&utm_medium=notification
[15:12:46] ascarter: has joined #ruby
[15:14:09] m4sk1n: [0m 1) detects Otter Browser[0m [31m expected: truthy value got: nil[0m [34m # test/unit/otter_browser_test.rb:8[0m
[15:15:25] splitshot: m4sk1n, That means your test failed.
[15:17:06] Bish: welp, how do i find with result
[15:17:16] Bish: .each { break sounds stupid }
[15:17:57] cagomez: has joined #ruby
[15:19:07] sarmiena_: has joined #ruby
[15:19:18] conta: has joined #ruby
[15:20:35] mikecmpbll: has joined #ruby
[15:23:33] stanc: has joined #ruby
[15:24:24] millerti: has joined #ruby
[15:25:54] knight33: has joined #ruby
[15:26:42] baweaver: Bish: Enumerable functions can all be expressed in terms of `Enumerable#reduce`
[15:26:51] baweaver: including aggregates thereof
[15:29:29] synthroid: has joined #ruby
[15:29:48] Bish: baweaver: well i know, but i dont seem to grasp how to find a single thingie, AND its reslt
[15:29:59] baweaver: >> [1,2,3].reduce(nil) { |a, i| break i**2 if i**2 <= 1 }
[15:30:00] ruby[bot]: baweaver: # => 1 (https://eval.in/832164)
[15:30:12] __Yiota: has joined #ruby
[15:30:13] baweaver: break returns a value from reduce to short-circuit it.
[15:30:22] Bish: baweaver: thanks
[15:30:32] baweaver: though you could use each as well technically.
[15:32:00] patarr: has joined #ruby
[15:34:12] dminuoso: m4sk1n: make sure to ask baweaver in #rubyonrails
[15:34:24] dminuoso: Oh gosh. I was scrolled up.
[15:35:05] m4sk1n: splitshot: how can i check what's wrong with the test result?
[15:36:00] splitshot: It tell you right there. On line 8 of otter_browser_test.rb, it expected true, but got nil.
[15:39:01] kt: has joined #ruby
[15:39:47] brent__: has joined #ruby
[15:39:50] balazs: has joined #ruby
[15:41:28] jinie_: has joined #ruby
[15:42:37] Jameser: has joined #ruby
[15:43:06] Bish: dminuoso: i thought we gotta stop doing that
[15:44:19] cyfr0n: has joined #ruby
[15:45:20] dminuoso: Bish: Think you missed the part where baweaver directed him to #ruby in #rubyonrails ;o
[15:46:17] patarr1: has joined #ruby
[15:49:03] skweek: has joined #ruby
[15:52:54] TomyLobo: has joined #ruby
[15:53:43] choke: has joined #ruby
[15:54:17] __Yiota: has joined #ruby
[15:55:02] naprimer2: has joined #ruby
[15:56:50] enterprisey: has joined #ruby
[15:57:21] amclain: has joined #ruby
[15:57:29] chouhoulis: has joined #ruby
[15:59:09] Xiti: has joined #ruby
[15:59:44] rohitpaulk: has joined #ruby
[16:02:38] abort: has joined #ruby
[16:03:35] Jameser: has joined #ruby
[16:07:01] cdg: has joined #ruby
[16:15:00] cdg_: has joined #ruby
[16:15:06] boombox_: has joined #ruby
[16:16:57] choke: has joined #ruby
[16:19:58] quobo: has joined #ruby
[16:26:02] petruff: has joined #ruby
[16:28:46] patarr: has joined #ruby
[16:29:30] milardovich: has joined #ruby
[16:29:32] skweek: has joined #ruby
[16:29:41] gusrub: has joined #ruby
[16:30:39] mrconfused_: has joined #ruby
[16:31:36] MrSparkle: has joined #ruby
[16:34:44] Ishido: has joined #ruby
[16:34:58] mtkd: has joined #ruby
[16:40:01] eightlimbed: has joined #ruby
[16:40:24] jhooker: has joined #ruby
[16:43:01] jhooker: has joined #ruby
[16:44:19] ozcanesen: has joined #ruby
[16:46:42] jhooker: has joined #ruby
[16:47:13] nadir: has joined #ruby
[16:48:28] jhooker: has joined #ruby
[16:52:07] jhooker: has joined #ruby
[16:52:14] rohitpaulk: has joined #ruby
[16:53:56] jhooker: has joined #ruby
[16:56:29] jhooker: has joined #ruby
[16:56:52] cadillac_: has joined #ruby
[16:57:16] Eiam: has joined #ruby
[16:58:13] aufi: has joined #ruby
[17:00:22] jhooker: has joined #ruby
[17:03:02] jhooker: has joined #ruby
[17:04:41] eightlimbed: has joined #ruby
[17:04:52] jackjackdripper: has joined #ruby
[17:04:58] jhooker: has joined #ruby
[17:07:57] jhooker: has joined #ruby
[17:08:15] petruff1: has joined #ruby
[17:10:28] jhooker: has joined #ruby
[17:10:45] bronson: has joined #ruby
[17:11:48] mim1k: has joined #ruby
[17:13:25] sgen: has joined #ruby
[17:13:28] jhooker: has joined #ruby
[17:15:57] jhooker: has joined #ruby
[17:19:32] jhooker: has joined #ruby
[17:19:40] Silthias: has joined #ruby
[17:21:53] nowhere_man: has joined #ruby
[17:21:56] d10n-work: has joined #ruby
[17:22:17] jhooker: has joined #ruby
[17:22:18] wilbert: has joined #ruby
[17:23:47] centrx: has joined #ruby
[17:23:57] jhooker: has joined #ruby
[17:24:04] nowhereman: has joined #ruby
[17:24:36] enterprisey: has joined #ruby
[17:24:36] dstrunk: has joined #ruby
[17:27:42] jhooker: has joined #ruby
[17:27:51] eckhardt: has joined #ruby
[17:28:12] gusrub: has joined #ruby
[17:28:35] graft: has joined #ruby
[17:29:56] jhooker: has joined #ruby
[17:32:22] kies: has joined #ruby
[17:32:30] jhooker: has joined #ruby
[17:32:31] MadDog31: has joined #ruby
[17:32:56] mikecmpbll: has joined #ruby
[17:35:25] jhooker: has joined #ruby
[17:37:55] jhooker: has joined #ruby
[17:38:17] duderonomy: has joined #ruby
[17:39:36] DoubleMalt: has joined #ruby
[17:41:40] mostlybadfly: has joined #ruby
[17:42:00] jhooker: has joined #ruby
[17:42:13] knight33: has joined #ruby
[17:43:11] cagomez: has joined #ruby
[17:44:36] jhooker: has joined #ruby
[17:44:47] fugue: has joined #ruby
[17:47:28] jhooker: has joined #ruby
[17:51:28] jhooker: has joined #ruby
[17:53:57] jhooker: has joined #ruby
[17:56:56] jhooker: has joined #ruby
[17:59:27] jhooker: has joined #ruby
[18:02:27] jhooker: has joined #ruby
[18:04:09] noe: has joined #ruby
[18:05:28] jhooker: has joined #ruby
[18:05:32] cagomez: has joined #ruby
[18:06:24] jenrzzz: has joined #ruby
[18:07:38] BSaboia: has joined #ruby
[18:07:57] jhooker: has joined #ruby
[18:08:13] Renich: has joined #ruby
[18:09:33] Dimik: has joined #ruby
[18:09:38] cagomez: has joined #ruby
[18:12:01] jhooker: has joined #ruby
[18:13:58] jhooker: has joined #ruby
[18:14:14] ivanskie: has joined #ruby
[18:15:08] ivanskie: i have a complex xml file.... somewhere in there i have one liners like <start_addr>1122</start_addr>, i need to go through them all and increment them all by one.
[18:15:12] ivanskie: how can i do that?
[18:15:27] VeryBewitching: has joined #ruby
[18:16:57] jhooker: has joined #ruby
[18:19:42] pmden: has joined #ruby
[18:20:52] jhooker: has joined #ruby
[18:21:43] ivanskie: I've just tried atom, find all, and increment. doesn't work. tried sublime with increment selection, it apparently only works with single digits, so no go. and now i'm trying to figure out how to regex this thing or what not. argh
[18:22:58] jhooker: has joined #ruby
[18:23:07] Guest24: has joined #ruby
[18:24:03] cagomez: has joined #ruby
[18:24:22] ivanskie: https://repl.it/J0rf/1
[18:25:24] cagomez: has joined #ruby
[18:25:38] ivanskie: i have a few of these files to do. not sure if i want to reverse engineer the xml structure and manually re-create these xml files from csv files in ruby. manually incremement each of those values.
[18:25:38] Tau: has joined #ruby
[18:26:22] jhooker: has joined #ruby
[18:27:57] jhooker: has joined #ruby
[18:31:53] jhooker: has joined #ruby
[18:34:40] jhooker: has joined #ruby
[18:34:53] AgentVenom: has joined #ruby
[18:35:11] jottr: has joined #ruby
[18:35:51] dviola: has joined #ruby
[18:36:26] apeiros: ivanskie: what regex have you tried?
[18:37:16] jhooker: has joined #ruby
[18:37:17] ivanskie: well i can find 4 digits between these >\d{4}< then go|dfish suggested "echo '<start_addr>1122</start_addr>' | ruby -pe 'sub(/(?<=<start_addr>)\d+(?=<\/start_addr>)/) { |n| n.to_i + 1 }'"
[18:37:28] ivanskie: but i haven't figured out how to use it yet.
[18:37:35] watersoul: has joined #ruby
[18:37:58] apeiros: exactly like that in the command line
[18:38:13] apeiros: and you'd replace the echo part with e.g. `cat your_file.xml`
[18:38:15] ivanskie: right so then i need to iterate over each line of the file
[18:38:23] apeiros: -p does that
[18:38:32] apeiros: `man ruby`
[18:38:44] apeiros: the thing you should do when you see flags/options on a command you don't understand.
[18:39:46] lxsameer: has joined #ruby
[18:39:52] jhooker: has joined #ruby
[18:40:17] truenito: has joined #ruby
[18:40:30] ixti: has joined #ruby
[18:41:27] jhooker: has joined #ruby
[18:45:31] jhooker: has joined #ruby
[18:45:57] pmden: has joined #ruby
[18:46:46] __Yiota: has joined #ruby
[18:47:01] jhooker: has joined #ruby
[18:49:37] Harzilein: i want to define a singleton method on a method, is that possible? i.e. method(:something).my_method should work. it won't work when i use method(:something).instance_eval do def my_method end end, likely because the object i'm operating on there is just a copy somehow
[18:49:59] jhooker: has joined #ruby
[18:50:45] typeVoid: has joined #ruby
[18:51:04] strk: has left #ruby: ()
[18:51:10] centrx: define a method on a method?
[18:52:28] jhooker: has joined #ruby
[18:52:36] Harzilein: say i have a ripl with its context set to my object. then when i want to refer to that method with method(:user_facing_method).descr and see a description
[18:54:10] Harzilein: of course i could just have a hash descrs = {:user_facing_method => "descr"} and look that up through descrs[:users_facing_method], but i was curious if it is at all possible
[18:54:58] jhooker: has joined #ruby
[18:55:05] mtkd: has joined #ruby
[18:56:12] centrx: Harzilein: I think the Method object returned by #method is just a copy, a representation
[18:56:30] centrx: Harzilein: it wouldn't make sense to add a method to a method itself
[18:56:47] __Yiota: has joined #ruby
[18:56:53] Tau: has left #ruby: ()
[18:57:07] centrx: Harzilein: I would set it up differently, have a #method_description(:my_method_name) method
[18:57:36] centrx: Harzilein: sounds like some meta-meta documentation though, are you writing a tutorial example or something?
[18:57:56] Harzilein: centrx: that's just about the same as my hash example...
[18:58:37] centrx: Harzilein: the descriptions need to be stored somewhere, and there isn't a place inherently in Ruby to store method meta-information, as far as I know
[18:58:50] sepp2k: has joined #ruby
[18:58:53] jhooker: has joined #ruby
[18:58:59] Harzilein: centrx: the repl is for interfacing with a mechanize-derived scraper, i.e. the system tries to do what it can from following its sequence, then drops the user to a repl
[18:59:20] sarmiena_: has joined #ruby
[18:59:35] Harzilein: centrx: because usually people will need to deviate from static sequences and just need some good tools from that point on
[18:59:51] centrx: Harzilein: You could add a method to Method for descr
[18:59:54] centrx: Harzilein: and have that access your hash
[19:00:15] centrx: Harzilein: To the user it would be transparent, just doing method(:user_facing_method).descr
[19:00:24] centrx: Harzilein: behind the scenes, descr would look at the method name, look it up in the hash
[19:01:03] cagomez: has joined #ruby
[19:01:09] jhooker: has joined #ruby
[19:01:13] Harzilein: sure. as i said, just curious if my desire for singleton methods on methods is at all anticipated in the language design
[19:03:01] jhooker: has joined #ruby
[19:05:56] jhooker: has joined #ruby
[19:06:10] shinnya: has joined #ruby
[19:06:42] dionysus69: has joined #ruby
[19:08:28] jhooker: has joined #ruby
[19:09:24] lxsameer: has joined #ruby
[19:10:20] pmden: has joined #ruby
[19:10:38] pwnd_nsfw: https://gist.github.com/SirUncleCid/aadf8c076c8da55c68a833235113042a
[19:10:49] pwnd_nsfw: So, all in all, I'm just trying to test the arguments for initialize.
[19:11:11] pwnd_nsfw: And the "resource" argument ... I'd actually rather it just be the class, not an instance of such
[19:11:33] pwnd_nsfw: So that I may check if the newly generated short link is unique for that resource
[19:11:39] bronson: has joined #ruby
[19:12:02] pwnd_nsfw: Everytime I get into a couple lines of an implementation, I freeze up and think... well, I'm back to no lines written again.... x.
[19:12:29] jhooker: has joined #ruby
[19:12:35] daivyk: has joined #ruby
[19:13:54] jhooker: has joined #ruby
[19:14:30] pwnd_nsfw: I suppose I could take an instance anyways, and then figure out the class type afterwards
[19:14:36] pwnd_nsfw: I still don't know how to test it though
[19:16:28] jhooker: has joined #ruby
[19:19:28] jhooker: has joined #ruby
[19:21:49] __Yiota: has joined #ruby
[19:21:50] cagomez: has joined #ruby
[19:21:59] jhooker: has joined #ruby
[19:23:44] blackwind_123: has joined #ruby
[19:25:02] nb_bez_____: has joined #ruby
[19:25:54] jhooker: has joined #ruby
[19:27:30] jhooker: has joined #ruby
[19:27:53] jackjackdripper: has joined #ruby
[19:27:59] dcunit3d: has joined #ruby
[19:29:09] cahoots: has joined #ruby
[19:29:44] andrzejku: has joined #ruby
[19:31:34] jhooker: has joined #ruby
[19:34:42] tAn: has joined #ruby
[19:35:14] workmad3: has joined #ruby
[19:36:08] alex``: has joined #ruby
[19:37:03] typeVoid: has joined #ruby
[19:37:42] dru: has joined #ruby
[19:39:50] boto: has joined #ruby
[19:42:22] cagomez: has joined #ruby
[19:42:32] DoubleMalt: has joined #ruby
[19:44:46] mim1k: has joined #ruby
[19:45:31] typeVoid: has joined #ruby
[19:45:53] mrconfused: has joined #ruby
[19:47:07] jinie_: has joined #ruby
[19:53:30] gusrub: has joined #ruby
[19:53:51] cseder: has joined #ruby
[19:56:02] eckhardt: has joined #ruby
[19:57:58] cagomez: has joined #ruby
[20:05:11] stee_3_: has joined #ruby
[20:05:13] gusrub: has joined #ruby
[20:05:55] jackjackdripper: has joined #ruby
[20:06:33] jackjackdripper1: has joined #ruby
[20:07:59] mrconfused: has joined #ruby
[20:08:14] mim1k: has joined #ruby
[20:12:24] cagomez: has joined #ruby
[20:16:16] havenwood_: has joined #ruby
[20:22:27] Rapture: has joined #ruby
[20:24:12] havenwood_: has joined #ruby
[20:25:57] choke: has joined #ruby
[20:26:18] mrconfused: has joined #ruby
[20:26:19] jenrzzz: has joined #ruby
[20:26:20] jenrzzz: has joined #ruby
[20:26:37] latemus: has joined #ruby
[20:26:55] mim1k: has joined #ruby
[20:27:37] mostlybadfly: has joined #ruby
[20:40:01] weaksauce: has joined #ruby
[20:42:29] mim1k: has joined #ruby
[20:45:51] mrconfused: has joined #ruby
[20:49:27] benlieb: has joined #ruby
[20:52:15] havenwood_: has joined #ruby
[20:53:27] workmad3: has joined #ruby
[20:54:20] havenwood_: has joined #ruby
[20:57:30] jenrzzz: has joined #ruby
[20:57:30] jenrzzz: has joined #ruby
[21:04:33] ur5us: has joined #ruby
[21:12:34] bronson: has joined #ruby
[21:12:40] ajnulo: has joined #ruby
[21:14:08] ajnulo: has left #ruby: ("Konversation terminated!")
[21:14:31] ajnulo: has joined #ruby
[21:18:17] ajnulo: has joined #ruby
[21:18:47] millerti: has joined #ruby
[21:19:03] aglorei: has joined #ruby
[21:20:08] cadillac_: has joined #ruby
[21:27:18] mrconfused: has joined #ruby
[21:27:29] jackjackdripper: has joined #ruby
[21:28:08] d5sx43: has joined #ruby
[21:28:33] DoubleMalt: has joined #ruby
[21:32:00] jackjackdripper: has joined #ruby
[21:34:17] cagomez: has joined #ruby
[21:34:38] ecuanaso: has joined #ruby
[21:37:12] cpruitt: has joined #ruby
[21:39:37] nowhere_man: has joined #ruby
[21:40:13] gothicsouth: has joined #ruby
[21:43:42] cagomez: has joined #ruby
[21:47:22] gothicso_: has joined #ruby
[21:47:34] nesoi: has joined #ruby
[21:47:41] nesoi: has left #ruby: ()
[21:51:28] Axy: has joined #ruby
[21:52:36] aglorei: has joined #ruby
[21:55:50] gusrub: has joined #ruby
[21:56:34] gothicsouth: has joined #ruby
[21:56:38] mrconfused: has joined #ruby
[21:59:23] ecuanaso: has joined #ruby
[21:59:38] tAn: has joined #ruby
[22:01:33] saneax: has joined #ruby
[22:07:25] misery_: has joined #ruby
[22:10:17] SeepingN: has joined #ruby
[22:13:26] jinie_: has joined #ruby
[22:15:03] GodFather: has joined #ruby
[22:18:12] ascarter: has joined #ruby
[22:18:47] cagomez: has joined #ruby
[22:22:02] cagomez: has joined #ruby
[22:26:38] milardovich: has joined #ruby
[22:27:08] stee_3: has joined #ruby
[22:35:13] sepp2k: has joined #ruby
[22:39:46] patarr: has joined #ruby
[22:43:22] Francy: has joined #ruby
[22:44:05] postmodern: has joined #ruby
[22:44:11] Francy: I try to install -> ruby https://github.com/carter/ham-irc-bot
[22:44:17] dstrunk: has joined #ruby
[22:44:25] duderono_: has joined #ruby
[22:44:26] Francy: and I recive this error https://pastebin.com/0Jh11aRx
[22:44:26] ruby[bot]: Francy: as I told you already, please use https://gist.github.com
[22:44:34] Francy: can someone help me how to solve it ?
[22:44:47] Francy: sorry for my poor english
[22:46:25] zero2: has joined #ruby
[22:49:06] Francy: how can I install gem file ?
[22:50:31] patr0clus: has joined #ruby
[22:53:47] meshsmith: has joined #ruby
[22:54:34] Axy: has joined #ruby
[22:57:06] Francy: anyone there ?
[23:01:26] randomA: has joined #ruby
[23:01:35] randomA: hey what version of rails should i run?
[23:01:38] randomA: is 4.2.0 good?
[23:01:44] Mia: has joined #ruby
[23:01:44] Mia: has joined #ruby
[23:05:57] Puffball: has joined #ruby
[23:07:20] randomA: hey anyone here?
[23:10:47] Inoperable: has joined #ruby
[23:11:19] Francy: randomA you able to help me ?
[23:11:42] randomA: i need to make a simple website that accept payment using rails
[23:11:48] randomA: is rails 4.2.0 ok?
[23:12:09] Francy: oh sorry randomA I dont know..
[23:12:24] Francy: v5.1.2. ?
[23:12:26] Kanibal: you should *probably* use the most recent one.
[23:12:30] Francy: is the final one ?
[23:12:40] Francy: yea maybe need upgrade
[23:12:54] Francy: Kanibal ...please HELP ME <3
[23:12:58] br0d1n: has joined #ruby
[23:13:08] Francy: https://github.com/carter/ham-irc-bot and I recive this error https://pastebin.com/0Jh11aRx
[23:13:08] ruby[bot]: Francy: as I told you already, please use https://gist.github.com
[23:13:21] Inoperable: has joined #ruby
[23:13:42] Francy: oh sorry I dosnt see the msg <3 can you drive me little bit ?
[23:13:49] Kanibal: Francy: Did you install ruby-ham?
[23:13:52] DK2: has joined #ruby
[23:14:01] Kanibal: $ gem install ruby-ham
[23:14:03] Francy: I clone with github
[23:14:15] Francy: <Kanibal> $ gem install ruby-ham it dotn work
[23:14:17] Kanibal: yup, then you should run a $ bundle install
[23:14:21] havenwood: Francy: Run: gem install bundler && bundle
[23:14:30] bronson: has joined #ruby
[23:14:57] Francy: ERROR: Could not find a valid gem 'ruby-ham' (>= 0) in any repository
[23:15:51] Kanibal: gem 'ruby-ham', :github => 'carter/ruby-ham'
[23:15:58] Francy: Bundle complete! 7 Gemfile dependencies, 28 gems now installed.
[23:16:00] Francy: Bundled gems are installed into ./vendor/bundle.
[23:16:22] Francy: gem 'ruby-ham', :github => 'carter/ruby-ham'
[23:16:23] Francy: bash: carter/ruby-ham: No such file or directory
[23:16:34] brent__: has joined #ruby
[23:16:36] Kanibal: yeah, no :-) that was just where to find ruby-ham
[23:16:47] Kanibal: did $ bundle exit correctly?
[23:17:50] Francy: :( it dosnt run
[23:18:13] Francy: Could not find 'ruby-ham' (>= 0) among 126 total gem(s) (Gem::LoadError)
[23:18:48] Francy: sorry fpr my poor knowleadge
[23:19:19] Francy: wtf I must do to run it ?
[23:20:37] Francy: https://pastebin.com/V4vXRpb3
[23:20:37] ruby[bot]: Francy: as I told you already, please use https://gist.github.com
[23:20:52] Francy: how to do with gist ?
[23:20:54] Francy: sorry again
[23:21:15] Kanibal: tbh, that's just a bot
[23:21:56] Francy: yes we need for our ham radio local IRC
[23:22:05] Kanibal: ham as in Hamburg?
[23:22:28] Francy: Ham-Radio
[23:22:42] milardovich: has joined #ruby
[23:24:25] randomA: what framework to use for ruby on rails?
[23:28:31] cagomez: has joined #ruby
[23:32:24] Inoperable: randomA ehh, rails is a a framework already
[23:33:09] Inoperable: but if you mean like what to use with rails check the awesome lists @ github
[23:33:19] randomA: yeah like what to use with rails
[23:33:21] tAn: has joined #ruby
[23:33:24] randomA: i was thinking maybe google materialize?
[23:33:32] Papierkorb: ?rails randomA
[23:33:32] ruby[bot]: randomA: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[23:35:52] mokiwis: has joined #ruby
[23:36:21] alveric4: has joined #ruby
[23:37:00] cagomez: has joined #ruby
[23:37:38] ivanskie: pardon my non-ruby question. but uhm, how is it that cmder has permission to add shell registry to add "conemu here" to right click menu. but i can't manually add registry to shell to add "open with sublime" menu. (i don't have admin permissions, and neither cmder nor sublime are installed, standalone/portable )
[23:37:44] ivanskie: on windows.
[23:38:01] Francy: <randomA> look at it -> https://github.com/carter/substruct
[23:38:33] randomA: substruct is no longer maintained
[23:39:01] duderonomy: has joined #ruby
[23:39:18] nopolitica: has joined #ruby
[23:39:51] nopolitica: has joined #ruby
[23:44:11] cagomez: has joined #ruby
[23:47:29] jenrzzz: has joined #ruby
[23:47:29] jenrzzz: has joined #ruby
[23:51:30] MrJoshua: has joined #ruby
[23:57:43] TomyLobo: has joined #ruby
[23:59:24] jenrzzz: has joined #ruby