#ruby - 21 January 2019
« Back 1 day Forward 1 day »
[09:40:54] Bish: when doing gem install it works flawlessly, when doing bundler install it says it installs but is yet to be found (by require)
[09:45:03] Bish: when doing that as root (i know i am not supposed to do that) it's also not showing up in the "global gem" folder
[14:32:57] Trevoke: Hi everyone, I'm on Ruby 2.4 - the documentation for URI.encode / URI.escape indicates I shouldn't use it and should use something else instead, but none of the provided options have the same behavior. Is URI.encode scheduled to be removed from core and, if so, when?
[14:55:15] lubekpl: Hey guys, I'm working on a ruby script and need to use a shared file that was extracted to a gem. The problem is that the gem requires rails. Would it be possible to load just a single file from within the gem?
[15:56:19] catphish: ruby has some really weird behaviours with class finding :( https://paste.ubuntu.com/p/h4vZ29sVVK/
[16:18:58] catphish: ruby's always had behaviour i didn't understand with regard to finding classes within parent classes
[16:20:50] phaul: there is module nesting and things. but here if I understand it correctly first it does something, then it does something else to the exact same. which is a whole new level of weirdness
[16:22:25] phaul: which makes me wonder if somehow the first case becomes a method call and that method somehow does f*ckery with things. But I couldn't replicate it making a method call. the parser just doesn't take it as such. It does if I add () to the end
[16:28:23] rubydoc: I found 2 entries matching method autoload. Use &list autoload if you would like to see a list
[18:25:34] kelm: i making script in sh from years and never taking time really to learn interpreted language like ruby or python
[18:26:45] kelm: from weeks i learn the documentation of ruby and learn it to convert some of my scripts to play first, then to make my new need in ruby
[18:32:11] phaul: in my expperience learning ruby is a good idea because it has an elegant conciese and very expressive syntax, that when well written will be readable and maintainable for many years to come. shells scripts as the size grow are really not maintainable imho
[18:35:17] kelm: phaul: but in a pragmatic example, whats will happend for my actual .rb in 7 years if i update ruby ?
[18:37:13] phaul: yeah. that's fortunately not a pain that I had to deal with yet so maybe im not qualified to comment. I know that many companies (github etc) burn lot of engineeering hours on upgrading their systems. Maybe it's inevitable
[18:39:22] kelm: phaul: in my case its not for web usage, only scripts executed by cron under bsd systems
[18:40:44] phaul: I let others answer. I dont have a strong feeling on what the right answer is and I don't want to mislead you
[18:53:10] phaul: 8 minutes to go: https://www.reddit.com/r/ruby/comments/ai90kc/future_stream_exploring_tracepoint_jan_26_11am_pst/