00:01
timkaechele has quit [Quit: Leaving.]
00:11
mbrndtgn has joined #ruby
00:14
lim has joined #ruby
00:19
infernix has joined #ruby
00:21
eddof13 has joined #ruby
00:21
tsujp has quit [Quit: Client closed]
00:26
lim has quit [Remote host closed the connection]
00:33
<
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
00:53
<
John_Ivan >
33:38 :)
01:16
<
adam12 >
bobdobbs`: That error is from bundler, I think (and it's only a warning)
01:16
<
adam12 >
bobdobbs`: If you're on Ruby 3, make sure you're running bundler 2.3.3 (or whatever the latest is)
01:18
ur5us_ has quit [Ping timeout: 240 seconds]
01:30
<
bobdobbs` >
adam12: oh. So the call to require is actually working?
01:30
<
adam12 >
bobdobbs`: Yes. Likely.
01:34
<
bobdobbs` >
When I run it, it doesn't get to line 3
01:34
timkaechele has joined #ruby
01:34
timkaechele has quit [Client Quit]
01:36
<
adam12 >
bobdobbs`: Your error makes it seem bundler isn't being used, for whatever reason.
01:37
<
bobdobbs` >
oh. So bundler has to called within the script?
01:37
<
adam12 >
bobdobbs`: No. I just did that to simplify things.
01:38
<
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.
01:38
<
adam12 >
See my comment on that gist, if it's unclear.
01:42
<
bobdobbs` >
I think I see what you are getting it
01:43
<
John_Ivan >
made me laugh. a lot.
01:43
<
bobdobbs` >
So on my system, if run your first script, then I get what it is both expected and desired: the terminal prints OHAI
01:44
<
bobdobbs` >
and if I run the contents of your comment as a script, I get the "cannot load such file..." message, and no "OHAI"
01:45
<
bobdobbs` >
But I should get the same result from both right?
01:45
<
bobdobbs` >
Which means something in my system configuration is borked
01:45
<
adam12 >
bobdobbs`: You have a Gemfile, Gemfile.lock?
01:45
<
bobdobbs` >
yes to both
01:45
<
adam12 >
(the .lock is auto-generated)
01:45
<
adam12 >
and the file is in the same dir?
01:45
<
adam12 >
Something seems odd, for sure.
01:46
<
adam12 >
Can you put all 3 files together in a gist? and I'll look
01:46
<
bobdobbs` >
sure thing...
01:46
<
bobdobbs` >
well, I'd prefer to use pastie, if that's ok
01:47
<
adam12 >
bobdobbs`: sure. gist supports multiple files but whatever works.
01:49
<
adam12 >
bobdobbs`: There's no `require "bundler/setup"` at the beginning of your script.
01:50
<
bobdobbs` >
Yes. I wasn't sure that was necessary
01:50
<
bobdobbs` >
And I still get the same failure if it is included
01:54
<
bobdobbs` >
adam12: hey, that one worked!
01:55
<
bobdobbs` >
lol. I am so confused now
01:55
<
bobdobbs` >
oooooooooooooh
01:55
<
bobdobbs` >
ok, the prognosis is that I'm a dumbass
01:56
<
adam12 >
Yeah, the require needed to be adjusted for `cli/ui` too.
01:56
<
adam12 >
Ruby uses $LOAD_PATH to find requires. It's basically a big Array with every gem root on it.
01:56
Al2O3 has joined #ruby
01:57
<
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.
01:57
<
bobdobbs` >
soooo... simply asking for the library that exists instead of the one that doesn't exist made the difference
01:57
<
bobdobbs` >
thanks adam12
01:58
<
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.
01:58
<
adam12 >
bobdobbs`: Cool.
01:58
<
bobdobbs` >
that makes sense
01:59
duds- has quit [Remote host closed the connection]
02:05
eddof13 has joined #ruby
02:20
niv has quit [Ping timeout: 268 seconds]
02:59
niv has joined #ruby
03:23
John_Ivan has quit [Ping timeout: 256 seconds]
04:00
Rounin has quit [Ping timeout: 240 seconds]
04:05
oxfuxxx has joined #ruby
04:38
oxfuxxx has quit [Ping timeout: 250 seconds]
05:25
catsh has joined #ruby
05:28
eddof13 has joined #ruby
05:53
kaivai has joined #ruby
06:19
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:20
eddof13 has joined #ruby
06:35
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:57
catsh has quit [Ping timeout: 256 seconds]
07:04
gr33n7007h has quit [Quit: WeeChat 3.4]
07:11
gr33n7007h has joined #ruby
07:30
oxfuxxx has joined #ruby
07:45
teclator has joined #ruby
07:53
_ht has joined #ruby
07:56
casionaut has joined #ruby
08:01
catsh has joined #ruby
08:14
michigan has quit [Quit: Connection closed for inactivity]
08:16
ur5us_ has joined #ruby
08:19
cornduck_ has joined #ruby
08:21
cornduck has quit [Ping timeout: 276 seconds]
08:35
roshanavand has joined #ruby
08:39
oxfuxxx has quit [Quit: Raccoon's not another IRC transgenre wannabe who can't fap at the dead american dream, fhackerz]
08:44
catsh has quit [Ping timeout: 240 seconds]
08:45
catsh has joined #ruby
08:52
ur5us_ has quit [Ping timeout: 240 seconds]
09:27
catsh has quit [Quit: WeeChat 3.3]
09:41
LACampbe1 has joined #ruby
09:42
<
LACampbe1 >
I'm converting a make file to rake. is there anything in ruby like patsubst, that works with wildcards?
09:46
oxfuxxx has joined #ruby
10:23
oxfuxxx has quit [Remote host closed the connection]
10:57
mahlon has quit [Ping timeout: 240 seconds]
11:05
mahlon has joined #ruby
11:17
lim has joined #ruby
11:17
bluedust has joined #ruby
11:25
bluedust_ has joined #ruby
11:28
bluedust has quit [Ping timeout: 240 seconds]
11:36
darkstardevx has quit [Remote host closed the connection]
11:37
darkstardevx has joined #ruby
11:39
darkstardevx has quit [Remote host closed the connection]
11:39
geewiz has joined #ruby
11:41
darkstardevx has joined #ruby
11:43
relyks has joined #ruby
11:43
relyks has quit [Remote host closed the connection]
11:44
darkstardevx has quit [Max SendQ exceeded]
11:44
Rounin has joined #ruby
11:48
fef has joined #ruby
11:50
lim has quit [Remote host closed the connection]
11:50
lim has joined #ruby
11:54
lim has quit [Remote host closed the connection]
11:55
lim has joined #ruby
11:56
timkaechele has joined #ruby
12:01
lim has quit [Remote host closed the connection]
12:01
lim has joined #ruby
12:02
timkaechele has quit [Ping timeout: 240 seconds]
12:02
timkaechele has joined #ruby
12:09
lim has quit [Remote host closed the connection]
12:29
lim has joined #ruby
12:34
gproto23 has joined #ruby
12:40
lim has quit [Remote host closed the connection]
12:46
bluedust_ has quit [Remote host closed the connection]
12:51
hololeap has quit [Remote host closed the connection]
12:53
hololeap has joined #ruby
13:09
lim has joined #ruby
13:34
lim has quit [Remote host closed the connection]
13:46
shiru has joined #ruby
13:46
shiru has quit [Client Quit]
13:55
geewiz has quit [Remote host closed the connection]
14:03
fef has quit [Remote host closed the connection]
14:06
fef has joined #ruby
14:07
bit4bit has joined #ruby
14:16
bit4bit has quit [Ping timeout: 240 seconds]
14:27
bluedust has joined #ruby
14:52
John_Ivan has joined #ruby
15:10
bluedust_ has joined #ruby
15:13
bluedust has quit [Ping timeout: 240 seconds]
15:15
bluedust has joined #ruby
15:18
bluedust_ has quit [Ping timeout: 256 seconds]
16:05
matju has joined #ruby
16:09
timkaechele has quit [Quit: Leaving.]
16:12
<
adam12 >
I'm not super familiar with patsubst.
16:48
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
16:51
schalken has joined #ruby
16:56
matju has left #ruby [Leaving]
17:03
Hess has joined #ruby
17:09
bluedust has quit [Remote host closed the connection]
17:15
lucasb has joined #ruby
17:32
<
havenwood >
Anyone tried the new typeprof IDE integration yet?
17:32
<
havenwood >
Ruby 3.1 \o/
17:39
teclator has joined #ruby
17:52
bluedust has joined #ruby
17:58
bluedust has quit [Remote host closed the connection]
18:07
<
adam12 >
havenwood: not yet. thoughts?
18:07
<
adam12 >
(or initial impressions)
18:25
fef has quit [Ping timeout: 276 seconds]
18:32
<
havenwood >
adam12: Seems super promising. Love it. Too many issues still to really adopt but so cool.
18:32
<
havenwood >
Feel like getting Steep IDE integration for free...
18:33
<
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.
18:34
<
havenwood >
Still, magical.
18:37
<
adam12 >
Neat. I'm eager to try it.
19:35
lucasb has quit [Quit: Connection closed for inactivity]
19:43
<
weaksauce >
that's a nicely written doc page
19:47
weaksauce has joined #ruby
19:48
casionaut has quit [Remote host closed the connection]
19:57
timkaechele has joined #ruby
20:06
timkaechele1 has joined #ruby
20:07
timkaechele has quit [Ping timeout: 240 seconds]
20:16
<
LACampbe1 >
thanks Adam. didn't solve my problem but FileList is useful in its own right
20:24
<
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
20:25
casionaut has joined #ruby
20:27
hellstabber has joined #ruby
20:45
Milos has joined #ruby
20:49
timkaechele has joined #ruby
20:50
timkaechele1 has quit [Ping timeout: 240 seconds]
21:15
_ht has quit [Remote host closed the connection]
21:19
timkaechele1 has joined #ruby
21:22
timkaechele has quit [Ping timeout: 268 seconds]
21:26
<
weaksauce >
that's neat havenwood
21:29
hololeap has quit [Quit: Bye]
21:35
timkaechele1 has left #ruby [#ruby]
21:49
<
gr33n7007h >
yeah, Async really is a beautiful framework.
22:14
mjanssen has joined #ruby
22:18
hellstabber has quit [Quit: Cy@]
22:27
cornduck_ has quit [Remote host closed the connection]
22:27
gproto23 has quit [Ping timeout: 240 seconds]
22:27
cornduck has joined #ruby
22:30
ur5us_ has joined #ruby
22:37
casionaut has quit [Remote host closed the connection]
23:09
m_antis has joined #ruby
23:12
m_antis has quit [Client Quit]
23:13
m_antis has joined #ruby
23:15
m_antis has quit [Client Quit]
23:18
m_antis has joined #ruby
23:20
m_antis has quit [Client Quit]
23:24
m_antis has joined #ruby
23:27
TCZ has joined #ruby
23:54
perrierjouet has quit [Ping timeout: 268 seconds]