« Back to channel list

#ruby - 05 May 2018

« Back 1 day Forward 1 day »
[00:00:05] conta: has joined #ruby
[00:00:46] baweaver: aeyxa `which ruby`
[00:00:53] baweaver: `gem install bundler`
[00:01:31] aeyxa: ruby 2.2.2, bundler wasn't installed
[00:01:55] aeyxa: after installing it, and rerunning same error
[00:03:58] aeyxa: https://gist.github.com/aeyxa/83364d817130aa15b3702466ed0eb2d2
[00:04:29] baweaver: yeah, about that, sudo runs as a different user
[00:04:41] baweaver: root, namely
[00:05:00] baweaver: it also means that you're not using RVMs Ruby for some reason
[00:05:13] aeyxa: yeah you're right
[00:05:13] baweaver: Ah, no, nevermind
[00:05:55] baweaver: You need to chown that directory for the user.
[00:07:17] n0m4d1c: has joined #ruby
[00:08:00] n0m4d1c_: has joined #ruby
[00:11:09] envex: has joined #ruby
[00:15:16] schneider-: has joined #ruby
[00:22:18] StupidHappyBacte: has joined #ruby
[00:26:34] raynold: ahh it's a wonderful day
[00:32:34] jyaworski: has joined #ruby
[00:39:22] ramfjord: has joined #ruby
[00:41:58] jottr: has joined #ruby
[00:44:37] mondongo: has joined #ruby
[00:46:35] jyaworski: has joined #ruby
[00:46:48] ramfjord: has joined #ruby
[00:52:48] ramfjord: has joined #ruby
[00:59:58] jsrn: has joined #ruby
[01:00:39] amar: has joined #ruby
[01:00:40] karapetyan: has joined #ruby
[01:01:24] gizmore: has joined #ruby
[01:04:20] szulak: has joined #ruby
[01:08:09] tAn: has joined #ruby
[01:08:41] ramfjord: has joined #ruby
[01:10:24] jyaworski: has joined #ruby
[01:13:00] samort7: has joined #ruby
[01:14:41] ramfjord: has joined #ruby
[01:20:18] MyMind: has joined #ruby
[01:25:26] MyMind: has joined #ruby
[01:30:23] Pisuke: has joined #ruby
[01:31:05] kapil___: has joined #ruby
[01:31:34] Janky: has joined #ruby
[01:32:42] _antares_: has joined #ruby
[01:47:33] ciscam: has joined #ruby
[01:47:48] dinfuehr_: has joined #ruby
[01:48:20] schneider-: has joined #ruby
[01:50:26] Azure|dc: has joined #ruby
[01:58:50] BTRE: has joined #ruby
[01:59:11] gizmore|2: has joined #ruby
[02:08:00] n0m4d1c: has joined #ruby
[02:09:47] Sembei: has joined #ruby
[02:13:27] n0m4d1c: has joined #ruby
[02:20:03] tdy: has joined #ruby
[02:23:50] jyaworski: has joined #ruby
[02:25:02] ciscam: has joined #ruby
[02:28:40] nadir: has joined #ruby
[02:30:37] jyaworski: has joined #ruby
[02:31:28] sanscoeur: has joined #ruby
[02:42:49] jottr: has joined #ruby
[02:52:35] jyaworski: has joined #ruby
[02:57:12] chouhoulis: has joined #ruby
[03:01:36] amar: has joined #ruby
[03:05:26] jyaworski: has joined #ruby
[03:05:42] Dimik: has joined #ruby
[03:10:50] arescorpio: has joined #ruby
[03:16:53] cthulchu: has joined #ruby
[03:19:04] Ethan: has joined #ruby
[03:27:08] konsolebox: has joined #ruby
[03:30:57] ramfjord: has joined #ruby
[03:41:15] jyaworski: has joined #ruby
[03:44:44] amar: has joined #ruby
[03:46:20] x77686d: has joined #ruby
[03:48:16] GodFather: has joined #ruby
[03:49:32] karapetyan: has joined #ruby
[03:50:23] wmoxam: has joined #ruby
[03:50:41] ramfjord: has joined #ruby
[03:54:41] gix: has joined #ruby
[03:55:23] Asher: has joined #ruby
[03:55:39] kapil___: has joined #ruby
[03:56:50] mlkkk: has joined #ruby
[03:58:48] ramfjord: has joined #ruby
[04:02:57] Ryzokuken: has joined #ruby
[04:05:27] ramfjord: has joined #ruby
[04:17:02] jyaworski: has joined #ruby
[04:21:12] ramfjord: has joined #ruby
[04:27:14] ramfjord: has joined #ruby
[04:27:54] jrabe: has joined #ruby
[04:33:10] ramfjord: has joined #ruby
[04:33:17] dtzuzu: has joined #ruby
[04:33:27] n13z: has joined #ruby
[04:38:39] ciscam: has joined #ruby
[04:39:13] ramfjord: has joined #ruby
[04:43:39] jottr: has joined #ruby
[04:47:57] konsolebox: has joined #ruby
[04:48:42] jyaworski: has joined #ruby
[04:59:34] garyserj: I have read how to do a goto type statement in ruby with throw and catch, but I can't get it to work https://repl.it/repls/SaneBlissfulSpellchecker
[05:00:38] n13z: has joined #ruby
[05:01:06] aspiers: has joined #ruby
[05:02:38] garyserj: oh i get it now
[05:02:45] garyserj: in ruby you put the throw inside the catch!
[05:04:27] baweaver: garyserj: why though?
[05:04:48] baweaver: You really don't need goto, and it's bad practice
[05:05:27] TinkerT: has joined #ruby
[05:08:17] sauvin: has joined #ruby
[05:13:46] ramfjord: has joined #ruby
[05:14:37] schneider-: has joined #ruby
[05:16:53] dviola: has joined #ruby
[05:21:40] jyaworski: has joined #ruby
[05:24:11] ciscam: has joined #ruby
[05:25:03] Yzguy: has joined #ruby
[05:38:34] ramfjord: has joined #ruby
[05:38:43] RougeR: has joined #ruby
[05:44:41] n13z: has joined #ruby
[06:03:42] ciscam: has joined #ruby
[06:04:43] jyaworski: has joined #ruby
[06:04:47] ramfjord: has joined #ruby
[06:10:27] n13z: has joined #ruby
[06:14:18] Xiti: has joined #ruby
[06:14:22] baweaver: Anyone know of a clean way to get the source of a proc at runtime? Including dynamically generated ones if possible.
[06:17:23] baweaver: More or less a runtime AST
[06:18:42] jyaworski: has joined #ruby
[06:31:04] Hien: has joined #ruby
[06:34:02] suukim: has joined #ruby
[06:34:11] SegFaultAX: has joined #ruby
[06:36:27] rippa: has joined #ruby
[06:38:12] blackmesa1: has joined #ruby
[06:44:31] jottr: has joined #ruby
[06:53:19] jyaworski: has joined #ruby
[06:58:00] t0adst00l: has joined #ruby
[07:10:56] jyaworski: has joined #ruby
[07:25:51] karapetyan: has joined #ruby
[07:28:47] Mike11: has joined #ruby
[07:35:59] amelliaa: has joined #ruby
[07:40:05] conta: has joined #ruby
[07:40:42] x77686d: has joined #ruby
[07:43:12] dionysus69: has joined #ruby
[07:47:28] za1b1tsu: has joined #ruby
[07:51:00] marr: has joined #ruby
[07:52:55] anisha: has joined #ruby
[07:55:46] DenSchub: has left #ruby: ("WeeChat 2.2-dev")
[08:00:27] ldepandis: has joined #ruby
[08:09:52] clemens3: has joined #ruby
[08:11:30] jamesaxl: has joined #ruby
[08:18:45] jyaworski: has joined #ruby
[08:28:49] za1b1tsu: has joined #ruby
[08:30:20] apeiros: has joined #ruby
[08:38:07] jamesaxl: has joined #ruby
[08:39:00] jyaworski: has joined #ruby
[08:45:12] amatas: has joined #ruby
[08:45:22] jottr: has joined #ruby
[09:10:56] zapata: has joined #ruby
[09:12:12] jyaworski: has joined #ruby
[09:14:31] reber: has joined #ruby
[09:14:59] tomphp: has joined #ruby
[09:18:44] n008f4g_: has joined #ruby
[09:18:55] jxf: has joined #ruby
[09:26:13] jyaworski: has joined #ruby
[09:28:20] jamesaxl: has joined #ruby
[09:30:40] amatas: has joined #ruby
[09:39:48] sameerynho: has joined #ruby
[09:55:25] ciscam: has joined #ruby
[10:09:48] ruby[bot]: -b *!*@p5DF529EA.dip0.t-ipconnect.de$#ruby-banned
[10:13:11] jottr: has joined #ruby
[10:16:13] Mike11: has joined #ruby
[10:18:20] jyaworski: has joined #ruby
[10:20:31] blackbaba: has joined #ruby
[10:20:42] jottr: has joined #ruby
[10:28:10] za1b1tsu: has joined #ruby
[10:30:49] dionysus69: has joined #ruby
[10:31:37] ellcs: has joined #ruby
[10:35:06] hlmjr: has joined #ruby
[10:36:11] yxhuvud: has joined #ruby
[10:37:00] jyaworski: has joined #ruby
[10:54:55] schleppel: has joined #ruby
[11:07:00] jottr: has joined #ruby
[11:07:38] houhoulis: has joined #ruby
[11:09:02] schneider-: has joined #ruby
[11:09:21] alfiemax: has joined #ruby
[11:10:20] alfiemax_: has joined #ruby
[11:14:02] alfiemax_: has joined #ruby
[11:15:32] reber: has joined #ruby
[11:23:38] johnny56: has joined #ruby
[11:26:08] karapetyan: has joined #ruby
[11:29:56] ellcs: has joined #ruby
[11:32:23] mhoungbo: has joined #ruby
[11:32:42] yxhuvud: has joined #ruby
[11:33:09] mhoungbo: has joined #ruby
[11:34:52] Xeago: >> a= "valid": "ruby?"
[11:34:54] ruby[bot]: Xeago: # => /tmp/execpad-9363f9d5c812/source-9363f9d5c812:2: syntax error, unexpected ':', expecting keyword_end ...check link for more (https://eval.in/999697)
[11:36:08] Xeago: >> a= {"valid": "ruby?"}
[11:36:10] ruby[bot]: Xeago: # => {:valid=>"ruby?"} (https://eval.in/999698)
[11:36:34] reber: has joined #ruby
[11:38:56] AJA4350: has joined #ruby
[11:47:03] tomphp: has joined #ruby
[11:48:03] RougeR: has joined #ruby
[11:49:19] TvL2386: has joined #ruby
[11:51:43] conta: has joined #ruby
[11:53:01] mhoungbo: has joined #ruby
[11:57:00] schneider-: has joined #ruby
[12:07:10] ipe: has joined #ruby
[12:08:25] dr3wo: has joined #ruby
[12:09:41] herbmillerjr: has joined #ruby
[12:10:30] nadir: has joined #ruby
[12:18:14] mhoungbo: has joined #ruby
[12:18:23] n008f4g_: has joined #ruby
[12:19:42] schneider-: has joined #ruby
[12:24:36] drale2k_: has joined #ruby
[12:25:23] Ropeney: has joined #ruby
[12:27:59] tomphp: has joined #ruby
[12:36:37] dr3wo: has joined #ruby
[12:41:21] chef_byd: has joined #ruby
[12:41:50] dionysus69: has joined #ruby
[12:42:08] tvN: has joined #ruby
[12:55:12] drale2k_: has joined #ruby
[12:56:46] dionysus69: has joined #ruby
[12:58:11] alex``: has joined #ruby
[12:58:58] eblip: has joined #ruby
[12:59:14] def_jam: has joined #ruby
[13:03:21] kaltorak: has joined #ruby
[13:07:48] ciscam: has joined #ruby
[13:07:50] jottr: has joined #ruby
[13:14:14] nowhere_man: has joined #ruby
[13:22:46] karapetyan: has joined #ruby
[13:23:11] mhoungbo: has joined #ruby
[13:25:14] gil_: has joined #ruby
[13:25:14] gil_: has joined #ruby
[13:27:05] chocoelho: has joined #ruby
[13:32:33] roobie: has joined #ruby
[13:34:04] Ryzokuken: has joined #ruby
[13:38:52] face: has joined #ruby
[13:42:32] gheegh: has joined #ruby
[13:47:06] dr3wo: has joined #ruby
[13:57:12] byte512: has joined #ruby
[14:10:51] DLSteve: has joined #ruby
[14:12:00] tAn: has joined #ruby
[14:17:08] govg: has joined #ruby
[14:18:03] contradictioned: has joined #ruby
[14:24:14] dr3wo: has joined #ruby
[14:29:58] mlkkk: has joined #ruby
[14:34:23] CrazyEddy: has joined #ruby
[14:36:26] karapetyan: has joined #ruby
[14:37:11] Esa_: has joined #ruby
[14:41:37] nowhere_man: has joined #ruby
[14:46:56] suukim: has joined #ruby
[14:50:53] KrzaQ: I have a bunch od datetimes in Poland/Warsaw timezone. Is there a way to instruct DateTime.parse that this is the timezone? Dates look like '08/04/2018 22:45:00'
[14:51:13] c0ncealed1: has joined #ruby
[14:53:10] KrzaQ: This particular date has been parsed as 2018-04-08T22:45:00+00:00, though it should be +02:00
[14:57:02] dr3wo: has joined #ruby
[15:00:35] KrzaQ: Hm, it seems I can do this using Time.parse and ENV["TZ"], though I'm getting +00:00 and +01:00, instead of +01:00 and +02:00 respectively
[15:01:51] tomphp: has joined #ruby
[15:01:57] Ropeney: KrzaQ, can you just force the timezone into the string?
[15:02:27] Ropeney: as in `"#{'08/04/2018 22:45:00'}+02:00"`
[15:02:41] gheegh: has joined #ruby
[15:03:33] donofrio: has joined #ruby
[15:04:18] KrzaQ: ropeney: I'd have to create logic that determines whether I'm in DST or not
[15:04:47] KrzaQ: so yeah, I can, but it's a little more effort than I thought
[15:04:50] Ropeney: yeah... :(
[15:05:11] n0m4d1c: has joined #ruby
[15:06:40] conta: has joined #ruby
[15:08:21] venmx: has joined #ruby
[15:08:40] jottr: has joined #ruby
[15:11:07] Ropeney: KrzaQ, can you just use https://github.com/tzinfo/tzinfo ?
[15:11:27] KrzaQ: Went with this:
[15:11:32] KrzaQ: date = Time.parse d
[15:11:34] KrzaQ: offset = date.gmt_offset == 0 ? 1 : 2
[15:11:36] KrzaQ: Time.parse "#{d}:+0#{offset}:00"
[15:12:47] KrzaQ: ropeney: I don't see a parsing functionality there
[15:13:01] Ropeney: https://www.rubydoc.info/gems/tzinfo/ first example
[15:16:57] KrzaQ: If you're speaking about tz.utc_to_local(Time.utc(2005,8,29,15,35,0)) then I have to get to those numbers from my date string. So I'd have to parse it myself
[15:17:12] Ropeney: You sure time doesn't just take a string there?
[15:17:56] KrzaQ: hm, I guess
[15:18:05] KrzaQ: let's see
[15:21:14] Ropeney: KrzaQ, or just pass it a DateTime
[15:22:06] Ropeney: KrzaQ, https://gist.github.com/Ropeney/2e838ae846c65b84015cdf8689c272e6
[15:22:33] Ropeney: Time#utc had a hard time passing the date format
[15:23:42] KrzaQ: it worked out of the box here
[15:23:49] Ropeney: congrats :D
[15:24:26] KrzaQ: I should use local_to_utc though
[15:25:05] Ropeney: yeah... but that's minor details :P
[15:25:15] KrzaQ: hm, but now the resultant time doesn't have the offset set
[15:26:01] Ropeney: you're setting to UTC?
[15:26:40] Ropeney: I've updated my gist, DateTime is setting with the utc timestamp.
[15:27:23] KrzaQ: What I'd like to get is essentially 2018-04-08T22:45:00+02:00
[15:27:36] KrzaQ: I'll browse tzinfo docs
[15:27:43] KrzaQ: Surely there will be something
[15:30:45] amar: has joined #ruby
[15:34:37] ipe: has joined #ruby
[15:36:11] za1b1tsu: has joined #ruby
[15:36:39] gheegh: has joined #ruby
[15:43:25] dr3wo: has joined #ruby
[15:49:18] tAn: has joined #ruby
[15:49:23] conta: has joined #ruby
[15:51:38] drale2k_: has joined #ruby
[15:54:46] mroutis: has joined #ruby
[16:03:03] tomphp: has joined #ruby
[16:10:23] schooner: has joined #ruby
[16:12:10] fribmendes: has joined #ruby
[16:14:02] Azure: has joined #ruby
[16:14:15] conta: has joined #ruby
[16:14:38] tomphp: has joined #ruby
[16:18:57] rkazak: has joined #ruby
[16:20:38] TinkerT: has joined #ruby
[16:21:19] houhoulis: has joined #ruby
[16:29:55] fribmendes: has joined #ruby
[16:33:50] conta: has joined #ruby
[16:34:24] mroutis: has joined #ruby
[16:36:12] tAn: has joined #ruby
[16:37:22] tAn: has joined #ruby
[16:38:10] tomphp: has joined #ruby
[16:38:44] dionysus69: has joined #ruby
[16:45:03] orbyt_: has joined #ruby
[16:45:20] n0m4d1c: has joined #ruby
[16:46:46] raynold: has joined #ruby
[16:48:51] tomphp: has joined #ruby
[16:49:51] nickjj: has joined #ruby
[16:52:20] Dimik: has joined #ruby
[16:52:42] nadir: has joined #ruby
[16:54:57] tomphp: has joined #ruby
[16:57:35] tomphp: has joined #ruby
[17:03:44] tomphp: has joined #ruby
[17:09:35] jottr: has joined #ruby
[17:13:46] Azure: has joined #ruby
[17:14:10] gheegh: has joined #ruby
[17:15:09] ams__: has joined #ruby
[17:21:31] amelliaa: has joined #ruby
[17:21:38] Esa_: has joined #ruby
[17:27:10] conta: has joined #ruby
[17:33:17] CrazyEddy: has joined #ruby
[17:36:48] RougeR: has joined #ruby
[17:36:48] RougeR: has joined #ruby
[17:41:28] houhoulis: has joined #ruby
[17:48:39] drale2k_: has joined #ruby
[17:58:15] tomphp: has joined #ruby
[17:58:27] orbyt_: has joined #ruby
[17:59:14] sameerynho: has joined #ruby
[18:00:29] houhoulis: has joined #ruby
[18:04:13] Yzguy: has joined #ruby
[18:05:26] tomphp_: has joined #ruby
[18:08:51] Ryzokuken: has joined #ruby
[18:16:16] Puffball: has joined #ruby
[18:23:49] x77686d: has joined #ruby
[18:24:02] mondongo: has joined #ruby
[18:28:37] JJonah: anyone know of a good ruby gem to automatically extract a plain text version of an article from an html blog or news site? i'm looking for something higher-level than nokogiri specifically optimized for this task, basically a ruby equivalent of the python module "newspaper" (https://github.com/codelucas/newspaper/)
[18:32:23] CrazyEddy: has joined #ruby
[18:38:19] moei: has joined #ruby
[18:47:31] conta: has joined #ruby
[18:47:41] dr3wo: has joined #ruby
[18:47:45] biberu: has joined #ruby
[18:49:42] reber: has joined #ruby
[19:10:22] jottr: has joined #ruby
[19:10:43] karapetyan: has joined #ruby
[19:11:36] n008f4g_: has joined #ruby
[19:15:10] chef_byd: has joined #ruby
[19:17:01] chef_byd: has joined #ruby
[19:17:27] chef_byd: has joined #ruby
[19:20:10] conta: has joined #ruby
[19:21:50] dr3wo: has joined #ruby
[19:22:21] blackmesa1: has joined #ruby
[19:22:41] smokemeth420__: has joined #ruby
[19:28:23] mst: has joined #ruby
[19:32:08] lunarkitty7: has joined #ruby
[19:33:48] agent_white: has joined #ruby
[19:34:03] x77686d: has joined #ruby
[19:35:18] mst: has left #ruby: ()
[19:40:46] jinie: has joined #ruby
[19:46:54] dviola: has joined #ruby
[19:47:00] tdy: has joined #ruby
[19:49:26] RougeR: has joined #ruby
[19:49:27] RougeR: has joined #ruby
[19:53:50] eckhardt_: has joined #ruby
[19:57:35] weaksauce: has joined #ruby
[20:05:27] white_lilies: has joined #ruby
[20:08:16] jinie: has joined #ruby
[20:09:19] schooner: has left #ruby: ()
[20:11:00] mhoungbo: has joined #ruby
[20:11:01] jnollette: has joined #ruby
[20:11:18] n0m4d1c: has joined #ruby
[20:12:35] x77686d: has joined #ruby
[20:24:13] karapetyan: has joined #ruby
[20:28:27] conta: has joined #ruby
[20:33:03] breakfast1: has joined #ruby
[20:38:58] nickjj: has joined #ruby
[20:46:16] cagomez: has joined #ruby
[20:52:55] ur5us: has joined #ruby
[20:55:35] jready: has joined #ruby
[20:55:43] mhoungbo: has joined #ruby
[20:58:20] growp: has joined #ruby
[21:00:37] Quentinius: has joined #ruby
[21:01:25] conta: has joined #ruby
[21:03:20] tomphp: has joined #ruby
[21:06:36] Uptime: has joined #ruby
[21:11:14] jottr: has joined #ruby
[21:11:28] karapetyan: has joined #ruby
[21:11:53] tomphp: has joined #ruby
[21:17:11] jready: has joined #ruby
[21:23:31] cagomez: has joined #ruby
[21:24:33] Asher: has joined #ruby
[21:24:48] zapata: has joined #ruby
[21:28:03] CrazyEddy: has joined #ruby
[21:29:53] conta: has joined #ruby
[21:38:52] RougeR: has joined #ruby
[21:39:35] RougeR: has joined #ruby
[21:49:43] ccrow: has joined #ruby
[21:51:06] dr3wo: has joined #ruby
[22:01:07] ruby[bot]: has joined #ruby
[22:01:07] ChanServ: +o ruby[bot]
[22:01:11] sammi`: has joined #ruby
[22:03:39] jready: has joined #ruby
[22:08:31] Azure|dc: has joined #ruby
[22:11:44] segy: has joined #ruby
[22:22:24] nickjj: has joined #ruby
[22:23:28] conta: has joined #ruby
[22:29:14] jessefurmanek: has joined #ruby
[22:32:03] houhoulis: has joined #ruby
[22:39:23] CrazyEddy: has joined #ruby
[22:45:07] sauvin_: has joined #ruby
[22:47:42] sauvin: has joined #ruby
[22:48:46] kaltorak: has joined #ruby
[23:00:06] RyanMcCoskrie: has joined #ruby
[23:07:11] CrazyEddy: has joined #ruby
[23:08:33] RyanMcCoskrie: has joined #ruby
[23:12:06] jottr: has joined #ruby
[23:17:48] bmurt: has joined #ruby
[23:27:08] CrazyEddy: has joined #ruby
[23:43:06] oleo: has joined #ruby
[23:50:33] karapetyan: has joined #ruby
[23:51:13] gheegh: has joined #ruby
[23:54:14] face: has joined #ruby