« Back to channel list

#ruby - 21 August 2018

« Back 1 day Forward 1 day »
[00:00:50] eckhardt: has joined #ruby
[00:02:52] akaiiro: has joined #ruby
[00:03:51] s2013: has joined #ruby
[00:07:33] arescorpio: has joined #ruby
[00:13:41] Guest23176: has joined #ruby
[00:15:43] eckhardt: has joined #ruby
[00:16:26] s2013: has joined #ruby
[00:17:19] apeiros: has joined #ruby
[00:23:26] Guest23176: has joined #ruby
[00:32:27] akaiiro: has joined #ruby
[00:40:21] orbyt_: has joined #ruby
[00:51:36] apeiros: has joined #ruby
[00:51:45] nowhere_man: has joined #ruby
[01:08:23] Guest23176: has joined #ruby
[01:12:00] cadillac_: has joined #ruby
[01:16:35] akaiiro: has joined #ruby
[01:24:11] _whitelogger: has joined #ruby
[01:25:56] apeiros: has joined #ruby
[01:41:39] duderonomy: has joined #ruby
[01:48:35] Guest23176: has joined #ruby
[01:58:37] Guest23176: has joined #ruby
[02:01:16] apeiros: has joined #ruby
[02:08:38] s2013: has joined #ruby
[02:09:45] faitswulff: has joined #ruby
[02:11:59] apeiros: has joined #ruby
[02:13:20] Guest23176: has joined #ruby
[02:14:38] torbo: has joined #ruby
[02:18:21] Guest23176: has joined #ruby
[02:28:57] Creatornator: has joined #ruby
[02:31:38] t0xik: has joined #ruby
[02:32:47] \void: has joined #ruby
[02:38:21] darkhanb: has joined #ruby
[02:44:02] za1b1tsu: has joined #ruby
[02:44:23] torbo: has left #ruby: ("ERC (IRC client for Emacs 26.1)")
[02:47:52] apeiros: has joined #ruby
[02:57:06] apeiros: has joined #ruby
[02:58:22] Guest23176: has joined #ruby
[03:00:31] cadillac_: has joined #ruby
[03:05:28] sspreitz: has joined #ruby
[03:10:56] braincrash: has joined #ruby
[03:12:18] mroutis: has joined #ruby
[03:28:24] akaiiro: has joined #ruby
[03:31:26] apeiros: has joined #ruby
[03:38:21] Guest23176: has joined #ruby
[03:47:22] apeiros: has joined #ruby
[03:50:13] DarthGandalf: has joined #ruby
[04:04:30] sparch__: has joined #ruby
[04:05:10] apeiros: has joined #ruby
[04:15:11] _whitelogger: has joined #ruby
[04:26:01] apeiros: has joined #ruby
[04:28:22] Guest23176: has joined #ruby
[04:31:07] cadillac_: has joined #ruby
[04:31:19] Creatornator: has joined #ruby
[04:37:05] apeiros: has joined #ruby
[04:40:48] jidar: ... hours old!
[04:49:38] cadillac_: has joined #ruby
[04:50:56] connor_goodwolf: has joined #ruby
[05:00:13] pabs: has joined #ruby
[05:08:20] Guest23176: has joined #ruby
[05:14:52] dbz: has joined #ruby
[05:18:00] apeiros: has joined #ruby
[05:19:26] Tempesta: has joined #ruby
[05:23:25] Guest23176: has joined #ruby
[05:24:26] dellavg: has joined #ruby
[05:27:36] SeepingN: has joined #ruby
[05:34:22] apeiros: has joined #ruby
[05:40:37] apeiros: has joined #ruby
[05:43:18] dbz: has joined #ruby
[05:49:10] sauvin: has joined #ruby
[06:02:11] funnel: has joined #ruby
[06:06:25] gigetoo: has joined #ruby
[06:07:02] dionysus69: has joined #ruby
[06:08:22] Guest23176: has joined #ruby
[06:11:48] reber: has joined #ruby
[06:14:58] eb0t: has joined #ruby
[06:16:58] eblip: has joined #ruby
[06:23:08] dbz: has joined #ruby
[06:28:07] aupadhye_: has joined #ruby
[06:45:25] Freshnuts: has joined #ruby
[07:07:49] redlegion: has joined #ruby
[07:08:21] Guest23176: has joined #ruby
[07:09:50] kke: klass1 = Class.new { FOO = :bar }; klass2 = Class.new { FOO = :bar } <-- this gives "warning: already initialized constant FOO". can't anonymous classes have private constants?
[07:12:38] kke: and by "private" i mean "their own"
[07:14:26] yohji: has joined #ruby
[07:15:05] ikbenhet: has joined #ruby
[07:19:39] clemens3: has joined #ruby
[07:24:34] dbz: has joined #ruby
[07:26:46] Radar: kke: that code defines a top level constant called FOO twice.
[07:26:55] Radar: you might think that klass1::FOO would work, but it does not.
[07:27:45] Radar: can I ask: why are you defining classes like this?
[07:28:05] kerunaru: has joined #ruby
[07:28:52] TomyWork: has joined #ruby
[07:31:29] dbz: has joined #ruby
[07:31:29] burgestrand: has joined #ruby
[07:39:07] Bish: has joined #ruby
[07:39:16] Bish: what would i use if i use ruby only to invoke a script?
[07:39:21] Bish: system("") ?
[07:39:35] Bish: i want to run unicorn from ruby.. (because i can calculate the paths only in ruby)
[07:43:51] burgestrand: Bish exec, I'd say
[07:44:05] burgestrand: Bish it replaces the currently running process with the one invoked
[07:44:12] Bish: that sounds good
[07:44:22] Bish: who in the heck came up with that config.ru shit it sucks balls
[07:44:25] Bish: anyone else hates it?
[07:52:10] ferhaty: has joined #ruby
[07:53:06] mikecmpbll: has joined #ruby
[07:53:22] Guest23176: has joined #ruby
[07:55:38] hahuang65_: has joined #ruby
[08:03:42] kke: radar: dynamic loading of stuff with a light DSL, something like `Addon.describe "addon_name" { def execute { } }`. I think i need to do something fancier than `Class.new(AddonBase, &block)` to allow them to have their own constants :(
[08:05:24] ikbenhet: has joined #ruby
[08:06:32] Dbugger: has joined #ruby
[08:07:25] Caius: has joined #ruby
[08:08:32] Guest23176: has joined #ruby
[08:10:15] kke: maybe: `klass = Class.new(AddonBase); Addons.const_set(klassify(name), klass); klass.class_exec(&block)`
[08:11:32] kke: hey i think it worked
[08:12:40] nikivi: has joined #ruby
[08:12:48] Zaab1t: has joined #ruby
[08:14:45] kke: no it did not.
[08:21:24] venmx: has joined #ruby
[08:21:26] burgestrand: has joined #ruby
[08:23:00] tty: has joined #ruby
[08:23:33] kke: maybe i can trick the block binding
[08:31:58] teclator: has joined #ruby
[08:37:43] discopatrick: has joined #ruby
[08:41:11] drale2k_: has joined #ruby
[08:44:09] rindolf: has joined #ruby
[08:44:25] rindolf: Hi all! Please help with http://paste.debian.net/1038710/
[08:45:54] rindolf: i cannot find bigdecimal even tho it is installed
[08:46:12] burgestrand: has joined #ruby
[08:49:42] Beams: has joined #ruby
[08:51:08] nowhere_man: has joined #ruby
[08:52:11] kke: rindolf: when using bundle, you can't use any gems that are not listed in the gemfile. so if you `gem install bigdecimal` and then do `bundle exec bin/validate`, it doesn't see the bigdecimal because it's not listed in the gemfile.
[08:54:39] Nicmavr: has joined #ruby
[08:55:27] rindolf: kke: thanks
[08:57:29] kke: Bish: yes, config.ru and ball sucking are things that constantly appear together. "rackup" joins in occasionally.
[09:00:09] Dbugger: has joined #ruby
[09:01:37] jottr: has joined #ruby
[09:13:40] tristanp: has joined #ruby
[09:24:34] t0xik: has joined #ruby
[09:25:13] tty: has joined #ruby
[09:39:43] drale2k_: has joined #ruby
[09:41:51] venmx: has joined #ruby
[09:45:57] sina: has joined #ruby
[09:47:55] yohji: has joined #ruby
[09:51:24] rindolf: has joined #ruby
[09:58:24] yohji: has joined #ruby
[10:00:42] kke: hmm do i have to use some sort of ruby2ruby thing then. or somehow try to snatch the source using block.source_location and class_eval that as a string
[10:00:49] kke: no, can't use the block at all
[10:13:48] apeiros: has joined #ruby
[10:16:06] tristanp: has joined #ruby
[10:24:12] _whitelogger: has joined #ruby
[10:28:51] jhass: has joined #ruby
[10:29:04] donofrio: has joined #ruby
[10:29:31] kapil___: has joined #ruby
[10:35:00] Zarthus: has joined #ruby
[10:41:11] SuperTux88: has joined #ruby
[10:45:00] GodFather: has joined #ruby
[10:57:17] ikbenhet: has joined #ruby
[11:02:13] venmx: has joined #ruby
[11:06:24] alex``: has joined #ruby
[11:07:35] alex``: has joined #ruby
[11:10:15] burgestrand: has joined #ruby
[11:21:53] apparition: has joined #ruby
[11:24:49] drale2k_: has joined #ruby
[11:43:08] AJA4350: has joined #ruby
[11:45:34] GodFather: has joined #ruby
[11:57:45] shadeslayer: has joined #ruby
[11:58:52] DTZUZO: has joined #ruby
[12:00:19] ujjain: has joined #ruby
[12:04:49] peacetreaty: has joined #ruby
[12:05:52] faitswulff: has joined #ruby
[12:06:41] nowhere_man: has joined #ruby
[12:07:01] apeiros: hi peacetreaty
[12:07:17] livcd: i apeiros
[12:07:25] peacetreaty: I wrote a gem that offers bindings for the linux statx() systemcall. I used and modified a lot of code of the File::Stat-Class(ruby-core/file.c). can anybody help me out with some questions about the licensing?
[12:07:41] onizu: has joined #ruby
[12:07:57] onizu: Does anyone work with sketchup ruby?
[12:08:12] livcd: Anyone tried imba ?
[12:08:27] livcd: I never got into coffeescript but imba looks nice
[12:18:12] thy0: has joined #ruby
[12:19:17] Zaab1t: has joined #ruby
[12:20:54] kloeri: has joined #ruby
[12:22:44] jottr: has joined #ruby
[12:37:04] beefjoe: has joined #ruby
[12:38:37] rindolf: peacetreaty: hi
[12:40:48] rindolf: peacetreaty: https://github.com/ruby/ruby/blob/trunk/file.c - no licence here
[12:41:22] peacetreaty: i saw that. that's why i am asking
[12:42:09] peacetreaty: do you think that i am good if i just mention in my copyright-disclaimer that parts of my code are from file.c?
[12:45:04] peacetreaty: in the file COPYING, i found out that ruby is copyrighted BSDL. so i guess that file.c might also be under BSDL
[12:58:07] Creatornator: has joined #ruby
[13:07:16] thy0_: has joined #ruby
[13:09:06] cadillac_: has joined #ruby
[13:22:54] ineb: peacetreaty: i think you are right
[13:29:05] maasha: has joined #ruby
[13:30:03] drale2k_: has joined #ruby
[13:30:24] maasha: Howdy, how do you freeze a docstring? MYDOCST = <<FOO; blabla; FOO ?
[13:30:56] g-: has joined #ruby
[13:35:03] apeiros: maasha: the string literal ends after the <<FOO
[13:35:13] apeiros: so: foo = <<FOO.freeze\nyourtext\nFOO
[13:37:06] maasha: apeiros: gotit
[13:41:15] venmx: has joined #ruby
[13:42:05] KevinSjoberg: has joined #ruby
[13:45:00] krawchyk: has joined #ruby
[13:45:38] dellavg: has joined #ruby
[13:49:45] orbyt_: has joined #ruby
[13:50:34] krawchyk: has joined #ruby
[13:50:42] ikbenhet: has joined #ruby
[13:51:44] bmurt: has joined #ruby
[13:55:12] bswinnerton: has joined #ruby
[14:01:44] faitswulff: has joined #ruby
[14:01:56] krawchyk: has joined #ruby
[14:02:08] clemens3: has joined #ruby
[14:07:28] burgestrand: has joined #ruby
[14:10:54] faitswulff: has joined #ruby
[14:14:05] Rapture: has joined #ruby
[14:19:10] Creatornator: has joined #ruby
[14:26:24] ikbenhet: has joined #ruby
[14:29:30] Inline: has joined #ruby
[14:34:00] [Butch]: has joined #ruby
[14:35:45] mynameisdebian: has joined #ruby
[14:37:53] IanMalcolm: has joined #ruby
[14:40:52] faitswulff: has joined #ruby
[14:55:44] rippa: has joined #ruby
[14:57:27] alex``: has joined #ruby
[15:00:01] alex``: has joined #ruby
[15:01:25] krawchyk: has joined #ruby
[15:23:17] polishdub: has joined #ruby
[15:23:42] mroutis: has joined #ruby
[15:33:47] drale2k_: has joined #ruby
[15:36:21] arekushi: has joined #ruby
[15:38:11] nicesignal: has joined #ruby
[15:40:57] dionysus69: has joined #ruby
[15:41:33] TheBloke-: has joined #ruby
[15:45:59] irick: has joined #ruby
[15:49:25] Guest2908: has joined #ruby
[15:50:32] Scient: has joined #ruby
[15:53:06] jottr: has joined #ruby
[15:57:10] sonOfRa: has joined #ruby
[16:11:01] kapil___: has joined #ruby
[16:15:01] conta1: has joined #ruby
[16:15:42] jcarl43: has joined #ruby
[16:18:12] jcarl43: has joined #ruby
[16:18:42] darkhanb: has joined #ruby
[16:20:25] bmurt: has joined #ruby
[16:22:15] conta1: has joined #ruby
[16:23:12] teej: has joined #ruby
[16:24:52] Mike11: has joined #ruby
[16:26:08] dviola: has joined #ruby
[16:30:55] Fr4n: has joined #ruby
[16:42:45] r29v: has joined #ruby
[16:43:42] druonysus: has joined #ruby
[16:48:18] orbyt_: has joined #ruby
[16:49:39] IanMalcolm: has joined #ruby
[16:56:13] [Butch]: has joined #ruby
[17:06:23] apeiros: has joined #ruby
[17:08:23] Guest23176: has joined #ruby
[17:10:46] apeiros: has joined #ruby
[17:12:14] dionysus70: has joined #ruby
[17:16:05] mroutis: has joined #ruby
[17:19:52] Creatornator: has joined #ruby
[17:20:30] nikivi: has joined #ruby
[17:28:30] Guest23176: has joined #ruby
[17:30:30] eckhardt: has joined #ruby
[17:31:56] wild_buffalo: has joined #ruby
[17:41:14] guest5645616: has joined #ruby
[17:43:32] Guest23176: has joined #ruby
[17:46:10] nowhere_man: has joined #ruby
[17:51:40] mynameisdebian: has joined #ruby
[17:53:38] Guest23176: has joined #ruby
[17:54:28] alex``: has joined #ruby
[17:58:50] oz: has joined #ruby
[18:00:24] yxhuvud: has joined #ruby
[18:00:31] lazyatom: has joined #ruby
[18:02:03] gothicsouth: has joined #ruby
[18:04:40] Alina-malina: has joined #ruby
[18:12:04] lomex: has joined #ruby
[18:28:48] dellavg: has joined #ruby
[18:33:40] bmurt: has joined #ruby
[18:36:14] eckhardt: has joined #ruby
[18:38:34] agrecascino: has joined #ruby
[18:41:29] ghormoon: has joined #ruby
[18:42:59] brodul: has joined #ruby
[18:44:17] Seich: has joined #ruby
[18:45:54] Lloyd: has joined #ruby
[18:46:21] leonthemisfit: has joined #ruby
[18:46:27] S007: has joined #ruby
[18:46:43] shoogz: has joined #ruby
[18:47:08] vqrs: has joined #ruby
[18:47:12] jokester: has joined #ruby
[18:47:15] Flonk: has joined #ruby
[18:47:37] justinmrkva: has joined #ruby
[18:47:52] Scient: has joined #ruby
[18:51:30] gremax: has joined #ruby
[18:53:24] Guest23176: has joined #ruby
[18:56:04] za1b1tsu: has joined #ruby
[18:58:41] Guest23176: has joined #ruby
[18:58:48] apeiros: has joined #ruby
[19:03:15] cthulchu: has joined #ruby
[19:04:10] Dark_Arc: has joined #ruby
[19:05:44] ivanskie: has joined #ruby
[19:08:45] gigetoo: has joined #ruby
[19:13:27] venmx: has joined #ruby
[19:13:50] mkroman: has joined #ruby
[19:21:14] SeepingN: has joined #ruby
[19:23:16] Creatornator: has joined #ruby
[19:23:19] mikecmpbll: has joined #ruby
[19:31:08] apeiros: has joined #ruby
[19:31:51] sameerynho: has joined #ruby
[19:31:51] apeiros: has joined #ruby
[19:35:35] EvilJStoker: has joined #ruby
[19:36:44] creat: has joined #ruby
[19:36:52] spiette: has joined #ruby
[19:36:54] Nicmavr: has joined #ruby
[19:38:13] yokel: has joined #ruby
[19:39:02] krasnus: has joined #ruby
[19:42:55] Mike11: Hello all
[19:43:00] mniip: has joined #ruby
[19:43:02] z3uS: has joined #ruby
[19:43:15] Mike11: What is the best way to check if a Pathname is child of another one?
[19:43:32] Neptu: has joined #ruby
[19:43:54] Tharbakim: has joined #ruby
[19:45:46] jp: has joined #ruby
[19:45:48] dbz: has joined #ruby
[19:46:18] xMopx: has joined #ruby
[19:46:19] Vircung: has joined #ruby
[19:47:38] wnd: has joined #ruby
[19:49:08] arooni: has joined #ruby
[19:49:29] chihhsin: has joined #ruby
[19:49:47] Liothen: has joined #ruby
[19:49:58] dbz: has joined #ruby
[19:50:02] zipkid: has joined #ruby
[19:50:38] bove: has joined #ruby
[19:50:39] strmpnk: has joined #ruby
[19:50:40] bmurt: has joined #ruby
[19:52:03] peacetreaty: Mike11 maybe File.fnmatch
[19:52:11] peacetreaty: https://ruby-doc.org/core-2.1.5/File.html#method-c-fnmatch
[19:52:25] dbz: has joined #ruby
[19:52:53] SolarAquarion: has joined #ruby
[19:53:31] lypsis: has joined #ruby
[19:53:36] Guest23176: has joined #ruby
[19:53:56] darix: peacetreaty: uhm
[19:54:09] darix: why not full_path.start_with? dirname
[19:54:39] darix: maybe run File.expand_path on both before
[19:54:48] Apocalypse: has joined #ruby
[19:55:00] darix: Mike11: or do you only care about direct parent relationship?
[19:55:46] Mike11: darix: no, I consider my pathname to be a child even if it is in a sub-directory
[19:56:14] darix: '/etc/sysconfig/kernel'.start_with? '/etc'
[19:56:17] darix: >>> '/etc/sysconfig/kernel'.start_with? '/etc'
[19:56:27] darix: so the bot napping again?
[19:56:28] RedNifre: has joined #ruby
[19:56:39] RedNifre: Good evening.
[19:56:47] darix: >>>> '/etc/sysconfig/kernel'.start_with? '/etc'
[19:56:50] bauruine: has joined #ruby
[19:56:53] darix: apeiros: ?
[19:56:56] RedNifre: What's the simplest way to send a tweet from a script?
[19:57:05] darix: RedNifre: a ruby twitter library
[19:57:41] darix: https://rubygems.org/search?utf8=%E2%9C%93&query=twitter
[19:57:43] RedNifre: darix I looked at those, they look pretty heavy weight... I just want to send tweets, nothing more... so there is no simpler way than to get one of those huge libraries?
[19:57:44] dbz: has joined #ruby
[19:57:49] Mike11: darix: I think that an expand_path followed by start_with? is good enough for me
[19:57:56] Mike11: thanks darix peacetreaty :)
[19:58:00] RedNifre: oh well, heavy twitter gem it is then.
[19:58:07] darix: RedNifre: well you need to handle oauth and all the jazz :)
[19:58:44] RedNifre: hm, I guess once you handled oauth and all that, just doing a "you can send tweets" library with that feels like wasted work :)
[19:58:50] mynameisdebian: has joined #ruby
[20:02:04] heyimwill: has joined #ruby
[20:02:28] jtperreault: has joined #ruby
[20:05:05] lazyatom: Hey folks -- if you've been meaning to check out Mastodon, I've just set up an instance especially for us: https://ruby.social
[20:07:12] dbz: has joined #ruby
[20:12:11] elomatreb_: has joined #ruby
[20:12:23] MuffinPimp_: has joined #ruby
[20:12:31] ghoti_: has joined #ruby
[20:12:45] tfittsy: has joined #ruby
[20:13:42] argoneus_: has joined #ruby
[20:15:15] funnel_: has joined #ruby
[20:19:04] mynameisdebian: has joined #ruby
[20:20:02] woodruffw: has joined #ruby
[20:21:02] syndikate: has joined #ruby
[20:22:02] apeiros: hi darix. what's up?
[20:24:33] ruby[bot]: apeiros: # => "test" (https://eval.in/1049625)
[20:32:19] go|dfish: has joined #ruby
[20:33:59] tty: has joined #ruby
[20:38:23] Guest23176: has joined #ruby
[20:44:14] hsiktas: has joined #ruby
[20:45:16] t0x: has joined #ruby
[20:46:31] RedNifre: has joined #ruby
[20:53:00] mynameisdebian: has joined #ruby
[20:55:12] r29v: has joined #ruby
[20:55:15] mniip: has joined #ruby
[20:55:59] Junaos: has joined #ruby
[20:58:29] Guest23176: has joined #ruby
[21:04:48] code_zombie: has joined #ruby
[21:19:17] kerunaru: has joined #ruby
[21:23:11] snickers: has joined #ruby
[21:37:33] jottr: has joined #ruby
[21:38:21] dbz: has joined #ruby
[21:49:04] scott4000: has joined #ruby
[21:53:23] Guest23176: has joined #ruby
[21:54:55] dbz: has joined #ruby
[21:58:47] jcarl43: has joined #ruby
[21:59:13] dbz: has joined #ruby
[22:05:26] mjacob: is there a way to set a breakpoint in the debugger for every time a object of a specific class was allocated?
[22:08:33] Guest23176: has joined #ruby
[22:09:53] dbz: has joined #ruby
[22:14:55] Creatornator: has joined #ruby
[22:17:48] sameerynho: has joined #ruby
[22:18:32] Guest23176: has joined #ruby
[22:26:59] dbz: has joined #ruby
[22:33:39] Guest23176: has joined #ruby
[22:34:33] havenwood: mjacob: what debugger?
[22:34:44] havenwood: mjacob: You can use TracePoint to do that sort of thing.
[22:35:43] havenwood: mjacob: https://docs.ruby-lang.org/en/2.5.0/TracePoint.html
[22:35:52] moei: has joined #ruby
[22:36:05] havenwood: mjacob: Here's an example that warns whenever a new Mushroom is instantiated: https://gist.github.com/havenwood/3775688dd3368824ddcd50ca9d88b446
[22:36:07] mjacob: havenwood: i'm usually using pry, but would be fine using another tool
[22:36:33] havenwood: mjacob: Replace `warn 'OMGWTFBBQ'` in my ^ example with `binding.pry`.
[22:36:56] havenwood: mjacob: And Mushroom with your class name. :-)
[22:37:26] mjacob: havenwood: would it work with "trace.method_id == :instantiate"?
[22:37:43] havenwood: mjacob: Yes, one of those will follow each :new.
[22:38:10] havenwood: mjacob: #<TracePoint:c_call `new'...> followed by #<TracePoint:c_call `initialize'...>
[22:38:38] havenwood: mjacob: But :initialize, not :instantiate.
[22:39:27] havenwood: mjacob: And then it's an instance of Mushroom, not the Class Mushroom. But you can do it for whatever receiver and method you'd like.
[22:39:50] mjacob: havenwood: sorry, i'm a bit confused about all the different ways of instantiating an object. ;) my problem is that activerecord creates objects in a way that 'initialize' is not called
[22:40:45] IanMalcolm: has joined #ruby
[22:40:54] mjacob: ah, i think it's the 'allocate' method
[22:40:57] havenwood: mjacob: Ahh.
[22:41:30] havenwood: mjacob: Is allocate an instance or class method?
[22:41:58] havenwood: I think it's a class method, but I can't recall.
[22:42:27] havenwood: mjacob: if it was an instance method: binding.pry if trace.self.instance_of?(Mushroom) && trace.method_id == :allocate
[22:42:46] havenwood: mjacob: or i think it's a class method: binding.pry if trace.self == Mushroom && trace.method_id == :allocate
[22:43:05] mjacob: yes, activerecord calls klass.allocate, so it should be a class method
[22:43:26] Guest23176: has joined #ruby
[22:44:34] havenwood: mjacob: Or maybe just alias :allocate to :old_allocate and define and :allocate method with a binding.pry.
[22:44:47] havenwood: mjacob: Or subclass and use super. Or the observer pattern.
[22:45:29] mjacob: i'll try it tomorrow, in any case thank you for pointing me to TracePoint
[22:45:32] havenwood: mjacob: If it's just debugging, I'd personally probably alias and redefine allocate with a binding.pry.
[22:45:35] havenwood: mjacob: No prob!
[22:45:53] havenwood: super; binding.pry
[22:46:05] FernandoBasso: has joined #ruby
[22:49:43] TheBloke: has joined #ruby
[22:50:35] druonysus: has joined #ruby
[22:54:22] baweaver: has joined #ruby
[22:58:56] ziggylazer: has joined #ruby
[23:01:55] r29v: has joined #ruby
[23:05:31] nofxx1: has joined #ruby
[23:07:55] za1b1tsu: has joined #ruby
[23:08:08] arooni: has joined #ruby
[23:13:53] herbmillerjr: has joined #ruby
[23:16:58] s2013: has joined #ruby
[23:17:00] TheBloke: has joined #ruby
[23:19:55] dbz: has joined #ruby
[23:28:15] Guest23176: has joined #ruby
[23:30:21] r29v: has joined #ruby
[23:38:29] Guest23176: has joined #ruby
[23:40:08] JoshS: has joined #ruby
[23:43:55] mrush: has joined #ruby
[23:47:28] nofxx1: has joined #ruby
[23:48:09] NightMonkey: has joined #ruby
[23:48:24] Guest23176: has joined #ruby
[23:48:27] Creatornator: has joined #ruby
[23:52:54] vondruch: has joined #ruby
[23:53:52] dbz: has joined #ruby