diff options
author | Vyacheslav Alexeev <alexeev.corp@gmail.com> | 2021-12-10 15:40:58 +0800 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-11 00:13:25 +0900 |
commit | 1a62a50c4f9c835dee5d6bc17ca45914daea1bbd (patch) | |
tree | dd5628eaa2030aa2783c50e00a75093f1e2594a2 /lib/bundler/dependency.rb | |
parent | 5f1975a454dd9a6743bfa196111a4fde62366798 (diff) |
[rubygems/rubygems] Add `github` and `ref` options to `bundle add`
https://github.com/rubygems/rubygems/commit/c3e54acab0
Diffstat (limited to 'lib/bundler/dependency.rb')
-rw-r--r-- | lib/bundler/dependency.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/dependency.rb b/lib/bundler/dependency.rb index 27206b1bac..94e85053dd 100644 --- a/lib/bundler/dependency.rb +++ b/lib/bundler/dependency.rb @@ -7,7 +7,7 @@ require_relative "rubygems_ext" module Bundler class Dependency < Gem::Dependency attr_reader :autorequire - attr_reader :groups, :platforms, :gemfile, :git, :branch + attr_reader :groups, :platforms, :gemfile, :git, :github, :branch, :ref PLATFORM_MAP = { :ruby => Gem::Platform::RUBY, @@ -82,7 +82,9 @@ module Bundler @groups = Array(options["group"] || :default).map(&:to_sym) @source = options["source"] @git = options["git"] + @github = options["github"] @branch = options["branch"] + @ref = options["ref"] @platforms = Array(options["platforms"]) @env = options["env"] @should_include = options.fetch("should_include", true) |