Skip to content

Commit 3cfd961

Browse files
committed
Make sure files are generated with bundled dependencies
1 parent 58673c4 commit 3cfd961

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
33
gemspec
44

55
gem 'rake'
6-
gem 'racc', '> 1.4.10'
6+
gem 'racc', '1.8.1'
77
gem 'kpeg', '>= 1.3.3'
88
gem 'test-unit'
99
gem 'test-unit-ruby-core'

Rakefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,16 @@ parsed_files = PARSER_FILES.map do |parser_file|
6767
puts "Generating #{parsed_file}..."
6868
case ext
6969
when '.ry' # need racc
70-
racc = Gem.bin_path 'racc', 'racc'
7170
rb_file = parser_file.gsub(/\.ry\z/, ".rb")
72-
ruby "#{racc} -l -E -o #{rb_file} #{parser_file}"
71+
sh "bundle exec racc -l -E -o #{rb_file} #{parser_file}"
7372
File.open(rb_file, 'r+') do |f|
7473
newtext = "# frozen_string_literal: true\n#{f.read}"
7574
f.rewind
7675
f.write newtext
7776
end
7877
when '.kpeg' # need kpeg
79-
kpeg = Gem.bin_path 'kpeg', 'kpeg'
8078
rb_file = parser_file.gsub(/\.kpeg\z/, ".rb")
81-
ruby "#{kpeg} -fsv -o #{rb_file} #{parser_file}"
79+
sh "bundle exec kpeg -fsv -o #{rb_file} #{parser_file}"
8280
File.write(rb_file, File.read(rb_file).gsub(/ +$/, '')) # remove trailing spaces
8381
end
8482
end

lib/rdoc/rd/block_parser.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
#
33
# DO NOT MODIFY!!!!
4-
# This file is automatically generated by Racc 1.8.0
4+
# This file is automatically generated by Racc 1.8.1
55
# from Racc grammar file "block_parser.ry".
66
#
77

@@ -23,7 +23,7 @@
2323
$".push "#{__dir__}/racc/info.rb"
2424

2525
module Racc
26-
VERSION = '1.8.0'
26+
VERSION = '1.8.1'
2727
Version = VERSION
2828
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
2929
end
@@ -38,7 +38,7 @@ class ParseError < StandardError; end
3838
ParseError = Racc::ParseError # :nodoc:
3939
end
4040

41-
# Racc is a LALR(1) parser generator.
41+
# Racc is an LALR(1) parser generator.
4242
# It is written in Ruby itself, and generates Ruby programs.
4343
#
4444
# == Command-line Reference

lib/rdoc/rd/inline_parser.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
#
33
# DO NOT MODIFY!!!!
4-
# This file is automatically generated by Racc 1.8.0
4+
# This file is automatically generated by Racc 1.8.1
55
# from Racc grammar file "inline_parser.ry".
66
#
77

@@ -23,7 +23,7 @@
2323
$".push "#{__dir__}/racc/info.rb"
2424

2525
module Racc
26-
VERSION = '1.8.0'
26+
VERSION = '1.8.1'
2727
Version = VERSION
2828
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
2929
end
@@ -38,7 +38,7 @@ class ParseError < StandardError; end
3838
ParseError = Racc::ParseError # :nodoc:
3939
end
4040

41-
# Racc is a LALR(1) parser generator.
41+
# Racc is an LALR(1) parser generator.
4242
# It is written in Ruby itself, and generates Ruby programs.
4343
#
4444
# == Command-line Reference

0 commit comments

Comments
 (0)