зеркало из https://github.com/github/ruby.git
We should not validate development version of bundled gems with fetch timing.
We want to notify above situation when release time. So, I move this check into ruby/actions.
This commit is contained in:
Родитель
7397642021
Коммит
bb75e83d9f
|
@ -38,9 +38,4 @@ if r
|
|||
require_relative "lib/bundled_gem"
|
||||
BundledGem.dummy_gemspec("#{n}/#{n}.gemspec")
|
||||
end
|
||||
|
||||
# Check bundled_gems version and gemspec version same as BundledGem.build
|
||||
require "rubygems"
|
||||
spec = Gem::Specification.load("#{n}/#{n}.gemspec")
|
||||
abort "Unexpected versions between bundled_gems:#{v} and gemspec:#{spec.version}" unless spec.version == Gem::Version.new(v)
|
||||
end
|
||||
|
|
|
@ -20,9 +20,6 @@ module BundledGem
|
|||
Dir.chdir(gemdir) do
|
||||
spec = Gem::Specification.load(gemfile)
|
||||
abort "Failed to load #{gemspec}" unless spec
|
||||
unless spec.version == Gem::Version.new(version)
|
||||
abort "Unexpected versions between bundled_gems:#{version} and gemspec:#{spec.version}"
|
||||
end
|
||||
output = File.join(outdir, spec.file_name)
|
||||
FileUtils.rm_rf(output)
|
||||
package = Gem::Package.new(output)
|
||||
|
|
Загрузка…
Ссылка в новой задаче