« Back to channel list

#ruby - 08 April 2019

« Back 1 day Forward 1 day »
[00:13:11] dar123: has joined #ruby
[00:14:49] vondruch: has joined #ruby
[00:18:14] jottr: has joined #ruby
[00:20:32] TvL2386: has joined #ruby
[00:33:52] i1nfusion1: has joined #ruby
[00:35:35] dar123: has joined #ruby
[00:50:33] jottr: has joined #ruby
[00:57:16] quarters: has joined #ruby
[00:57:46] quarters: hello. I'm having an issue with running pry without readline and was wondering what the standard solution for this si
[00:57:51] quarters: this is on linux
[00:59:35] cdr255: has joined #ruby
[01:10:48] adam12: quarters: Likely rb-readline
[01:14:13] quarters: adam12, I just tried installing rb-readline, but I'm getting the same error
[01:14:30] quarters: Sorry, you can't use Pry without Readline or a compatible library.
[01:14:30] quarters: Possible solutions:
[01:14:30] quarters: * Rebuild Ruby with Readline support using `--with-readline`
[01:14:30] quarters: * Use the rb-readline gem, which is a pure-Ruby port of Readline
[01:14:30] quarters: * Use the pry-coolline gem, a pure-ruby alternative to Readline
[01:14:55] adam12: quarters: How'd you install rb-readline?
[01:15:03] quarters: gem install rb-readline
[01:15:09] adam12: quarters: and how are you running pry?
[01:15:28] adam12: quarters: Are you using bundler / gem_home / etc?
[01:16:49] adam12: quarters: But not to run pry?
[01:17:05] quarters: like "bundle exec pry"?
[01:17:09] thejamespinto: adam12: Did you use RVM or RBENV to install your Ruby? It's quite useful and by the amount of information I have I can't fully assess your level
[01:18:01] quarters: adam12, I had tried it with the same issue
[01:18:17] adam12: quarters: How about running pry with -rreadline
[01:18:47] adam12: I always just ensure that readline is available (or libedit :\) so I haven't ran into this case before.
[01:19:01] adam12: thejamespinto: That was definitely directeded to me?
[01:19:25] quarters: adam12, like "pry -rreadline"? I just tried it and got an error there as well
[01:19:43] adam12: quarters: Same error?
[01:20:37] quarters: kind of different, but the underlying error is the same I think: libreadline.so.7: cannot open shared object file: No such file or directory - /home/quarters/.rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/x86_64-linux/readline.so (LoadError)
[01:20:49] adam12: quarters: Ah interesting. Does that file exist?
[01:21:13] adam12: (the readline.so not the libreadline.so.7)
[01:21:24] quarters: yes, it does
[01:21:53] thejamespinto: adam12: as I said, I can't fully assess your level with of skill with Ruby. I can tell you're skilled at Linux. Please, take no offense
[01:22:33] adam12: thejamespinto: No offese taken, just confusion. I'm familiar with Ruby. I've published some things. github.com/adam12
[01:22:45] adam12: quarters: Just a few more questions, sadly.
[01:23:01] quarters: adam12, sure
[01:23:23] adam12: quarters: Recent install of Ruby via RVM? Is there a reason why you can't install libreadline? Did this ever work?
[01:24:05] adam12: quarters: The fact that readline.so exists but libreadline.so.7 doesn't isn't right. I don't think readline.so would ever exist without the Ruby compiler detecting libreadline during the running of configure/autoconf.
[01:24:24] quarters: adam12, it's been awhile since I've touched ruby. is libreadline also a ruby gem?
[01:24:33] quarters: or is that a system package
[01:24:45] adam12: quarters: The way Ruby works is, it tries the $LOAD_PATH for files matching $name.rb or $name.so. Your $name.so is conflicting with the Ruby gem you installed that's called readline.rb.
[01:24:53] adam12: quarters: It's a system package.
[01:25:03] orbyt_: has joined #ruby
[01:25:12] quarters: I'll try to hunt it down and install it
[01:25:31] quarters: readline appears to already be installed
[01:25:38] quarters: readline 8 for arch linux
[01:25:51] quarters: I'll reinstall it
[01:25:54] adam12: quarters: Maybe the library changed path?
[01:26:14] quarters: I'm fine with reinstalling ruby. is that course ill-advised?
[01:26:35] quarters: removing it and reinstalling a more current version
[01:27:06] adam12: quarters: If you for sure have libreadline installed, then a reinstall of Ruby is likely easiest.
[01:27:57] quarters: ok. I'm uninstalling it now
[01:28:35] thejamespinto: adam12: I'm a community manager myself and I can't tell you how many weird cases I've seen of people who've been tasked with making a ruby project run and they get lost in the details of installation. :( You're an awesome minority when it comes to having actual relevant questions when it comes to readline :)
[01:32:17] adam12: thejamespinto: All I had to do was give my head a shake and some painful memories about readline came falling out.
[01:32:51] adam12: thejamespinto: I'm excited for the work on the new edit mode one of the Ruby core members is working on to replace readline with a better line editor (multi line editor?)
[01:33:20] quarters: adam12, uninstalling and reinstalling ruby fixed it
[01:34:37] adam12: quarters: Just out of curiosity, would you mind running this inside pry? $LOADED_FEATURES.grep(/readline/)
[01:34:56] adam12: quarters: It will either be readline.so or readline.rb...
[01:35:04] quarters: readline.so
[01:35:17] i1nfusion1: has joined #ruby
[01:35:20] adam12: quarters: Yeah. Borked Ruby install. You could likely uninstall rb-readline to avoid any confusion in the future.
[01:35:29] thejamespinto: adam12: personally, the sounds on the shower scene from Psycho take over me for a few seconds
[01:39:13] dar123: has joined #ruby
[01:39:54] adam12: thejamespinto: Just realised I never answered your question. I normally use ruby-install from postmodern to install my Rubies, and then use direnv with PATH_add to setup load path (and sometimes I'll set GEM_HOME/etc).
[01:40:50] adam12: thejamespinto: But after realizing a few weeks ago that truffleruby was getting along fairly well, I upgraded ruby-install to try installing truffleruby which turned into a) truffleruby not working on FreeBSD and b) new ruby-install being borked on FreeBSD. So I am just fetching/compiling manually.
[01:41:44] rafadc: has joined #ruby
[01:41:48] thejamespinto: adam12: I've handled a few Postgrad students who firmly believed Ruby is an academic language and they were shocked when I gave them a link to the ROR and RUBYGEMS sites :)
[01:42:36] quarters: adam12, thanks
[01:57:44] griffindy: has joined #ruby
[01:58:17] adam12: thejamespinto: I'm not surprised tbh.
[01:58:48] thejamespinto: I was the first time around
[01:59:01] thejamespinto: One of them was actually confusing Ruby and R
[02:03:56] orbyt_: has joined #ruby
[02:16:44] mangold: has joined #ruby
[02:25:37] connor_goodwolf: has joined #ruby
[02:27:19] thejamespinto: OMG! Does anybody remember how to make an attr_reader for class variables?
[02:29:33] adam12: thejamespinto: Probably just `def self.some_method; @@some_method; end`
[02:29:54] adam12: thejamespinto: Presumably you're talking about class variables and not class instance variables `class << self; attr_accessor :some_method; end`
[02:30:02] thejamespinto: module A; module_function
[02:30:17] thejamespinto: I was sure there was a m_attr_accessor or something
[02:30:53] adam12: mattr_accessor? It's a Railsism
[02:31:19] thejamespinto: ohhh that's why
[02:31:42] thejamespinto: I've been stuck at a silly job for the past two years while I finish my masters/phd
[02:31:44] ro0fka: has joined #ruby
[02:32:03] thejamespinto: Haven't written a proper line of OSS since
[02:32:33] thejamespinto: I'm right now rewriting a test sub-framework
[02:33:02] thejamespinto: def filename; @filename || 'bdd’; end
[02:40:10] agent_white: has joined #ruby
[02:45:48] duderonomy: has joined #ruby
[02:51:41] jottr: has joined #ruby
[02:52:39] ro0fka: has left #ruby: ()
[03:01:34] i1nfusion1: has joined #ruby
[03:09:28] LtHummus: has joined #ruby
[03:09:58] braincrash: has joined #ruby
[03:11:43] mangold: has joined #ruby
[03:16:21] dar123: has joined #ruby
[03:16:24] i1nfusion1: has joined #ruby
[03:17:59] iMadper: has joined #ruby
[03:19:18] DmitryBochkarev: has joined #ruby
[03:27:58] jottr: has joined #ruby
[03:47:07] yield: has joined #ruby
[03:52:54] segy: has joined #ruby
[04:01:08] jottr: has joined #ruby
[04:07:11] Nicmavr: has joined #ruby
[04:22:31] nwradio878: has joined #ruby
[04:24:10] DmitryBochkarev: has joined #ruby
[04:32:11] jottr: has joined #ruby
[04:34:16] cloaked1: has joined #ruby
[04:36:42] jkugs__: has joined #ruby
[04:41:27] cloaked1: has joined #ruby
[04:50:19] cloaked1: has joined #ruby
[04:50:24] ur5us: has joined #ruby
[04:51:11] Guest775: has joined #ruby
[04:53:29] i1nfusion: has joined #ruby
[04:53:45] i1nfusion1: has joined #ruby
[04:55:05] nwradio878: has joined #ruby
[04:55:52] sidx64: has joined #ruby
[04:56:25] aupadhye: has joined #ruby
[04:59:18] cloaked1_: has joined #ruby
[05:02:20] sidx64: has joined #ruby
[05:02:41] cloaked1__: has joined #ruby
[05:07:46] segy: has joined #ruby
[05:10:04] v01d4lph4: has joined #ruby
[05:16:48] conta: has joined #ruby
[05:19:05] v01d4lph4: has joined #ruby
[05:23:55] Xiti`: has joined #ruby
[05:24:57] cthulchu: has joined #ruby
[05:26:22] cthu|: has joined #ruby
[05:27:05] t0x: has joined #ruby
[05:29:08] v01d4lph4: has joined #ruby
[05:29:15] mangold: has joined #ruby
[05:33:57] dellavg_: has joined #ruby
[05:35:51] segy: has joined #ruby
[05:50:17] regedit: has joined #ruby
[05:52:13] dionysus69: has joined #ruby
[05:52:29] DmitryBochkarev: has joined #ruby
[06:01:36] nwradio8788: has joined #ruby
[06:03:48] jcarl43: has joined #ruby
[06:06:56] aupadhye: has joined #ruby
[06:07:19] jkugs: has left #ruby: ("Leaving")
[06:09:11] stooj: has joined #ruby
[06:11:24] reber: has joined #ruby
[06:17:20] esrse]: has joined #ruby
[06:17:54] MuffinPimp: has joined #ruby
[06:20:29] stoffus: has joined #ruby
[06:25:11] nowhereman: has joined #ruby
[06:29:13] segy: has joined #ruby
[06:29:42] ricekrispie2: has joined #ruby
[06:33:21] jottr: has joined #ruby
[06:35:20] andikr: has joined #ruby
[06:37:39] snickers: has joined #ruby
[06:45:44] DaniG2k: has joined #ruby
[06:58:04] hightower2: has joined #ruby
[07:04:51] schleppel: has joined #ruby
[07:07:53] Dbugger: has joined #ruby
[07:10:28] blackmesa: has joined #ruby
[07:16:25] clemens3: has joined #ruby
[07:16:30] waheedi: has joined #ruby
[07:18:22] prestorium: has joined #ruby
[07:31:03] alem0lars: has joined #ruby
[07:36:42] rindolf: has joined #ruby
[07:39:04] ellcs: has joined #ruby
[07:41:32] lxsameer: has joined #ruby
[07:52:08] vondruch: has joined #ruby
[07:52:22] queip: has joined #ruby
[07:53:13] nowhereman: has joined #ruby
[07:53:28] mikecmpbll: has joined #ruby
[07:57:41] aupadhye: has joined #ruby
[07:58:17] themsay: has joined #ruby
[08:03:27] andikr: has joined #ruby
[08:05:29] nowhereman: has joined #ruby
[08:07:37] shakes: has joined #ruby
[08:12:57] ur5us: has joined #ruby
[08:15:38] jottr: has joined #ruby
[08:17:25] fanta7531: has joined #ruby
[08:23:48] yield: has joined #ruby
[08:24:48] aupadhye: has joined #ruby
[08:27:33] UnknownSoldier: has joined #ruby
[08:30:22] mangold: has joined #ruby
[08:43:19] andikr: has joined #ruby
[08:49:20] iMadper: has joined #ruby
[08:49:55] waheedi: has joined #ruby
[08:56:19] agent_white: has joined #ruby
[08:59:18] kyrylo: has joined #ruby
[09:10:37] ged: has joined #ruby
[09:13:49] sidx64: has joined #ruby
[09:15:21] TomyWork: has joined #ruby
[09:15:29] mangold: has joined #ruby
[09:17:38] nowhere_man: has joined #ruby
[09:24:13] _whitelogger: has joined #ruby
[09:27:28] marmotini_: has joined #ruby
[09:28:44] themsay: has joined #ruby
[09:31:27] ur5us: has joined #ruby
[09:32:33] ur5us_: has joined #ruby
[09:35:20] vondruch: has joined #ruby
[09:41:55] Mia: has joined #ruby
[09:41:55] Mia: has joined #ruby
[09:43:40] nwradio8788: has joined #ruby
[09:45:27] beilabs: has joined #ruby
[09:48:11] Mia: has joined #ruby
[09:48:11] Mia: has joined #ruby
[09:56:59] beilabs: has joined #ruby
[10:03:37] Swyper: has joined #ruby
[10:07:25] conta: has joined #ruby
[10:10:17] arup_r: has joined #ruby
[10:10:20] lxsameer: has joined #ruby
[10:11:07] agent_white: has joined #ruby
[10:24:54] Swyper: has joined #ruby
[10:28:39] waheedi: has joined #ruby
[10:37:01] jottr_: has joined #ruby
[10:39:36] sidx64: has joined #ruby
[10:47:09] AJA4350: has joined #ruby
[10:49:38] Swyper: has joined #ruby
[10:54:29] Swyper: has joined #ruby
[10:58:42] jottr: has joined #ruby
[10:59:23] Swyper: has joined #ruby
[11:02:27] waheedi: has joined #ruby
[11:02:44] ellcs1: has joined #ruby
[11:07:17] cd: has joined #ruby
[11:12:59] Swyper: has joined #ruby
[11:19:04] alem0lars: has joined #ruby
[11:20:25] nowhere_man: has joined #ruby
[11:28:52] kiero: has joined #ruby
[11:30:29] Dbugger: has joined #ruby
[11:32:11] Swyper: has joined #ruby
[11:36:32] marmotini: has joined #ruby
[11:37:22] Swyper: has joined #ruby
[11:40:47] clemens3: has joined #ruby
[11:40:55] segy: has joined #ruby
[11:51:00] catbusters: has joined #ruby
[11:51:07] marmotini: has joined #ruby
[11:56:04] sidx64: has joined #ruby
[11:59:18] prestori_: has joined #ruby
[12:08:02] andikr: has joined #ruby
[12:13:04] Swyper: has joined #ruby
[12:17:16] marmotini_: has joined #ruby
[12:17:28] ryouba: i want to `class MyDoc < Sequel; ...; def self.first_by_title(q); ...; end; end` and then use that like `entry = MyDoc.first_by_title('foobar')` and have `entry.class` be "MyDoc". but how do i return an "object of myself" at the end of that static class method? *confused*
[12:18:48] phaul: call new(..)
[12:19:32] ryouba: ACTION tries
[12:19:35] ryouba: (hi phaul!)
[12:19:42] phaul: hi ryouba
[12:21:02] marmotini: has joined #ruby
[12:24:11] phaul: you could also just use Sequel::Model
[12:24:12] segy: has joined #ruby
[12:24:30] aupadhye: has joined #ruby
[12:24:31] marmotini_: has joined #ruby
[12:27:24] ryouba: with new() i wasn't getting anywhere
[12:27:28] ryouba: ACTION googles
[12:28:30] ryouba: aha, that looks like what you're *supposed* to be using
[12:29:44] stoffus1: has joined #ruby
[12:36:05] jottr: has joined #ruby
[12:37:13] afisher: has joined #ruby
[12:43:41] spiette: has joined #ruby
[12:44:55] dionysus69: any good resources where I can play with interfacing ruby with C or Rust? let's say I write hello_world method in either of them, just dont know where to start
[12:45:31] waheedi: has joined #ruby
[12:55:19] beilabs_: has joined #ruby
[13:00:26] Swyper: has joined #ruby
[13:01:42] ryouba: phaul: so, http://sequel.jeremyevans.net/rdoc/files/doc/object_model_rdoc.html#label-Sequel-3A-3AModel holds the answer. it *magically* assumes that the table name is the same as its own name in underscorized writing style.
[13:03:38] phaul: it has the option to override the table name though if you need to
[13:05:58] imperator: has joined #ruby
[13:07:58] prestorium: has joined #ruby
[13:08:39] andikr: has joined #ruby
[13:09:06] mnemon: dionysus69: https://guides.rubygems.org/gems-with-extensions/ maybe?
[13:11:22] regedit: has joined #ruby
[13:11:38] jcalla: has joined #ruby
[13:13:39] dionysus69: thanks will try that
[13:13:40] beilabs_: has joined #ruby
[13:15:27] mnemon: dionysus69: https://www.amberbit.com/blog/2014/6/12/calling-c-cpp-from-ruby/ various other methods without gem native exts
[13:15:35] ryouba: phaul: my solution was to rename the table. it's kind of nice for them to be having matching names. i did add a comment inside the model class, though. otherwise it's a little *too* magic.
[13:16:12] blackmesa: has joined #ruby
[13:18:54] i1nfusion: has joined #ruby
[13:18:55] i1nfusion1: has joined #ruby
[13:19:26] dionysus69: thanks mnemon just found this too https://www.youtube.com/watch?v=Ms3EifxZopg&t=1796s
[13:19:50] vondruch: has joined #ruby
[13:20:21] dar123: has joined #ruby
[13:28:11] kapil____: has joined #ruby
[13:38:12] mnemon: cool, haven't really played around with rust so far
[13:47:05] suukim: has joined #ruby
[13:52:53] lucasb: has joined #ruby
[13:56:09] crankharder: has joined #ruby
[13:59:59] sagax: has joined #ruby
[14:01:33] jottr_: has joined #ruby
[14:04:29] Swyper: has joined #ruby
[14:07:37] Rapture: has joined #ruby
[14:10:26] fluxAeon: has joined #ruby
[14:10:45] Swyper: has joined #ruby
[14:10:49] Inline: has joined #ruby
[14:14:29] gnufied: has joined #ruby
[14:19:30] jottr: has joined #ruby
[14:29:23] Swyper: has joined #ruby
[14:31:20] DmitryBochkarev: has joined #ruby
[14:31:25] fluxAeon_: has joined #ruby
[14:42:37] fanta7531: has joined #ruby
[14:47:21] Nicmavr: has joined #ruby
[14:50:25] neovalis0: has joined #ruby
[14:51:02] brool: has joined #ruby
[14:51:11] segy: has joined #ruby
[14:53:44] snickers: has joined #ruby
[14:54:14] v01d4lph4: has joined #ruby
[14:55:16] DmitryBochkarev: has joined #ruby
[14:56:19] DmitryBochkarev: has joined #ruby
[15:00:07] mad_hatter: has joined #ruby
[15:00:08] sidx64: has joined #ruby
[15:00:33] mad_hatter: what do you guys recommend as the best book for learning ruby coming from other languages such as perl and python
[15:00:36] polishdub: has joined #ruby
[15:01:03] griffindy: has joined #ruby
[15:01:59] TvL2386: has joined #ruby
[15:02:26] orbyt_: has joined #ruby
[15:04:09] yield: has joined #ruby
[15:05:02] mad_hatter: has joined #ruby
[15:05:14] yield: has joined #ruby
[15:06:40] imperator: mad_hatter, https://programmingzen.com/ruby-books/
[15:09:41] Xeago_: has joined #ruby
[15:12:44] Swyper: has joined #ruby
[15:12:49] mad_hatter: has joined #ruby
[15:22:08] crankharder: has joined #ruby
[15:23:59] ldnunes: has joined #ruby
[15:25:05] segy: has joined #ruby
[15:29:48] jottr: has joined #ruby
[15:33:05] gix: has joined #ruby
[15:34:18] doodlebug: has joined #ruby
[15:39:11] segy: has joined #ruby
[15:39:21] SeepingN: has joined #ruby
[15:42:22] Ai9zO5AP: has joined #ruby
[15:42:51] tdy: has joined #ruby
[15:43:39] sidx64: has joined #ruby
[15:45:56] i1nfusion: has joined #ruby
[15:49:35] i1nfusion: has joined #ruby
[15:51:14] rippa: has joined #ruby
[15:51:41] sidx64_: has joined #ruby
[15:56:20] sidx64: has joined #ruby
[15:56:36] mondz: has joined #ruby
[15:57:10] vondruch: has joined #ruby
[16:01:41] i1nfusion: has joined #ruby
[16:12:26] ljarvis: has joined #ruby
[16:12:28] noboruma: has joined #ruby
[16:12:49] ljarvis: has joined #ruby
[16:16:19] fanta7531: has joined #ruby
[16:19:29] jottr: has joined #ruby
[16:23:43] someuser: has joined #ruby
[16:30:29] dar123: has joined #ruby
[16:36:54] yield: has joined #ruby
[16:37:01] orbyt_: has joined #ruby
[16:41:40] kapil____: has joined #ruby
[16:41:41] cthulchu_: has joined #ruby
[16:45:12] robotcars: has joined #ruby
[16:45:15] robotcars: has left #ruby: ()
[16:54:17] jottr: has joined #ruby
[17:02:53] Swyper: has joined #ruby
[17:07:55] cd: has joined #ruby
[17:08:22] waheedi: has joined #ruby
[17:15:00] jottr: has joined #ruby
[17:16:43] code_zombie: has joined #ruby
[17:18:50] pitastrudl: has joined #ruby
[17:19:00] gb_away_: has joined #ruby
[17:26:57] jrafanie: has joined #ruby
[17:31:59] lxsameer: has joined #ruby
[17:36:29] Swyper: has joined #ruby
[17:36:30] blackmesa: has joined #ruby
[17:40:07] yield: has joined #ruby
[17:45:31] segy: has joined #ruby
[17:50:44] KeyJoo: has joined #ruby
[17:51:52] eddof13: has joined #ruby
[17:55:58] alem0lars: has joined #ruby
[18:11:33] AJA4351: has joined #ruby
[18:14:45] hightower3: has joined #ruby
[18:16:19] nwradio87888: has joined #ruby
[18:18:01] jcarl43: has joined #ruby
[18:20:50] coffeejunk: has joined #ruby
[18:20:52] epochwolf: has joined #ruby
[18:21:07] hhzza: has joined #ruby
[18:21:15] fowlduck: has joined #ruby
[18:21:23] canton7: has joined #ruby
[18:21:30] JJonah: has joined #ruby
[18:22:15] JoL1hAHN: has joined #ruby
[18:22:58] Spitfire: has joined #ruby
[18:22:59] Spitfire: has joined #ruby
[18:26:33] yield: has joined #ruby
[18:28:48] jottr: has joined #ruby
[18:31:54] houhoulis: has joined #ruby
[18:37:55] fluxAeon: has joined #ruby
[18:42:28] segy: has joined #ruby
[18:49:04] marz_d`ghostman: has joined #ruby
[18:49:24] marz_d`ghostman: If I'm running rails with puma, which is the default, will I need nginx or apache?
[18:50:39] havenwood: marz_d`ghostman: You don't need either, but it's common to use one or the other and reverse proxy to the Puma socket.
[18:51:00] agent_white: has joined #ruby
[18:51:12] marz_d`ghostman: havenwood: so having rails server -e production would suffice?
[18:52:01] marz_d`ghostman: havenwood: Ah, I see what your saying now.
[18:53:08] yield: has joined #ruby
[18:53:23] havenwood: marz_d`ghostman: assuming you want to use ssl, you'll also need: -b 'ssl:...crt'
[18:57:04] nwradio878887: has joined #ruby
[18:58:25] havenwood: marz_d`ghostman: There are various reasons you might want to put NGINX in front. You can serve static files directly (not through Rack), it provides HTTP/2 support, SSL works easily with certbot, etc. But of course Apache and NGINX are a huge pain to configure. ¯\_(ツ)_/¯
[18:58:50] havenwood: marz_d`ghostman: You can basically get those same benefits by putting Cloudflare in front too.
[18:59:08] havenwood: Static files, HTTP/2 and easy SSL - check, check and check.
[18:59:13] marz_d`ghostman: havenwood: I agree, I'm currently running my rails app inside docker and setup nginx on this server
[18:59:23] adam12: I've become preferential to Caddy, tho they can't seem to decide how they want to license it. Building from source (or using a package manager) gets you the Apache license tho, which is decent.
[18:59:33] marz_d`ghostman: havenwood: A real pain setting it up :)
[19:00:03] havenwood: adam12: Interesting! I'd not seen Caddy.
[19:00:29] adam12: havenwood: Reverse proxy + auto ssl is super simple. Most of my Caddyfile configs are 2-4 lines.
[19:01:35] ldnunes: has joined #ruby
[19:04:03] nowhere_man: has joined #ruby
[19:04:05] adam12: havenwood: It supports on-demand TLS negotiation as well, which is nice if you offer custom domains+SSL on projects. You can setup a hook in Caddy to ask your app if it's a legit hostname that requires TLS, and if it is, Caddy handles the LetsEncrypt request and live reloading / serving of the new certificate during the TLS handshake.
[19:06:34] Zarthus: adam12: I used to be a caddy fanatic but the fact they ever thought sponsoring in their headers was a good idea kinda ruined my trust in them
[19:07:19] adam12: Zarthus: To some degree I'm with ya. I'm not sure why it's taken so long for everyone to catch up to them in regards to configuration + auto SSL tho. Maybe the new Passenger will get there.
[19:09:06] havenwood: Falcon is a really interesting contender on the Rack webserver side of things: https://github.com/socketry/falcon
[19:09:19] jenrzzz: has joined #ruby
[19:09:24] adam12: havenwood: I'm enjoying Iodine a lot, tho I've been following Falcon.
[19:09:49] blackmesa: has joined #ruby
[19:10:44] kyrylo: has joined #ruby
[19:13:20] waheedi: has joined #ruby
[19:14:23] hiroaki: has joined #ruby
[19:18:26] TvL2386_: has joined #ruby
[19:20:41] luminousnine: has joined #ruby
[19:20:41] luminousnine: has joined #ruby
[19:21:16] xfbs: has joined #ruby
[19:23:50] yield: has joined #ruby
[19:24:19] brool: if i have a string like "R and G and Blue" can i use a single regexp to get an array like ["R", "G", "B"] or do i have to iterate over the string's characters to do that?
[19:24:45] brool: i can't figure out how to capture more than the 1st result with #match
[19:24:57] brool: if i'm looking for /[RGB]/
[19:25:11] dviola: has joined #ruby
[19:25:46] adam12: brool: .scan(/[RGB]+/) will likely work.
[19:25:55] brool: i'll check
[19:26:08] adam12: brool: Could likely leave off the +. .scan(/[RGB]/)
[19:26:53] brool: that's exactly what i needed thanks
[19:27:13] brool: i was at a loss when the standard /g flag was not recognized
[19:29:20] doodlebug: has joined #ruby
[19:33:41] havenwood: brool: for that particular example, you could also use a glob
[19:34:44] havenwood: &>> 'R and G and Blue'.delete('^RGB').chars
[19:34:46] rubydoc: # => ["R", "G", "B"] (https://carc.in/#/r/6op2)
[19:35:27] brool: interesting
[19:40:15] duderonomy: has joined #ruby
[19:41:00] eddof13: has joined #ruby
[19:41:16] hightower3: has joined #ruby
[19:53:23] postmodern: has joined #ruby
[19:54:46] yield: has joined #ruby
[19:57:21] brool: is there a way i can quickly convert a string into a regexp like "abcde" -> /[abcde]/ ?
[20:01:42] SCHAPiE: has joined #ruby
[20:02:18] baweaver: Regexp.union str.chars
[20:03:25] griffindy: has joined #ruby
[20:06:07] carbone5: has joined #ruby
[20:07:32] orbyt_: has joined #ruby
[20:08:59] Swyper: has joined #ruby
[20:15:07] jenrzzz: has joined #ruby
[20:16:25] jenrzzz: has joined #ruby
[20:22:03] SeepingN: has joined #ruby
[20:22:44] jenrzzz: has joined #ruby
[20:24:40] havenwood: brool: or: /[#{"abcde"}]/
[20:25:16] yield: has joined #ruby
[20:27:41] jottr: has joined #ruby
[20:32:25] havenwood: &>> "abcde".then { |s| /[#{s}]/ }
[20:32:26] rubydoc: # => /[abcde]/ (https://carc.in/#/r/6ope)
[20:33:40] tAn: has joined #ruby
[20:36:27] TheSin: has joined #ruby
[20:37:03] TheSin: anyone have any idea how to fix "LoadError: cannot load such file -- kubeclient/oidc_auth_provider" when it's kubeclient.rb that is calling a require on kubeclient/oidc_auth_provider and it's present?
[20:42:31] t0xik: has joined #ruby
[20:43:11] zachk: has joined #ruby
[20:43:31] leftylink: to see where ruby is looking for files that are `require`d, you may find it useful to look at the value of $LOAD_PATH . it sounds like a directory is not in there that should be.
[20:44:07] zachk: has joined #ruby
[20:44:31] leftylink: as for how to get a directory in there that needs to be, I yield the floor
[20:52:16] orbyt_: has joined #ruby
[20:54:53] segy: has joined #ruby
[20:55:51] yield: has joined #ruby
[20:59:34] Swyper: has joined #ruby
[20:59:47] fredolinhares: has joined #ruby
[20:59:53] Swyper: has joined #ruby
[21:03:15] eddof13: has joined #ruby
[21:03:39] Swyper: has joined #ruby
[21:05:42] jottr: has joined #ruby
[21:05:52] gb_away: has joined #ruby
[21:12:24] ur5us: has joined #ruby
[21:14:02] TheSin: leftylink, I can't see that cause there are like 8 includes in kubeclient.h before that one from the same dir is that one since it's part of the package, it's making me nuts though
[21:17:49] cthulchu_: my wonderful Ruby folks! Do you use STDOUT.flush?
[21:21:05] eddof13: has joined #ruby
[21:21:59] Code_[24]_: has joined #ruby
[21:22:22] hahuang65: cthulchu_ occassionally. depends on what I'm doing.
[21:26:25] yield: has joined #ruby
[21:27:58] cthulchu_: hahuang65, have you ever felt either that the flush changes the output, either the timing or the order OR that flush causes any measurable performance issues?
[21:30:03] doodleb10: has joined #ruby
[21:32:43] hahuang65: cthulchu_ I don't use flush in anything production. i mainly use it in local scripts. I've never noticed it change the timing or order of logs, but I suppose it's possible.
[21:34:22] cthulchu_: I'm about to use it just to have the parent process reading the output line by line
[21:34:43] cthulchu_: otherwise the stdout.on("data") doesn't get triggered until stdout is closed
[21:38:38] Swyper: has joined #ruby
[21:43:50] jrafanie: has joined #ruby
[21:51:21] themsay: has joined #ruby
[21:52:44] jottr: has joined #ruby
[21:53:10] yield: has joined #ruby
[22:08:22] jenrzzz: has joined #ruby
[22:08:51] UnknownSoldier: has joined #ruby
[22:12:44] agent_white: has joined #ruby
[22:13:32] cthu|: has joined #ruby
[22:23:44] yield: has joined #ruby
[22:24:33] Fernando-Basso: has joined #ruby
[22:25:15] cthu|: my lovely folks, there's -u key in Python. If you run a py script with it, it disables stdout buffering. Is there a similar solution for Ruby?
[22:30:28] jottr: has joined #ruby
[22:32:03] matthewd: has joined #ruby
[22:32:34] segy: has joined #ruby
[22:35:38] zenspider: cthu|: look at IO#sync=
[22:36:35] ellcs1: has joined #ruby
[22:39:23] nakuku: has joined #ruby
[22:52:02] mozzarella: has joined #ruby
[22:54:01] cthulchu_: has joined #ruby
[22:55:28] cthulchu_: zenspider, yeah, I saw it and a few other options
[22:55:35] yield: has joined #ruby
[22:55:52] cthulchu_: I just wondered if there was a native handler or option outside
[22:56:16] cthulchu_: cuz I need it to change depending on the context.
[22:56:31] zenspider: what context?
[22:56:32] cthulchu_: I could, of coarse, pass in an option and then depending on it, turn it on.
[22:56:49] cthulchu_: like if I run the script manually, then don't bother with flushing
[22:57:01] zenspider: manually versus what?
[22:57:02] cthulchu_: if I run it as a child process of a third party, then do bother
[22:57:07] zenspider: then check for a tty
[22:57:13] cthulchu_: tty? what is it?
[22:57:38] zenspider: something like: $stdout.sync = false if $stdout.tty?
[22:59:07] cthulchu_: perfect. what is tty?
[23:00:29] 7ITAADFNC: has joined #ruby
[23:02:15] zenspider: `man 4 tty`
[23:04:02] themsay: has joined #ruby
[23:10:57] houhoulis: has joined #ruby
[23:26:11] yield: has joined #ruby
[23:35:56] SeepingN_: has joined #ruby
[23:42:20] segy: has joined #ruby
[23:44:28] doodlebug: has joined #ruby
[23:56:44] yield: has joined #ruby