havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.1, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
oxfuxxx has quit [Ping timeout: 256 seconds]
<havenwood> mooff: Ractor.send :__dir__ #=> "."
<leftylink> this is weird because it doesn't jive with my understanding of what __dir__ is. let's see
oxfuxxx has joined #ruby
<havenwood> leftylink: File.dirname File.realpath __FILE__
<leftylink> no, I cannot reproduce that behaviour. __dir__ for me the same regardless of any Dir.chdir I perform.
<leftylink> if there are any accusations of __dir__ changing on Dir.chdir I will need a demonstration of it
<nakilon> leftylink just apply File.expand_path
<nakilon> I mean technically it's the same "." but it does not mean the same directory after you chdir
<nakilon> because of that I had to add "workspace = File.expand_path __dir__" to the beginning of my program to freeze it
<leftylink> well I guess that's why I can't reproduce it. I don't have any . in my __dir__
<leftylink> too bad for me
<nakilon> _Oo
<leftylink> I guess I'll never know
<nakilon> try __dir__, not Ractor.__dir__
<nakilon> or idk what you mean
<leftylink> I've never used Ractor... where can I learn more about it?
<nakilon> oh that was mooff
goepsilongo has quit [Quit: Konversation terminated!]
* nakilon made a serverless cron filter from gmail to irc
goepsilongo has joined #ruby
goepsilongo has quit [Client Quit]
<nakilon> wow on my screenshot I've just noticed a thin grey bracket to the left from the "irb" -- now I wonder if that's a macos Terminal thing and for how many years I didn't notice it
Led_Zeppelin2 has quit [Remote host closed the connection]
taupiqueur has quit [Ping timeout: 250 seconds]
TCZ has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 3.4]
markong has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Leaving]
Rounin has quit [Ping timeout: 240 seconds]
ua__ has joined #ruby
ua_ has quit [Ping timeout: 240 seconds]
justAstache has quit [Read error: Connection reset by peer]
justAstache has joined #ruby
<mooff> ruby -e "puts __dir__" gives nil, and ruby-eval is wasm ruby with -e "#{repl_code}"
hideki0[m] has joined #ruby
<hideki0[m]> anyone use haml?
<hideki0[m]> need help with some haml code
<mooff> share your problem, hideki0[m]
<hideki0[m]> i cant get string comparison to work
<hideki0[m]> i have a simple `- if x == y` comparison but it always evals to false
<hideki0[m]> im using yield to set the value for x
<hideki0[m]> `- x = (yield :mykey)`
<mooff> try `= "btw x is #{x} and y is #{y}. x == y? #{x == y}"`
donofrio__ has joined #ruby
donofrio_ has quit [Ping timeout: 240 seconds]
rhe has quit [Ping timeout: 240 seconds]
rhe has joined #ruby
Guest6792 has joined #ruby
SteveR has joined #ruby
bluedust has joined #ruby
bluedust has quit [Remote host closed the connection]
nmollerup has quit [Quit: Leaving]
bluedust has joined #ruby
shiru has joined #ruby
shiru has quit [Client Quit]
krishnac has joined #ruby
ur5us_ has joined #ruby
teclator has joined #ruby
krishnac has quit [Remote host closed the connection]
Rounin has joined #ruby
_ht has joined #ruby
bluedust has quit [Remote host closed the connection]
Rounin has quit [Ping timeout: 240 seconds]
___nick___ has joined #ruby
taupiqueur has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
bluedust has joined #ruby
ur5us_ has quit [Ping timeout: 240 seconds]
taupiqueur has quit [Ping timeout: 260 seconds]
peer has quit [Quit: whoops]
peer has joined #ruby
bluedust has quit [Remote host closed the connection]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bluedust has joined #ruby
roadie has joined #ruby
Guest6792 has quit [Read error: Connection reset by peer]
SteveR has quit [Quit: Client closed]
Tempesta has quit [Ping timeout: 265 seconds]
taupiqueur has joined #ruby
markong has joined #ruby
Tempesta has joined #ruby
goldfish has joined #ruby
fef has joined #ruby
fef has quit [Remote host closed the connection]
libsys has quit [Ping timeout: 250 seconds]
goldfish has quit [Ping timeout: 272 seconds]
libsys has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
gr33n7007h has joined #ruby
bluedust has quit [Remote host closed the connection]
Rounin has joined #ruby
Guest33_ has joined #ruby
Guest33_ has quit [Client Quit]
Cena has joined #ruby
hololeap_ has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.4]
gr33n7007h has joined #ruby
Cena has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goldfish has joined #ruby
goldfish has quit [Remote host closed the connection]
<mooff> what about making the source tree of gems browsable on rubygems.org?
goldfish has joined #ruby
<mooff> atm to inspect a gem, you have to download and extract the .gem by hand
<mooff> if you install it with Bundler a) chances are you're running a hot reload server that'll require it immediately, b) it can run install scripts
<mooff> if you install it with gem, it can still run install scripts
taupiqueur has quit [Ping timeout: 256 seconds]
<legit> I think most gems link to a git* repo, though it may be ahead of the gem code
phryk has quit [Quit: ZNC 1.8.2 - https://znc.in]
Cena has joined #ruby
Cena has quit [Client Quit]
phryk has joined #ruby
phryk has quit [Remote host closed the connection]
phryk has joined #ruby
phryk has quit [Remote host closed the connection]
phryk has joined #ruby
<nakilon> what's the problem? you don't want to run install scripts?
taupiqueur has joined #ruby
unyu has quit [Quit: Reboot.]
markong has quit [Ping timeout: 256 seconds]
taupiqueur has quit [Read error: Connection reset by peer]
unyu has joined #ruby
taupiqueur has joined #ruby
taupiqueur has quit [Ping timeout: 256 seconds]
taupiqueur has joined #ruby
taupiqueur has quit [Ping timeout: 240 seconds]
taupiqueur has joined #ruby
ur5us_ has joined #ruby
vit has joined #ruby
vit is now known as freeworld
oxfuxxx has joined #ruby
Cena has joined #ruby
Cena has quit [Client Quit]
oxfuxxx has quit [Ping timeout: 252 seconds]
<mooff> legit: the gem may contain any code whatsoever, a git repo only tracks it by (strong) convention
oxfuxxx has joined #ruby
taupiqueur has quit [Quit: taupiqueur]
<mooff> nakilon: won't know who half the authors are of the gems in our dependency trees
<mooff> nakilon: almost no-one reviews the code that will actually run before they run it
<mooff> nakilon: our exposure from this is too great imo
<nakilon> half the authors are those who gave answers on stackoverflow /s
<weaksauce> it's a good idea to not wildly trust gems
<weaksauce> and generally only use what you need to at a bare minimum
oxfuxxx has quit [Ping timeout: 272 seconds]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
hololeap_ is now known as hololeap
oxfuxxx has joined #ruby
oxfuxxx has quit [Read error: Connection reset by peer]
<newton> relatable experience: I was at the first Ancient City Ruby where there were "gem install ancient-city-ruby" cards all over that was just a fun cli that told you the schedule
<newton> except you found out a the end of the conference that it wasn't the event that put them out, it was the last speaker (with permission from the conf)
<newton> the gem actually had a Rakefile post-install that grabbed your username and sent it to a heroku app he had hosted
<newton> it was a gem security talk
Cena has joined #ruby
Cena has quit [Client Quit]
___nick___ has quit [Ping timeout: 256 seconds]
_ht has quit [Remote host closed the connection]
<weaksauce> coming from a more c oriented background where you really had to need a dependency to install it makes one evaluate it much more critically
<weaksauce> things in ruby world aren't as bad as in npm though
Cena has joined #ruby
<mooff> newton: i've started taking it really seriously
<mooff> i was always dubious about the number of packages from ordinary individuals and the way we run them
hololeap has quit [Remote host closed the connection]
weaksauc_ has joined #ruby
weaksauce has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
hololeap has joined #ruby
TCZ has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
<mooff> the gem for the security talk should also have posted the number of private keys in their ~/.ssh dir
<mooff> the number of custom hosts in ~/.ssh/config
markong has joined #ruby
TCZ has quit [Quit: Leaving]
goepsilongo has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.4]
perrierjouet has joined #ruby
goepsilongo_ has quit [Ping timeout: 240 seconds]
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
oxfuxxx has joined #ruby
ur5us_ has quit [Quit: Leaving]
ur5us has joined #ruby