diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-03 12:43:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-03 12:43:11 +0900 |
commit | 27f709aa3cdec00dadbc3a41c9974362060fdf66 (patch) | |
tree | 714d583b1726827fc22ab206b76bf2e423abf941 /lib/yaml | |
parent | b5c8c73f66c5c5c036715ccfc41e3761bcea1377 (diff) | |
download | ruby-27f709aa3cdec00dadbc3a41c9974362060fdf66.tar.gz |
Rename YAML::VERSION. It's conflict with Psych::VERSION
Diffstat (limited to 'lib/yaml')
-rw-r--r-- | lib/yaml/yaml.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yaml/yaml.gemspec b/lib/yaml/yaml.gemspec index afe65a2c64..2e184947e8 100644 --- a/lib/yaml/yaml.gemspec +++ b/lib/yaml/yaml.gemspec @@ -1,7 +1,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*VERSION\s*=\s*"(.*)"/ =~ line and break $1 + /^\s*LOADER_VERSION\s*=\s*"(.*)"/ =~ line and break $1 end rescue nil end |