Ruby Dependency Manager

Ruby Dependency Manager

bundler.io

1

About this website

A dependency management tool for the Ruby programming ecosystem that provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions needed across development, staging, and production. The tool manages an exit from dependency hell by ensuring that the exact gem versions specified in the project's Gemfile are resolved, locked, and installed consistently on every machine. Currently at version 4.0, the tool comes preinstalled with modern Ruby distributions. Dependencies are declared in a Gemfile using a Ruby DSL, specifying the gem source, required gems with version constraints using operators like tilde for pessimistic version constraints and comparison operators for exact bounds. The bundle install command resolves the full dependency tree, downloads gems from specified sources, installs them into a project-isolated location, and writes a lockfile recording exact versions and checksums for reproducibility. The bundle exec command ensures that scripts run with the exact gem versions from the lockfile, preventing version mismatches between development and production environments. Bundle update selectively upgrades specific gems while respecting version constraints, with conflict detection and detailed resolution explanations. Groups organize gems by environment, allowing installation of only production gems on servers and skipping test or development dependencies. Gem sources support public repositories like RubyGems, private gem servers, Git repositories with branch and tag specification, local path dependencies, and platform-specific conditional gems. The tool integrates with all Ruby web frameworks including Rails, Sinatra, and Hanami, with deployment support through capistrano-bundler for atomic gem installation during releases.

Tags & Categories

Statistics

1
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!