Skip to content

Commit

Permalink
Merge pull request #247 from nobu/bump
Browse files Browse the repository at this point in the history
Bump
  • Loading branch information
nobu committed Nov 2, 2023
2 parents 91ee281 + d5aaca4 commit 3459433
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -4,5 +4,5 @@ group :development do
gem "rake", "13.0.6"
gem "rake-compiler", "1.2.3"
gem "test-unit", "3.6.1"
gem "test-unit-ruby-core", "1.0.1"
gem "test-unit-ruby-core", "1.0.5"
end
11 changes: 10 additions & 1 deletion Rakefile
Expand Up @@ -4,8 +4,9 @@ require "bundler/gem_tasks"

require 'rdoc/task'

spec = Gem::Specification.load("racc.gemspec")

RDoc::Task.new(:docs) do |rd|
spec = Gem::Specification.load("racc.gemspec")
rd.main = "README.en.rdoc"
rd.rdoc_files.include(spec.files.find_all { |file_name|
file_name =~ /^(bin|lib|ext)/ || file_name !~ /\//
Expand Down Expand Up @@ -47,6 +48,14 @@ end
}
end

javasrc, = Dir.glob('ext/racc/**/Cparse.java')
task :compile => javasrc do
code = File.binread(javasrc)
if code.sub!(/RACC_VERSION\s*=\s*"\K([^"]*)(?=")/) {|v| break if v == spec.version; spec.version}
File.binwrite(javasrc, code)
end
end

lib_dir = nil # for dummy rake/extensiontask.rb at ruby test-bundled-gems
if jruby?
# JRUBY
Expand Down
2 changes: 1 addition & 1 deletion ext/racc/com/headius/racc/Cparse.java
Expand Up @@ -45,7 +45,7 @@
import org.jruby.runtime.load.Library;

public class Cparse implements Library {
public static final String RACC_VERSION = "1.7.2"; // TODO: parse from Cparse.c
public static final String RACC_VERSION = "1.7.3.dev.1"; // TODO: parse from Cparse.c

public enum TokenType {
DEFAULT(-1),
Expand Down
2 changes: 1 addition & 1 deletion lib/racc/info.rb
Expand Up @@ -12,7 +12,7 @@
#++

module Racc
VERSION = '1.7.2'
VERSION = '1.7.3.dev.1'
Version = VERSION
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
end

0 comments on commit 3459433

Please sign in to comment.