#ruby - 18 February 2019
« Back 1 day Forward 1 day »
[00:11:13] phaul: Enumerator is a wrapper on Fiber , it can reset it. Create a new one drop the old one
[06:10:08] baweaver: Part Two of 'Exploring TracePoint' is out where we take a look at the events we can monitor on, and some of their potential uses in debugging:
[06:10:08] baweaver: https://medium.com/@baweaver/exploring-tracepoint-in-ruby-part-two-events-f4fd291992f5
[07:54:11] Cork: i'm creating a class for a http api and would like to group its function. api.user.list, api.user.create, api.contact.list ... instead of api.user_list api.user_create...
[07:56:40] Cork: (also i would like api.user.methods to list those methods and not the contact ones and so on)
[08:01:30] tbuehlmann: Cork: sure, just let api.user return an object that responds to the methods you need
[08:02:07] Cork: tbuehlmann: hmm opps missed to point one think out i have a class variable in api i need it to access
[08:03:39] baweaver: There are dynamic ways to do that, sure, but you'd almost need API contracts for that.
[15:08:24] tbuehlmann: phaul, feature request: make it so I can navigate the hierarchy with arrow keys :D
[20:53:47] fbrier: I installed ruby-libvirt and "gem list" shows it, but RubyMine underlines with the error "no such file to load" for the "require 'libvirt'" statement.
[20:54:56] fbrier: I tried adding "require 'rubygems'" preceding the require in error, but no difference.
[20:59:59] Demos[m]: has left #ruby: ("Kicked by @appservice-irc:matrix.org : removing from IRC because user idle on matrix for 30+ days")
[21:16:24] z64: anyone around that is intimately familiar with Zlib::Inflate? our library wraps a service that provides a streaming zlib transport for websocket messages (i.e., all messages sent over a single zlib context). we buffer deflated messages with Zlib::Infate#<<, and once a byte sequence is read, we call Zlib::Inflate#inflate. this works, but we are seeing a *really* big performance hit over just reading text frames.
[21:16:24] havenwood: fbrier: What's the Ruby version set to in RubyMine? https://www.jetbrains.com/help/ruby/ruby-sdk-and-gems.html
[22:01:55] havenwood: z64: Is it hard to make a reproduction script that shows the slow speed? How slow?
[23:02:43] dotemacs: On this page: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-java/ there's talk of WxRuby. But that link is dead. As is the link to FXRuby. Where is the code hosted for the website so that I can create an issue/ticket? Thanks
[23:03:33] havenwood: dotemacs: You can find the website repo here: https://github.com/ruby/www.ruby-lang.org
[23:03:51] havenwood: dotemacs: https://github.com/ruby/www.ruby-lang.org/blob/e54ab05d97618d81cd6229a0d5b749e7d67fc6ff/en/documentation/ruby-from-other-languages/to-ruby-from-java/index.md
[23:23:49] fbrier: havenwood: Thank you!! I had two Ruby interpreters defined. One ruby-2.2.5-p319 and the other was the Chef DK.