#ruby - 01 July 2019
« Back 1 day Forward 1 day »
[08:58:54] hoijui: I am a complete ruby newb. I found an interesting project that was abandoned a few years ago, and am trying to revive it here: https://github.com/jekyll-pdf/jekyll-pdf
[08:59:29] hoijui: I invited some of the contributors of pull requests to be admins, and anyone else is welcome who wants to be
[09:02:09] hoijui: and if there is a tutorial about what I should check before releasing or so, that would be nice too ;-)
[09:42:17] vqrs_: when I do `rvm <version> do gem list`, what's the difference between `<gem> (1.0.2)` and `<gem> (default: 1.0.2)` ?
[14:45:04] jordanm: I am having a weird issue with rvm in bundler. `whence bundle` shows that I am using bundle for ruby 2.2.10. `rvm list` shows I have the correct version of ruby selected and ruby --version verifies this
[14:45:48] jordanm: however, when I bundle install and then try to bundle exec something I get "LoadError: incompatible library version - /home/jmetzmeier/prog/board/vendor/bundle/ruby/2.2.0/gems/pg-0.18.2/lib/pg_ext.so"
[14:46:20] havenwood: vqrs_: Those "default" gems are the versions that ship with Ruby as "Default gems." See: https://stdgems.org/
[14:46:27] jordanm: running ldd on the so shows that it's linked against libruby.so.2.5 instead of 2.2. any ideas on why it's compiling the native extension linked against the wrong version?
[14:47:44] jordanm: gem which bundler -> /home/jmetzmeier/.rvm/rubies/ruby-2.2.10/lib/ruby/site_ruby/2.2.0/bundler.rb
[14:47:57] havenwood: jordanm: If it is installed, check the generated shebang: head -n1 "$(which bundle)"
[14:52:41] leitz: havenwood, when you get time, can I get a plan review? Two major (for me) questions.
[14:54:19] leitz: havenwood: https://github.com/LeamHall/resume/blob/master/data/project_relationships.txt
[14:57:26] havenwood: leitz: Where to draw the line with functionality in tools is always an interesting question. There are many ways to do it, with tradeoffs.
[14:58:16] havenwood: jordanm: I'd expect a 2.5 bundle, since it seems like it's dynamically linking against 2.5. Normally, I'd suspect your `bundle` shebang, but it looks fine.
[14:58:52] havenwood: leitz: Some tools opt for a "core" library and some have the primary gem be that library.
[15:00:02] leitz: havenwood, that makes sense. I could put several common classes and modules into the core library.
[15:00:06] jordanm: havenwood: do you know how to enable logging/output for the native gem compilation with bundler?
[15:03:33] havenwood: jordanm: Is it that `pg` isn't first in your path? Maybe the `ldd` part is the borked part.
[15:07:03] jordanm: adding --debug to gem install doesn't include any output from the native extension compilation
[15:19:19] jordanm: I found the build log for pg. all of the gcc flags point to the correct 2.2.10 paths
[15:19:58] jordanm: I am really confused as to why this is happening. I can see it's happening with the other native extensions too
[15:20:24] jordanm: $ ldd vendor/bundle/ruby/2.2.0/gems/mysql2-0.4.5/lib/mysql2/mysql2.so | grep libruby
[15:27:16] jordanm: seems to be an issue 2.2.10. I just tried with 2.3 and it linked to the correct ruby version
[15:32:57] havenwood: jordanm: Any chance you can use 2.4+? Since 2.2 is past end of life, security issues go unpatched.
[15:37:01] jordanm: not sure. I think 2.3 should be fine for my testing. the main reason I couldn't use 2.4+ was because one of the modules in the project was incompatible with >= 2.4
[15:37:21] havenwood: jordanm: Yeah, 2.3 should be an easier upgrade without having to bump gem versions.
[17:06:32] Dr_MDMA_MD: Likewise their new Dart language looks like a way for people who spent their lives learning C to feel good about themselves
[17:18:42] ytti: drawing parallel between kotlin and rails is either poor troll or extremely ignorant opinion
[19:17:32] leitz: In other news, in an intro to Go webinar today I asked if an average coder could develop proof of concept code in Go as fast as they could in Ruby. The response was that no language is better for POC code than Ruby. :)