« Back to channel list

#ruby - 14 January 2018

« Back 1 day Forward 1 day »
[00:00:07] jrabe: has joined #ruby
[00:01:23] chocoelho: has joined #ruby
[00:02:13] eightlimbed: has joined #ruby
[00:04:56] alfiemax: has joined #ruby
[00:07:06] jtdoncas: has joined #ruby
[00:07:42] willardg: has joined #ruby
[00:08:22] fmcgeough: has joined #ruby
[00:09:31] c0ncealed: has joined #ruby
[00:10:12] han`: has joined #ruby
[00:11:53] cdg: has joined #ruby
[00:12:04] guardianx: has joined #ruby
[00:12:10] Dimik: has joined #ruby
[00:13:59] cdg: has joined #ruby
[00:14:33] hfp_work: has joined #ruby
[00:15:27] bronson: has joined #ruby
[00:15:54] bkxd: has joined #ruby
[00:17:51] drewmcmillan: has joined #ruby
[00:20:07] rrutkowski: has joined #ruby
[00:21:29] desperek: has joined #ruby
[00:24:56] rrutkowski: has joined #ruby
[00:25:36] splargle: has joined #ruby
[00:26:44] goepsilongo: has joined #ruby
[00:27:42] raatiniemi: has joined #ruby
[00:35:51] belmoussaoui: has joined #ruby
[00:38:52] weaksauce: has joined #ruby
[00:42:39] jtdoncas: has joined #ruby
[00:46:45] mistergibson: has joined #ruby
[00:54:34] rrutkowski: has joined #ruby
[01:04:04] Azure|dc: has joined #ruby
[01:10:29] oleo: has joined #ruby
[01:10:50] ur5us: has joined #ruby
[01:12:24] oleo: has joined #ruby
[01:13:06] ResidentBiscuit: has joined #ruby
[01:14:47] oleo: has joined #ruby
[01:16:18] bronson: has joined #ruby
[01:16:26] oleo: has joined #ruby
[01:17:15] jtdoncas: has joined #ruby
[01:17:57] oleo: has joined #ruby
[01:20:40] Jameser: has joined #ruby
[01:24:59] oleo: has joined #ruby
[01:26:15] jtdoncas: has joined #ruby
[01:27:21] oleo: has joined #ruby
[01:36:02] n0m4d1c: has joined #ruby
[01:36:34] cdg: has joined #ruby
[01:42:06] r3kz: has joined #ruby
[01:44:23] gizmore: php faster than ruby
[01:47:48] jtdoncas: has joined #ruby
[01:48:01] selim: has joined #ruby
[01:48:42] mtkd: has joined #ruby
[01:50:15] apparition: has joined #ruby
[01:50:38] TomyLobo: if that's true, you still wouldn't use php for code that needs to run fast
[01:50:44] TomyLobo: or for anything, for that matter
[01:51:09] TomyLobo: if you need it fast, you write it in C or C++
[01:51:36] Zarthus: if you need it fast, don't use any serverside code and write your entire application in javascript
[01:51:52] TomyLobo: thaaaat depends
[01:52:30] Zarthus: TomyLobo: fast for the server ;)
[01:53:02] TomyLobo: might as well write a regular application then
[01:53:52] baweaver: gizmore: is there a point there?
[01:54:45] baweaver: or are you just trolling?
[02:03:57] dostoyevsky: has joined #ruby
[02:04:54] dostoyevsky: What's the best way to quote my filename if I want to: system "ls -ald #{Dir["*something*"][0]}" ?
[02:06:04] gizmore: baweaver: i am jelous that i may not code ruby at work, so i troll here instead
[02:06:12] gizmore: and php is faster!
[02:06:37] gizmore: doesntbyte: there is a System.quote or somethin
[02:07:19] baweaver: gizmore: it may well be, but it's trolling to randomly come in and say that without it being mentioned at all
[02:07:22] jaequery: has joined #ruby
[02:07:34] gizmore: @ doesntbyte argv = Shellwords.escape("special's.txt")
[02:07:34] gizmore: argv #=> "special\\s.txt"
[02:07:34] gizmore: system("cat " + argv)
[02:08:01] gizmore: @ doesntbyte http://ruby-doc.org/stdlib-2.0.0/libdoc/shellwords/rdoc/Shellwords.html
[02:08:29] gizmore: baweaver: i told you i was trolling.... you were right. i was trolling
[02:12:08] jtdoncas: has joined #ruby
[02:13:25] gizmore: baweaver: but better a (funny) troll a day, than silence?
[02:14:43] ResidentBiscuit: has joined #ruby
[02:17:53] bronson: has joined #ruby
[02:17:59] oleo: has joined #ruby
[02:21:22] jtdoncas: has joined #ruby
[02:27:25] gizmore|2: has joined #ruby
[02:28:45] ResidentBiscuit: has joined #ruby
[02:29:01] gizmore|2: php so such bad syntax... but way faster than ruby
[02:30:14] PresidentBiscuit: has joined #ruby
[02:31:25] JaredR: has joined #ruby
[02:32:27] Resident_: has joined #ruby
[02:33:32] Resident_: has joined #ruby
[02:34:33] ResidentBiscuit: has joined #ruby
[02:35:44] PresidentBiscuit: has joined #ruby
[02:36:50] JaredR: has joined #ruby
[02:37:07] jtdoncas: has joined #ruby
[02:37:57] Resident_: has joined #ruby
[02:39:02] Resident_: has joined #ruby
[02:40:03] ResidentBiscuit: has joined #ruby
[02:40:04] JusticeFries: has joined #ruby
[02:41:19] Resident_: has joined #ruby
[02:42:19] PresidentBiscuit: has joined #ruby
[02:43:30] JaredR: has joined #ruby
[02:44:31] Resident_: has joined #ruby
[02:44:49] Azure: has joined #ruby
[02:44:54] nopolitica: has joined #ruby
[02:45:30] ResidentBiscuit: has joined #ruby
[02:46:39] Resident_: has joined #ruby
[02:47:32] vichib: has joined #ruby
[02:47:41] PresidentBiscuit: has joined #ruby
[02:48:52] JaredR: has joined #ruby
[02:49:11] rrutkowski: has joined #ruby
[02:49:58] Resident_: has joined #ruby
[02:51:00] ResidentBiscuit: has joined #ruby
[02:51:14] alfiemax: has joined #ruby
[02:52:09] Resident_: has joined #ruby
[02:52:27] rrutkowski: has joined #ruby
[02:52:48] guardianx: has joined #ruby
[02:53:05] TomyLobo: has joined #ruby
[02:53:11] PresidentBiscuit: has joined #ruby
[02:54:22] JaredR: has joined #ruby
[02:55:23] Resident_: has joined #ruby
[02:56:25] ResidentBiscuit: has joined #ruby
[02:56:56] jtdoncas: has joined #ruby
[02:57:34] Resident_: has joined #ruby
[02:58:36] PresidentBiscuit: has joined #ruby
[02:58:53] eckhardt: has joined #ruby
[03:00:18] cadillac_: has joined #ruby
[03:00:24] ResidentBiscuit: has joined #ruby
[03:04:42] rrutkowski: has joined #ruby
[03:16:48] Dark_Arc: has joined #ruby
[03:18:43] bronson: has joined #ruby
[03:20:14] jaequery: has joined #ruby
[03:32:29] JusticeFries: has joined #ruby
[03:33:29] jtdoncas: has joined #ruby
[03:38:25] KevinSjoberg: has joined #ruby
[03:41:17] cadillac_: has joined #ruby
[03:44:02] Dark_Arc: has joined #ruby
[03:45:41] nopolitica: has joined #ruby
[03:49:13] alfiemax: has joined #ruby
[03:53:17] alfiemax_: has joined #ruby
[04:00:50] Jameser: has joined #ruby
[04:03:21] ResidentBiscuit: has joined #ruby
[04:05:57] JusticeFries: has joined #ruby
[04:09:51] jaequery: has joined #ruby
[04:11:39] jtdoncas: has joined #ruby
[04:14:41] QualityAddict: has joined #ruby
[04:16:28] craysiii: I've been publishing my gem to rubygems using 'rake release'. Today I wanted to start signing my commits with gpg, and successfully configured git in order to do so. However, I'm wondering if when I run 'rake release', the tag created will be signed as well.
[04:17:15] bkxd: has joined #ruby
[04:19:22] bronson: has joined #ruby
[04:22:31] orbyt_: has joined #ruby
[04:22:48] kapil___: has joined #ruby
[04:29:46] pastorinni: has joined #ruby
[04:30:27] gizmore: craysiii: good question (test)
[04:31:25] gizmore: there were some things being done about ruby gem security the past year(s) .... probably all is fine, but only an expert can answer this (not me)
[04:31:37] alfiemax: has joined #ruby
[04:31:51] MaksimPinigin: has joined #ruby
[04:32:01] rrutkowski: has joined #ruby
[04:33:00] rrutkowski: has joined #ruby
[04:33:48] jtdoncas: has joined #ruby
[04:37:24] craysiii: https://github.com/bundler/bundler/blob/master/lib/bundler/gem_helper.rb#L160 i think i found my answer
[04:42:20] Dykam: has joined #ruby
[04:44:32] gix: has joined #ruby
[04:46:29] nopolitica: has joined #ruby
[04:51:32] vyorkin: has joined #ruby
[04:57:07] keyjoo_: has joined #ruby
[04:57:43] Jameser: has joined #ruby
[04:58:32] splargle: has joined #ruby
[05:03:03] Dykam: has joined #ruby
[05:03:47] jaequery: has joined #ruby
[05:12:03] orbyt_: has joined #ruby
[05:13:41] k0mpa: has joined #ruby
[05:20:18] bronson: has joined #ruby
[05:29:08] abra_ha_m: has joined #ruby
[05:35:52] mikhael_k33hl: has joined #ruby
[05:36:05] mikhael_k33hl: Anyone using concurrent ruby futures with observable? Do we really need to pass in a new object like add_observer(Object.new), can't we pass in an object instantiated prior to adding it to the add_observer method?
[05:36:52] xa0s_: has joined #ruby
[05:36:54] gizmore: sure... why not?
[05:37:41] mikhael_k33hl: gizmore: when I pass in a variable/reference to a previously instantiated object, my script gets stuck on the statement add_observer
[05:37:58] gizmore: gets stuck?
[05:38:02] ozzloy: has joined #ruby
[05:38:03] ozzloy: has joined #ruby
[05:38:12] mikhael_k33hl: gizmore: https://gist.github.com/marzdgzmn/ece514f45d9d6fc0717f6e3c5a4bc8b5
[05:38:33] mikhael_k33hl: gizmore: yeah, basing on the output of puts it only get to the point where it outputs 'weeee'
[05:39:28] gizmore: your obvserved stuff is initialized in another thread?
[05:40:03] govg: has joined #ruby
[05:40:43] mikhael_k33hl: gizmore: oh so can't use it on another one?
[05:41:05] gizmore: it might cause problems :)
[05:41:18] gizmore: not sure yet
[05:41:23] gizmore: you pasted a lot of code
[05:41:40] gizmore: @mirror_observer = MirrorObserver.new
[05:41:49] gizmore: should be available in other thread too
[05:42:34] gizmore: maybe try without a thread
[05:43:50] mikhael_k33hl: gizmore: hehehe, anyway, let's try to binding.irb, thanks though :)
[05:44:00] jaequery: has joined #ruby
[05:45:39] gizmore: i am able to break perfomance with O(n) algos :=
[05:46:41] eb0t: has joined #ruby
[05:47:14] Hanmac: has joined #ruby
[05:47:17] nopolitica: has joined #ruby
[05:48:37] k0mpa: has joined #ruby
[05:50:19] xa0s_: has joined #ruby
[05:53:02] zigzig: has joined #ruby
[05:55:06] MaksimPinigin: has joined #ruby
[05:56:17] Jameser: has joined #ruby
[06:02:51] dinfuehr: has joined #ruby
[06:05:49] Yzguy: has joined #ruby
[06:10:22] JusticeFries: has joined #ruby
[06:11:41] gizmore: Yzguy: hola
[06:14:08] konsolebox: has joined #ruby
[06:17:05] mikhael_k33hl: hmmm I can't seem to rescue json's Failed parsing error . . .
[06:20:46] cschneid_: has joined #ruby
[06:21:00] bronson: has joined #ruby
[06:21:31] jaequery: has joined #ruby
[06:25:11] Nicmavr: has joined #ruby
[06:38:12] ResidentBiscuit: has joined #ruby
[06:39:35] rippa: has joined #ruby
[06:48:11] nopolitica: has joined #ruby
[06:50:57] Jameser: has joined #ruby
[06:52:40] MaksimPinigin: has joined #ruby
[07:01:23] Jameser: has joined #ruby
[07:06:14] alfiemax: has joined #ruby
[07:17:04] Jameser: has joined #ruby
[07:17:53] graaff: has joined #ruby
[07:21:48] bronson: has joined #ruby
[07:24:24] anisha: has joined #ruby
[07:25:18] alex``: has joined #ruby
[07:27:48] Guest95229: has joined #ruby
[07:30:22] djbkd: has joined #ruby
[07:31:13] djbkd: has joined #ruby
[07:37:15] cdg: has joined #ruby
[07:44:27] conta: has joined #ruby
[07:46:52] eb0t: has joined #ruby
[07:48:48] nopolitica: has joined #ruby
[08:02:51] Jameser: has joined #ruby
[08:04:12] apeiros: mikhael_k33hl: are you just making statements or is there a question in there?
[08:05:01] ur5us: has joined #ruby
[08:05:30] Ishido: has joined #ruby
[08:07:03] mikhael_k33hl: apeiros: oh sorry about that, haha . . . I'm using beaneater(https://github.com/beanstalkd/beaneater) and when a job can't be parsed into json object it just outputs the message: "Can't be parsed into json object", I can't even catch or rescue it . . . any idea how I can do it?
[08:08:25] apeiros: now see, that's already vastly different from your original statement. a reproducible peace of code would go a long way. but there's a good chance that it's not an exception you're seeing, hence nothing to rescue.
[08:10:18] ResidentBiscuit: has joined #ruby
[08:11:19] PresidentBiscuit: has joined #ruby
[08:12:20] JaredR: has joined #ruby
[08:13:26] Resident_: has joined #ruby
[08:14:32] Resident_: has joined #ruby
[08:15:33] ResidentBiscuit: has joined #ruby
[08:16:44] PresidentBiscuit: has joined #ruby
[08:17:45] milardovich: has joined #ruby
[08:17:47] JaredR: has joined #ruby
[08:18:53] Resident_: has joined #ruby
[08:22:49] alfiemax: has joined #ruby
[08:23:10] bronson: has joined #ruby
[08:26:10] marr: has joined #ruby
[08:28:41] Emmanuel_Chanel: has joined #ruby
[08:38:38] alfiemax: has joined #ruby
[08:45:04] MaksimPinigin: has joined #ruby
[08:46:16] dionysus69: has joined #ruby
[08:46:39] clemens3: has joined #ruby
[08:47:48] ResidentBiscuit: has joined #ruby
[08:49:35] nopolitica: has joined #ruby
[08:54:56] KeyJoo: has joined #ruby
[08:57:04] garyserj: what does it mean to assign a value to a parameter in the method signature like def a(aa=4) ?
[08:59:02] apeiros: the argument is optional and by default has the value 4
[09:01:30] apeiros: note that `def foo(arg: 2)` and `def foo(arg = 2)` are not the same
[09:02:02] VladGh_: has joined #ruby
[09:02:56] garyserj: yeah i'm aware of dictionaries, thanks
[09:03:02] mtkd: has joined #ruby
[09:03:35] garyserj: hashtable rather
[09:03:47] apeiros: that's not what it is either. even if it looks the same.
[09:06:38] apeiros: those are keyword args. while you can set it by passing a hash, the args themselves aren't a hash. the values end up in the individual args.
[09:08:48] claudiuinberlin: has joined #ruby
[09:09:04] ur5us: has joined #ruby
[09:13:09] cdg: has joined #ruby
[09:14:31] cdg_: has joined #ruby
[09:17:33] quobo: has joined #ruby
[09:23:41] jnyw: has joined #ruby
[09:23:48] bronson: has joined #ruby
[09:23:50] Dimik: has joined #ruby
[09:24:12] miskatonic: has joined #ruby
[09:25:15] nowhere_man: has joined #ruby
[09:41:49] phaul: has joined #ruby
[09:51:46] Uptime: has joined #ruby
[09:52:30] vyorkin: has joined #ruby
[09:57:16] belmoussaoui: has joined #ruby
[10:04:10] anisha: has joined #ruby
[10:05:14] splargle: has joined #ruby
[10:08:49] apparition: has joined #ruby
[10:09:28] govg: has joined #ruby
[10:14:05] amatas: has joined #ruby
[10:22:01] Uptime: has joined #ruby
[10:24:44] bronson: has joined #ruby
[10:27:17] elcontrastador: has joined #ruby
[10:27:39] Ishido: has joined #ruby
[10:41:09] AJA4350: has joined #ruby
[10:41:14] tomphp: has joined #ruby
[10:42:15] milardovich: has joined #ruby
[10:42:30] milardovich: has joined #ruby
[10:45:02] bkxd: has joined #ruby
[10:46:06] Flonk: has joined #ruby
[10:47:39] drewmcmillan: has joined #ruby
[10:47:43] oetjenj: has joined #ruby
[10:48:33] bkxd: has joined #ruby
[10:51:40] MaksimPinigin: has joined #ruby
[10:52:04] InfinityFye: has joined #ruby
[10:52:55] harmaahylje: has joined #ruby
[10:57:04] darkhanb: has joined #ruby
[10:59:36] GremL1N2: has joined #ruby
[11:03:33] nso95: has joined #ruby
[11:03:43] nso95: has left #ruby: ()
[11:07:01] bkxd: has joined #ruby
[11:08:03] _ZerGabriel_: has joined #ruby
[11:09:13] _ZerGabriel_: has joined #ruby
[11:12:15] govg: has joined #ruby
[11:12:25] n0m4d1c: has joined #ruby
[11:16:03] elphe: has joined #ruby
[11:16:18] oetjenj: has joined #ruby
[11:17:04] oetjenj: has joined #ruby
[11:17:50] oetjenj: has joined #ruby
[11:18:39] oetjenj: has joined #ruby
[11:19:24] oetjenj: has joined #ruby
[11:20:03] reber: has joined #ruby
[11:20:10] oetjenj: has joined #ruby
[11:20:25] sameerynho: has joined #ruby
[11:20:56] oetjenj: has joined #ruby
[11:21:42] oetjenj: has joined #ruby
[11:25:26] bronson: has joined #ruby
[11:30:01] howdoi: has joined #ruby
[11:32:09] milardovich: has joined #ruby
[11:32:38] Jameser: has joined #ruby
[11:35:33] claudiuinberlin: has joined #ruby
[11:42:50] biberu: has joined #ruby
[11:45:26] bkxd: has joined #ruby
[11:46:24] bkxd: has joined #ruby
[11:47:47] drewmcmillan: has joined #ruby
[11:51:21] iamarun: has joined #ruby
[12:02:46] Jameser: has joined #ruby
[12:06:21] milardovich: has joined #ruby
[12:11:00] milardovich: has joined #ruby
[12:11:51] milardovich: has joined #ruby
[12:13:02] milardovich: has joined #ruby
[12:13:46] nicesignal: has joined #ruby
[12:17:22] Jameser: has joined #ruby
[12:17:47] milardovich: has joined #ruby
[12:18:53] mtkd: has joined #ruby
[12:21:10] sameerynho: has joined #ruby
[12:22:54] KeyJoo: has joined #ruby
[12:26:14] bronson: has joined #ruby
[12:27:10] milardovich: has joined #ruby
[12:27:38] nopolitica: has joined #ruby
[12:31:55] milardovich: has joined #ruby
[12:36:35] eblip: has joined #ruby
[12:37:11] shinnya: has joined #ruby
[12:38:06] InfinityFye: has joined #ruby
[12:45:06] oleo: has joined #ruby
[12:49:18] oleo: has joined #ruby
[12:53:19] nowhere_man: has joined #ruby
[13:01:57] KevinSjoberg: has joined #ruby
[13:02:01] drewmcmillan: has joined #ruby
[13:05:16] Ishido: has joined #ruby
[13:07:14] cdg: has joined #ruby
[13:13:20] KevinSjoberg: has joined #ruby
[13:20:26] nagos: has joined #ruby
[13:27:10] bronson: has joined #ruby
[13:31:02] oleo: has joined #ruby
[13:31:02] splargle: has joined #ruby
[13:38:23] cdg: has joined #ruby
[13:38:36] Azure: has joined #ruby
[13:41:30] dionysus69: has joined #ruby
[13:44:22] kith: has joined #ruby
[13:46:13] johnpaul: has joined #ruby
[13:49:04] anisha: has joined #ruby
[13:57:12] tomphp: has joined #ruby
[13:59:07] dtzuzu: has joined #ruby
[13:59:15] alex``: has joined #ruby
[14:01:19] vichib: has joined #ruby
[14:02:23] fmcgeough: has joined #ruby
[14:02:35] vichib: has joined #ruby
[14:13:46] sidx64: has joined #ruby
[14:13:48] Ishido: has joined #ruby
[14:13:54] oleo: has joined #ruby
[14:15:12] sidx64: has joined #ruby
[14:16:29] ldepandis: has joined #ruby
[14:22:11] kith_: has joined #ruby
[14:23:56] mtkd: has joined #ruby
[14:26:24] cdg: has joined #ruby
[14:26:59] splargle: has joined #ruby
[14:27:59] tomphp: has joined #ruby
[14:28:22] bronson: has joined #ruby
[14:31:05] cdg_: has joined #ruby
[14:36:10] k0mpa: has joined #ruby
[14:42:58] eblip: has joined #ruby
[14:43:39] my123: has joined #ruby
[14:44:10] alfiemax: has joined #ruby
[14:44:58] my123: has joined #ruby
[14:45:33] kraljev11: has joined #ruby
[14:51:33] kraljev11: has joined #ruby
[14:55:49] mtkd: has joined #ruby
[14:56:59] nicesignal: has joined #ruby
[14:59:44] ltem: has joined #ruby
[15:00:46] MaksimPinigin1: has joined #ruby
[15:02:13] selim_: has joined #ruby
[15:04:48] desperek: has joined #ruby
[15:10:42] Prutheus: has joined #ruby
[15:12:22] Prutheus: Hello. I am on rails. Per default, when I do a redirect to a controller, I can give a notice there which i can show in the erb file as info or so ... now, I wanna give enxt to notice an second text, called error, but I get when I use: "<p id="error_explanation"><%= error %></p>" following error: "undefined local variable or method `error'" called via: "redirect_to scripts_path, error: "'#{@script.name}' already running.""
[15:12:28] Prutheus: But why? how to realize what I wanna do?
[15:19:39] Riddell: has joined #ruby
[15:20:24] faces: has joined #ruby
[15:21:22] nowhere_man: has joined #ruby
[15:26:52] belmoussaoui: has joined #ruby
[15:29:17] bronson: has joined #ruby
[15:31:00] belmoussaoui: has joined #ruby
[15:33:42] sameerynho: has joined #ruby
[15:34:43] roshanavand: has joined #ruby
[15:38:36] goepsilongo: has joined #ruby
[15:41:29] cadillac_: has joined #ruby
[15:42:00] alfiemax: has joined #ruby
[15:48:40] ahrs: has joined #ruby
[15:57:31] fnodeuser: has joined #ruby
[16:01:12] alfiemax: has joined #ruby
[16:06:44] johnpaul: has joined #ruby
[16:11:35] belmoussaoui: has joined #ruby
[16:14:36] drewmcmillan: has joined #ruby
[16:16:41] sidx64: has joined #ruby
[16:16:52] mtkd: has joined #ruby
[16:21:23] dviola: has joined #ruby
[16:22:23] marr: has joined #ruby
[16:29:13] cdg: has joined #ruby
[16:29:41] minimalism: has joined #ruby
[16:30:05] bronson: has joined #ruby
[16:30:14] KevinSjoberg: has joined #ruby
[16:36:57] chocoelho: has joined #ruby
[16:37:08] guille-moe: has joined #ruby
[16:41:13] tomphp: has joined #ruby
[16:50:17] nowhereman_: has joined #ruby
[16:54:19] shtirlic: has joined #ruby
[16:56:09] AJA4350: has joined #ruby
[17:00:08] cdg: has joined #ruby
[17:03:36] za1b1tsu: has joined #ruby
[17:04:02] za1b1tsu: is there someway I can do this subject[:score], subject[:rates], subject[:min], subject[:max]) more rubly like? Like .map or similar?
[17:04:34] za1b1tsu: subject.something { score, rates, min, max }?
[17:07:15] RougeR: has joined #ruby
[17:07:47] alex``: has joined #ruby
[17:08:07] lalomergo: has joined #ruby
[17:12:45] orbyt_: has joined #ruby
[17:12:51] za1b1tsu: Found this subject.attributes.slice("score","rates","min","max").values
[17:13:11] za1b1tsu: is it possible do it with less?
[17:13:27] havenwood: za1b1tsu: values_at
[17:13:33] DTSCode: has joined #ruby
[17:14:51] za1b1tsu: beautifull sucks that doesnt work on active record need to use to_h maybe
[17:14:57] nowhereman_: has joined #ruby
[17:17:03] za1b1tsu: to json actually
[17:18:28] alfiemax_: has joined #ruby
[17:28:25] AJA4350: has joined #ruby
[17:28:50] bmurt: has joined #ruby
[17:30:49] bronson: has joined #ruby
[17:40:52] tomphp: has joined #ruby
[17:42:10] alfiemax: has joined #ruby
[17:49:05] tomphp: has joined #ruby
[17:51:35] Azure|dc: has joined #ruby
[17:56:26] drewmcmillan: has joined #ruby
[17:58:32] n0m4d1c: has joined #ruby
[18:00:38] lalomergo: has joined #ruby
[18:00:49] Mia: has joined #ruby
[18:00:49] Mia: has joined #ruby
[18:01:06] govg: has joined #ruby
[18:01:36] claudiuinberlin: has joined #ruby
[18:02:53] nchambers: has joined #ruby
[18:03:03] KevinSjoberg: has joined #ruby
[18:06:49] nchambers: has joined #ruby
[18:08:57] leitz: has joined #ruby
[18:11:53] jaequery: has joined #ruby
[18:12:57] alfiemax: has joined #ruby
[18:16:55] amatas: has joined #ruby
[18:17:23] jnollette: has joined #ruby
[18:18:34] Azure: has joined #ruby
[18:18:47] fmcgeough: has joined #ruby
[18:19:43] desperek: has joined #ruby
[18:28:24] phate408: has joined #ruby
[18:31:38] bronson: has joined #ruby
[18:32:34] drakko: has joined #ruby
[18:32:47] claudiuinberlin: has joined #ruby
[18:38:21] marr: has joined #ruby
[18:38:33] craysiii: join #bundler
[18:40:56] chouhoulis: has joined #ruby
[18:48:34] conta: has joined #ruby
[18:50:20] Nek: has joined #ruby
[18:50:26] Nek: Hello guys
[18:51:14] anisha: has joined #ruby
[18:51:43] Nek: I'm a newbie with ruby. I just upgraded my version by compiling it.
[18:52:29] Nek: When I try `bundle exec rake db:migrate RAILS_ENV=production` on my app I get this : `Could not find vmstat-2.3.0 in any of the sources`
[18:52:40] Nek: (it's a gitlab upgrade)
[18:53:12] Nek: When I try `bundle exec gem list | grep vmstat`
[18:53:21] Nek: I get `vmstat (2.3.0)`
[18:53:30] Nek: So everything looks allright :(
[18:53:35] Nek: But I cant make it work
[18:53:44] Nek: Any idea what's wrong ?
[18:54:21] JusticeFries: has joined #ruby
[18:56:03] chouhoulis: has joined #ruby
[18:56:25] adaedra: Did you `bundle install`?
[18:57:33] Nek: I used `bundle install --without postgres development test --deployment`
[18:57:45] adaedra: Can you give the output of `which gem` and `which bundle`?
[18:58:29] Nek: which gem: /usr/local/bin/gem
[18:58:41] Nek: which bundle: /usr/local/bin/bundle
[19:00:41] Stazer: has joined #ruby
[19:02:01] adaedra: What does the `vmstat` line looks like in the `Gemfile`?
[19:02:26] therealGent: has joined #ruby
[19:02:41] Nek: gem 'vmstat', '~> 2.3.0'
[19:02:59] jaequery: has joined #ruby
[19:03:18] Nek: adaedra: maybe I should reinstall everything ? (idk how)
[19:04:13] adaedra: that would not explain the problem, but go on if you think it'll solve it
[19:04:52] Nek: How am I suppose to do that ? x)
[19:05:31] adaedra: Can you show `gem env`?
[19:06:22] drewmcmillan: has joined #ruby
[19:07:46] Nek: https://gist.github.com/Nek-/a63885810caf5975b02715004b483990
[19:10:02] adaedra: I see nothing out of place
[19:10:32] Nek: in gem path I see `/home/git/.gem/ruby/2.3.0`
[19:10:43] Nek: But after upgrade the ruby version is 2.3.3
[19:10:56] goatish: has joined #ruby
[19:10:57] Nek: (I'm not sure it's wrong anyway)
[19:11:21] adaedra: That's the abi version
[19:11:23] ruby[bot]: Each Ruby release has actually two versions, the interpreter version and the ABI version. The interpreter version is what commonly is referred to, like 2.1.5. The ABI version is for the binary interface used by compiled extensions and it is what you see in your paths. It's shared among one release s
[19:11:24] ruby[bot]: eries, for example for the Ruby versions 2.1.0 to 2.1.5 the ABI version is 2.1.0.
[19:11:34] shtirlic: has joined #ruby
[19:11:54] Nek: hummmm okkkk
[19:12:16] adaedra: btw, for 2.3 line the latest is 2.3.6
[19:15:39] selim: has joined #ruby
[19:16:45] Nek: So you have no idea why I have the issue ?
[19:16:50] Nek: or how to fix it ?
[19:17:29] Nek: how can I drop dependencies and reinstall them ?
[19:18:01] adaedra: you'd have to `gem uninstall them`
[19:18:10] adaedra: mh, misplaced a `
[19:20:38] Azure: has joined #ruby
[19:21:37] s3nd1v0g1us: has joined #ruby
[19:24:47] tomphp_: has joined #ruby
[19:25:10] Nek: https://gist.github.com/Nek-/4e9d57ac2cb89f9dd8472ed17843d366
[19:25:17] Nek: I assume i did something wrong
[19:26:24] chouhoulis: has joined #ruby
[19:32:28] bronson: has joined #ruby
[19:32:58] sameerynho: has joined #ruby
[19:38:42] oleo: has joined #ruby
[19:40:22] oleo: has joined #ruby
[19:42:24] Azure: has joined #ruby
[19:42:48] Puffball: has joined #ruby
[19:43:00] sidx64: has joined #ruby
[19:44:07] mtkd: has joined #ruby
[19:45:24] cdg: has joined #ruby
[19:46:33] Azure|dc: has joined #ruby
[19:47:04] woodruffw: has joined #ruby
[19:47:04] woodruffw: has joined #ruby
[19:51:06] VladGh: has joined #ruby
[19:52:20] alfiemax: has joined #ruby
[19:56:53] sandelius: has joined #ruby
[19:57:40] chouhoulis: has joined #ruby
[19:58:23] JustFly: has joined #ruby
[19:59:29] elementaru: has joined #ruby
[19:59:58] shaman42: has joined #ruby
[20:04:12] lcarlson: has joined #ruby
[20:04:15] JusticeFries: has joined #ruby
[20:05:03] skweek: has joined #ruby
[20:06:55] jeffreylevesque_: has joined #ruby
[20:10:47] k0mpa: has joined #ruby
[20:11:24] justinfaler: has joined #ruby
[20:12:15] banisterfiend: has joined #ruby
[20:13:30] Axy: has joined #ruby
[20:13:30] Axy: has joined #ruby
[20:13:55] milardovich: has joined #ruby
[20:16:02] shtirlic: has joined #ruby
[20:16:37] tomphp: has joined #ruby
[20:19:55] Dimik: has joined #ruby
[20:26:44] chouhoul_: has joined #ruby
[20:27:49] ur5us: has joined #ruby
[20:30:50] chocoelho: has joined #ruby
[20:31:50] jtdoncas: has joined #ruby
[20:32:13] tomphp_: has joined #ruby
[20:33:42] bronson: has joined #ruby
[20:37:55] belmoussaoui: has joined #ruby
[20:38:48] tomphp: has joined #ruby
[20:41:55] Azure: has joined #ruby
[20:43:33] drewmcmillan: has joined #ruby
[20:43:53] Ishido: has joined #ruby
[20:45:54] hays_: does anyone know of a walkthrough for setting up a ruby project that will be at some point made into a gem? i'm having trouble understanding a sane project structure, etc.
[20:46:20] hays_: so far I have found this command : 'bundle gem project_name' which creates a boilerplate structure
[20:46:50] woodruffw: has joined #ruby
[20:46:50] ltem: has joined #ruby
[20:48:02] belmoussaoui: has joined #ruby
[20:48:24] phaul: http://guides.rubygems.org/make-your-own-gem/
[20:51:31] Mitaka89: has joined #ruby
[20:51:49] fmcgeough: has joined #ruby
[20:53:21] armyriad: has joined #ruby
[20:53:29] Mitaka89: has joined #ruby
[20:54:22] Mitko_: has joined #ruby
[20:54:53] oleo: has joined #ruby
[20:56:06] Mitaka89: has joined #ruby
[20:56:28] oleo: has joined #ruby
[20:57:20] Mitko_: has joined #ruby
[20:57:32] raynold: has joined #ruby
[20:58:58] Mitaka89: has joined #ruby
[21:03:19] zigzig: has joined #ruby
[21:03:58] jtdoncas: has joined #ruby
[21:07:05] Yzguy: has joined #ruby
[21:15:20] orbyt_: has joined #ruby
[21:15:23] r3kz: has joined #ruby
[21:15:42] s3nd1v0g1us: has joined #ruby
[21:16:01] splargle: has joined #ruby
[21:16:12] s3nd1v0g1us: has joined #ruby
[21:16:37] s3nd1v0g1us: has joined #ruby
[21:18:11] al2o3-cr: has joined #ruby
[21:27:37] jnyw: has joined #ruby
[21:28:32] oleo: has joined #ruby
[21:30:38] darkhanb: has joined #ruby
[21:31:36] akryll: has joined #ruby
[21:32:56] milardovich: has joined #ruby
[21:34:30] bronson: has joined #ruby
[21:35:43] cdg: has joined #ruby
[21:39:01] s3nd1v0g1us: has joined #ruby
[21:42:01] ogres: has joined #ruby
[21:42:30] chouhoulis: has joined #ruby
[21:43:04] Junaos: has joined #ruby
[21:44:58] alfiemax: has joined #ruby
[21:45:03] Guest67525: has joined #ruby
[21:49:18] mtkd: has joined #ruby
[21:56:38] quobo: has joined #ruby
[21:58:25] fmcgeough: has joined #ruby
[22:00:06] milardovich: has joined #ruby
[22:01:12] thejamespinto: has joined #ruby
[22:03:38] oleo: has joined #ruby
[22:04:08] Azure: has joined #ruby
[22:09:05] Vapez: has joined #ruby
[22:10:14] elcontrastador: has joined #ruby
[22:11:34] herbmillerjr: has joined #ruby
[22:13:37] milardovich: has joined #ruby
[22:14:48] tomphp: has joined #ruby
[22:17:14] fmcgeough: has joined #ruby
[22:24:24] darkhanb_: has joined #ruby
[22:25:05] cdg: has joined #ruby
[22:27:28] jhack: has joined #ruby
[22:35:20] bronson: has joined #ruby
[22:36:53] mostlybadfly: has joined #ruby
[22:37:03] zigzig: has joined #ruby
[22:37:15] nadir: has joined #ruby
[22:38:26] cdg: has joined #ruby
[22:41:22] jp: has joined #ruby
[22:41:23] Azure: has joined #ruby
[22:41:55] jp: has joined #ruby
[22:44:17] alfiemax: has joined #ruby
[22:45:36] banisterfiend: has joined #ruby
[22:47:39] pharma_joe: has joined #ruby
[22:48:10] RougeR: has joined #ruby
[22:52:26] jhack: has joined #ruby
[22:53:18] n0m4d1c: has joined #ruby
[22:55:56] hays_: is it good form to make the initialize just be yield self if block_given?
[22:59:32] hays_: or maybe i should just use new.tap?
[23:02:07] akryll: has left #ruby: ()
[23:04:51] Riddell: has joined #ruby
[23:05:41] k0mpa: has joined #ruby
[23:05:42] orbyt_: has joined #ruby
[23:08:38] hays_: hmm.. are these the same ? https://bpaste.net/show/b2fda63f800f
[23:11:55] Yzguy: has joined #ruby
[23:12:16] Zarthus: not identical, but close enough
[23:12:25] hays_: what's the difference?
[23:15:18] al2o3-cr: the latter will create an anonymous class that won't be used.
[23:16:18] hays_: so the latter will actually be grandchild of Struct
[23:18:02] al2o3-cr: hays_: well the superclass of the latter will be an anonymous class the former being Struct.
[23:18:43] hays_: does Struct.new create a class that is a child of struct?
[23:20:33] hays_: whats kind of a mystery to me is how .new is creating a class?
[23:20:43] fnodeuser: has left #ruby: ()
[23:20:55] hays_: im used to it creating an object
[23:21:30] al2o3-cr: it returns a struct class
[23:22:08] al2o3-cr: then when you intialize it returns an instance.
[23:22:29] phaul: has joined #ruby
[23:23:46] hays_: so if I do foo=[1,2,3].. I can't then do Class Bar < foo;end
[23:24:11] hays_: but isn't foo an instance of Array?
[23:25:00] al2o3-cr: hays_: Struct.new doesn't return an instance.
[23:26:00] al2o3-cr: if you read the first two paragraphs of the Struct docs everything should become clear.
[23:26:11] al2o3-cr: &ri Struct.new hays_
[23:26:11] `derpy: hays_: http://ruby-doc.org/core-2.4.1/Struct.html#method-c-new
[23:26:37] hays_: im looking at it. im just confused how .new can return a class
[23:26:52] hays_: wouldn't it have to return an object?
[23:30:14] jtdoncas: has joined #ruby
[23:30:45] jacm93: has joined #ruby
[23:31:56] al2o3-cr: hays_: don't forget core classes are written in C.
[23:32:01] hays_: i thought class initializers had to return instances of that class
[23:32:12] woodruffw: has joined #ruby
[23:32:36] al2o3-cr: usually the do.
[23:33:19] Keltia: has joined #ruby
[23:34:13] HULK_SMASH: has joined #ruby
[23:35:36] hays_: so struct is doing something that would be impossible if written in ruby
[23:35:55] hays_: a bit of a special case
[23:36:16] bronson: has joined #ruby
[23:36:17] al2o3-cr: not impossible :) but yeah what you said.
[23:38:59] HULK_SMASH: has left #ruby: ()
[23:39:19] cadillac_: has joined #ruby
[23:42:59] al2o3-cr: it might also help reading Class docs too.
[23:43:06] al2o3-cr: &ri Class.new hays_
[23:43:06] `derpy: hays_: http://ruby-doc.org/core-2.4.1/Class.html#method-c-new
[23:47:59] banisterfiend: has joined #ruby
[23:48:55] banisterfiend: hi can someone tell me what’s wrong with this?: grep -R fork . —include=“*.{c,h}”
[23:50:08] Zarthus: the smart qouotes, the fact this is #ruby, and the mac double-line thing
[23:50:09] ZerGabriel: has joined #ruby
[23:50:10] ruby[bot]: +b ZerGabriel!*@*$#ruby-banned
[23:50:10] ruby[bot]: ruby[bot] kicked ZerGabriel: banned before
[23:54:42] mtkd: has joined #ruby
[23:58:00] al2o3-cr: banisterfiend: grep --include=\*.{c,h} -R . -e fork
[23:58:40] guardianx: has joined #ruby