diff options
author | Yusuke Endoh <[email protected]> | 2024-09-13 14:50:35 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-09-13 15:49:28 +0900 |
commit | f090d1fa598ec13b30a40101d8de85c02a77cce3 () | |
tree | f4c5681873e0cb62625eb17a140dba4d9d42d77a /tool/lib/bundled_gem.rb | |
parent | cf5b965897141b84365fbf84231745e18d36c755 (diff) |
Try to find bundled gem version from lib/*/version.rb
Notes: Merged: https://.com/ruby/ruby/pull/11612
-rw-r--r-- | tool/lib/bundled_gem.rb | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -91,7 +91,10 @@ module BundledGem Dir.chdir(gemdir) do spec = Gem::Specification.new do |s| s.name = gemfile.chomp(".gemspec") - s.version = File.read("lib/#{s.name}.rb")[/VERSION = "(.+?)"/, 1] s.authors = ["DUMMY"] s.email = ["[email protected]"] s.files = Dir.glob("{lib,ext}/**/*").select {|f| File.file?(f)} |