summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-25 21:39:03 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-25 21:39:03 +0900
commit48a5c155fa850fd0c0ea8b5b9219967b6e7181f9 (patch)
tree473a78a959f2bbb453d823ab9e2abafc44fb6938
parentedffe78a79dfddb6f17317b831a13dd5be919271 (diff)
Import racc-1.5.0 from upstream repository.
-rw-r--r--lib/racc/info.rb2
-rw-r--r--lib/racc/parser-text.rb1
-rw-r--r--lib/racc/parser.rb1
-rw-r--r--lib/racc/racc.gemspec9
4 files changed, 5 insertions, 8 deletions
diff --git a/lib/racc/info.rb b/lib/racc/info.rb
index b55866d..04085bd 100644
--- a/lib/racc/info.rb
+++ b/lib/racc/info.rb
@@ -11,7 +11,7 @@
#++
module Racc
- VERSION = '1.4.16'
+ VERSION = '1.5.0'
Version = VERSION
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
end
diff --git a/lib/racc/parser-text.rb b/lib/racc/parser-text.rb
index 118b1a1..8dadead 100644
--- a/lib/racc/parser-text.rb
+++ b/lib/racc/parser-text.rb
@@ -192,6 +192,7 @@ module Racc
begin
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
+ require 'jruby'
require 'racc/cparse-jruby.jar'
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
else
diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb
index 8d30f52..8346f01 100644
--- a/lib/racc/parser.rb
+++ b/lib/racc/parser.rb
@@ -190,6 +190,7 @@ module Racc
begin
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
+ require 'jruby'
require 'racc/cparse-jruby.jar'
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
else
diff --git a/lib/racc/racc.gemspec b/lib/racc/racc.gemspec
index 8442ef1..61356ec 100644
--- a/lib/racc/racc.gemspec
+++ b/lib/racc/racc.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = "racc"
- s.version = "1.4.16"
+ s.version = "1.5.0"
s.summary = "Racc is a LALR(1) parser generator"
s.description = <<DESC
Racc is a LALR(1) parser generator.
@@ -18,7 +18,7 @@ DESC
s.licenses = ["MIT"]
s.executables = ["racc"]
s.files = [
- "COPYING", "ChangeLog", "DEPENDS",
+ "COPYING", "ChangeLog",
"README.ja.rdoc", "README.rdoc", "Rakefile", "TODO", "bin/racc",
"ext/racc/MANIFEST",
"ext/racc/com/headius/racc/Cparse.java", "ext/racc/cparse/cparse.c",
@@ -99,9 +99,4 @@ DESC
else
s.extensions = ["ext/racc/cparse/extconf.rb"]
end
-
- s.add_development_dependency("rake-compiler", [">= 0.4.1"])
- s.add_development_dependency("minitest", ["~> 4.7"])
- s.add_development_dependency("rdoc", [">= 4.0", "< 7"])
- s.add_development_dependency("hoe", ["~> 3.18"])
end