Shopify / bootboot

Dualboot your Ruby app made easy
MIT License
416 stars 35 forks source link

Update gemspec to exclude unnecessary files #33

Closed mriddle closed 4 years ago

mriddle commented 4 years ago

The next bundled version of the gem will only include the files necessary to run it. Excluding files like the .rubocopy.yml and .travis.yml

It's a nice to have when caching the plugin manually to get around the fact that caching isn't supported for bundler plugins yet.

For folks looking to install and run this plugin from a vendored/cached location while the issues outlined in https://github.com/rubygems/bundler/issues/7152 are resolved, you can do so with gem unpack bootboot -v 0.1.2 --target vendor/plugins/ and

# Gemfile

if ENV['DEPENDENCIES_NEXT']
  Bundler.rubygems.add_to_load_path('vendor/plugins/bootboot-0.1.2/lib')
  load('vendor/plugins/bootboot-0.1.2/plugins.rb')
  enable_dual_booting

  gem 'future'
else
  gem 'present'
end