Make gemspec files for default gems with extensions

So that rubygems can find them as gems.  However, the `--install-dir`
option of `gem install` seems to exclude prerelease gems, even already
installed in that directory, from the dependencies for some reasons;
use the `GEM_HOME` environment variable instead.

Now net-imap 0.5.0 depends on json gem.
This commit is contained in:
Nobuyoshi Nakada 2024-10-31 01:06:36 +09:00
parent 80fd846353
commit 0fda818bd7
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
Notes: git 2024-10-31 17:33:36 +00:00
3 changed files with 35 additions and 8 deletions

2
tool/lib/gem_env.rb Normal file
View file

@ -0,0 +1,2 @@
ENV['GEM_HOME'] = gem_home = File.expand_path('.bundle')
ENV['GEM_PATH'] = [gem_home, File.expand_path('../../../.bundle', __FILE__)].uniq.join(File::PATH_SEPARATOR)