diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-10-31 12:05:15 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-10-31 03:13:15 +0000 |
| commit | 2eae7049384fb764a45b04451c8cc7d80de587ed (patch) | |
| tree | 5858b5ecac31413f334664b60f5cca5eec129327 /lib/optparse | |
| parent | 5b2707f39b1485620b9e91573a90d93c2129e126 (diff) | |
[ruby/optparse] We should use VERSION instead of Version constant
https://github.com/ruby/optparse/commit/94de48b47e
Diffstat (limited to 'lib/optparse')
| -rw-r--r-- | lib/optparse/optparse.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec index 6ea6b88395..885b0ec380 100644 --- a/lib/optparse/optparse.gemspec +++ b/lib/optparse/optparse.gemspec @@ -3,7 +3,7 @@ name = File.basename(__FILE__, ".gemspec") version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir| break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line| - /^\s*OptionParser::Version\s*=\s*"(.*)"/ =~ line and break $1 + /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1 end rescue nil end |
