havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.0, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
timkaechele has quit [Quit: Leaving.]
mbrndtgn has quit [Quit: The Lounge - https://thelounge.chat]
mbrndtgn has joined #ruby
lim has joined #ruby
infernix has joined #ruby
eddof13 has joined #ruby
tsujp has quit [Quit: Client closed]
lim has quit [Remote host closed the connection]
<bobdobbs`> hm... I can't get cli-ui to load either. And can't see anything in it's documentation or it's github page about compatibility
<John_Ivan> 33:38 :)
<adam12> bobdobbs`: That error is from bundler, I think (and it's only a warning)
<adam12> bobdobbs`: If you're on Ruby 3, make sure you're running bundler 2.3.3 (or whatever the latest is)
ur5us_ has quit [Ping timeout: 240 seconds]
<bobdobbs`> adam12: oh. So the call to require is actually working?
<adam12> bobdobbs`: Yes. Likely.
<bobdobbs`> adam12: I don't think it did work. I wrote this as a test: http://pastie.org/p/5Netc9k7QLW93zGRO7cGu9
<bobdobbs`> When I run it, it doesn't get to line 3
<bobdobbs`> This is the output: http://pastie.org/p/0py1vvhXJkL9VO2jYUuWNm
timkaechele has joined #ruby
timkaechele has quit [Client Quit]
<adam12> bobdobbs`: Your error makes it seem bundler isn't being used, for whatever reason.
<bobdobbs`> oh. So bundler has to called within the script?
<adam12> bobdobbs`: No. I just did that to simplify things.
<bobdobbs`> ah, ok
<adam12> bobdobbs`: If I had a Gemfile, Gemfile.lock, in the same folder as my file, I'd just call `require "bundler/setup"`, and then `require "cli-ui"`. Nothing more.
<adam12> See my comment on that gist, if it's unclear.
<bobdobbs`> I think I see what you are getting it
<John_Ivan> made me laugh. a lot.
<bobdobbs`> So on my system, if run your first script, then I get what it is both expected and desired: the terminal prints OHAI
<bobdobbs`> and if I run the contents of your comment as a script, I get the "cannot load such file..." message, and no "OHAI"
<bobdobbs`> But I should get the same result from both right?
<bobdobbs`> Which means something in my system configuration is borked
<adam12> bobdobbs`: You have a Gemfile, Gemfile.lock?
<bobdobbs`> yes to both
<adam12> (the .lock is auto-generated)
<adam12> and the file is in the same dir?
<bobdobbs`> yesa
<adam12> Something seems odd, for sure.
<adam12> Can you put all 3 files together in a gist? and I'll look
<bobdobbs`> sure thing...
<bobdobbs`> well, I'd prefer to use pastie, if that's ok
<adam12> bobdobbs`: sure. gist supports multiple files but whatever works.
<adam12> bobdobbs`: There's no `require "bundler/setup"` at the beginning of your script.
<bobdobbs`> Yes. I wasn't sure that was necessary
<bobdobbs`> And I still get the same failure if it is included
<adam12> new gist
<bobdobbs`> adam12: hey, that one worked!
<bobdobbs`> lol. I am so confused now
<bobdobbs`> oooooooooooooh
<bobdobbs`> ok, the prognosis is that I'm a dumbass
<adam12> Yeah, the require needed to be adjusted for `cli/ui` too.
<adam12> Ruby uses $LOAD_PATH to find requires. It's basically a big Array with every gem root on it.
Al2O3 has joined #ruby
<adam12> When you say `require "foo"`, it goes to each folder in $LOAD_PATH and says, does dir/foo.rb exist? If so, require. Rinse. Repeat.
<bobdobbs`> soooo... simply asking for the library that exists instead of the one that doesn't exist made the difference
<bobdobbs`> thanks adam12
<adam12> So when bundler sets up the load paths, it sets up the path to `cli-ui/lib`. When you do "require "cli/ui"`, it's basically looking eventually for cli-ui/lib/cli/ui.rb. If you look at the gem source, you can see they have a lib/cli/ui.rb file. That's their entry point.
<adam12> bobdobbs`: Cool.
<bobdobbs`> that makes sense
duds- has quit [Remote host closed the connection]
eddof13 has quit [Quit: Textual IRC Client: www.textualapp.com]
eddof13 has joined #ruby
niv has quit [Ping timeout: 268 seconds]
niv has joined #ruby
John_Ivan has quit [Ping timeout: 256 seconds]
Rounin has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 250 seconds]
eddof13 has quit [Quit: Textual IRC Client: www.textualapp.com]
catsh has joined #ruby
eddof13 has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
catsh has quit [Ping timeout: 256 seconds]
gr33n7007h has quit [Quit: WeeChat 3.4]
gr33n7007h has joined #ruby
oxfuxxx has joined #ruby
teclator has joined #ruby
_ht has joined #ruby
casionaut has joined #ruby
catsh has joined #ruby
michigan has quit [Quit: Connection closed for inactivity]
ur5us_ has joined #ruby
cornduck_ has joined #ruby
cornduck has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
catsh has quit [Ping timeout: 240 seconds]
catsh has joined #ruby
ur5us_ has quit [Ping timeout: 240 seconds]
catsh has quit [Quit: WeeChat 3.3]
LACampbe1 has joined #ruby
<LACampbe1> I'm converting a make file to rake. is there anything in ruby like patsubst, that works with wildcards?
oxfuxxx has joined #ruby
oxfuxxx has quit [Remote host closed the connection]
mahlon has quit [Ping timeout: 240 seconds]
mahlon has joined #ruby
lim has joined #ruby
bluedust has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
darkstardevx has quit [Remote host closed the connection]
geewiz has joined #ruby
darkstardevx has joined #ruby
relyks has joined #ruby
relyks has quit [Remote host closed the connection]
darkstardevx has quit [Max SendQ exceeded]
Rounin has joined #ruby
fef has joined #ruby
lim has quit [Remote host closed the connection]
lim has joined #ruby
lim has quit [Remote host closed the connection]
lim has joined #ruby
timkaechele has joined #ruby
lim has quit [Remote host closed the connection]
lim has joined #ruby
timkaechele has quit [Ping timeout: 240 seconds]
timkaechele has joined #ruby
lim has quit [Remote host closed the connection]
lim has joined #ruby
gproto23 has joined #ruby
lim has quit [Remote host closed the connection]
bluedust_ has quit [Remote host closed the connection]
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
lim has joined #ruby
lim has quit [Remote host closed the connection]
shiru has joined #ruby
shiru has quit [Client Quit]
geewiz has quit [Remote host closed the connection]
fef has quit [Remote host closed the connection]
fef has joined #ruby
bit4bit has joined #ruby
bit4bit has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
John_Ivan has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 256 seconds]
matju has joined #ruby
timkaechele has quit [Quit: Leaving.]
<adam12> I'm not super familiar with patsubst.
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
schalken has joined #ruby
matju has left #ruby [Leaving]
Hess has joined #ruby
bluedust has quit [Remote host closed the connection]
lucasb has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<havenwood> Anyone tried the new typeprof IDE integration yet?
<havenwood> Ruby 3.1 \o/
teclator has joined #ruby
bluedust has joined #ruby
bluedust has quit [Remote host closed the connection]
<adam12> havenwood: not yet. thoughts?
<adam12> (or initial impressions)
fef has quit [Ping timeout: 276 seconds]
<havenwood> adam12: Seems super promising. Love it. Too many issues still to really adopt but so cool.
<havenwood> Feel like getting Steep IDE integration for free...
<havenwood> adam12: Like it doesn't understand the splat yet and thinks `[*'a'..'z']` is a Array[Range[String]], which then makes for strange issues.
<havenwood> Still, magical.
<adam12> Neat. I'm eager to try it.
lucasb has quit [Quit: Connection closed for inactivity]
<weaksauce> that's a nicely written doc page
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
casionaut has quit [Remote host closed the connection]
timkaechele has joined #ruby
timkaechele1 has joined #ruby
timkaechele has quit [Ping timeout: 240 seconds]
<LACampbe1> thanks Adam. didn't solve my problem but FileList is useful in its own right
<LACampbe1> basically patsubst is like a more powerful gsub, in that it allows you to replace a pattern with another pattern, ie (patsubst input/%.a, output/%.b). Ie all the file paths that have an input and extension a, get changed to output with extension b. AFAIK this requires multiple calls to gsub in ruby
casionaut has joined #ruby
hellstabber has joined #ruby
Milos has quit [Quit: ZNC 1.8.2 - https://znc.in]
Milos has joined #ruby
timkaechele has joined #ruby
timkaechele1 has quit [Ping timeout: 240 seconds]
_ht has quit [Remote host closed the connection]
timkaechele1 has joined #ruby
timkaechele has quit [Ping timeout: 268 seconds]
<weaksauce> that's neat havenwood
hololeap has quit [Quit: Bye]
timkaechele1 has left #ruby [#ruby]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<gr33n7007h> yeah, Async really is a beautiful framework.
mjanssen has joined #ruby
hellstabber has quit [Quit: Cy@]
cornduck_ has quit [Remote host closed the connection]
gproto23 has quit [Ping timeout: 240 seconds]
cornduck has joined #ruby
ur5us_ has joined #ruby
casionaut has quit [Remote host closed the connection]
m_antis has quit [Quit: ZNC - https://znc.in]
m_antis has joined #ruby
m_antis has quit [Client Quit]
m_antis has joined #ruby
m_antis has quit [Client Quit]
m_antis has joined #ruby
m_antis has quit [Client Quit]
m_antis has joined #ruby
TCZ has joined #ruby
perrierjouet has quit [Ping timeout: 268 seconds]