mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

rquireするとLOAD_PATHが増えるんだねえ

$ cat t.rb
orig = $LOAD_PATH.dup
puts "LOAD_PATH:\n#{$LOAD_PATH.join("\n")}"
require 'net/pop'
puts "Additional LOAD_PATH:\n#{($LOAD_PATH - orig).join("\n")}"
puts "LOADED_FEATURES:\n#{$LOADED_FEATURES.filter{_1 =~ /net\/pop/}.sort.join("\n")}"
$ ruby t.rb
LOAD_PATH:
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/site_ruby/3.1.0
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/site_ruby/3.1.0/x86_64-linux
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/site_ruby
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/vendor_ruby/3.1.0
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/vendor_ruby/3.1.0/x86_64-linux
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/vendor_ruby
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/3.1.0/x86_64-linux
Additional LOAD_PATH:
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/gems/3.1.0/gems/net-pop-0.1.1/lib
LOADED_FEATURES:
/…/.rbenv/versions/3.1.0-preview1/lib/ruby/gems/3.1.0/gems/net-pop-0.1.1/lib/net/pop.rb

zunda

3.0.3だとnet/popはgemじゃないんだ!!

$ ruby t.rb
LOAD_PATH:
/…/.rbenv/versions/3.0.3/lib/ruby/site_ruby/3.0.0
/…/.rbenv/versions/3.0.3/lib/ruby/site_ruby/3.0.0/x86_64-linux
/…/.rbenv/versions/3.0.3/lib/ruby/site_ruby
/…/.rbenv/versions/3.0.3/lib/ruby/vendor_ruby/3.0.0
/…/.rbenv/versions/3.0.3/lib/ruby/vendor_ruby/3.0.0/x86_64-linux
/…/.rbenv/versions/3.0.3/lib/ruby/vendor_ruby
/…/.rbenv/versions/3.0.3/lib/ruby/3.0.0
/…/.rbenv/versions/3.0.3/lib/ruby/3.0.0/x86_64-linux
Additional LOAD_PATH:
LOADED_FEATURES:
/…/.rbenv/versions/3.0.3/lib/ruby/3.0.0/net/pop.rb