« Back to channel list

#ruby - 19 June 2019

« Back 1 day Forward 1 day »
[00:11:06] orbyt_: has joined #ruby
[00:21:56] ricekrispie: has joined #ruby
[00:22:41] queip: has joined #ruby
[00:24:24] regedit: has joined #ruby
[00:25:41] ricekrispie: has joined #ruby
[00:26:13] AndreYuhai: has joined #ruby
[00:28:18] AndreYuhai: has joined #ruby
[00:30:27] duderonomy: has joined #ruby
[00:30:42] ramfjord: has joined #ruby
[00:31:09] spiette: has joined #ruby
[00:32:31] Renich: has joined #ruby
[00:38:31] fphilipe_: has joined #ruby
[00:42:57] Renich: has joined #ruby
[00:43:27] orbyt_: has joined #ruby
[00:45:18] crankharder: has joined #ruby
[00:48:16] AndreYuhai: has joined #ruby
[00:54:37] ur5us: has joined #ruby
[00:55:07] Swyper: has joined #ruby
[00:56:45] AndreYuhai: has joined #ruby
[01:05:57] codefriar: has joined #ruby
[01:07:21] ricekrispie: has joined #ruby
[01:18:25] tranch: has joined #ruby
[01:18:33] crankharder: has joined #ruby
[01:23:30] spiette: has joined #ruby
[01:24:01] duderonomy: has joined #ruby
[01:37:12] dbugger__: has joined #ruby
[01:42:12] tranch: has joined #ruby
[01:46:01] tdy: has joined #ruby
[01:50:00] Freshnuts: has joined #ruby
[02:02:12] tranch: has joined #ruby
[02:09:34] jtdowney: has joined #ruby
[02:31:40] Dbugger: has joined #ruby
[02:51:48] tdy: has joined #ruby
[02:55:45] maryo: has joined #ruby
[03:02:32] ricekrispie2: has joined #ruby
[03:09:08] fphilipe_: has joined #ruby
[03:11:59] braincrash: has joined #ruby
[03:22:10] kyrylo: has joined #ruby
[03:41:05] maryo_: has joined #ruby
[03:45:21] fphilipe_: has joined #ruby
[03:54:11] _whitelogger: has joined #ruby
[04:26:47] tranch: has joined #ruby
[04:41:57] queip: has joined #ruby
[04:58:16] haxx0r: has joined #ruby
[05:04:19] duderonomy: has joined #ruby
[05:09:06] fphilipe_: has joined #ruby
[05:11:11] queip: has joined #ruby
[05:15:05] fphilipe_: has joined #ruby
[05:19:01] conta: has joined #ruby
[05:23:50] helpa-bot: has joined #ruby
[05:25:33] garyserj: has joined #ruby
[05:25:43] x0F_: has joined #ruby
[05:26:21] helpa-bot: has joined #ruby
[05:27:43] justinmcp_: has joined #ruby
[05:28:54] helpa: has joined #ruby
[05:29:45] haxx0r: has joined #ruby
[05:29:58] Hanmac: has joined #ruby
[05:32:07] Phage: has joined #ruby
[05:32:07] Phage: has joined #ruby
[05:32:38] tranch: has joined #ruby
[05:33:06] priodev: has joined #ruby
[05:33:50] lord4163: has joined #ruby
[05:34:00] salvor: has joined #ruby
[05:36:10] Milos: has joined #ruby
[05:41:46] sauvin: has joined #ruby
[05:54:00] dellavg_: has joined #ruby
[05:57:32] lxsameer: has joined #ruby
[05:57:57] tranch: has joined #ruby
[06:04:18] skarlso: has joined #ruby
[06:05:03] andikr: has joined #ruby
[06:11:57] duderonomy: has joined #ruby
[06:17:23] schne1der: has joined #ruby
[06:17:34] DTZUZO: has joined #ruby
[06:23:24] DTZUZO: has joined #ruby
[06:37:37] ramfjord: has joined #ruby
[06:42:19] aupadhye: has joined #ruby
[06:44:10] JoL1hAHN: has joined #ruby
[06:45:40] tdy1: has joined #ruby
[06:46:49] ur5us: has joined #ruby
[06:47:23] aupadhye: has joined #ruby
[06:53:57] tdy1: has joined #ruby
[06:54:15] TheBrayn: has joined #ruby
[06:57:47] tdy2: has joined #ruby
[06:58:05] j416: has joined #ruby
[06:59:55] ur5us: has joined #ruby
[07:02:31] kujira: has joined #ruby
[07:03:15] conta: has joined #ruby
[07:10:12] haxx0r: has joined #ruby
[07:10:35] tdy3: has joined #ruby
[07:11:12] esrse: has joined #ruby
[07:11:49] fphilipe_: has joined #ruby
[07:14:29] schne1der: has joined #ruby
[07:16:57] tdy4: has joined #ruby
[07:19:04] mayurvpatil: has joined #ruby
[07:24:41] tdy: has joined #ruby
[07:27:07] tdy1: has joined #ruby
[07:28:27] Jonopoly: has joined #ruby
[07:32:14] TomyWork: has joined #ruby
[07:49:46] jmcgnh: has joined #ruby
[08:07:20] mayurvpatil_: has joined #ruby
[08:20:25] conta: has joined #ruby
[08:20:40] rafadc: has joined #ruby
[08:25:25] queip: has joined #ruby
[08:28:38] kolaman: has joined #ruby
[08:33:38] twe4ked: has joined #ruby
[08:36:14] crankharder: has joined #ruby
[08:37:01] haxx0r: has joined #ruby
[08:37:52] ramfjord: has joined #ruby
[08:43:03] frojnd: Hi there.
[08:43:23] phaul: hi frojnd
[08:45:00] frojnd: I have "input" that looks like this: => "[{\"event\":{\"count\":1,\"date\":\"Jun 17, 2019 9:10:07 AM\",...}]" and if I say string = input.to_s I get: [{"event":{"count":1,"date":"Jun 17, 2019 9:10:07 AM",...}] how do I convert _this_ to hash or json?
[08:47:56] phaul: isn't this already json?
[08:48:10] manveru: frojnd: require 'json'; JSON.parse(string)
[08:48:17] frojnd: Or I will ask differently, why when I don't say puts it prints like this with `\"` and if I say puts it's without `\"`
[08:48:47] manveru: because irb calls .inspect before printing
[08:49:16] manveru: that way you can copy&paste it easily
[08:49:17] frojnd: manveru: aha thanx
[08:49:42] deepredsky: has joined #ruby
[08:49:58] manveru: `puts` calls `to_s`, so no need to for that :)
[08:53:32] alem0lars: has joined #ruby
[08:55:01] deathwishdave: has joined #ruby
[08:59:56] conta1: has joined #ruby
[09:00:05] infernix: has joined #ruby
[09:01:08] dhollin3: has joined #ruby
[09:01:38] fphilipe_: has joined #ruby
[09:02:46] conta: has joined #ruby
[09:06:45] krandi: has joined #ruby
[09:10:49] fphilipe_: has joined #ruby
[09:10:54] gingitsune: has joined #ruby
[09:18:20] rafadc: has joined #ruby
[09:19:53] fphilipe_: has joined #ruby
[09:21:22] ur5us: has joined #ruby
[09:24:08] mayurvpatil_: has joined #ruby
[09:28:26] ur5us: has joined #ruby
[09:29:23] fphilipe_: has joined #ruby
[09:35:54] kliq: has joined #ruby
[09:36:25] _joes_: has joined #ruby
[09:37:35] mayurpatil11: has joined #ruby
[09:38:02] dellavg_: has joined #ruby
[09:40:01] fphilipe_: has joined #ruby
[09:46:25] mayurvpatil_: has joined #ruby
[09:49:08] fphilipe_: has joined #ruby
[09:50:49] deepredsky: has joined #ruby
[09:58:15] fphilipe_: has joined #ruby
[09:58:41] deathwishdave: has joined #ruby
[09:59:33] queip: has joined #ruby
[10:02:30] Rabautius: has joined #ruby
[10:05:03] kliq: has joined #ruby
[10:11:15] andikr: has joined #ruby
[10:12:26] fphilipe_: has joined #ruby
[10:23:00] deepredsky: has joined #ruby
[10:27:27] AJA4350: has joined #ruby
[10:28:01] zapata: has joined #ruby
[10:32:36] deathwishdave: has joined #ruby
[10:38:00] ramfjord: has joined #ruby
[10:39:58] Swyper: has joined #ruby
[10:43:52] tranch: has joined #ruby
[10:53:49] deepredsky: has joined #ruby
[10:57:57] mayurvpatil_: has joined #ruby
[11:01:43] conta: has joined #ruby
[11:11:09] mayurvpatil_: has joined #ruby
[11:24:27] tranch: has joined #ruby
[11:35:57] fphilipe_: has joined #ruby
[11:41:29] nowhere_man: has joined #ruby
[11:50:49] AJA4350: has joined #ruby
[11:54:11] jinie: has joined #ruby
[12:04:01] solars: has joined #ruby
[12:12:31] mayurvpatil_: has joined #ruby
[12:14:48] queip: has joined #ruby
[12:16:22] Jonopoly: has joined #ruby
[12:24:10] nowhere_man: has joined #ruby
[12:28:20] crankharder: has joined #ruby
[12:36:48] _joes_: has joined #ruby
[12:38:19] ramfjord: has joined #ruby
[12:47:28] nowhere_man: has joined #ruby
[12:53:26] ellcs: has joined #ruby
[12:57:49] conta: has joined #ruby
[13:06:20] mayurvpatil: has joined #ruby
[13:06:49] stryek: has joined #ruby
[13:07:22] matchaw: has joined #ruby
[13:13:21] codefriar: has joined #ruby
[13:13:33] mayurvpatil_: has joined #ruby
[13:15:53] axyjo: has joined #ruby
[13:15:58] axyjo: has joined #ruby
[13:18:12] Cthulu201: has joined #ruby
[13:19:28] matchaw: has joined #ruby
[13:24:57] spiette: has joined #ruby
[13:25:52] cek: has joined #ruby
[13:27:43] cek: is there a shorthand for {a: a, b:b } in newer ruby versions?
[13:38:02] Inline: has joined #ruby
[13:39:29] matchaw: has joined #ruby
[13:50:54] lxsameer: has joined #ruby
[13:52:17] cisco: has joined #ruby
[13:59:30] matchaw: has joined #ruby
[14:00:48] vondruch_: has joined #ruby
[14:01:32] Rapture: has joined #ruby
[14:04:46] misaki_m: has joined #ruby
[14:09:03] axyjo: has joined #ruby
[14:10:14] fluxAeon: has joined #ruby
[14:10:45] lucasb: has joined #ruby
[14:16:29] bogn: has joined #ruby
[14:21:55] axyjo: has joined #ruby
[14:22:30] dviola: has joined #ruby
[14:22:43] jeremycw: has joined #ruby
[14:23:54] kent\n: has joined #ruby
[14:25:00] matheusmoreira: has joined #ruby
[14:26:59] axyjo: has joined #ruby
[14:27:18] Esa_: has joined #ruby
[14:27:56] Renich_: has joined #ruby
[14:30:16] deathwishdave: has joined #ruby
[14:36:55] haxx0r: has joined #ruby
[14:38:23] NL3limin4t0r: cek: No. Assuming you mean like JavaScript `{ a, b }`
[14:39:22] cek: yeah, it's strange js managed to be up to date on dev requests
[14:40:23] maryo: has joined #ruby
[14:40:28] conta: has joined #ruby
[14:41:03] NL3limin4t0r: Imo they still miss a lot of features. Like zipping arrays together or having a decent group_by/unique methods.
[14:43:44] NL3limin4t0r: But it's getting better each update.
[14:44:33] queip: has joined #ruby
[14:49:59] cow[moo]: has joined #ruby
[15:01:29] fphilipe_: has joined #ruby
[15:16:28] fphilipe_: has joined #ruby
[15:18:11] r29v: has joined #ruby
[15:23:46] charon77: has joined #ruby
[15:28:14] GodFather: has joined #ruby
[15:28:27] r29v: has joined #ruby
[15:33:32] schne1der: has joined #ruby
[15:34:07] deathwishdave: has joined #ruby
[15:35:09] dviola: has joined #ruby
[15:42:10] maryo: has joined #ruby
[15:48:45] cthulchu_: has joined #ruby
[15:53:47] queip: has joined #ruby
[15:57:58] rippa: has joined #ruby
[16:04:10] tewlz: has joined #ruby
[16:18:48] matchaw: has joined #ruby
[16:19:24] matchaw_: has joined #ruby
[16:20:34] mfb2: has joined #ruby
[16:30:48] AJA4351: has joined #ruby
[16:36:23] themsay: has joined #ruby
[16:37:54] Iarfen: has joined #ruby
[16:38:15] d10n-work: has joined #ruby
[16:43:13] duderonomy: has joined #ruby
[16:47:45] cschneid: has joined #ruby
[16:49:41] m17: has joined #ruby
[17:05:41] crankharder: has joined #ruby
[17:06:22] maryo: has joined #ruby
[17:18:32] sameerynho: has joined #ruby
[17:20:03] queip: has joined #ruby
[17:20:35] fphilipe_: has joined #ruby
[17:22:55] nowhere_man: has joined #ruby
[17:34:21] deepredsky: has joined #ruby
[17:36:42] brool: has joined #ruby
[17:46:57] reber: has joined #ruby
[17:49:52] d^sh: has joined #ruby
[17:53:28] themsay: has joined #ruby
[17:56:37] kent\n: has joined #ruby
[17:58:03] r29v: has joined #ruby
[18:05:32] SeepingN: has joined #ruby
[18:12:49] themsay: has joined #ruby
[18:15:59] leftylink: has joined #ruby
[18:17:58] ramfjord: has joined #ruby
[18:30:09] gix: has joined #ruby
[18:35:09] duckpuppy: has joined #ruby
[18:42:47] Joufflu: has joined #ruby
[18:46:40] queip: has joined #ruby
[18:58:05] d^sh: has joined #ruby
[19:02:13] rippa: has joined #ruby
[19:02:55] tdy1: has joined #ruby
[19:06:31] maryo: has joined #ruby
[19:10:54] matchaw_: has joined #ruby
[19:11:50] code_zombie: has joined #ruby
[19:12:13] jinie: has joined #ruby
[19:13:35] ule: The same way if we do: a = nil || 'foo', how would you do: a = [] || 'foo' ?
[19:14:13] ule: Assiming that sometimes [] is actually populated, and in this case, it shouldn't assume the default value 'foo'
[19:16:47] ule: nvm, just did a ternary if with conditional to solve the issue here
[19:17:25] jinie: has joined #ruby
[19:21:25] fphilipe_: has joined #ruby
[19:22:54] deepreds1: has joined #ruby
[19:24:38] ytti: i woudl have probaly just done
[19:24:50] ytti: a = 'foo' if a.empty?
[19:25:09] ytti: but minor detail
[19:26:15] ytti: but if example was realistic, it may not be good idea to have same variable array or string depending on situation
[19:29:26] vjacob: has joined #ruby
[19:36:34] queip: has joined #ruby
[19:41:59] cisco: has joined #ruby
[19:57:34] RickyAtRigor: has joined #ruby
[19:58:06] ozzloy: has joined #ruby
[19:58:07] ozzloy: has joined #ruby
[20:00:37] haxx0r: has joined #ruby
[20:01:52] cschneid_: has joined #ruby
[20:05:17] tjarvis: has joined #ruby
[20:13:15] nolanv: has joined #ruby
[20:15:52] queip: has joined #ruby
[20:18:41] teej: has joined #ruby
[20:19:54] tjarvis: has joined #ruby
[20:21:53] tjarvis: has joined #ruby
[20:24:03] jinie: has joined #ruby
[20:29:21] r29v: has joined #ruby
[20:40:30] jinie_: has joined #ruby
[20:41:42] rokra: has joined #ruby
[20:52:47] sezuan: has joined #ruby
[21:02:43] houhoulis: has joined #ruby
[21:08:22] queip: has joined #ruby
[21:10:37] ua: has joined #ruby
[21:24:55] fphilipe_: has joined #ruby
[21:30:15] ellcs1: has joined #ruby
[21:31:47] Esa: has joined #ruby
[21:34:23] vjacob: has joined #ruby
[21:41:10] themsay: has joined #ruby
[21:42:15] ur5us: has joined #ruby
[21:53:27] violentE: has joined #ruby
[22:00:20] r29v: has joined #ruby
[22:02:41] exmortus: has joined #ruby
[22:05:28] schne1der: has joined #ruby
[22:09:44] deathwishdave: has joined #ruby
[22:10:56] queip: has joined #ruby
[22:11:53] AJA4351: has joined #ruby
[22:12:10] nowhere_man: has joined #ruby
[22:30:14] r29v: has joined #ruby
[22:33:18] phaul: has joined #ruby
[22:58:55] ramfjord: has joined #ruby
[23:03:04] nowhere_man: has joined #ruby
[23:19:37] cschneid_: has joined #ruby
[23:24:12] mynameisdebian: has joined #ruby
[23:24:24] AJA4351: has joined #ruby
[23:32:41] mynameisdebian: I am trying to set up unfurls for a Slack app. To do so I POST to the unfurl API endpoint. I am following the "Pure JSON Example" at https://api.slack.com/docs/message-link-unfurling#unfurls_parameter . My code is at https://dpaste.de/spra . My JSON that I am passing into the function is '{"channel":"CKKF5EV1D","ts":"1560985906.010200","unfurls":{"https://app.diffbot.com":{"text":"output_from_kg_call"}}}' . When I submit my request I get
[23:32:41] mynameisdebian: Net::HTTPBadRequest . Can anyone tell me the correct way to form this request, with net/http or another library?
[23:35:28] ricekrispie: has joined #ruby
[23:38:21] crankharder: has joined #ruby
[23:39:31] cisco: has joined #ruby
[23:42:16] leftylink: mynameisdebian: in total ignorance because I have no experience with slack api, is it at all possible that https://ruby-doc.org/stdlib-2.6.3/libdoc/net/http/rdoc/Net/HTTP.html#method-i-use_ssl-3D is needed? to set it to true
[23:42:47] mynameisdebian: leftylink: I really appreciate the reply, let me look into that
[23:44:10] cschneid_: has joined #ruby
[23:45:36] fphilipe_: has joined #ruby
[23:46:28] ellcs1: has joined #ruby
[23:47:42] mynameisdebian: leftylink: THANKS!
[23:48:36] leftylink: oh, was tha tit?
[23:54:56] cschneid_: has joined #ruby