« Back to channel list

#ruby - 15 May 2018

« Back 1 day Forward 1 day »
[00:01:03] gigetoo: has joined #ruby
[00:07:11] chouhoulis: has joined #ruby
[00:08:11] bmurt: has joined #ruby
[00:11:14] chouhoul_: has joined #ruby
[00:11:58] Lytol: has joined #ruby
[00:15:05] cthulchu: has joined #ruby
[00:16:32] arashb: has joined #ruby
[00:16:39] duderonomy: has joined #ruby
[00:21:59] n0m4d1c: has joined #ruby
[00:23:18] cagomez: has joined #ruby
[00:24:15] ccrow: has joined #ruby
[00:25:47] chocoelho: has joined #ruby
[00:26:55] chocoelho: has joined #ruby
[00:32:24] cadillac_: has joined #ruby
[00:34:20] chouhoulis: has joined #ruby
[00:34:55] _aeris_: has joined #ruby
[00:35:35] arashb: has joined #ruby
[00:36:04] caleBOT: has joined #ruby
[00:36:06] caleBOT_: has joined #ruby
[00:55:15] arashb: has joined #ruby
[01:03:23] duderonomy: has joined #ruby
[01:10:25] caleBOT_: has joined #ruby
[01:10:25] caleBOT: has joined #ruby
[01:10:49] caleBOT__: has joined #ruby
[01:10:49] caleBOT__: has joined #ruby
[01:10:58] cagomez: has joined #ruby
[01:13:48] phenom_: has joined #ruby
[01:17:18] coderphive: has joined #ruby
[01:19:33] armando: has joined #ruby
[01:20:16] phenom: has joined #ruby
[01:25:33] caleBOT: has joined #ruby
[01:25:34] caleBOT_: has joined #ruby
[01:27:41] irick: has joined #ruby
[01:31:13] eckhardt_: has joined #ruby
[01:36:12] anjen: has joined #ruby
[01:36:25] Jameser: has joined #ruby
[01:36:36] caleBOT: has joined #ruby
[01:36:37] caleBOT_: has joined #ruby
[01:44:44] arooni_team_b: has joined #ruby
[01:47:10] mroutis: has joined #ruby
[01:47:34] ramfjord: has joined #ruby
[01:48:10] GodFather: has joined #ruby
[01:48:10] dinfuehr: has joined #ruby
[01:54:05] yup: has joined #ruby
[01:58:45] ramfjord: has joined #ruby
[01:59:57] chouhoulis: has joined #ruby
[02:00:19] Vingador: has joined #ruby
[02:04:50] ramfjord: has joined #ruby
[02:07:26] arooni_team_b: has joined #ruby
[02:07:32] Xiti: has joined #ruby
[02:09:19] chouhoul_: has joined #ruby
[02:10:44] ramfjord: has joined #ruby
[02:11:02] armando: has joined #ruby
[02:11:36] arashb: has joined #ruby
[02:12:04] caleBOT: has joined #ruby
[02:12:06] caleBOT_: has joined #ruby
[02:20:13] alfiemax: has joined #ruby
[02:21:03] mjolnird: has joined #ruby
[02:23:19] alejoloa: has joined #ruby
[02:24:21] moei: has joined #ruby
[02:24:22] alejoloa: has left #ruby: ()
[02:28:16] kegan_: why is it that I have a class variable
[02:28:21] kegan_: @@var = 1
[02:28:26] kegan_: puts @@var + " some String "
[02:28:30] kegan_: casts this to a string
[02:28:37] kegan_: err, puts Class.var + "some string"
[02:28:52] kegan_: I just want to concatenate
[02:28:58] kegan_: and it's casting it to a string like, ruby, please
[02:30:12] mozzarella: not sure I understand
[02:35:43] kegan_: I want to use the value of that integer variable
[02:35:48] kegan_: in a put statement
[02:35:55] kegan_: without casting that variable into a string
[02:36:09] kegan_: which is the apparent outcome of putting it into a puts statement with + concatenation with another strong
[02:37:33] kegan_: jesus can I type ONE SENTENCE correctly
[02:37:37] kegan_: just entirely correctly
[02:37:55] amar: has joined #ruby
[02:41:02] cpruitt: has joined #ruby
[02:47:38] chouhoulis: has joined #ruby
[02:48:01] alfiemax: has joined #ruby
[02:50:20] cpruitt: has joined #ruby
[02:54:12] havenwood: >> 1 + " some String "
[02:54:13] ruby[bot]: havenwood: # => String can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/1004076)
[02:55:03] havenwood: kegan_: A String can't be coerced into an Integer in Ruby.
[02:55:37] havenwood: I'm more modern Ruby: #!> TypeError: String can't be coerced into Integer
[02:56:38] havenwood: >> @@var = 1; @@var + '' # kegan_
[02:56:39] ruby[bot]: havenwood: # => /tmp/execpad-a9c844a20409/source-a9c844a20409:2: warning: class variable access from toplevel ...check link for more (https://eval.in/1004077)
[02:57:25] havenwood: kegan_: Avoid using class variables.
[02:57:50] havenwood: kegan_: If you can show your code we can probably give you some good suggestions.
[02:58:03] cpruitt: has joined #ruby
[02:58:06] arashb: has joined #ruby
[03:00:12] cadillac_: has joined #ruby
[03:01:15] orbyt_: has joined #ruby
[03:03:43] cschneid_: has joined #ruby
[03:05:13] yup: has joined #ruby
[03:07:31] sanscoeur: has joined #ruby
[03:17:19] alfiemax: has joined #ruby
[03:18:00] howdoi: has joined #ruby
[03:20:15] mroutis: has joined #ruby
[03:37:34] caleBOT: has joined #ruby
[03:37:36] caleBOT_: has joined #ruby
[03:37:47] yup: has joined #ruby
[03:41:40] gix-: has joined #ruby
[03:42:38] arashb: has joined #ruby
[03:49:06] Ryzokuken: has joined #ruby
[03:50:48] cpruitt: has joined #ruby
[03:55:24] alfiemax: has joined #ruby
[03:57:48] schleppel: has joined #ruby
[04:00:48] dcunit3d: has joined #ruby
[04:01:14] jcarl43: has joined #ruby
[04:01:45] caleBOT_: has joined #ruby
[04:01:46] caleBOT__: has joined #ruby
[04:03:46] JoshS: has joined #ruby
[04:04:04] jcarl43: has joined #ruby
[04:05:06] jcarl43: has joined #ruby
[04:06:02] roshanavand: has joined #ruby
[04:16:49] cadillac_: has joined #ruby
[04:20:19] amar: has joined #ruby
[04:22:14] cpruitt: has joined #ruby
[04:24:09] yup: has joined #ruby
[04:27:11] arashb: has joined #ruby
[04:36:31] nolanv: has joined #ruby
[04:39:31] rkazak: has joined #ruby
[04:40:52] redlegion: has joined #ruby
[04:41:52] armando: has joined #ruby
[04:42:08] caleBOT: has joined #ruby
[04:42:09] caleBOT_: has joined #ruby
[04:42:19] ramfjord: has joined #ruby
[04:42:28] mohsen_1: has joined #ruby
[04:44:54] dinfuehr: has joined #ruby
[04:45:48] alfiemax: has joined #ruby
[04:48:46] n0m4d1c: has joined #ruby
[04:50:39] dinfuehr: has joined #ruby
[04:54:37] kent\n: has joined #ruby
[04:56:50] ciscam: has joined #ruby
[05:02:55] dinfuehr: has joined #ruby
[05:04:22] tvw: has joined #ruby
[05:04:53] anisha: has joined #ruby
[05:11:26] dinfuehr: has joined #ruby
[05:17:36] sauvin: has joined #ruby
[05:19:31] aupadhye: has joined #ruby
[05:22:09] jshjsh: has joined #ruby
[05:23:08] kapil___: has joined #ruby
[05:25:15] cagomez: has joined #ruby
[05:26:54] venmx: has joined #ruby
[05:27:12] n0m4d1c: has joined #ruby
[05:31:33] robertothais: has joined #ruby
[05:33:32] caleBOT: has joined #ruby
[05:33:34] caleBOT_: has joined #ruby
[05:33:50] dcunit3d: has joined #ruby
[05:37:56] ur5us: has joined #ruby
[05:40:12] arashb: has joined #ruby
[05:40:59] KeyJoo: has joined #ruby
[05:41:17] pwnd_nsfw: has joined #ruby
[05:41:51] KeyJoo: has joined #ruby
[05:43:51] PaulePanter: has joined #ruby
[05:49:34] roshanavand: has joined #ruby
[05:49:58] amar: has joined #ruby
[05:59:25] reber: has joined #ruby
[06:03:58] zenspider: kegan_: easiest answer: always use string interpolation; puts "v=#{@@var}"
[06:04:39] CrazyEddy: has joined #ruby
[06:05:23] alfiemax_: has joined #ruby
[06:06:45] consti: has joined #ruby
[06:07:36] c0ncealed1: has joined #ruby
[06:10:27] sidx64: has joined #ruby
[06:11:08] burgestrand: has joined #ruby
[06:19:25] za1b1tsu: has joined #ruby
[06:20:17] TinkerT: has joined #ruby
[06:21:40] conta: has joined #ruby
[06:22:40] dionysus69: has joined #ruby
[06:30:08] Dykam: has joined #ruby
[06:38:40] roshanavand: has joined #ruby
[06:42:21] ramfjord: has joined #ruby
[06:43:11] ikbenhet: has joined #ruby
[06:47:44] mtkd: has joined #ruby
[06:58:00] dminuoso: Or just explicitly .to_s things instead of relying on implicit method calls
[06:58:06] dminuoso: ACTION ¯\_(ツ)_/¯
[06:58:30] suukim: has joined #ruby
[07:03:07] bzb: has joined #ruby
[07:03:11] sidx64: has joined #ruby
[07:05:13] arashb: has joined #ruby
[07:06:15] clemens3: has joined #ruby
[07:11:13] roshanavand: has joined #ruby
[07:11:32] amar: has joined #ruby
[07:17:45] coderphive: has joined #ruby
[07:19:28] TomyWork: has joined #ruby
[07:22:31] armyriad: has joined #ruby
[07:23:43] Dykam: has joined #ruby
[07:29:08] aufi: has joined #ruby
[07:30:28] cpruitt: has joined #ruby
[07:30:58] darkhanb: has joined #ruby
[07:34:41] marr: has joined #ruby
[07:34:55] mniip: has joined #ruby
[07:36:03] burgestrand: has joined #ruby
[07:37:15] caleBOT: has joined #ruby
[07:37:16] caleBOT_: has joined #ruby
[07:38:51] sysvalve: has joined #ruby
[07:42:55] cpruitt: has joined #ruby
[07:43:36] consti: has joined #ruby
[07:44:23] bzb: has joined #ruby
[07:47:17] arashb: has joined #ruby
[07:48:02] armyriad: has joined #ruby
[07:48:20] leslie: has joined #ruby
[07:48:38] rajpratik71: has joined #ruby
[07:49:17] tAn: has joined #ruby
[07:55:13] mikecmpbll: has joined #ruby
[07:59:23] guille-moe: has joined #ruby
[08:00:21] roshanavand: has joined #ruby
[08:03:30] byte512: has joined #ruby
[08:06:07] ur5us: has joined #ruby
[08:09:04] ellcs: has joined #ruby
[08:16:45] consti: has joined #ruby
[08:18:21] roshanavand: has joined #ruby
[08:18:34] Dykam: has joined #ruby
[08:20:06] amar: has joined #ruby
[08:24:36] amar: has joined #ruby
[08:24:36] arashb: has joined #ruby
[08:26:35] byte512: has joined #ruby
[08:30:23] Beams: has joined #ruby
[08:33:38] mikecmpbll: has joined #ruby
[08:35:04] Xiti`: has joined #ruby
[08:35:33] byte512: has joined #ruby
[08:37:18] plexigras: has joined #ruby
[08:37:45] arashb: has joined #ruby
[08:37:46] yup: has joined #ruby
[08:39:02] jamesaxl: has joined #ruby
[08:40:01] alfiemax: has joined #ruby
[08:42:23] ramfjord: has joined #ruby
[08:44:40] alex``: has joined #ruby
[08:45:22] user1: has joined #ruby
[08:46:29] caleBOT: has joined #ruby
[08:46:30] caleBOT_: has joined #ruby
[08:49:47] jsaak: has joined #ruby
[08:50:00] karapetyan: has joined #ruby
[08:50:53] cpruitt: has joined #ruby
[08:52:58] mtkd: has joined #ruby
[09:00:28] venmx: has joined #ruby
[09:01:13] nolanv: has joined #ruby
[09:04:46] drale2k_: has joined #ruby
[09:06:19] coderphive: has joined #ruby
[09:09:04] dachi: has joined #ruby
[09:09:48] dachi: Hello. Could you tell how to set rejectUnauthorized to false, or in other words openssl_verify_mode to OpenSSL::SSL::VERIFY_NONE in Net::SMTP? https://ruby-doc.org/stdlib-2.0.0/libdoc/net/smtp/rdoc/Net/SMTP.html
[09:09:58] mikecmpbll: has joined #ruby
[09:20:59] arashb: has joined #ruby
[09:24:58] mlkkk: has joined #ruby
[09:27:09] vondruch: has joined #ruby
[09:30:33] Dykam: has joined #ruby
[09:34:06] Beams: has joined #ruby
[09:40:37] Abhijit: has joined #ruby
[09:41:35] Abhijit: i am trying to use this module https://www.rubydoc.info/gems/toml-rb/0.3.0/TOML i did not installed any extra libraries. when i tyr to do TOML.parse(content) in my irb it says NoMethodError: undefined method `parse' for TOML:Module
[09:44:33] elomatreb: You have required the module?
[09:46:11] elomatreb: `require "toml"` loads the library
[09:46:56] dminuoso: toml-rb and toml are different things (which is why 1.0.0 in toml-rb changed the namespace to avoid namespace conflicts)
[09:47:37] Abhijit: which one to require then?
[09:49:04] Abhijit: elomatreb, dminuoso this code gives me error https://paste.ubuntu.com/p/ZH8Y2vj4Yq/
[09:49:19] Abhijit: undefined method `parse' for TOML:Module
[09:49:44] dminuoso: Abhijit: Like I said. toml-rb
[09:49:54] dminuoso: Abhijit: Also you should probably upgrade your toml-rb if you also want to use toml
[09:54:42] ur5us: has joined #ruby
[09:57:30] sagax: has joined #ruby
[09:58:59] Abhijit: installing and requiring toml-rb or tomlrb does not work
[09:59:13] Abhijit: says uninitialized constant TOML
[09:59:22] InfinityFye: has joined #ruby
[10:00:47] InfinityFye: has left #ruby: ()
[10:01:07] elomatreb: You also need to change the module constant. It got renamed to `TomlRb`. The docs you linked to are from an outdated version.
[10:01:40] arashb: has joined #ruby
[10:03:53] cpruitt: has joined #ruby
[10:04:46] drale2k_: has joined #ruby
[10:07:42] conta: has joined #ruby
[10:08:29] mikecmpbll: has joined #ruby
[10:10:23] robertothais: has joined #ruby
[10:11:12] schneider: has joined #ruby
[10:11:58] Abhijit: elomatreb, whats wrong here?
[10:11:59] Abhijit: require 'toml-rb'
[10:12:02] Abhijit: puts TomlRb.parse("[toml]\na = [\"array\", 123]")
[10:12:09] Abhijit: uninitialized constant TOML
[10:12:10] Abhijit: Did you mean? TomlRB
[10:13:42] elomatreb: How did you install the gem?
[10:14:37] Abhijit: gem install toml-rb
[10:15:08] tpendragon: has joined #ruby
[10:15:31] Cthulu201: has joined #ruby
[10:16:28] elomatreb: So you should have gotten the latest version, ok
[10:18:41] elomatreb: Mh, strange, I can't think of anything
[10:18:53] elomatreb: `gem list toml-rb` to confirm the version maybe?
[10:19:48] giraffe: has joined #ruby
[10:28:10] ferr: has joined #ruby
[10:29:09] peacetreaty: has left #ruby: ()
[10:36:17] vondruch: has joined #ruby
[10:37:41] user2: has joined #ruby
[10:38:01] arashb: has joined #ruby
[10:39:27] sidx64: has joined #ruby
[10:42:23] ramfjord: has joined #ruby
[10:46:47] caleBOT: has joined #ruby
[10:46:49] caleBOT_: has joined #ruby
[10:48:33] alfiemax: has joined #ruby
[10:49:38] ciscam: has joined #ruby
[10:50:52] donofrio: has joined #ruby
[10:54:18] apparition: has joined #ruby
[10:56:20] karapetyan: has joined #ruby
[10:58:05] mtkd: has joined #ruby
[10:58:19] apeiros: has joined #ruby
[11:00:40] adlerdias: has joined #ruby
[11:02:33] pdcawley: has left #ruby: ()
[11:05:34] sidx64: has joined #ruby
[11:09:14] vondruch: has joined #ruby
[11:11:57] conta: has joined #ruby
[11:13:50] GodFather: has joined #ruby
[11:14:41] nolanv: has joined #ruby
[11:18:37] arashb: has joined #ruby
[11:20:04] AJA4350: has joined #ruby
[11:21:42] Asher: has joined #ruby
[11:22:21] ikbenhet: has joined #ruby
[11:24:06] wolfshappen: has joined #ruby
[11:25:07] sidx64: has joined #ruby
[11:27:17] drale2k_: has joined #ruby
[11:30:47] cpruitt: has joined #ruby
[11:36:19] sidx64: has joined #ruby
[11:38:27] chouhoulis: has joined #ruby
[11:41:00] nicesignal: has joined #ruby
[11:46:06] patientj: has joined #ruby
[11:50:07] cpruitt: has joined #ruby
[11:53:14] anisha: has joined #ruby
[11:56:48] Beams: has joined #ruby
[11:58:33] chouhoulis: has joined #ruby
[11:59:25] yeticry: has joined #ruby
[12:01:43] patientj: has left #ruby: ()
[12:01:55] Beams: has joined #ruby
[12:02:12] sidx64: has joined #ruby
[12:04:58] karapetyan: has joined #ruby
[12:06:37] cpruitt: has joined #ruby
[12:09:38] ldnunes: has joined #ruby
[12:12:24] mroutis: has joined #ruby
[12:18:41] cagomez: has joined #ruby
[12:19:25] cpruitt: has joined #ruby
[12:23:22] roamingdog: has joined #ruby
[12:26:31] sidx64: has joined #ruby
[12:28:41] cpruitt: has joined #ruby
[12:28:51] Nussi: has joined #ruby
[12:29:03] Cavallari: has joined #ruby
[12:33:15] yeticry: has joined #ruby
[12:36:44] cpruitt: has joined #ruby
[12:36:48] guille-moe: has joined #ruby
[12:37:47] RougeR: has joined #ruby
[12:41:35] roamingdog: has joined #ruby
[12:41:44] sidx64: has joined #ruby
[12:42:13] cpruitt: has joined #ruby
[12:42:20] roamingdog: has joined #ruby
[12:43:10] roamingdog: has joined #ruby
[12:43:58] roamingdog: has joined #ruby
[12:47:05] caleBOT: has joined #ruby
[12:47:06] caleBOT_: has joined #ruby
[12:48:45] luminous: has joined #ruby
[12:50:15] sidx64: has joined #ruby
[12:51:13] jrich523: has joined #ruby
[12:51:22] cyberg: has joined #ruby
[12:52:21] dminuoso: entry_name = if entry_name entry_name.pluralize(collection.size, I18n.locale)
[12:52:49] dminuoso: I should file a bug report just to vent my anger.
[12:52:50] GodFather: has joined #ruby
[12:55:41] armando: has joined #ruby
[12:56:47] nicesignal: has joined #ruby
[12:57:05] redlegion: has joined #ruby
[13:00:45] apeiros: I assume that's not even the full statement? given that `= if` is not suffix-if…
[13:00:48] Asher: has joined #ruby
[13:00:59] apeiros: i.e. multi-line if/else for assignment…
[13:01:14] ikbenhet: has joined #ruby
[13:02:14] dminuoso: There's a newline in there.
[13:02:23] dminuoso: It's so frustrating and annoying to read.
[13:03:11] dminuoso: Now yarn is broken again
[13:03:23] dminuoso: I used to think JS was fine.
[13:03:47] Beams: has joined #ruby
[13:04:27] vondruch: has joined #ruby
[13:06:15] arashb: has joined #ruby
[13:08:54] venmx: has joined #ruby
[13:11:08] dcunit3d: has joined #ruby
[13:15:03] tdy: has joined #ruby
[13:16:10] arashb: has joined #ruby
[13:16:30] k0mpa: has joined #ruby
[13:20:54] samort7: has joined #ruby
[13:22:56] duderonomy: has joined #ruby
[13:24:20] sidx64: has joined #ruby
[13:25:09] Asher: has joined #ruby
[13:31:59] NL3limin4t0r: has joined #ruby
[13:34:25] gizmore: has joined #ruby
[13:37:41] bmurt: has joined #ruby
[13:39:21] oleo: has joined #ruby
[13:43:02] ramfjord: has joined #ruby
[13:44:05] arashb: has joined #ruby
[13:46:01] woodruffw: has joined #ruby
[13:46:01] woodruffw: has joined #ruby
[13:47:33] duderonomy: has joined #ruby
[13:48:00] simmaniac: has joined #ruby
[13:48:13] amar: has joined #ruby
[13:49:37] RougeR: has joined #ruby
[13:50:05] _antares_: has joined #ruby
[13:51:12] venmx: has joined #ruby
[13:51:19] duderonomy: has joined #ruby
[13:51:39] Zaab1t: has joined #ruby
[13:55:34] arashb: has joined #ruby
[13:58:11] sidx64: has joined #ruby
[13:58:51] dcunit3d: has joined #ruby
[13:59:05] memo1: has joined #ruby
[14:00:17] _antares_: has joined #ruby
[14:02:46] mtkd: has joined #ruby
[14:08:49] GodFather: has joined #ruby
[14:09:47] Rapture: has joined #ruby
[14:10:41] robertothais: has joined #ruby
[14:11:51] mroutis: has joined #ruby
[14:14:54] GodFather: has joined #ruby
[14:15:22] bmurt: has joined #ruby
[14:18:43] Fire-Dragon-DoL: has joined #ruby
[14:22:47] chouhoulis: has joined #ruby
[14:25:57] QCF: has joined #ruby
[14:27:51] GodFather_: has joined #ruby
[14:28:12] roamingdog: has joined #ruby
[14:28:50] RougeR: has joined #ruby
[14:30:59] coderphive: has joined #ruby
[14:31:24] _antares_: has joined #ruby
[14:36:23] arne: has joined #ruby
[14:37:14] GodFather_: has joined #ruby
[14:38:01] arne: invalid multibyte escape: /\x89PNG/ why doesn't this work?
[14:38:33] arne: i mean, i get why it doesn't, but shouldn't that work?
[14:38:35] apeiros: because operations on utf-8 strings require valid utf-8
[14:38:51] apeiros: if you want to work with binary data, use binary encodings, for both your target string and your regex.
[14:38:56] arne: okay, thanks
[14:39:49] jottr: has joined #ruby
[14:40:40] amelliaa: has joined #ruby
[14:41:27] sidx64: has joined #ruby
[14:42:34] caleBOT_: has joined #ruby
[14:42:34] caleBOT: has joined #ruby
[14:42:59] caleBOT__: has joined #ruby
[14:42:59] caleBOT__: has joined #ruby
[14:43:58] chouhoul_: has joined #ruby
[14:47:17] orbyt_: has joined #ruby
[14:53:24] kapil___: has joined #ruby
[14:57:06] chouhoulis: has joined #ruby
[14:57:44] caleBOT: has joined #ruby
[14:57:45] caleBOT_: has joined #ruby
[15:02:32] GodFather_: has joined #ruby
[15:04:28] amar: has joined #ruby
[15:05:25] orbyt_: has joined #ruby
[15:06:41] dionysus69: has joined #ruby
[15:07:25] cadillac_: has joined #ruby
[15:12:17] _antares_: has joined #ruby
[15:12:37] duderonomy: has joined #ruby
[15:13:40] quobo: has joined #ruby
[15:15:16] havenwood: I wrote an article about the new `exception: false` and `exception: true` kwargs for #system, #Integer, etc: https://medium.com/square-corner-blog/rubys-new-exception-keyword-arguments-4d5bbb504d37
[15:17:00] Dbugger: has joined #ruby
[15:18:59] fyrril: has joined #ruby
[15:19:27] mtkd: has joined #ruby
[15:19:29] cschneid_: has joined #ruby
[15:22:24] cadillac_: has joined #ruby
[15:23:10] cagomez: has joined #ruby
[15:27:09] _antares_: has joined #ruby
[15:28:42] duderonomy: has joined #ruby
[15:29:26] za1b1tsu: has joined #ruby
[15:30:20] havenwood: TL;DR: system 'sl', exception: true
[15:30:26] cadillac_: has joined #ruby
[15:30:34] havenwood: Integer('nope', exception: false) #=> nil
[15:32:21] mohsen_1: has joined #ruby
[15:32:45] tulak: has joined #ruby
[15:34:18] schleppel: has joined #ruby
[15:35:11] nielsk: has joined #ruby
[15:40:01] _antares_: has joined #ruby
[15:42:11] schleppel: has joined #ruby
[15:43:57] jcarl43: has joined #ruby
[15:44:03] Xiti: has joined #ruby
[15:46:55] rippa: has joined #ruby
[15:50:59] mroutis: has joined #ruby
[15:51:57] memo1: has joined #ruby
[15:52:54] jamiejackson: has joined #ruby
[15:53:26] ciscam: has joined #ruby
[15:56:34] za1b1tsu: has joined #ruby
[15:56:47] apeiros: has joined #ruby
[15:57:58] caleBOT__: has joined #ruby
[15:57:59] caleBOT__: has joined #ruby
[15:58:30] nima_m: has joined #ruby
[16:00:05] apeiros: has joined #ruby
[16:03:43] nima_m: has joined #ruby
[16:07:43] kmurphy4: has joined #ruby
[16:08:32] nima_m: has joined #ruby
[16:10:04] NL3limin4t0r: has joined #ruby
[16:10:07] GodFather_: has joined #ruby
[16:11:09] jamiejackson99: has joined #ruby
[16:13:04] Hashirama: has joined #ruby
[16:13:42] nima_m: has joined #ruby
[16:13:55] Hashirama: hey beginner programmer here — looking at a private rails repo and I am seeing something like "result = ::Foo::Bar.meth(" just trying to understand what the colons mean. Unfortunately, I am not sure how I can google such a thing without knowing what it is.
[16:14:19] Zarthus: Modules / Namespacing
[16:14:33] jamiejackson99: has joined #ruby
[16:15:20] schleppel: has joined #ruby
[16:15:24] Hashirama: Yeah I guessed it was namespacing.
[16:15:38] _antares_: has joined #ruby
[16:16:28] Hashirama: I think the prefixing `::` is throwing me off I bet thats something to do with relative paths
[16:16:56] NL3limin4t0r: Hashirama: The prefixed `::` indicates that you navigate namespaces from root.
[16:17:00] dminuoso: Hashirama: :: is shorthand for Object::
[16:17:09] jamiejackson: has joined #ruby
[16:17:40] dminuoso: Hashirama: So every constant gets tossed in there. `::Foo` is basically a way to access Object::Foo rather than say some `Foo` from your current nesting
[16:18:07] gnufied: has joined #ruby
[16:18:23] dminuoso: Hashirama: https://eval.in/1004614
[16:22:40] nitric: has joined #ruby
[16:23:50] schleppel: has joined #ruby
[16:26:22] gix: has joined #ruby
[16:27:33] tbuehlmann: havenwood: coolio, thanks
[16:29:00] sammi`: has joined #ruby
[16:30:02] gix-: has joined #ruby
[16:31:12] mroutis_: has joined #ruby
[16:33:33] nima_m: has joined #ruby
[16:36:03] orbyt_: has joined #ruby
[16:38:02] ldepandis: has joined #ruby
[16:39:07] ldepandis: has joined #ruby
[16:41:14] chainz: has joined #ruby
[16:42:54] aupadhye: has joined #ruby
[16:43:52] Beams: has joined #ruby
[16:44:04] ramfjord: has joined #ruby
[16:45:27] ShekharReddy: has joined #ruby
[16:50:19] ramfjord: has joined #ruby
[16:53:12] chainz: has left #ruby: ()
[16:53:32] sanscoeur: has joined #ruby
[16:54:22] tbuehlmann: havenwood: that's not fully present 2.6.0-preview1, is that right? getting an error for Integer('not-a-number', exception: false)
[16:54:55] havenwood: tbuehlmann: It didn't make it into the preview1, but it'll be in the preview2. I should have mentioned that.
[16:55:25] havenwood: oh, i did mention it - at the very end
[16:55:44] tbuehlmann: aaand I'm a bad reader
[16:56:40] robertothais: has joined #ruby
[16:57:25] havenwood: I have a script to install nightly ruby, but it's macOS-specific: https://gist.github.com/havenwood/823382815cbdcfddadd798d4042023a8
[16:57:25] havenwood: I should make that portable, but... it's such a pain!
[16:58:10] havenwood: I guess I could switch to a script that builds it with ruby-install easy enough.
[16:58:28] regedit: has joined #ruby
[16:58:48] tbuehlmann: I just searched for a way to install a nightly build via ruby-install, but it seems to be an anti feature
[17:00:25] pilne: has joined #ruby
[17:00:33] havenwood: tbuehlmann: you can do it easy enough by pointing at the nightly url, but yeah, postmodern wanted to keep it simple by supporting stable releases
[17:01:23] n0m4d1c: has joined #ruby
[17:01:27] regedit: if i'm using a gem like Unirest and i know i'm gonna be placing hundreds of HTTP requests to a given 3rd party, do i have to do anything to care about persistent connection / keep alive?
[17:01:29] regedit: Or will that be taken care of automagically
[17:03:43] nima_m: has joined #ruby
[17:04:25] kies^: has joined #ruby
[17:06:01] jongley: has joined #ruby
[17:06:09] jongley: Do any of you cunts know how rails works? thx
[17:06:17] havenwood: regedit: Unirest seems to be a pretty thin wrapper around the RestClient gem.
[17:06:20] havenwood: !ban jongley
[17:06:20] ruby[bot]: +bbb $a:jongley$#ruby-banned jongley!*@*$#ruby-banned *!*@gateway/web/freenode/ip.88.97.101.79$#ruby-banned
[17:06:22] ruby[bot]: ruby[bot] kicked jongley: offense, see http://ruby-community.com/pages/user_rules
[17:07:31] eam: I do not know how rails works
[17:07:40] havenwood: regedit: Here's a list of HTTP clients that's in sore need of updating: https://docs.google.com/spreadsheets/d/1vPlk6nMIFa3sI5ISl7zZ5r6lDNpVQX6Jxi3ksXCyVbs/edit?usp=sharing
[17:07:56] schleppel: has joined #ruby
[17:08:58] havenwood: regedit: RestClient doesn't support keep-alive. Consider switching to something like Typhoeus, where you can do parallel requests.
[17:09:41] havenwood: regedit: If you just want keep-alive, the http gem is nice: https://github.com/httprb/http
[17:09:53] _antares_: has joined #ruby
[17:09:54] regedit: wow nice list :+1:
[17:10:25] regedit: not sure if i want/need parallel... maybe
[17:10:26] havenwood: regedit: Typhoeus is a libcurl wrapper that makes parallel requests really easy with "hydra": https://github.com/typhoeus/typhoeus
[17:10:27] tulak: has joined #ruby
[17:10:41] havenwood: regedit: If you want to do a bunch of requests really fast, it's a good way to go.
[17:10:54] regedit: i'm gonna be interacting with an API, processing hundreds of records, each one its own API call
[17:11:07] havenwood: regedit: Yeah, I'd recommend Typhoeus.
[17:11:09] baweaver: eam: How much C would one need to understand to grok this?: https://github.com/google/protobuf/pull/3606/files
[17:11:31] baweaver: I get the basics at least, but not the potential work required to make it work
[17:11:47] conta: has joined #ruby
[17:11:48] baweaver: Tangentially related as this is the Ruby protobuf lib
[17:12:15] amar: has joined #ruby
[17:12:38] havenwood: i C what you did there
[17:12:55] eam: that's a tough question, how do I quantify understanding? I bet you could do it
[17:13:15] eam: I'll work with you on it if you want
[17:14:37] baweaver: May have to be in a few weeks after I get back from Seattle.
[17:15:22] regedit: ok cool thanks havenwood
[17:17:23] eckhardt: has joined #ruby
[17:18:32] nima_m: has joined #ruby
[17:19:35] biberu: has joined #ruby
[17:22:24] _antares_: has joined #ruby
[17:23:47] nima_m: has joined #ruby
[17:25:29] duderonomy: has joined #ruby
[17:25:55] gix: has joined #ruby
[17:26:36] jottr: has joined #ruby
[17:26:42] mtkd: has joined #ruby
[17:28:33] nima_m: has joined #ruby
[17:28:45] gnufied: has joined #ruby
[17:30:19] chouhoul_: has joined #ruby
[17:33:44] nima_m: has joined #ruby
[17:36:31] cadillac_: has joined #ruby
[17:37:17] TomyLobo: has joined #ruby
[17:38:35] nima_m: has joined #ruby
[17:41:07] caleBOT: has joined #ruby
[17:41:08] caleBOT_: has joined #ruby
[17:44:24] amar: has joined #ruby
[17:44:39] amar: has joined #ruby
[17:44:42] Cavallari: has joined #ruby
[17:46:45] tulak: has joined #ruby
[17:47:19] bmurt: has joined #ruby
[17:47:41] deadmund: has joined #ruby
[17:49:09] deadmund: What is the require line I need so that I can write a script that uses this module? https://github.com/chadrem/market_bot I’m trying to replicate the “App API example” given in the readme for that project but I am getting “uninitialized constant MarketBot (NameError)” Thanks in advance!!
[17:49:42] dminuoso: baweaver: If its a google product its usually not that hard.
[17:51:03] caleBOT: has joined #ruby
[17:53:48] nima_m: has joined #ruby
[17:58:37] nima_m: has joined #ruby
[18:04:12] tacoboy: has joined #ruby
[18:05:34] blackmesa: has joined #ruby
[18:07:40] mtkd: has joined #ruby
[18:09:02] chouhoulis: has joined #ruby
[18:09:17] dviola: has joined #ruby
[18:10:55] roamingdog: has joined #ruby
[18:11:34] GodFather__: has joined #ruby
[18:12:25] jenrzzz: has joined #ruby
[18:13:04] alfiemax: has joined #ruby
[18:14:12] nicesignal: has joined #ruby
[18:18:18] Lytol: has joined #ruby
[18:18:37] alfiemax: has joined #ruby
[18:18:41] deadmund: Nevermind, I figured it out! :)
[18:19:04] sameerynho: has joined #ruby
[18:19:05] deadmund: I had to “require” the name of the module. It took some guess and check. In my case it was “market_bot”
[18:20:02] ellcs: has joined #ruby
[18:22:10] deadmund: has left #ruby: ()
[18:23:00] _antares_: has joined #ruby
[18:24:19] ramfjord: has joined #ruby
[18:28:07] caleBOT: has joined #ruby
[18:28:43] caleBOT_: has joined #ruby
[18:30:15] mtkd: has joined #ruby
[18:30:35] cagomez: how does ActiveRecord `create` generate it's timestamps?
[18:31:45] venmx: has joined #ruby
[18:33:33] tbuehlmann: cagomez: https://github.com/rails/rails/blob/v5.2.0/activerecord/lib/active_record/timestamp.rb#L84-L108
[18:34:12] graft: has joined #ruby
[18:34:12] graft: has joined #ruby
[18:34:13] cagomez: tbuehlmann: how would I call `current_time_from_proper_timezone`?
[18:34:46] jhass: has joined #ruby
[18:35:00] cagomez: tbuehlmann: what I'm trying to do is create models with `.new`, but also set their `created_at` and `updated_at` columns
[18:36:07] tbuehlmann: also, let's move this to #RubyOnRails
[18:36:48] chocoelho: has joined #ruby
[18:37:54] roamingdog: has joined #ruby
[18:38:10] dminuoso: You better do
[18:38:12] dminuoso: I need my silence.
[18:42:20] gix: has joined #ruby
[18:43:02] karapetyan: has joined #ruby
[18:44:29] dionysus69: has joined #ruby
[18:45:39] fu7zed: has joined #ruby
[18:46:38] duderonomy: has joined #ruby
[18:51:55] robertothais: has joined #ruby
[18:53:12] duderonomy: has joined #ruby
[18:55:29] tuskkk___: need some help with rails, have a form from a custom class, need a dropdown there from one of the fields in a model...
[18:55:59] bmurt: has joined #ruby
[19:01:21] nowhereman_: has joined #ruby
[19:02:52] apeiros: ?rails tuskkk___
[19:02:52] ruby[bot]: tuskkk___: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[19:03:18] tuskkk___: Hey apeiros! have already asked there, waiting.
[19:03:27] apeiros: in that case…
[19:03:31] apeiros: ?doublepost tuskkk___
[19:03:31] ruby[bot]: apeiros: I don't know anything about doublepost
[19:03:36] apeiros: ?crosspost tuskkk___
[19:03:36] ruby[bot]: tuskkk___: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[19:03:42] apeiros: I need more aliases for that
[19:04:04] apeiros: but really, this isn't the right channel for rails questions. please keep them over there.
[19:04:22] alfiemax: has joined #ruby
[19:05:42] ellcs: has joined #ruby
[19:07:40] ccrow: has joined #ruby
[19:07:59] jottr: has joined #ruby
[19:09:53] mnemon: has joined #ruby
[19:11:40] memo1: has joined #ruby
[19:12:07] tulak: has joined #ruby
[19:12:21] Jameser: has joined #ruby
[19:17:12] edwardly: has joined #ruby
[19:17:13] edwardly: has joined #ruby
[19:18:44] KeyJoo: has joined #ruby
[19:19:03] nowhere_man: has joined #ruby
[19:19:33] alfiemax: has joined #ruby
[19:20:45] vovs03: has joined #ruby
[19:21:23] mtkd: has joined #ruby
[19:21:34] jenrzzz: has joined #ruby
[19:22:37] grilix: has joined #ruby
[19:23:40] caleBOT: has joined #ruby
[19:24:57] caleBOT_: has joined #ruby
[19:26:17] nitric: has joined #ruby
[19:28:39] jenrzzz: has joined #ruby
[19:28:39] jenrzzz: has joined #ruby
[19:28:48] tulak: has joined #ruby
[19:28:57] _antares_: has joined #ruby
[19:29:47] tAn: has joined #ruby
[19:30:36] tulak: has joined #ruby
[19:31:19] orbyt_: has joined #ruby
[19:31:50] knight33_: has joined #ruby
[19:33:19] minimalism: has joined #ruby
[19:38:31] postmodern: has joined #ruby
[19:40:38] tulak: has joined #ruby
[19:44:43] karapetyan: has joined #ruby
[19:45:05] jenrzzz: has joined #ruby
[19:45:05] jenrzzz: has joined #ruby
[19:45:34] bmurt: has joined #ruby
[19:51:32] cschneid_: has joined #ruby
[19:52:30] jenrzzz: has joined #ruby
[19:54:28] BubonicPestilenc: has joined #ruby
[19:54:39] BubonicPestilenc: Hello my dear friends!
[19:54:45] karapetyan: has joined #ruby
[19:54:55] caleBOT: has joined #ruby
[19:54:56] caleBOT_: has joined #ruby
[19:55:02] BubonicPestilenc: I have a question: in most cases, i do "scan(/...(x).../).flatten.first"
[19:55:12] BubonicPestilenc: i know about $1, $2
[19:55:28] BubonicPestilenc: but are there any alternative to .flatten.first? One i know is .dig(0, 0)
[19:56:12] elomatreb: If you just want to get at the first matching group, I like using the [] method with a regex on string
[19:56:24] elomatreb: I.e. somestring[/re(ex)/, 1]
[19:56:33] BubonicPestilenc: hm..., yeah! right! i remember i seen somewhere, tyvm
[19:57:00] caleBOT__: has joined #ruby
[19:57:01] caleBOT__: has joined #ruby
[19:58:08] squishyj: has joined #ruby
[19:58:14] ruby[bot]: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[19:58:49] squishyj: has left #ruby: ()
[19:59:04] tvw: has joined #ruby
[20:00:17] cschneid_: has joined #ruby
[20:00:25] jenrzzz: has joined #ruby
[20:01:32] graft: has joined #ruby
[20:01:33] graft: has joined #ruby
[20:02:28] burgestrand: has joined #ruby
[20:04:51] alfiemax: has joined #ruby
[20:10:06] baweaver: !troll squishyj
[20:10:06] ruby[bot]: +bb squishyj!*@*$#ruby-banned *!*@unaffiliated/veonik/bot/squishyj$#ruby-banned
[20:15:53] Cavallari1: has joined #ruby
[20:19:05] Cavallari1: has joined #ruby
[20:19:22] regedit: has joined #ruby
[20:21:44] GodFather: has joined #ruby
[20:23:42] Cavallari: has joined #ruby
[20:27:37] sidx64: has joined #ruby
[20:29:43] gnufied: has joined #ruby
[20:30:20] _antares_: has joined #ruby
[20:30:41] sidx64_: has joined #ruby
[20:30:55] jenrzzz: has joined #ruby
[20:30:55] jenrzzz: has joined #ruby
[20:34:54] za1b1tsu: has joined #ruby
[20:36:00] sidx64: has joined #ruby
[20:38:10] vladdypwnz: has joined #ruby
[20:39:22] Ryzokuken: has joined #ruby
[20:41:53] chouhoul_: has joined #ruby
[20:44:18] ldepandis: has joined #ruby
[20:44:27] mikecmpbll: has joined #ruby
[20:46:00] sidx64_: has joined #ruby
[20:47:25] caleBOT_: has joined #ruby
[20:47:25] caleBOT: has joined #ruby
[20:47:31] graft: has joined #ruby
[20:47:32] nowhere_man: has joined #ruby
[20:48:18] sidx64__: has joined #ruby
[20:50:29] _antares_: has joined #ruby
[20:51:01] lypsis: has joined #ruby
[20:51:03] gr33n7007h: has joined #ruby
[20:54:14] marr: has joined #ruby
[20:54:43] sammi`_: has joined #ruby
[20:56:47] Cavallari1: has joined #ruby
[20:56:58] coderphive: has joined #ruby
[20:59:44] duderonomy: has joined #ruby
[20:59:47] blackmesa: has joined #ruby
[21:03:36] RougeR: has joined #ruby
[21:03:37] RougeR: has joined #ruby
[21:12:02] ramfjord: has joined #ruby
[21:16:31] jenrzzz: has joined #ruby
[21:17:30] mroutis: has joined #ruby
[21:25:07] n0m4d1c: has joined #ruby
[21:25:18] orbyt_: has joined #ruby
[21:30:14] rikkipitt: has joined #ruby
[21:30:40] SeepingN: has joined #ruby
[21:30:58] xuanrui: has joined #ruby
[21:31:01] jottr: has joined #ruby
[21:32:38] za1b1tsu: has joined #ruby
[21:33:56] RougeR: has joined #ruby
[21:34:57] coderphive: has joined #ruby
[21:35:24] sidx64: has joined #ruby
[21:36:13] manjaro-user--: has joined #ruby
[21:36:35] manjaro-user--: Boa noite galera
[21:37:18] hlmjr: has joined #ruby
[21:40:23] ramfjord: has joined #ruby
[21:42:15] rikkipitt: has joined #ruby
[21:43:54] ur5us: has joined #ruby
[21:45:07] chouhoulis: has joined #ruby
[21:50:04] hinbody: has joined #ruby
[21:50:18] hinbody: has left #ruby: ()
[21:50:59] kmurphy4: has joined #ruby
[21:53:51] gnufied: has joined #ruby
[21:56:09] leslie: has joined #ruby
[22:03:28] roamingdog: has joined #ruby
[22:04:51] jottr: has joined #ruby
[22:07:10] moei: has joined #ruby
[22:07:52] mroutis: has joined #ruby
[22:16:02] robertothais: has joined #ruby
[22:18:46] alfiemax: has joined #ruby
[22:25:41] kapil___: has joined #ruby
[22:27:47] mjolnird: has joined #ruby
[22:28:18] ramfjord: has joined #ruby
[22:28:33] za1b1tsu: has joined #ruby
[22:35:13] ur5us: has joined #ruby
[22:37:13] caleBOT_: has joined #ruby
[22:37:13] caleBOT: has joined #ruby
[22:41:23] Nilium: has joined #ruby
[22:43:30] amar: has joined #ruby
[22:51:02] duderonomy: has joined #ruby
[23:01:21] ccrow: has joined #ruby
[23:07:17] ramfjord: has joined #ruby
[23:08:25] DTZUZO: has joined #ruby
[23:14:36] rikkipitt: has joined #ruby
[23:15:49] venmx: has joined #ruby
[23:19:18] alfiemax: has joined #ruby
[23:21:58] audy: where does rails' 1.day.ago methods come from? I thought they were in active_support but I was wrong :(
[23:22:20] ciscam: has joined #ruby
[23:25:27] jottr: has joined #ruby
[23:27:00] gnufied: has joined #ruby
[23:29:01] Radar: audy: they are in active_support
[23:30:45] Radar: Finding you a link, one moment
[23:31:45] Radar: audy: https://github.com/rails/rails/blob/5-2-stable/activesupport/lib/active_support/core_ext/numeric/time.rb#L37-L40
[23:33:47] havenwood: audy: require 'active_support/core_ext/integer/time'
[23:33:50] caleBOT: has joined #ruby
[23:33:51] caleBOT_: has joined #ruby
[23:33:53] mostly-harmless: has joined #ruby
[23:35:00] audy: Radar, havenwood: thanks!
[23:35:40] Radar: numeric/time ?
[23:41:50] pwnd_nsfw: has joined #ruby
[23:45:21] _antares_: has joined #ruby
[23:50:55] gnufied: has joined #ruby
[23:57:05] Echo6: has joined #ruby
[23:57:39] Echo6: New to ruby, I'm trying to install rake so I can compile this, https://github.com/qcam/3llo
[23:57:59] Echo6: When I attempt to install rake by typing gem install rake
[23:58:14] Echo6: I get ERROR: Error installing rake:
[23:58:14] Echo6: rake requires Ruby version >= 2.0.0.
[23:58:48] Echo6: I didn't know if ruby was touchy like python
[23:59:06] Echo6: So I figure I would ask before I broke a bunch of stuff with random fixes.