« Back to channel list

#ruby - 07 September 2017

« Back 1 day Forward 1 day »
[00:02:07] bvcosta: has joined #ruby
[00:02:56] tcopeland: has joined #ruby
[00:06:03] Cohedrin_: has joined #ruby
[00:14:33] ornerymoose: has joined #ruby
[00:19:34] aglorei1: has joined #ruby
[00:22:15] GodFather: has joined #ruby
[00:23:05] mim1k: has joined #ruby
[00:23:06] bmurt: has joined #ruby
[00:26:21] cconstantine: has joined #ruby
[00:28:34] jackjackdripper1: has joined #ruby
[00:28:36] Caerus: has joined #ruby
[00:34:25] Cohedrin_: has joined #ruby
[00:35:16] laphoraig92: has joined #ruby
[00:37:20] Cohedrin_: has joined #ruby
[00:44:40] bmurt: has joined #ruby
[00:46:39] Caerus: has joined #ruby
[00:47:25] Cohedrin_: has joined #ruby
[00:49:51] umaaji: has joined #ruby
[00:50:10] Caerus: has joined #ruby
[00:50:21] cagomez: has joined #ruby
[00:52:09] shimshamshao: has joined #ruby
[00:53:54] Caerus: has joined #ruby
[00:56:14] __Yiota: has joined #ruby
[00:56:37] bvcosta: has joined #ruby
[00:59:01] Mon_Ouie: has joined #ruby
[01:00:33] ramfjord: has joined #ruby
[01:00:34] ramfjord_: has joined #ruby
[01:02:06] bronson: has joined #ruby
[01:02:46] cschneid_: has joined #ruby
[01:03:18] nowhere_man: has joined #ruby
[01:03:59] jinie: has joined #ruby
[01:08:11] Bhootrk_: has joined #ruby
[01:09:51] bmurt: has joined #ruby
[01:10:40] tcopeland: has joined #ruby
[01:12:55] Bhootrk_: has joined #ruby
[01:13:52] webguynow: has joined #ruby
[01:14:32] cconstantine: has joined #ruby
[01:17:32] Bhootrk_: has joined #ruby
[01:17:59] goyox86: has joined #ruby
[01:19:07] tsr: has joined #ruby
[01:22:33] bmurt: has joined #ruby
[01:22:53] Caerus: has joined #ruby
[01:27:21] brent__: has joined #ruby
[01:27:57] gizmore|2: has joined #ruby
[01:31:01] FahmeF: has joined #ruby
[01:32:43] Bhootrk_: has joined #ruby
[01:33:36] Bock: has joined #ruby
[01:34:16] goyox86: has joined #ruby
[01:39:07] bmurt: has joined #ruby
[01:48:35] uZiel: has joined #ruby
[01:50:36] bvcosta: has joined #ruby
[01:54:54] bmurt: has joined #ruby
[01:56:53] Jameser: has joined #ruby
[01:57:00] orbyt_: has joined #ruby
[01:58:17] d^sh: has joined #ruby
[02:02:14] ahmadsoe: has joined #ruby
[02:05:00] nertzy: has joined #ruby
[02:10:14] enterprisey: has joined #ruby
[02:10:31] ahmadsoe: has joined #ruby
[02:15:04] Jameser: has joined #ruby
[02:17:23] truenito: has joined #ruby
[02:17:26] bmurt: has joined #ruby
[02:22:11] uZiel: has joined #ruby
[02:22:34] raul782: has joined #ruby
[02:23:36] mim1k: has joined #ruby
[02:27:14] ornerymoose: has joined #ruby
[02:28:15] truenito: has joined #ruby
[02:29:23] orbyt_: has joined #ruby
[02:30:10] truenito: has joined #ruby
[02:34:55] truenito: has joined #ruby
[02:37:55] Jameser: has joined #ruby
[02:44:25] bmurt: has joined #ruby
[02:44:30] Roughy: has joined #ruby
[02:44:39] arescorpio: has joined #ruby
[02:44:43] bvcosta: has joined #ruby
[02:46:45] goyox86: has joined #ruby
[02:48:00] shimshamshao: has joined #ruby
[02:48:57] Caerus: has joined #ruby
[02:49:13] sarbs: has joined #ruby
[02:51:40] jenrzzz: has joined #ruby
[02:51:40] jenrzzz: has joined #ruby
[02:52:31] armyriad: has joined #ruby
[02:58:35] UserOO7: has joined #ruby
[02:59:53] GodFather: has joined #ruby
[03:00:09] cadillac_: has joined #ruby
[03:01:11] ramfjord: has joined #ruby
[03:01:12] ramfjord_: has joined #ruby
[03:04:00] nunchuck: has joined #ruby
[03:06:28] belmoussaoui_: has joined #ruby
[03:07:22] Jameser: has joined #ruby
[03:09:04] mtkd: has joined #ruby
[03:15:53] vondruch: has joined #ruby
[03:18:34] ornerymoose: has joined #ruby
[03:20:06] raul782: has joined #ruby
[03:21:23] vondruch: has joined #ruby
[03:21:43] ramfjord: has joined #ruby
[03:22:22] raul782: has joined #ruby
[03:25:25] goyox86: has joined #ruby
[03:26:19] bmurt: has joined #ruby
[03:26:32] z3uS: has joined #ruby
[03:26:54] goyox86: has joined #ruby
[03:27:09] cschneid_: has joined #ruby
[03:27:27] twillkens: has joined #ruby
[03:33:53] belmoussaoui_: has joined #ruby
[03:35:37] jenrzzz: has joined #ruby
[03:35:37] jenrzzz: has joined #ruby
[03:39:00] bvcosta: has joined #ruby
[03:39:07] UserOO7: has joined #ruby
[03:40:18] bmurt: has joined #ruby
[03:40:45] jackjackdripper: has joined #ruby
[03:40:56] gix: has joined #ruby
[03:42:20] ramfjord: has joined #ruby
[03:42:21] ramfjord_: has joined #ruby
[03:47:01] jenrzzz: has joined #ruby
[03:47:07] s3nd1v0g1us: has joined #ruby
[03:48:54] sp4rrow: has joined #ruby
[03:52:45] giraffe: has joined #ruby
[03:53:06] uZiel: has joined #ruby
[03:53:46] tpendragon: has joined #ruby
[03:54:08] bmurt: has joined #ruby
[03:54:56] neo95: has joined #ruby
[04:02:06] umaaji: has joined #ruby
[04:02:50] ramfjord: has joined #ruby
[04:02:51] ramfjord_: has joined #ruby
[04:05:29] twillkens: has joined #ruby
[04:10:42] yr757: has joined #ruby
[04:13:51] claw: has joined #ruby
[04:15:08] Azure: has joined #ruby
[04:17:05] jackjackdripper1: has joined #ruby
[04:18:14] joelroa_: has joined #ruby
[04:18:18] Valkyrie_: has joined #ruby
[04:19:01] p0p0pr37_: has joined #ruby
[04:19:01] p0p0pr37_: has joined #ruby
[04:19:01] baroquebobcat_: has joined #ruby
[04:19:13] nicolai86_: has joined #ruby
[04:19:23] Sembei: has joined #ruby
[04:19:47] tcopeland1: has joined #ruby
[04:20:00] Bhootrk_: has joined #ruby
[04:20:01] cconstantine: has joined #ruby
[04:20:17] ged_: has joined #ruby
[04:20:55] vondruch: has joined #ruby
[04:21:10] armyriad: has joined #ruby
[04:22:51] helpa: has joined #ruby
[04:23:30] ramfjord: has joined #ruby
[04:24:07] mim1k: has joined #ruby
[04:24:35] Psy-Q: has joined #ruby
[04:24:36] Lyubo1: has joined #ruby
[04:25:01] ionte: has joined #ruby
[04:26:04] halt: has joined #ruby
[04:26:06] bokayio: has joined #ruby
[04:26:08] x0F: has joined #ruby
[04:26:16] ged: has joined #ruby
[04:26:22] vondruch: has joined #ruby
[04:26:25] g3funk: has joined #ruby
[04:26:39] fumk: has joined #ruby
[04:26:44] baweaver: has joined #ruby
[04:26:45] baweaver: has joined #ruby
[04:26:55] riskish: has joined #ruby
[04:28:24] hurricanehrndz: has joined #ruby
[04:28:24] harfangk: has joined #ruby
[04:31:10] bauruine: has joined #ruby
[04:33:00] bvcosta: has joined #ruby
[04:34:14] UserOO7: has joined #ruby
[04:34:40] Junaos: has joined #ruby
[04:35:01] ltd: has joined #ruby
[04:38:14] Sembei: has joined #ruby
[04:40:48] govg: has joined #ruby
[04:40:59] rcs: has joined #ruby
[04:44:58] tris: has joined #ruby
[04:45:42] heftig: has joined #ruby
[04:49:05] ShekharReddy: has joined #ruby
[04:52:20] Dimik: has joined #ruby
[05:06:11] twillkens: has joined #ruby
[05:08:01] ByteStorm: has joined #ruby
[05:13:38] ByteStorm: has left #ruby: ("Ex-Chat")
[05:14:08] ramfjord: has joined #ruby
[05:15:34] mtkd: has joined #ruby
[05:22:27] mim1k: has joined #ruby
[05:26:13] Tempesta: has joined #ruby
[05:27:05] bvcosta: has joined #ruby
[05:28:07] cschneid_: has joined #ruby
[05:28:12] brent__: has joined #ruby
[05:29:43] Emmanuel_Chanel: has joined #ruby
[05:33:26] biberu: has joined #ruby
[05:35:13] ramfjord: has joined #ruby
[05:35:16] ramfjord_: has joined #ruby
[05:39:36] apeiros: has joined #ruby
[05:40:43] GodFather: has joined #ruby
[05:41:01] Jameser: has joined #ruby
[05:42:44] sucks: has joined #ruby
[05:45:51] paranoicsan: has joined #ruby
[05:46:44] kke: ruby could just drop class variables, i don't see any use for them
[05:46:53] mkali: has joined #ruby
[05:46:54] kke: oh i'm 9 hours late from the discussion
[05:47:16] imode: has joined #ruby
[05:49:04] djbkd: has joined #ruby
[05:50:05] rabajaj: has joined #ruby
[05:50:47] ramfjord: has joined #ruby
[05:52:19] dionysus69: has joined #ruby
[06:00:43] anisha: has joined #ruby
[06:01:26] Jameser: has joined #ruby
[06:11:12] ramfjord: has joined #ruby
[06:16:35] roshanavand: has joined #ruby
[06:20:00] FahmeF: has joined #ruby
[06:20:52] jordanm: has joined #ruby
[06:21:21] Stan: has joined #ruby
[06:21:24] bvcosta: has joined #ruby
[06:33:21] cadillac_: has joined #ruby
[06:35:24] neo95: has joined #ruby
[06:35:43] jenrzzz: has joined #ruby
[06:35:44] jenrzzz: has joined #ruby
[06:36:45] twillkens: has joined #ruby
[06:42:19] bvcosta: has joined #ruby
[06:44:01] conta: has joined #ruby
[06:48:27] jaruga: has joined #ruby
[06:53:03] mim1k: has joined #ruby
[06:58:47] howdoi: has joined #ruby
[07:03:36] DonDorito: has joined #ruby
[07:04:16] tAn: has joined #ruby
[07:05:50] djbkd: has joined #ruby
[07:06:22] dminuoso: kke: I found a use for them.
[07:06:26] dminuoso: Took me just 10 years.
[07:06:48] dminuoso: And because ruby is ruby, you cant make backwards incompatible changes because matz would break my program.
[07:06:50] dminuoso: he doesn't want to do that.
[07:08:19] Mortomes|Work: has joined #ruby
[07:08:52] guille-moe: has joined #ruby
[07:10:43] rahul_bajaj: has joined #ruby
[07:13:16] AnoHito: has joined #ruby
[07:15:56] vondruch: has joined #ruby
[07:16:44] mark_66: has joined #ruby
[07:17:16] bvcosta: has joined #ruby
[07:18:53] burgestrand: has joined #ruby
[07:19:20] mtkd: has joined #ruby
[07:21:21] vondruch: has joined #ruby
[07:22:22] aihwh: has joined #ruby
[07:22:56] Ishido: has joined #ruby
[07:23:01] claudiuinberlin: has joined #ruby
[07:23:09] imode: has joined #ruby
[07:24:48] polishmachine: has joined #ruby
[07:28:05] polishmachine: musk.spacex@yandex.com
[07:35:13] anas: has joined #ruby
[07:35:53] vondruch: has joined #ruby
[07:38:17] DTZUZO: has joined #ruby
[07:40:04] Silthias: has joined #ruby
[07:41:21] vondruch: has joined #ruby
[07:42:43] Silthias1: has joined #ruby
[07:45:53] anon1634: has joined #ruby
[07:48:06] dminuoso: ACTION pokes Radar
[07:48:14] dminuoso: This is the third time Im seeing you in here.
[07:48:31] dminuoso: Its almost like you started writing real ruby code.
[07:48:37] dminuoso: ACTION grins
[07:50:04] anon1634: has left #ruby: ("AndroIRC")
[07:52:05] cagomez: has joined #ruby
[07:55:18] brent__: has joined #ruby
[07:58:20] olspookishmagus: has joined #ruby
[07:58:52] aufi: has joined #ruby
[07:59:09] sysvalve: has joined #ruby
[08:06:21] claudiuinberlin: has joined #ruby
[08:07:14] twillkens: has joined #ruby
[08:09:43] tvw: has joined #ruby
[08:10:44] mikecmpbll: has joined #ruby
[08:11:47] ramfjord: has joined #ruby
[08:11:48] 7JTAB9CO4: has joined #ruby
[08:11:49] rabajaj: has joined #ruby
[08:15:18] kwd: has joined #ruby
[08:15:31] ams__: has joined #ruby
[08:15:57] vondruch: has joined #ruby
[08:17:24] yeticry: has joined #ruby
[08:18:44] Jameser: has joined #ruby
[08:21:24] vondruch: has joined #ruby
[08:22:52] Jameser`: has joined #ruby
[08:25:37] guille-moe: has joined #ruby
[08:27:16] ramfjord: has joined #ruby
[08:27:20] ramfjord_: has joined #ruby
[08:28:53] frozengeek: has joined #ruby
[08:29:07] Beams: has joined #ruby
[08:30:12] quobo: has joined #ruby
[08:35:15] charliesome: has joined #ruby
[08:35:30] rahul_bajaj: has joined #ruby
[08:38:24] workmad3: has joined #ruby
[08:38:43] bvcosta: has joined #ruby
[08:39:03] anisha_: has joined #ruby
[08:41:06] marr: has joined #ruby
[08:41:37] jottr: has joined #ruby
[08:41:37] A124: has joined #ruby
[08:42:39] lxsameer: has joined #ruby
[08:42:43] ramfjord: has joined #ruby
[08:44:04] bvcosta: has joined #ruby
[08:44:29] Xeago: has joined #ruby
[08:46:38] guille-moe: has joined #ruby
[08:55:39] frozengeek: has joined #ruby
[08:56:48] guille-moe: has joined #ruby
[08:57:34] guille-moe1: has joined #ruby
[08:58:13] ramfjord: has joined #ruby
[09:00:45] claudiuinberlin: has joined #ruby
[09:03:09] Jameser: has joined #ruby
[09:05:01] liamc: has joined #ruby
[09:07:57] twillkens: has joined #ruby
[09:11:39] rahul_bajaj: has joined #ruby
[09:13:38] ramfjord: has joined #ruby
[09:19:56] nicesignal: has joined #ruby
[09:22:33] Siyfion: has joined #ruby
[09:23:28] nofxxxx: has joined #ruby
[09:24:36] charliesome: has joined #ruby
[09:26:51] Mgtuiw211: has joined #ruby
[09:27:01] DanielI: has joined #ruby
[09:29:06] ramfjord: has joined #ruby
[09:29:09] ramfjord_: has joined #ruby
[09:29:28] snickers: has joined #ruby
[09:30:55] mtkd: has joined #ruby
[09:37:28] bvcosta: has joined #ruby
[09:42:52] maxmanders: has joined #ruby
[09:44:37] ramfjord: has joined #ruby
[09:53:13] aihwh: i got a questions
[09:53:58] charliesome: has joined #ruby
[09:55:21] aihwh: https://gist.github.com/anonymous/b8ba62dfdf3b234ed52b7fe9321a42c7
[09:55:23] aihwh: i got something like this
[09:55:36] aihwh: everything is ended correctly
[09:55:42] aihwh: however, i got the error output: syntax error, unexpected keyword_end, expecting end-of-input
[09:56:09] matthewd: aihwh: `do loop` -> `loop do`
[09:56:19] aihwh: it's the other way around
[09:56:22] aihwh: there is no syntax error
[09:56:28] aihwh: and hi matthewd :) i remember you
[09:56:32] matthewd: Well yes, there clearly is
[09:56:50] matthewd: Sorry, but I trust ruby's interpretation of its syntax over yours
[09:57:11] aihwh: i use loop do
[09:57:18] aihwh: in my script, not `do loop`
[09:57:27] claudiuinberlin: has joined #ruby
[09:57:29] aihwh: i was in a hurry when writing the gist
[09:57:34] aihwh: sorry about that
[09:57:36] matthewd: Yep, that I believe
[09:57:45] matthewd: But there is obviously a syntax error elsewhere in your actual script
[09:59:16] matthewd: Specifically, you have one too many `end`s
[09:59:43] aihwh: i see, but there is something else
[09:59:45] aihwh: hold up a bit
[10:00:02] ramfjord: has joined #ruby
[10:00:06] ramfjord_: has joined #ruby
[10:00:23] aihwh: https://gist.github.com/anonymous/9defedd527081c754bd0c8e77e009b4a
[10:00:37] aihwh: i close the `loop do`
[10:00:56] aihwh: then run some more code, then close the rest of conditions
[10:01:01] matthewd: I can't debug a syntax error that I can't see
[10:01:09] ccooke: That code is awfully formatted, and you didn't fix the syntax error we *can* see
[10:01:16] aihwh: ccooke: ... sorry
[10:01:27] matthewd: There is a bug in your code; attempting to reproduce "my code is fine" with different code isn't going to get you anywhere
[10:02:01] aihwh: https://gist.github.com/anonymous/f72ac15965239cef6b7a95d8a05a9b62 here is the function
[10:02:24] aihwh: instead of the loop, it was the if condition and it was working
[10:02:26] ccooke: aihwh: Serious thought - is your code indented like that? Because if so, it will make it much harder for you to see what blocks have been closed
[10:02:58] aihwh: ccooke: it's not..
[10:03:07] ccooke: So I see :-)
[10:03:14] matthewd: It kinda is
[10:03:17] matthewd: The problem is line 17
[10:03:48] Serpent7776: has joined #ruby
[10:04:11] ccooke: yeah, it is still a bit randomly indented
[10:04:47] matthewd: I recommend an editor that knows how to autoformat your code
[10:04:57] bronson: has joined #ruby
[10:05:07] aihwh: could you recommend me a specific one? right now i either use gedit or nano/vim
[10:05:14] ccooke: Line 17 is indented a step more than it should be (and line 15 is an indent-level short). You then just added one end more than you need, because the indent-level is wrong
[10:05:33] matthewd: Even if you don't use the function all the time (I don't), it can help to quickly fix indentation when this happens -- the reality differs from how you think the code is structured
[10:06:11] matthewd: I use vim. Atom and VS Code are both popular.
[10:07:13] ccooke: vim with syntax colour on can be useful
[10:07:37] ccooke: the 'end's will be in different colours depending on what sort of block they close, which would have made this clear
[10:08:04] aihwh: i see, i'm looking into modifying one of those editors to see what is the mistake
[10:08:48] Jameser: has joined #ruby
[10:09:34] matthewd: Yeah, the multi-coloured ends help a lot. And otherwise, I just `gg=G` and see what jumps around.
[10:10:45] claudiuinberlin: has joined #ruby
[10:11:09] brent__: has joined #ruby
[10:11:25] aihwh: ok, i now see there is an extra end
[10:11:41] TomyWork: has joined #ruby
[10:11:57] aihwh: i removed, the script runs but however it gets stuck in the loop
[10:12:13] aihwh: printing the "checking balance.." message
[10:14:02] bvcosta: has joined #ruby
[10:14:41] aihwh: if i replace the loop: https://gist.github.com/anonymous/f256485ae3b6c2518fa38631d310215d
[10:14:51] aihwh: with the if condition, the script works
[10:15:22] aihwh: but i don't want it like that
[10:15:30] ramfjord: has joined #ruby
[10:15:33] ramfjord_: has joined #ruby
[10:15:35] matthewd: Your loop isn't doing anything
[10:15:45] claudiuinberlin: has joined #ruby
[10:16:34] matthewd: It has the puts, and then it re-checks the value in `balance_details`, but it never does anything to make that value change
[10:16:57] Silthias: has joined #ruby
[10:16:57] aihwh: yes, i don't want it to do anything except check the balance_details
[10:17:10] aihwh: if the balance is there, it should run further
[10:17:10] matthewd: But balance_details isn't changing
[10:17:17] FahmeF: has joined #ruby
[10:18:26] aihwh: matthewd, it is changing but it is related to an API
[10:18:36] aihwh: so nothing i can perform form my ruby script
[10:18:42] matthewd: No it's not
[10:19:12] aihwh: hold up a sec
[10:21:17] agent_white: has joined #ruby
[10:23:15] Tempesta: has joined #ruby
[10:25:21] aihwh: this is what i get http://i.imgur.com/FH3oKDR.png
[10:26:30] mtkd: has joined #ruby
[10:26:30] ShalokShalom_: has joined #ruby
[10:27:06] cagomez: has joined #ruby
[10:28:07] matthewd: So available > 0, and it's leaving the loop
[10:28:24] aihwh: it seems to be working now
[10:28:35] aihwh: i have a q though: why is it not printing the message?
[10:29:20] matthewd: It's printing from line 23 & 24 (from the gist)
[10:29:39] aihwh: yes, but not line 14
[10:32:00] KeyJoo: has joined #ruby
[10:32:40] matthewd: Is that an "oh I now see that the message is right there directly above 'Selling coin'" face?
[10:32:53] aihwh: no, i'm serious :D
[10:33:18] matthewd: Well, the message is right there directly above 'Selling coin'
[10:33:32] aihwh: do you have a gun?
[10:33:38] aihwh: or a combat knife maybe
[10:33:44] aihwh: .lurv matthewd
[10:33:49] aihwh: you're the best!
[10:38:27] twillkens: has joined #ruby
[10:40:16] charliesome: has joined #ruby
[10:43:29] claudiuinberlin: has joined #ruby
[10:43:53] bruno-: has joined #ruby
[10:46:27] ramfjord: has joined #ruby
[10:46:28] ramfjord_: has joined #ruby
[10:51:03] bvcosta: has joined #ruby
[10:51:53] GodFather: has joined #ruby
[10:53:34] JazzH: has joined #ruby
[10:53:39] jazzy: has joined #ruby
[10:54:29] claudiuinberlin: has joined #ruby
[10:54:38] JazzH: has joined #ruby
[10:57:52] jenrzzz: has joined #ruby
[10:57:52] jenrzzz: has joined #ruby
[10:59:38] charliesome: has joined #ruby
[11:05:38] bronson: has joined #ruby
[11:07:57] dionysus69: has joined #ruby
[11:23:29] hs367: has joined #ruby
[11:29:15] cagomez: has joined #ruby
[11:30:04] frozengeek: has joined #ruby
[11:36:14] bvcosta: has joined #ruby
[11:45:05] cagomez: has joined #ruby
[11:48:02] _hs366: has joined #ruby
[11:49:55] hs366: has joined #ruby
[11:50:32] guille-moe: has joined #ruby
[11:57:33] quobo: has joined #ruby
[11:59:21] charliesome: has joined #ruby
[12:01:33] claudiuinberlin: has joined #ruby
[12:04:47] jamesaxl: has joined #ruby
[12:08:57] twillkens: has joined #ruby
[12:18:38] claudiuinberlin: has joined #ruby
[12:26:21] frozengeek_: has joined #ruby
[12:26:43] tcopeland: has joined #ruby
[12:27:03] brent__: has joined #ruby
[12:29:23] bmurt: has joined #ruby
[12:30:07] twillkens: has joined #ruby
[12:31:23] mkali_: has joined #ruby
[12:35:51] mson: has joined #ruby
[12:35:53] aihwh: has joined #ruby
[12:38:23] bmurt: has joined #ruby
[12:40:17] jottr: has joined #ruby
[12:43:18] aihwh: has left #ruby: ()
[12:43:22] __Yiota: has joined #ruby
[12:43:57] frozengeek_: has joined #ruby
[12:44:44] Jameser: has joined #ruby
[12:46:00] jottr: has joined #ruby
[12:46:01] chouhoulis: has joined #ruby
[12:47:02] ramfjord: has joined #ruby
[12:47:03] ramfjord_: has joined #ruby
[12:47:38] ornerymoose: has joined #ruby
[12:52:07] bruce_lee: has joined #ruby
[12:52:08] bruce_lee: has joined #ruby
[12:52:58] ornerymoose: has joined #ruby
[12:53:37] twillkens: has joined #ruby
[12:56:45] guille-moe: has joined #ruby
[12:58:52] charliesome: has joined #ruby
[13:00:47] jenrzzz: has joined #ruby
[13:00:47] jenrzzz: has joined #ruby
[13:01:11] Ishido: has joined #ruby
[13:01:42] Jameser: has joined #ruby
[13:02:04] __Yiota: has joined #ruby
[13:02:12] wald0: has joined #ruby
[13:02:22] jinie: has joined #ruby
[13:02:23] ramfjord: has joined #ruby
[13:02:29] ramfjord_: has joined #ruby
[13:05:12] cdg: has joined #ruby
[13:05:39] xuanrui: has joined #ruby
[13:05:49] fyrril: has joined #ruby
[13:06:10] Ishido: has joined #ruby
[13:06:20] bronson: has joined #ruby
[13:06:51] balazs_: has joined #ruby
[13:09:01] frozengeek_: has joined #ruby
[13:09:14] frozengeek: has joined #ruby
[13:10:12] haylon: has joined #ruby
[13:11:01] jottr_: has joined #ruby
[13:12:18] Xiti`: has joined #ruby
[13:15:46] claudiuinberlin: has joined #ruby
[13:16:01] jottr: has joined #ruby
[13:17:54] ramfjord: has joined #ruby
[13:17:55] ramfjord_: has joined #ruby
[13:17:55] twillkens: has joined #ruby
[13:19:58] raul782: has joined #ruby
[13:23:01] raul782: has joined #ruby
[13:24:17] millerti: has joined #ruby
[13:27:29] charliesome: has joined #ruby
[13:33:22] ramfjord: has joined #ruby
[13:33:23] ramfjord_: has joined #ruby
[13:36:10] phate408: has joined #ruby
[13:42:45] Jameser: has joined #ruby
[13:44:06] xuanrui: has joined #ruby
[13:48:17] bvcosta: has joined #ruby
[13:48:41] apparition: has joined #ruby
[13:48:47] ramfjord: has joined #ruby
[13:48:51] ramfjord_: has joined #ruby
[13:49:57] bvcosta: has joined #ruby
[13:52:26] ur5us: has joined #ruby
[13:55:42] bruno-_: has joined #ruby
[13:55:53] Ziarkaen: has joined #ruby
[14:02:39] __Yiota: has joined #ruby
[14:03:04] govg: has joined #ruby
[14:04:18] ramfjord: has joined #ruby
[14:04:19] ramfjord_: has joined #ruby
[14:04:31] Terens: has joined #ruby
[14:04:41] Terens: I dont get why
[14:06:44] tsr: has joined #ruby
[14:06:48] evidex: has joined #ruby
[14:08:21] brendan-: has joined #ruby
[14:08:39] charliesome: has joined #ruby
[14:09:04] Terens: @vvv << JSON.parse(v.to_json, object_class: OpenStruct)
[14:12:56] Rapture: has joined #ruby
[14:14:12] mtkd: has joined #ruby
[14:14:49] claudiuinberlin: has joined #ruby
[14:15:35] bmurt: has joined #ruby
[14:15:58] yehowyada: has joined #ruby
[14:18:34] tcopeland: has joined #ruby
[14:21:58] kculpis: has joined #ruby
[14:24:54] millerti: has joined #ruby
[14:26:25] ski7777: has joined #ruby
[14:31:33] tomatopeel: has joined #ruby
[14:31:59] tomatopeel: hey where are the docs on simple stuff like encoding/decoding between formats like hex, base64, ascii, utf-8 etc.?
[14:33:21] raul7821: has joined #ruby
[14:34:02] matthewd: tomatopeel: pack/unpack may help
[14:34:37] polishdub: has joined #ruby
[14:35:01] tsr: tomatopeel: Base64: https://ruby-doc.org/stdlib-2.2.0/libdoc/base64/rdoc/Base64.html
[14:35:25] tsr: encoding: https://ruby-doc.org/core-2.1.4/Encoding.html
[14:35:44] bruno-: has joined #ruby
[14:35:48] bruno-_: has joined #ruby
[14:36:49] oleo: has joined #ruby
[14:37:11] polishdub: has joined #ruby
[14:37:19] raul782: has joined #ruby
[14:41:05] minimalism: has joined #ruby
[14:41:07] Jameser: has joined #ruby
[14:45:20] Beams_: has joined #ruby
[14:45:53] darix: *reencodes tsr*
[14:48:53] charliesome: has joined #ruby
[14:51:32] raul782: has joined #ruby
[14:51:36] kus_ubuntui686: has joined #ruby
[14:54:07] ski7777: has joined #ruby
[14:55:27] Beams: has joined #ruby
[14:56:23] ResidentBiscuit: has joined #ruby
[14:57:37] rippa: has joined #ruby
[14:58:32] xuanrui: has joined #ruby
[14:59:01] chromis: has joined #ruby
[14:59:02] selim: has joined #ruby
[14:59:07] nofxx: has joined #ruby
[15:02:37] jenrzzz: has joined #ruby
[15:02:37] jenrzzz: has joined #ruby
[15:02:43] s3nd1v0g1us: has joined #ruby
[15:07:15] cschneid_: has joined #ruby
[15:07:56] bronson: has joined #ruby
[15:10:03] FastJack_: has joined #ruby
[15:10:07] raul782: has joined #ruby
[15:13:07] mark_66: has left #ruby: ("PART #elixir-lang :PART #crystal-lang :QUIT :Leaving.")
[15:14:48] c0mrad3: has joined #ruby
[15:14:55] cconstantine: has joined #ruby
[15:16:17] bvcosta: has joined #ruby
[15:16:52] jackjackdripper: has joined #ruby
[15:17:37] jdbrowne: has joined #ruby
[15:18:09] Jameser`: has joined #ruby
[15:19:48] cagomez: has joined #ruby
[15:29:14] TastyTrout: everytime you link to ruby-doc.org a kitten dies, you know that right?
[15:29:41] haylon: Probably deserved it
[15:30:35] MyMind: has joined #ruby
[15:30:52] TastyTrout: ok lol. put another way, everytime you link to ruby-doc.org you link to the 2nd best, because rubydoc.info is far superior
[15:31:41] brent__: has joined #ruby
[15:31:52] fyrril2: has joined #ruby
[15:32:45] brent__: has joined #ruby
[15:34:09] raul782: has joined #ruby
[15:37:25] jackjackdripper: has joined #ruby
[15:44:23] chouhoulis: has joined #ruby
[15:44:45] matthewd: TastyTrout: It thinks the latest ruby is 2.3.1, sooooo....
[15:45:41] Macaveli: has joined #ruby
[15:45:45] xuanrui: has joined #ruby
[15:48:21] phinxy: has joined #ruby
[15:48:43] taurgal: has joined #ruby
[15:50:13] Siyfion: has joined #ruby
[15:51:17] joelroa: has joined #ruby
[15:56:51] claudiuinberlin: has joined #ruby
[15:58:29] raynold: has joined #ruby
[16:00:34] yokel: has joined #ruby
[16:07:22] orbyt_: has joined #ruby
[16:10:52] ionte: has joined #ruby
[16:11:16] dviola: has joined #ruby
[16:11:34] dmtd: has joined #ruby
[16:15:59] croberts: TastyTrout: is trout better grilled or fried
[16:17:26] Caerus: has joined #ruby
[16:18:39] orbyt_: has joined #ruby
[16:18:59] gusrub: has joined #ruby
[16:19:47] ski7777: has joined #ruby
[16:19:52] cconstantine_: has joined #ruby
[16:20:28] jottr: has joined #ruby
[16:21:47] arup_r: has joined #ruby
[16:22:55] haylon: Is it possible to call a Rake::PackageTask from another Rake task passing it arguments?
[16:23:05] haylon: So far, I'm not doing it correctly it seems
[16:23:20] arup_r: I am using prawn and pdf-form gem to manipulate pdfs. pdf-form is basically to add data to pdf and prawn to add images to the pdf. But I am getting some error when trying to use prawn. Can you tell me what is wrong? https://gist.github.com/aruprakshit/f2ae214d1b12c512b440af445d8a9de1
[16:27:03] charliesome: has joined #ruby
[16:28:07] ltem: has joined #ruby
[16:29:25] jottr: has joined #ruby
[16:30:02] claudiuinberlin: has joined #ruby
[16:31:28] twillkens: has joined #ruby
[16:35:22] marxarelli: has joined #ruby
[16:35:40] Dimik: has joined #ruby
[16:39:26] guardian: has joined #ruby
[16:39:42] guardian: hello is there an easy oneliner that lets me join path fragments with forward slashes even on windows?
[16:40:37] guille-moe: has joined #ruby
[16:42:44] bruno-__: has joined #ruby
[16:42:53] bruno-___: has joined #ruby
[16:43:00] eam: File.join *should* work properly for your local platform, is that what you mean?
[16:43:23] eam: or are you saying you want to join a unix style path on a non-unix system?
[16:43:45] jackjackdripper1: has joined #ruby
[16:43:59] eam: (the deeper irony here is that the forward slash is, and always has been, a valid path separator on DOS/Windows)
[16:44:04] matthewd: I'm pretty sure that's what File.join actually does on Windows
[16:44:26] ForeignBiscuit: has joined #ruby
[16:45:34] matthewd: But if you want/need such slashes, you're probably actually dealing with a URI, in which case URI.join may be more apropos
[16:46:10] guardian: eam: I thought File.join would use '\' on windows :)
[16:46:14] matthewd: (But note very different behaviours)
[16:46:27] eam: I don't know, I haven't used windows since I worked for msft
[16:46:48] eam: it may very well use /, as both are valid path separators
[16:46:59] darix: you can use "/" yes
[16:47:09] darix: c:/program files/foo/bar is valid
[16:47:17] darix: c:\program files\foo/bar is valid
[16:47:18] tsr: has left #ruby: ("WeeChat 1.9")
[16:47:51] eam: the backslash is generally preferred on windows because DOS command line utils use / to signal command options
[16:48:49] goyox86: has joined #ruby
[16:49:10] flak: has joined #ruby
[16:49:11] darix: not using windows is preferred ;)
[16:49:49] MyMind: has joined #ruby
[16:49:54] belmoussaoui__: has joined #ruby
[16:51:28] alex``: has joined #ruby
[16:54:05] tcopeland: has joined #ruby
[16:54:17] jackjackdripper: has joined #ruby
[16:55:09] Macaveli: has joined #ruby
[16:56:21] charliesome: has joined #ruby
[16:59:18] Pixi_: has joined #ruby
[17:03:12] dar123: has joined #ruby
[17:03:26] raul782: has joined #ruby
[17:03:32] blznblzn2: has joined #ruby
[17:03:35] dar123: has joined #ruby
[17:04:16] jenrzzz: has joined #ruby
[17:06:30] dar123: hey guyz, anyone used net/ssh or any other gem to configure a device (sending commands) over an ssh session. I am trying to write a script to configure a cisco switch
[17:06:38] frozengeek: has joined #ruby
[17:06:43] dar123: i have used expect + bash in the past, trying to use ruby instead
[17:08:36] bronson: has joined #ruby
[17:09:26] DrCode: has joined #ruby
[17:09:41] eckhardt: has joined #ruby
[17:12:15] raul782: has joined #ruby
[17:14:23] SeepingN: has joined #ruby
[17:14:31] skweek: has joined #ruby
[17:15:48] DrCode: has joined #ruby
[17:18:13] AndBobsYourUncle: has joined #ruby
[17:18:41] jackjackdripper: has joined #ruby
[17:18:48] imode: has joined #ruby
[17:18:49] chouhoul_: has joined #ruby
[17:19:37] ramfjord: has joined #ruby
[17:19:38] ramfjord_: has joined #ruby
[17:19:41] kiddo: has joined #ruby
[17:20:03] 7GHAAI23G: has joined #ruby
[17:20:08] kiddo: Any reason to use Ruby over let's say Perl?
[17:20:55] adam12: kiddo: Readability, but that lies in eye of beholder.
[17:21:37] kiddo: What's the difference between Ruby and Ruby Rail though... ?
[17:21:47] adam12: kiddo: Rails is a library built on Ruby.
[17:21:54] adam12: kiddo: in same way Dancer is built on Perl.
[17:22:39] bobbobbins: has joined #ruby
[17:23:22] NotRhysAtAll: has joined #ruby
[17:23:35] bobbobbins: hey, I’m trying to open a url and I’m getting a timeout error, but I can use curl on the url without any issues…any idea why that would occur?
[17:23:56] goyox86: has joined #ruby
[17:25:08] Zarthus: is the curl command on the same machine?
[17:25:20] bobbobbins: Zarthus: yes, I’m running both from the same server
[17:25:31] Zarthus: what's the code / url?
[17:27:02] kiddo: has joined #ruby
[17:27:24] kiddo: has left #ruby: ()
[17:29:29] tcopeland: has joined #ruby
[17:29:35] roshanavand: has joined #ruby
[17:30:02] tuelz: has joined #ruby
[17:30:15] nadir: has joined #ruby
[17:31:52] Nahra: has joined #ruby
[17:33:44] jottr: has joined #ruby
[17:34:59] tuelz_: has joined #ruby
[17:36:04] uZiel: has joined #ruby
[17:39:49] frozengeek: has joined #ruby
[17:40:46] jackjackdripper: has joined #ruby
[17:43:18] lxsameer: has joined #ruby
[17:43:44] goyox86: has joined #ruby
[17:45:05] bobbobbins: Zarthus: https://gist.github.com/anonymous/96957268164c730499aef984280d570e
[17:45:37] bobbobbins: it’s any url at www.dol.gov(I haven’t tried other urls, I don’t have access to the server)
[17:46:48] Zarthus: what url did you curl
[17:48:26] raul782: has joined #ruby
[17:50:46] Zarthus: *shrug*, code is working for me
[17:52:03] Zarthus: TIL about `retry`
[17:53:10] bobbobbins: yes…it works for me on other servers…this one server though…curl works, but that doesn’t
[17:53:13] orbyt_: has joined #ruby
[17:53:34] bobbobbins: I guess it’s an environment thing, but I don’t know whats up
[17:56:04] VeryBewitching: has joined #ruby
[17:58:32] tomphp: has joined #ruby
[17:58:43] mark_on_the_moon: has joined #ruby
[18:01:35] Alina-malina: has joined #ruby
[18:04:48] GodFather: has joined #ruby
[18:04:55] bvcosta: has joined #ruby
[18:05:41] Alina-malina: has joined #ruby
[18:05:53] jenrzzz: has joined #ruby
[18:05:53] jenrzzz: has joined #ruby
[18:08:34] sp4rrow: has joined #ruby
[18:08:58] conta: has joined #ruby
[18:09:13] sp4rrow: has joined #ruby
[18:10:02] mostlybadfly: has joined #ruby
[18:15:54] enterprisey: has joined #ruby
[18:16:08] mim1k: has joined #ruby
[18:16:23] ramfjord: has joined #ruby
[18:16:24] ramfjord_: has joined #ruby
[18:17:30] cschneid_: has joined #ruby
[18:19:11] mikecmpbll: has joined #ruby
[18:20:18] tcopeland: has joined #ruby
[18:26:22] quobo: has joined #ruby
[18:27:26] jackjackdripper: has joined #ruby
[18:33:53] WeiJunLi: has joined #ruby
[18:37:18] _p0p0pr37: has joined #ruby
[18:38:48] goyox86: has joined #ruby
[18:39:03] WeiJunLi: has joined #ruby
[18:40:30] _p0p0pr37: has joined #ruby
[18:41:17] Ziarkaen: has joined #ruby
[18:41:32] tvw: has joined #ruby
[18:45:17] WeiJunLi: has joined #ruby
[18:45:51] gusrub: has joined #ruby
[18:47:18] green_towel: has joined #ruby
[18:47:36] bvcosta: has joined #ruby
[18:50:17] bmurt: has joined #ruby
[18:51:11] wilbert: has joined #ruby
[18:52:43] __Yiota: has joined #ruby
[18:55:02] zachk: has joined #ruby
[18:56:47] sp4rrow: has joined #ruby
[18:57:39] WeiJunLi: has joined #ruby
[19:01:39] FahmeF: has joined #ruby
[19:01:46] d10n-work: has joined #ruby
[19:02:01] raul782: has joined #ruby
[19:02:43] nofxxx: has joined #ruby
[19:04:29] cschneid_: has joined #ruby
[19:05:35] ruby[bot]: has joined #ruby
[19:05:36] ChanServ: +o ruby[bot]
[19:05:48] moei: has joined #ruby
[19:07:31] dionysus69: has joined #ruby
[19:08:08] zephiro: has joined #ruby
[19:09:27] bronson: has joined #ruby
[19:17:00] FrostCandy: has joined #ruby
[19:20:58] alex``: has joined #ruby
[19:21:58] aglorei1: has joined #ruby
[19:22:24] cagomez: has joined #ruby
[19:24:25] TomyLobo: has joined #ruby
[19:27:12] michael_mbp: hi all, what do you call the output of a proc
[19:28:32] Ishido: has joined #ruby
[19:29:03] michael_mbp: proc block invocation?
[19:30:51] AndBobsYourUncle: has joined #ruby
[19:32:20] Macaveli: has joined #ruby
[19:33:33] twillkens: has joined #ruby
[19:35:10] claudiuinberlin: has joined #ruby
[19:39:01] zacts: has joined #ruby
[19:40:12] tAn: has joined #ruby
[19:40:50] havenwood: michael_mbp: the return value of calling the proc
[19:41:41] bvcosta: has joined #ruby
[19:41:50] high_fiver: has joined #ruby
[19:43:58] WeiJunLi: has joined #ruby
[19:45:52] jackjackdripper: has joined #ruby
[19:53:00] conta: has joined #ruby
[19:55:36] Rapture: has joined #ruby
[19:57:10] samlisl_: has joined #ruby
[19:57:24] eckhardt: has joined #ruby
[19:58:32] Rapture: has joined #ruby
[20:03:25] cdg: has joined #ruby
[20:03:59] orbyt_: has joined #ruby
[20:05:05] phinxy: has joined #ruby
[20:06:00] bmurt: has joined #ruby
[20:06:50] jenrzzz: has joined #ruby
[20:06:52] phinxy: has left #ruby: ()
[20:09:04] dionysus70: has joined #ruby
[20:09:47] twillkens: has joined #ruby
[20:13:44] __Yiota: has joined #ruby
[20:14:04] cagomez: has joined #ruby
[20:16:38] mim1k: has joined #ruby
[20:21:20] enterprisey: has joined #ruby
[20:29:42] cdg_: has joined #ruby
[20:32:25] Pisuke: has joined #ruby
[20:35:44] bvcosta: has joined #ruby
[20:40:43] al2o3-cr: has joined #ruby
[20:42:06] wlycdgr1: has joined #ruby
[20:42:12] Ziarkaen: has joined #ruby
[20:46:06] sp4rrow: has joined #ruby
[20:48:46] belmoussaoui: has joined #ruby
[20:50:53] jenrzzz: has joined #ruby
[20:51:26] Sembei: has joined #ruby
[21:00:06] runescape07rsps: has joined #ruby
[21:02:23] al2o3-cr: has joined #ruby
[21:04:10] raul782: has joined #ruby
[21:05:20] ur5us: has joined #ruby
[21:06:24] raul782: has joined #ruby
[21:08:21] alan_w: has joined #ruby
[21:10:50] bronson: has joined #ruby
[21:19:46] cagomez_: has joined #ruby
[21:20:06] jottr: has joined #ruby
[21:20:27] rhyselsmore: has joined #ruby
[21:21:31] twillkens: has joined #ruby
[21:23:02] jenrzzz: has joined #ruby
[21:29:55] bvcosta: has joined #ruby
[21:30:37] mark_on_the_moon: has joined #ruby
[21:33:29] raul782: has joined #ruby
[21:34:01] cagomez: has joined #ruby
[21:34:38] Rapture: has joined #ruby
[21:35:11] SilentNinja1: has joined #ruby
[21:35:23] SilentNinja1: Hi Any resolved issues on Centos 7 and JavaScript runtime issues for ruby
[21:35:26] SilentNinja1: getting the following error msg when I try to bundle exec --verbose rake db:setup
[21:35:33] SilentNinja1: ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
[21:35:56] SilentNinja1: running Centos7 and ruby 2.3.1p112
[21:36:32] SilentNinja1: Any help would be appreciated. Looks like some package dependencies issues, it use to work when I installed nodejs gem.
[21:36:57] shimshamshao: has joined #ruby
[21:38:21] guille-moe: has joined #ruby
[21:39:17] al2o3-cr: has joined #ruby
[21:42:56] Ziarkaen: has joined #ruby
[21:45:12] millerti: has joined #ruby
[21:47:58] chouhoulis: has joined #ruby
[21:50:27] shimshamshao: has joined #ruby
[21:50:29] raul782: has joined #ruby
[21:52:12] mim1k: has joined #ruby
[21:53:40] mikecmpbll: anyone know if it's possible to search rubygems gem versions with rubygems/bundler?
[21:53:54] havenwood: mikecmpbll: one gem's version or all of them?
[21:54:00] belmoussaoui: has joined #ruby
[21:54:06] mikecmpbll: say, lookup the latest version in the 1.2.x range
[21:54:12] mikecmpbll: one particular gem.
[21:54:36] mikecmpbll: i want to automate a check that we're on the latest patch level for a gem
[21:55:37] havenwood: mikecmpbll: I run `bundle outdated` pretty often and have some helper scripts for more info. Hmm.
[21:55:42] neo95: has joined #ruby
[21:56:33] tomphp: has joined #ruby
[21:57:43] havenwood: Like I have `gem_website` do: open $(gem search "^$1$" -d | ag Homepage | sed -e 's/^[[:space:]]*//' | cut -d" " -f2)
[21:58:02] havenwood: (jump to the website of the gem)
[21:58:35] Azure: has joined #ruby
[21:58:52] havenwood: mikecmpbll: `bundle outdated --parseable` makes for much easier output to parse
[22:00:24] mikecmpbll: havenwood : <3 bundle outdated --strict --parseable
[22:00:25] mikecmpbll: does the trick
[22:01:28] mikecmpbll: rails (newest 4.2.9, installed 4.2.6, requested ~> 4.2.6)
[22:01:40] mikecmpbll: then i can know it's 3 patch versions out ;)
[22:04:02] selim: has joined #ruby
[22:04:12] orbyt_: has joined #ruby
[22:04:49] cconstantine_: has joined #ruby
[22:06:36] belmoussaoui_: has joined #ruby
[22:08:50] ornerymoose: has joined #ruby
[22:12:16] mim1k: has joined #ruby
[22:13:31] jenrzzz_: has joined #ruby
[22:17:38] Ishido: has joined #ruby
[22:20:03] jinie: has joined #ruby
[22:20:53] jottr: has joined #ruby
[22:22:49] Exagone313: has joined #ruby
[22:23:55] bvcosta: has joined #ruby
[22:25:43] neo95: has joined #ruby
[22:27:08] wilbert: has joined #ruby
[22:29:28] wlycdgr1: has joined #ruby
[22:30:18] mikecmpbll: has joined #ruby
[22:41:05] tomphp: has joined #ruby
[22:44:19] BTRE: has joined #ruby
[22:45:51] MyMind: has joined #ruby
[22:45:59] Azure: has joined #ruby
[22:46:17] lexruee: has joined #ruby
[22:49:53] cdg: has joined #ruby
[22:55:33] cdg: has joined #ruby
[22:56:18] cdg_: has joined #ruby
[22:59:23] bmurt: has joined #ruby
[23:02:25] charliesome: has joined #ruby
[23:06:53] alveric3: has joined #ruby
[23:07:10] sp4rrow: has joined #ruby
[23:08:22] neo95: has joined #ruby
[23:08:46] cdg: has joined #ruby
[23:09:37] Nicmavr: has joined #ruby
[23:09:40] conta: has joined #ruby
[23:10:32] wald0: has joined #ruby
[23:11:46] bronson: has joined #ruby
[23:11:51] sp4rrow: has joined #ruby
[23:14:46] FahmeF: has joined #ruby
[23:16:10] mtkd: has joined #ruby
[23:17:59] bvcosta: has joined #ruby
[23:19:10] tomphp: has joined #ruby
[23:20:18] bmurt: has joined #ruby
[23:20:57] ornerymoose: has joined #ruby
[23:20:58] bruce_lee: has joined #ruby
[23:20:58] bruce_lee: has joined #ruby
[23:21:37] jottr: has joined #ruby
[23:22:49] bruno-: has joined #ruby
[23:22:50] 7GHAAI8PJ: has joined #ruby
[23:28:06] __Yiota: has joined #ruby
[23:29:16] tomphp: has joined #ruby
[23:31:10] juria_roberts: has joined #ruby
[23:31:52] bmurt: has joined #ruby
[23:32:29] juria_roberts: How do I check if string contains one of multiple substrings except one?
[23:33:15] juria_roberts: ["abx", "xyz"].any? { |needle| a.include? needle } currently doing this but how do i return false if a contains abxdf
[23:36:08] konsolebox: >> a = 'abxyz'; a['abx'] && a['xyz'] && !a['abxdf']
[23:36:10] ruby[bot]: konsolebox: # => true (https://eval.in/857545)
[23:36:47] electrostat: has joined #ruby
[23:38:06] juria_roberts: konsolebox: is there a way to do it with any?
[23:38:26] konsolebox: >> a = 'abxyz'; ['abx', 'xyz'].any?{ |needle| a[needle] } && !a['abxdf']
[23:38:28] ruby[bot]: konsolebox: # => true (https://eval.in/857546)
[23:38:47] konsolebox: use include? if you think it's better
[23:39:10] juria_roberts: yeah i will use include for the second part thanks :)
[23:44:08] Ziarkaen: has joined #ruby
[23:44:40] ahrs: has joined #ruby
[23:44:42] twillkens: has joined #ruby
[23:46:28] wlycdgr1: has joined #ruby
[23:49:19] neo95: has joined #ruby
[23:56:17] kies: has joined #ruby