diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-02-09 19:31:49 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-11-13 11:06:10 +0900 |
commit | 636b70d2a6cd2cb7dba0087ca9f9fd424eb6250b (patch) | |
tree | 2629f9558ec0317f55aa9436084b9902485307f3 /lib/bundler/lazy_specification.rb | |
parent | ea7cde64fbb02f10a40ce0979f8f8c1151f8f9c9 (diff) |
[rubygems/rubygems] Allow setting metadata on LazySpecification
This is a step forward towards eventually including metadata in the
lockfile.
https://github.com/rubygems/rubygems/commit/56fc02b251
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r-- | lib/bundler/lazy_specification.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index 067bd2f49f..62d028356e 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -8,12 +8,14 @@ module Bundler include ForcePlatform attr_reader :name, :version, :platform - attr_accessor :source, :remote, :force_ruby_platform, :dependencies + attr_accessor :source, :remote, :force_ruby_platform, :dependencies, :required_ruby_version, :required_rubygems_version def initialize(name, version, platform, source = nil) @name = name @version = version @dependencies = [] + @required_ruby_version = Gem::Requirement.default + @required_rubygems_version = Gem::Requirement.default @platform = platform || Gem::Platform::RUBY @source = source @force_ruby_platform = default_force_ruby_platform |