Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What we’ve been up to with Bundler

Colby Swandale
September 20, 2017

What we’ve been up to with Bundler

The Bundler core team has been working hard towards the Bundler 2 release. In this presentation we'll talk about the new features introduced in Bundler recently and also talk the big changes for the upcoming Bundler 2 release.

Presented at RubyKaigi 2017

Colby Swandale

September 20, 2017
Tweet

More Decks by Colby Swandale

Other Decks in Programming

Transcript

  1. $ bundle add rspec Fetching gem metadata from https://rubygems.org/.......... Fetching

    version metadata from https://rubygems.org/. Resolving dependencies... Resolving dependencies... Using bundler 1.15.4 Using diff-lcs 1.3 Using rack 2.0.3 Using rspec-support 3.6.0 Using rspec-core 3.6.0 Using rspec-expectations 3.6.0 Using rspec-mocks 3.6.0 Using rspec 3.6.0
  2. $ bundler install Installing rack ! Using bundler 1.15.4 Using

    rack 2.0.3 Bundle complete! 1 Gemfile dependency, 2 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed.
  3. $ bundle show --verbose * bundler (1.15.4) Summary: The best

    way to manage your application’s… Homepage: http://bundler.io Status: Up to date * rack (2.0.3) Summary: a modular Ruby webserver interface Homepage: http://rack.github.io/ Status: Up to date
  4. $ bundle list Gems included by the bundle: * actionmailer

    (5.1.3) * actionpack (5.1.3) * actionview (5.1.3) * activejob (5.1.3) * activesupport (5.1.3) * builder (3.2.3) * bundler (1.15.4) * capistrano (2.15.9) * capistrano-notifier (0.4.1) * concurrent-ruby (1.0.5) * erubi (1.6.1)
  5. $ bundler info rack * rack (2.0.3) Summary: a modular

    Ruby webserver interface Homepage: http://rack.github.io/ Path: /Users/c/.gem/ruby/2.4.1/gems/rack-2.0.3
  6. › bundler install --path foo Fetching gem metadata from https://rubygems.org/..

    Fetching version metadata from https://rubygems.org/. Using bundler 1.15.4 Fetching rack 2.0.3 Installing rack 2.0.3 Bundle complete! 1 Gemfile dependency, 2 gems now installed. Bundled gems are installed into ./foo.
  7. # mygem.gemspec Gem::Specification.new do |s| s.name = “mygem" s.summary =

    "my awesome gem" s.platform = Gem::Platform::RUBY # default
  8. $ bundler Bundler version 2.0.0 (2017-09-10 commit 0b0456249) Bundler commands:

    Primary commands: bundle install [OPTIONS] # Install the current environment to the bundle update [OPTIONS] # Update the current environment bundle cache [OPTIONS] # Locks and then caches all of the gems bundle exec [OPTIONS] # Run the command in context of the bundle config NAME [VALUE] # Retrieve or set a configuration value bundle help [COMMAND] # Describe available commands or one Utilities: bundle add GEM VERSION # Add gem to Gemfile and run bundl bundle binstubs GEM [OPTIONS] # Install the binstubs of the listed bundle check [OPTIONS] # Checks if the dependencies listed bundle doctor [OPTIONS] # Checks the bundle for common -V, [--verbose], [--no-verbose] # Enable verbose output mode
  9. $ bundler update Fetching gem metadata from https://rubygems.org/... Fetching gem

    metadata from https://rubygems.org/. Resolving dependencies... Fetching rack 2.0.3 (was 1.6.8) Installing rack 2.0.3 (was 1.6.8) Removing rack (1.6.8) Bundle updated!