PT[m]1 has joined #jruby
<byteit101[m]> Is there a standard for custom pry/irb ".irbrc" locations when embedded in other products?
<nilsding> irb makes use of the IRBRC env var if set. not sure if pry does something similar, I haven't used it in a while now https://gist.github.com/nilsding/126672086a61b484f1bda20a2b0cb3e2
<byteit101[m]> Sure, but are you aware of what apps do with that to play nice with the ecosystem? ie: just load .myapp_irbrc? load main .irbrc and .myapp-irbrc? something else?
<byteit101[m]> is there a way to patch the "inspect" method for all java classes, or at least those under a specific package?
<byteit101[m]> (from the ruby side, that is)
<byteit101[m]> My first thought was I could hook JavaProxyMethods but it seems to be defined per-class?
<byteit101[m]> headius: ^
<headius> byteit101: reopening java.lang.Object not high up enough?
<byteit101[m]> nope. works on object but not children
<byteit101[m]> headius: that was what i tried first as i kniw inheritance works for jrubyfx needs, but iwas surprised it doesnt work here
<headius> enebo: I reworked closure field on CallBase to never get a null and it seems to be functional locally
<headius> I will push this as a PR and see how badly it breaks
<headius> byteit101: I believe we have overridden it on a few types but I'd have expected that to work too
<enebo[m]> headius: looks good
<enebo[m]> I am looking at recording module includes so all includes pick up later changes
<enebo[m]> mostly just rereading MRI code
<byteit101[m]> headius: is exception one of those?
<headius> it definitely works for classes we don't have other specialized inspect logic
<headius> $ jruby -e 'class java::lang::Object; def inspect; "boo"; end; end; p java.lang.System.out'
<headius> boo
<headius> Exception or Throwable probably does have its own inspect
<byteit101[m]> augh. so much for a neutral test class...
<headius> #<UnboundMethod: Java::JavaLang::Throwable#inspect()>
<headius> $ jruby -e 'p java.lang.Throwable.instance_method(:inspect)'
<headius> yeah so it has its own inspect
<byteit101[m]> jruby-9.3.4.0 :046 > java.io.IOException.new("hey").inspect
<byteit101[m]> is what ive been testing with. well good, issue resolved. :-)
<byteit101[m]> thanks
<headius> yeah looks like something got missed in my PR
subbu has joined #jruby
subbu has quit [Quit: Leaving]
subbu has joined #jruby
subbu has quit [Remote host closed the connection]
subbu has joined #jruby
genpaku has quit [Remote host closed the connection]
genpaku has joined #jruby
Freeky has joined #jruby
Freaky has quit [Ping timeout: 244 seconds]
<byteit101[m]> where are the default gems we ship in the source code?
<byteit101[m]> found em
subbu has quit [Quit: Leaving]