summaryrefslogtreecommitdiff
path: root/config/software/asdf_ruby.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-25 12:12:41 -0600
committermo khan <mo.khan@gmail.com>2020-06-25 12:12:41 -0600
commita7cff6ccaf2740125e91e56d93b71611b921bb3e (patch)
tree9d158a595b2f5631f709ed12b791c50db66c2647 /config/software/asdf_ruby.rb
parentd1f720c6e9b26816340d3cebd8c67bfbdbd53ffc (diff)
Shrink ruby
Diffstat (limited to 'config/software/asdf_ruby.rb')
-rw-r--r--config/software/asdf_ruby.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/config/software/asdf_ruby.rb b/config/software/asdf_ruby.rb
index 9cfa6b5..d6bb13f 100644
--- a/config/software/asdf_ruby.rb
+++ b/config/software/asdf_ruby.rb
@@ -54,6 +54,15 @@ build do
make "-j #{workers}", env: env
make "-j #{workers} install", env: env
command "#{install_dir}/bin/gem update --system"
- command "#{install_dir}/bin/gem install bundler -v '~>1.7' --no-document"
- command "#{install_dir}/bin/gem install bundler -v '~>2.0' --no-document"
+ command "rm -r #{install_dir}/embedded/share"
+ command "rm -r #{install_dir}/share"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/cache"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/doc"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/gems/**/man"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/gems/**/test"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/gems/**/.travis.yml"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/gems/**/.gitignore"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/gems/**/bundler/man"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/gems/**/.github"
+ command "rm -r #{install_dir}/lib/ruby/gems/**/gems/rubygems-update-*"
end