Skip to content
Merged

Bump #247

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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