Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the version of the gem to the provides #272

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/fpm/package/gem.rb
Expand Up @@ -136,7 +136,7 @@ def load_package_info(gem_path)

# By default, we'll usually automatically provide this, but in the case that we are
# composing multiple packages, it's best to explicitly include it in the provides list.
self.provides << "#{self.name}"
self.provides << "#{self.name} = #{self.version}"

spec.runtime_dependencies.map do |dep|
# rubygems 1.3.5 doesn't have 'Gem::Dependency#requirement'
Expand Down