havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
dar123 has joined #ruby
TvL2386 has quit [Ping timeout: 250 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jottr has joined #ruby
TvL2386 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
rindolf has quit [Ping timeout: 240 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion1 has joined #ruby
dar123 has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
quarters has joined #ruby
AJA4350 has quit [Quit: AJA4350]
<quarters> hello. I'm having an issue with running pry without readline and was wondering what the standard solution for this si
<quarters> this is on linux
cdr255 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> quarters: Likely rb-readline
<quarters> adam12, I just tried installing rb-readline, but I'm getting the same error
<quarters> Sorry, you can't use Pry without Readline or a compatible library.
<quarters> Possible solutions:
<quarters> * Rebuild Ruby with Readline support using `--with-readline`
<quarters> * Use the rb-readline gem, which is a pure-Ruby port of Readline
<quarters> * Use the pry-coolline gem, a pure-ruby alternative to Readline
<adam12> quarters: How'd you install rb-readline?
<quarters> gem install rb-readline
<adam12> quarters: and how are you running pry?
<quarters> pry
<thejamespinto> lol
<adam12> quarters: Are you using bundler / gem_home / etc?
<quarters> bundler
<adam12> quarters: But not to run pry?
<quarters> like "bundle exec pry"?
<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
<quarters> adam12, I had tried it with the same issue
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> quarters: How about running pry with -rreadline
<adam12> I always just ensure that readline is available (or libedit :\) so I haven't ran into this case before.
<adam12> thejamespinto: That was definitely directeded to me?
<quarters> adam12, like "pry -rreadline"? I just tried it and got an error there as well
<adam12> quarters: Same error?
<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)
<adam12> quarters: Ah interesting. Does that file exist?
<adam12> (the readline.so not the libreadline.so.7)
<quarters> yes, it does
<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
<adam12> thejamespinto: No offese taken, just confusion. I'm familiar with Ruby. I've published some things. github.com/adam12
<adam12> quarters: Just a few more questions, sadly.
<thejamespinto> ;)
<quarters> adam12, sure
<adam12> quarters: Recent install of Ruby via RVM? Is there a reason why you can't install libreadline? Did this ever work?
i1nfusion1 has quit [Remote host closed the connection]
<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.
<quarters> adam12, it's been awhile since I've touched ruby. is libreadline also a ruby gem?
<quarters> or is that a system package
<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.
<adam12> quarters: It's a system package.
orbyt_ has joined #ruby
<quarters> I'll try to hunt it down and install it
<quarters> readline appears to already be installed
<quarters> readline 8 for arch linux
<quarters> I'll reinstall it
<adam12> quarters: Maybe the library changed path?
<quarters> I'm fine with reinstalling ruby. is that course ill-advised?
<quarters> removing it and reinstalling a more current version
<adam12> quarters: If you for sure have libreadline installed, then a reinstall of Ruby is likely easiest.
<quarters> ok. I'm uninstalling it now
<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 :)
<adam12> thejamespinto: All I had to do was give my head a shake and some painful memories about readline came falling out.
<adam12> :)
<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?)
<quarters> adam12, uninstalling and reinstalling ruby fixed it
<adam12> quarters: Just out of curiosity, would you mind running this inside pry? $LOADED_FEATURES.grep(/readline/)
<adam12> quarters: It will either be readline.so or readline.rb...
<quarters> readline.so
i1nfusion1 has joined #ruby
<adam12> quarters: Yeah. Borked Ruby install. You could likely uninstall rb-readline to avoid any confusion in the future.
<thejamespinto> adam12: personally, the sounds on the shower scene from Psycho take over me for a few seconds
dar123 has joined #ruby
<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).
rafadc has quit [Read error: Connection reset by peer]
<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.
rafadc has joined #ruby
<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 :)
<quarters> adam12, thanks
someuser has quit [Quit: leaving]
griffindy has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> thejamespinto: I'm not surprised tbh.
<thejamespinto> I was the first time around
<thejamespinto> One of them was actually confusing Ruby and R
orbyt_ has joined #ruby
mangold has joined #ruby
cd has quit [Quit: cd]
t0x has quit [Quit: Connection closed for inactivity]
connor_g1odwolf has quit [Quit: leaving]
connor_goodwolf has joined #ruby
ze-fofim is now known as \tau
<thejamespinto> OMG! Does anybody remember how to make an attr_reader for class variables?
<adam12> thejamespinto: Probably just `def self.some_method; @@some_method; end`
<adam12> thejamespinto: Presumably you're talking about class variables and not class instance variables `class << self; attr_accessor :some_method; end`
<thejamespinto> module A; module_function
<thejamespinto> :-/
<thejamespinto> I was sure there was a m_attr_accessor or something
<adam12> mattr_accessor? It's a Railsism
<thejamespinto> ohhh that's why
<thejamespinto> I've been stuck at a silly job for the past two years while I finish my masters/phd
ro0fka has joined #ruby
<thejamespinto> Haven't written a proper line of OSS since
<thejamespinto> I'm right now rewriting a test sub-framework
<thejamespinto> def filename; @filename || 'bdd’; end
<thejamespinto> this did it
agent_white has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
i1nfusion1 has quit [Remote host closed the connection]
jottr has joined #ruby
ro0fka has left #ruby [#ruby]
amfabasti has quit []
jottr has quit [Ping timeout: 245 seconds]
i1nfusion1 has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
i1nfusion1 has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
LtHummus has quit [Quit: ZNC 1.7.3 - https://znc.in]
LtHummus has joined #ruby
braincrash has joined #ruby
mangold has joined #ruby
dar123 has joined #ruby
i1nfusion1 has joined #ruby
zhejiuju` is now known as iMadper
iMadper has quit [Changing host]
iMadper has joined #ruby
DmitryBochkarev has joined #ruby
jottr has joined #ruby
<thejamespinto> thx guys
thejamespinto has quit []
jottr has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower3 has quit [Ping timeout: 246 seconds]
segy has quit [Quit: ZNC - http://znc.in]
DmitryBochkarev has quit [Ping timeout: 246 seconds]
yield has joined #ruby
segy has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
cdr255 has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
nwradio878 has joined #ruby
bga57 has quit [Quit: Leaving.]
nwradio87 has quit [Ping timeout: 258 seconds]
DmitryBochkarev has joined #ruby
jottr has joined #ruby
hiroaki has quit [Ping timeout: 250 seconds]
cloaked1 has joined #ruby
jkugs__ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jkugs_ has quit [Ping timeout: 245 seconds]
cloaked1 has quit [Remote host closed the connection]
cloaked1 has joined #ruby
cloaked1 has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
cloaked1 has joined #ruby
ur5us has joined #ruby
cloaked1 is now known as Guest775
Guest775 has quit [Changing host]
Guest775 has joined #ruby
Guest775 has quit [Client Quit]
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
nwradio878 has quit [Ping timeout: 244 seconds]
i1nfusion1 has joined #ruby
nwradio878 has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
sidx64 has joined #ruby
aupadhye has joined #ruby
cloaked1_ has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
cloaked1__ has joined #ruby
cloaked1__ has quit [Client Quit]
segy has joined #ruby
v01d4lph4 has joined #ruby
v01d4lph4 has quit [Ping timeout: 258 seconds]
DmitryBochkarev has quit [Ping timeout: 245 seconds]
conta has joined #ruby
v01d4lph4 has joined #ruby
Xiti` has joined #ruby
v01d4lph4 has quit [Ping timeout: 250 seconds]
cthulchu has joined #ruby
Xiti has quit [Ping timeout: 244 seconds]
cthu| has joined #ruby
t0x has joined #ruby
t0x is now known as t0xik
segy has quit [Ping timeout: 245 seconds]
Inline has quit [Quit: Leaving]
v01d4lph4 has joined #ruby
mangold has joined #ruby
jkugs__ is now known as jkugs
cthulchu has quit [Ping timeout: 264 seconds]
dellavg_ has joined #ruby
segy has joined #ruby
cthu| has quit [Ping timeout: 250 seconds]
aupadhye has quit [Ping timeout: 246 seconds]
regedit has joined #ruby
dionysus69 has joined #ruby
DmitryBochkarev has joined #ruby
nwradio8788 has joined #ruby
nwradio878 has quit [Ping timeout: 257 seconds]
jcarl43 has joined #ruby
aupadhye has joined #ruby
jkugs has left #ruby ["Leaving"]
kiero has quit [Ping timeout: 250 seconds]
stooj has quit [Quit: ZNC 1.7.2 - https://znc.in]
stooj has joined #ruby
cloaked1_ has quit [Remote host closed the connection]
reber has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
esrse] has joined #ruby
MuffinPimp has quit [Ping timeout: 245 seconds]
MuffinPimp has joined #ruby
stoffus has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
nowhereman has joined #ruby
segy has joined #ruby
ricekrispie2 has joined #ruby
ricekrispie has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
andikr has joined #ruby
snickers has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
teclator_ is now known as teclator
hightower2 has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
houhoulis has quit [Remote host closed the connection]
schleppel has joined #ruby
Dbugger has joined #ruby
blackmesa has joined #ruby
\tau is now known as UnknownSoldier
vondruch has quit [Quit: vondruch]
clemens3 has joined #ruby
waheedi has joined #ruby
prestorium has joined #ruby
DaniG2k has quit [Quit: leaving]
themsay has quit [Ping timeout: 268 seconds]
alem0lars has joined #ruby
iMadper has quit [Ping timeout: 250 seconds]
rindolf has joined #ruby
ellcs has quit [Remote host closed the connection]
ellcs has joined #ruby
Riviera_ has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.4]
yield has quit [Remote host closed the connection]
Dbugger has quit [Ping timeout: 250 seconds]
queip has quit [Ping timeout: 250 seconds]
vondruch has joined #ruby
queip has joined #ruby
nowhereman has joined #ruby
mikecmpbll has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Client Quit]
aupadhye has joined #ruby
andikr has quit [Ping timeout: 245 seconds]
themsay has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
nowhereman has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
nowhereman has joined #ruby
shakes has joined #ruby
shakes has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
jottr has joined #ruby
fanta7531 has joined #ruby
UnknownSoldier has quit [Quit: idk]
yield has joined #ruby
aupadhye has joined #ruby
UnknownSoldier has joined #ruby
mangold has joined #ruby
andikr has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
waheedi has quit [Ping timeout: 268 seconds]
agent_white has quit [Ping timeout: 240 seconds]
iMadper has joined #ruby
waheedi has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
ljarvis has quit [Quit: WeeChat 2.4]
agent_white has joined #ruby
kyrylo has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
ged has quit [Read error: Connection reset by peer]
waheedi has quit [Quit: waheedi]
ged has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
TomyWork has joined #ruby
mangold has joined #ruby
nowhere_man has joined #ruby
alem0lars has quit [Ping timeout: 259 seconds]
nowhereman has quit [Ping timeout: 252 seconds]
_whitelogger has joined #ruby
marmotini_ has joined #ruby
themsay has quit [Ping timeout: 252 seconds]
themsay has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ur5us_ has quit [Ping timeout: 244 seconds]
Mia has quit [Read error: Connection reset by peer]
nwradio8788 has quit [Ping timeout: 268 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Mia has quit [Read error: Connection reset by peer]
nwradio8788 has joined #ruby
beilabs has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
conta has quit [Ping timeout: 264 seconds]
beilabs has quit [Quit: WeeChat 1.9.1]
beilabs has joined #ruby
Swyper has joined #ruby
conta has joined #ruby
agent_white has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
lxsameer has joined #ruby
agent_white has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
tdy has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
arup_r has quit []
sagax has quit [Ping timeout: 245 seconds]
waheedi has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
sidx64 has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
AJA4350 has joined #ruby
Swyper has quit [Remote host closed the connection]
waheedi has quit [Quit: waheedi]
regedit has quit [Quit: Connection closed for inactivity]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
Swyper has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
waheedi has joined #ruby
ellcs1 has joined #ruby
Swyper has quit [Remote host closed the connection]
cd has joined #ruby
clemens3 has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
alem0lars has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
kiero has joined #ruby
alem0lars has quit [Remote host closed the connection]
Dbugger has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
yield has quit [Remote host closed the connection]
segy has quit [Quit: ZNC - http://znc.in]
marmotini has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
marmotini_ has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
segy has joined #ruby
eabarbosa has quit [Remote host closed the connection]
marmotini has quit [Read error: Connection reset by peer]
catbusters has joined #ruby
marmotini has joined #ruby
fanta7531 has quit [Quit: fanta7531]
sidx64 has joined #ruby
prestori_ has joined #ruby
prestorium has quit [Ping timeout: 268 seconds]
segy has quit [Quit: ZNC - http://znc.in]
andikr has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Swyper has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 264 seconds]
Swyper has joined #ruby
<ryouba> hi!
marmotini_ has joined #ruby
<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*
<phaul> call new(..)
marmotini has quit [Ping timeout: 258 seconds]
* ryouba tries
<ryouba> (hi phaul!)
<phaul> hi ryouba
marmotini has joined #ruby
marmotini has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 245 seconds]
ellcs1 has quit [Ping timeout: 245 seconds]
marmotini_ has quit [Ping timeout: 252 seconds]
<phaul> you could also just use Sequel::Model
segy has joined #ruby
aupadhye has joined #ruby
marmotini_ has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
<ryouba> oh
<ryouba> with new() i wasn't getting anywhere
* ryouba googles
<ryouba> aha, that looks like what you're *supposed* to be using
stoffus_ has joined #ruby
waheedi has quit [Quit: waheedi]
stoffus has quit [Ping timeout: 240 seconds]
Tharbakim has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
afisher has joined #ruby
esrse] has quit [Ping timeout: 252 seconds]
spiette has quit [Ping timeout: 244 seconds]
spiette has joined #ruby
<dionysus69> hey all
<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
waheedi has joined #ruby
andikr has quit [Ping timeout: 246 seconds]
beilabs_ has joined #ruby
beilabs has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
beilabs_ has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
<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.
aupadhye has quit [Quit: Leaving]
<phaul> it has the option to override the table name though if you need to
imperator has joined #ruby
prestori_ has quit [Quit: prestori_]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prestorium has joined #ruby
andikr has joined #ruby
regedit has joined #ruby
jcalla has joined #ruby
<dionysus69> thanks will try that
beilabs_ has joined #ruby
<mnemon> dionysus69: https://www.amberbit.com/blog/2014/6/12/calling-c-cpp-from-ruby/ various other methods without gem native exts
<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.
blackmesa has joined #ruby
DmitryBochkarev has quit [Ping timeout: 250 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion has joined #ruby
i1nfusion1 has joined #ruby
<dionysus69> thanks mnemon just found this too https://www.youtube.com/watch?v=Ms3EifxZopg&t=1796s
vondruch has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
dar123 has joined #ruby
i1nfusion has quit [Read error: Connection timed out]
nowhere_man has quit [Remote host closed the connection]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil____ has joined #ruby
Swyper has quit [Remote host closed the connection]
<mnemon> cool, haven't really played around with rust so far
crankharder has quit [Ping timeout: 246 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suukim has joined #ruby
v01d4lph4 has quit [Remote host closed the connection]
UnknownSoldier has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Quit: ZNC 1.7.2+deb1 - https://znc.in]
lucasb has joined #ruby
noboruma has quit [Remote host closed the connection]
crankharder has joined #ruby
stoffus_ has quit [Ping timeout: 240 seconds]
sagax has joined #ruby
jottr_ has joined #ruby
Swyper has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
Rapture has joined #ruby
Swyper has quit [Remote host closed the connection]
fluxAeon has joined #ruby
Swyper has joined #ruby
Inline has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
gnufied has joined #ruby
jottr has joined #ruby
catbusters has quit [Quit: Connection closed for inactivity]
jottr_ has quit [Ping timeout: 245 seconds]
uranoss has quit [Quit: Connection closed for inactivity]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
DmitryBochkarev has joined #ruby
fluxAeon_ has joined #ruby
fluxAeon has quit [Ping timeout: 250 seconds]
segy has quit [Quit: ZNC - http://znc.in]
fanta7531 has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
DmitryBochkarev has quit [Ping timeout: 250 seconds]
Nicmavr has joined #ruby
neovalis0 has joined #ruby
brool has joined #ruby
segy has joined #ruby
snickers has joined #ruby
v01d4lph4 has joined #ruby
v01d4lph4 has quit [Read error: Connection reset by peer]
DmitryBochkarev has joined #ruby
DmitryBochkarev has quit [Max SendQ exceeded]
DmitryBochkarev has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
mad_hatter has joined #ruby
sidx64 has joined #ruby
<mad_hatter> what do you guys recommend as the best book for learning ruby coming from other languages such as perl and python
polishdub has joined #ruby
griffindy has joined #ruby
TvL2386 has quit [Quit: leaving]
Swyper has quit [Remote host closed the connection]
TvL2386 has joined #ruby
orbyt_ has joined #ruby
mad_hatter has quit [Read error: Connection reset by peer]
yield has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mad_hatter has joined #ruby
yield has quit [Remote host closed the connection]
yield has joined #ruby
fanta7531 has quit [Quit: fanta7531]
orbyt_ has quit [Ping timeout: 245 seconds]
ldnunes has quit [Ping timeout: 268 seconds]
Xeago has quit [Ping timeout: 250 seconds]
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
crankharder has quit [Ping timeout: 245 seconds]
mad_hatter has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
mad_hatter has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segy has quit [Quit: ZNC - http://znc.in]
crankharder has joined #ruby
ldnunes has joined #ruby
segy has joined #ruby
mad_hatter has quit [Read error: Connection reset by peer]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
waheedi has quit [Quit: waheedi]
jottr has joined #ruby
segy has quit [Ping timeout: 245 seconds]
gix has joined #ruby
doodlebug has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
segy has joined #ruby
SeepingN has joined #ruby
Ai9zO5AP has joined #ruby
tdy has joined #ruby
sidx64 has joined #ruby
i1nfusion has joined #ruby
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
rippa has joined #ruby
sidx64_ has joined #ruby
sidx64 has quit [Ping timeout: 246 seconds]
sidx64_ has quit [Max SendQ exceeded]
sidx64 has joined #ruby
vondruch has quit [Quit: vondruch]
mondz has joined #ruby
vondruch has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Ping timeout: 245 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
ljarvis has joined #ruby
noboruma has joined #ruby
ljarvis has quit [Client Quit]
ljarvis has joined #ruby
andikr has quit [Remote host closed the connection]
fanta7531 has joined #ruby
yield has quit [Remote host closed the connection]
jottr has joined #ruby
someuser has joined #ruby
envex has quit []
TomyWork has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
sidx64 has quit [Ping timeout: 268 seconds]
dar123 has joined #ruby
marmotini_ has quit [Remote host closed the connection]
yield has joined #ruby
orbyt_ has joined #ruby
cd has quit [Quit: cd]
kapil____ has joined #ruby
cthulchu_ has joined #ruby
dar123 has quit [Quit: Textual IRC Client: www.textualapp.com]
robotcars1 has quit [Quit: Leaving.]
robotcars has joined #ruby
robotcars has left #ruby [#ruby]
prestorium has quit [Remote host closed the connection]
jottr has joined #ruby
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
cd has joined #ruby
waheedi has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
code_zombie has joined #ruby
pitastrudl has joined #ruby
gb_away_ has joined #ruby
gb_away has quit [Read error: Connection reset by peer]
mondz has quit [Ping timeout: 245 seconds]
waheedi has quit [Quit: waheedi]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
regedit has quit [Quit: Connection closed for inactivity]
druonysus has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
blackmesa has joined #ruby
Swyper has quit [Remote host closed the connection]
yield has quit [Remote host closed the connection]
yield has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
segy has quit [Ping timeout: 255 seconds]
themsay has quit [Ping timeout: 246 seconds]
yield has quit [Ping timeout: 268 seconds]
segy has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
KeyJoo has joined #ruby
eddof13 has joined #ruby
fanta7531 has quit [Quit: fanta7531]
alem0lars has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
jottr has quit [Ping timeout: 245 seconds]
suukim has quit [Quit: Konversation terminated!]
segy has quit [Quit: ZNC - http://znc.in]
alem0lars has quit [Ping timeout: 250 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
imperator has quit [Quit: Leaving]
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 264 seconds]
nwradio87888 has joined #ruby
nwradio8788 has quit [Ping timeout: 244 seconds]
jcarl43 has joined #ruby
epochwolf has quit [Read error: Connection reset by peer]
coffeejunk has quit [Read error: Connection reset by peer]
coffeejunk has joined #ruby
epochwolf has joined #ruby
hhzza has quit [Read error: Connection reset by peer]
fowlduck has quit [Read error: Connection reset by peer]
JJonah has quit [Read error: Connection reset by peer]
canton7 has quit [Remote host closed the connection]
hhzza has joined #ruby
Spitfire_ has quit [Ping timeout: 268 seconds]
fowlduck has joined #ruby
canton7 has joined #ruby
JoL1hAHN has quit [Ping timeout: 240 seconds]
JJonah has joined #ruby
JoL1hAHN has joined #ruby
Spitfire has joined #ruby
Spitfire has quit [Changing host]
Spitfire has joined #ruby
sauvin has quit [Ping timeout: 250 seconds]
yield has joined #ruby
fluxAeon_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has joined #ruby
yield has quit [Ping timeout: 268 seconds]
houhoulis has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
fluxAeon has joined #ruby
segy has joined #ruby
marz_d`ghostman has joined #ruby
<marz_d`ghostman> If I'm running rails with puma, which is the default, will I need nginx or apache?
<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.
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
<marz_d`ghostman> havenwood: so having rails server -e production would suffice?
<marz_d`ghostman> havenwood: Ah, I see what your saying now.
yield has joined #ruby
<havenwood> marz_d`ghostman: assuming you want to use ssl, you'll also need: -b 'ssl:...crt'
DmitryBochkarev has quit [Ping timeout: 250 seconds]
nwradio878887 has joined #ruby
yield has quit [Ping timeout: 250 seconds]
nwradio87888 has quit [Ping timeout: 245 seconds]
<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. ¯\_(ツ)_/¯
<havenwood> marz_d`ghostman: You can basically get those same benefits by putting Cloudflare in front too.
<havenwood> Static files, HTTP/2 and easy SSL - check, check and check.
<marz_d`ghostman> havenwood: I agree, I'm currently running my rails app inside docker and setup nginx on this server
<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.
<marz_d`ghostman> havenwood: A real pain setting it up :)
<havenwood> adam12: Interesting! I'd not seen Caddy.
ldnunes has quit [Quit: Leaving]
<adam12> havenwood: Reverse proxy + auto ssl is super simple. Most of my Caddyfile configs are 2-4 lines.
ldnunes has joined #ruby
nowhere_man has joined #ruby
<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.
<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
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<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.
<havenwood> Falcon is a really interesting contender on the Rack webserver side of things: https://github.com/socketry/falcon
jenrzzz has joined #ruby
<adam12> havenwood: I'm enjoying Iodine a lot, tho I've been following Falcon.
blackmesa has joined #ruby
kyrylo has joined #ruby
luminousnine has quit [Ping timeout: 252 seconds]
waheedi has joined #ruby
xfbs has quit [Ping timeout: 264 seconds]
hiroaki has joined #ruby
TvL2386_ has joined #ruby
TvL2386 has quit [Ping timeout: 250 seconds]
luminousnine has joined #ruby
luminousnine has joined #ruby
luminousnine has quit [Changing host]
xfbs has joined #ruby
yield has joined #ruby
<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?
<brool> i can't figure out how to capture more than the 1st result with #match
<brool> if i'm looking for /[RGB]/
dviola has joined #ruby
<adam12> brool: .scan(/[RGB]+/) will likely work.
<brool> i'll check
<adam12> brool: Could likely leave off the +. .scan(/[RGB]/)
<brool> that's exactly what i needed thanks
<brool> i was at a loss when the standard /g flag was not recognized
eddof13 has quit [Quit: eddof13]
doodlebug has quit [Read error: Connection reset by peer]
yield has quit [Ping timeout: 268 seconds]
doodlebug has joined #ruby
<havenwood> brool: for that particular example, you could also use a glob
<havenwood> &>> 'R and G and Blue'.delete('^RGB').chars
<rubydoc> # => ["R", "G", "B"] (https://carc.in/#/r/6op2)
<brool> interesting
kapil____ has quit [Quit: Connection closed for inactivity]
agent_white has quit [Quit: Lost terminal]
duderonomy has joined #ruby
eddof13 has joined #ruby
hightower3 has quit [Changing host]
hightower3 has joined #ruby
someuser has quit [Quit: Lost terminal]
crankharder has quit [Quit: Lost terminal]
SeepingN has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
yield has joined #ruby
<brool> is there a way i can quickly convert a string into a regexp like "abcde" -> /[abcde]/ ?
SCHAPiE has quit [Ping timeout: 246 seconds]
yield has quit [Ping timeout: 244 seconds]
SCHAPiE has joined #ruby
<baweaver> Regexp.union str.chars
griffindy has joined #ruby
<brool> nice
carbone5 has joined #ruby
orbyt_ has joined #ruby
Swyper has joined #ruby
eddof13 has quit [Quit: eddof13]
jenrzzz has quit [Quit: leaving]
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
orbyt_ has quit [Remote host closed the connection]
SeepingN has joined #ruby
jenrzzz has joined #ruby
<havenwood> brool: or: /[#{"abcde"}]/
neovalis0 has quit [Ping timeout: 244 seconds]
yield has joined #ruby
jottr has joined #ruby
yield has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 252 seconds]
<havenwood> &>> "abcde".then { |s| /[#{s}]/ }
<rubydoc> # => /[abcde]/ (https://carc.in/#/r/6ope)
ta_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
TheSin has joined #ruby
<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?
carbone5 has quit [Quit: carbone5]
t0xik has joined #ruby
dellavg_ has quit [Ping timeout: 245 seconds]
zachk has joined #ruby
<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.
zachk has quit [Changing host]
zachk has joined #ruby
<leftylink> as for how to get a directory in there that needs to be, I yield the floor
segy has quit [Quit: ZNC - http://znc.in]
Swyper has quit [Remote host closed the connection]
orbyt_ has joined #ruby
orbyt_ has quit [Read error: Connection reset by peer]
nowhere_man has quit [Ping timeout: 252 seconds]
segy has joined #ruby
yield has joined #ruby
waheedi has quit [Quit: waheedi]
marz_d`ghostman has quit [Quit: Page closed]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
fredolinhares has joined #ruby
Swyper has joined #ruby
yield has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
eddof13 has joined #ruby
Swyper has joined #ruby
gb_away_ has quit [Quit: One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em.]
jottr has joined #ruby
gb_away has joined #ruby
fluxAeon has quit [Ping timeout: 246 seconds]
fredolinhares has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
eddof13 has quit [Quit: eddof13]
ldnunes has quit [Quit: Leaving]
<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
<cthulchu_> my wonderful Ruby folks! Do you use STDOUT.flush?
Swyper has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 252 seconds]
eddof13 has joined #ruby
Code_[24]_ has joined #ruby
<hahuang65> cthulchu_ occassionally. depends on what I'm doing.
conta has quit [Ping timeout: 252 seconds]
yield has joined #ruby
<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?
doodleb10 has joined #ruby
TheSin has quit [Quit: Client exiting]
doodlebug has quit [Ping timeout: 245 seconds]
yield has quit [Ping timeout: 245 seconds]
<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.
<cthulchu_> ye
hiroaki has quit [Ping timeout: 252 seconds]
<cthulchu_> I'm about to use it just to have the parent process reading the output line by line
<cthulchu_> otherwise the stdout.on("data") doesn't get triggered until stdout is closed
Swyper has joined #ruby
Swyper has quit [Ping timeout: 250 seconds]
jrafanie has joined #ruby
houhoulis has quit [Remote host closed the connection]
themsay has joined #ruby
jottr has joined #ruby
yield has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
yield has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
UnknownSoldier has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
agent_white has joined #ruby
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 268 seconds]
segy has quit [Ping timeout: 246 seconds]
Mia has quit [Read error: Connection reset by peer]
yield has joined #ruby
Fernando-Basso has joined #ruby
<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?
yield has quit [Ping timeout: 252 seconds]
rindolf has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
matthewd has quit [Ping timeout: 252 seconds]
hightower3 has quit [Ping timeout: 255 seconds]
matthewd has joined #ruby
segy has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
<zenspider> cthu|: look at IO#sync=
Dbugger has quit [Quit: Leaving]
ellcs1 has joined #ruby
nakuku has joined #ruby
nakuku has quit [Remote host closed the connection]
DarthGandalf has quit [Ping timeout: 268 seconds]
polishdub has quit [Quit: leaving]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
cthulchu_ has joined #ruby
<cthulchu_> zenspider, yeah, I saw it and a few other options
yield has joined #ruby
<cthulchu_> I just wondered if there was a native handler or option outside
cthu| has quit [Ping timeout: 252 seconds]
<cthulchu_> cuz I need it to change depending on the context.
<zenspider> what context?
<cthulchu_> I could, of coarse, pass in an option and then depending on it, turn it on.
<cthulchu_> like if I run the script manually, then don't bother with flushing
<zenspider> manually versus what?
<cthulchu_> if I run it as a child process of a third party, then do bother
<zenspider> then check for a tty
<cthulchu_> tty? what is it?
<zenspider> something like: $stdout.sync = false if $stdout.tty?
<cthulchu_> perfect. what is tty?
yield has quit [Ping timeout: 245 seconds]
7ITAADFNC has joined #ruby
<zenspider> `man 4 tty`
themsay has quit [Remote host closed the connection]
themsay has joined #ruby
7ITAADFNC has quit [Remote host closed the connection]
eddof13 has quit [Quit: eddof13]
houhoulis has joined #ruby
reber has quit [Remote host closed the connection]
stryek has quit [Quit: Connection closed for inactivity]
yield has joined #ruby
Code_[24]_ has quit [Quit: Connection closed for inactivity]
segy has quit [Quit: ZNC - http://znc.in]
yield has quit [Ping timeout: 246 seconds]
SeepingN_ has joined #ruby
SeepingN has quit [Disconnected by services]
segy has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
doodleb10 has quit [Quit: -a- IRC for Android 2.1.49]
doodlebug has joined #ruby
houhoulis has quit [Remote host closed the connection]
griffindy has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 246 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
yield has joined #ruby
Ai9zO5AP has quit [Ping timeout: 255 seconds]