diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-12-26 14:26:38 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-12-26 15:10:28 +0900 |
commit | 533bf6f19df7ea6bbfb9909f58afe2088a7914d5 (patch) | |
tree | c60f12ba882d5abbacec3c01e40f4e6f747e9dd8 /lib/racc | |
parent | 15e192070afd6c2335c119ef3164f3f002c49b89 (diff) | |
download | ruby-533bf6f19df7ea6bbfb9909f58afe2088a7914d5.tar.gz |
[ruby/racc] Use Racc::VERSION for gemspec
https://github.com/ruby/racc/commit/30f5760d85
Diffstat (limited to 'lib/racc')
-rw-r--r-- | lib/racc/racc.gemspec | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/racc/racc.gemspec b/lib/racc/racc.gemspec index 1e375fe26b..5c345891ad 100644 --- a/lib/racc/racc.gemspec +++ b/lib/racc/racc.gemspec @@ -1,8 +1,14 @@ # -*- encoding: utf-8 -*- +begin + require_relative "lib/racc/info" +rescue LoadError # Fallback to load version file in ruby core repository + require_relative "info" +end + Gem::Specification.new do |s| s.name = "racc" - s.version = "1.5.1" + s.version = Racc::VERSION s.summary = "Racc is a LALR(1) parser generator" s.description = <<DESC Racc is a LALR(1) parser generator. |