-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rake: accept symbols defined with single and double quote characters
Close #3474. A symbol defined with single and double quote characters like :'name' and :"name" caused a crash of the Rake prser. The original code handled the initial character, <:> of a name like <:name> in the Rake parser side. The Rake passed the rest of string (<name>) to rubyParseMethodName() exported from the Ruby parser. However, rubyParseMethodName() itself has an ability to handle the initial character. So this commit makes the Rake parser pass whole <:name> to rubyParseMethodName(). The single and double quote characters after <:> is handled in rubyParseMethodName(). Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://raw.githubusercontent.com/apache/thrift/master/lib/rb/Rakefile | ||
RSpec::Core::RakeTask.new(:'spec:rcovSingle') do |t| | ||
t.rspec_opts = ['--color', '--format d'] | ||
t.rcov = true | ||
t.rcov_opts = ['--exclude', '^spec,/gems/'] | ||
end | ||
|
||
RSpec::Core::RakeTask.new(:"spec:rcovDouble") do |t| | ||
t.rspec_opts = ['--color', '--format d'] | ||
t.rcov = true | ||
t.rcov_opts = ['--exclude', '^spec,/gems/'] | ||
end | ||
|
||
# The next one may be extracted. | ||
RSpec::Core::RakeTask.new(:) do |t| | ||
t.rspec_opts = ['--color', '--format d'] | ||
t.rcov = true | ||
t.rcov_opts = ['--exclude', '^spec,/gems/'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters