Skip to content

Commit

Permalink
Frozen-string-literal fixes in eval'd code.
Browse files Browse the repository at this point in the history
The pragma comment doesn't pick up these uses because the code is eval'd on the fly.
  • Loading branch information
pat committed Jul 6, 2017
1 parent 76da7b6 commit 9aa704f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cucumber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
cucumber_pro_opts = ENV['ENABLE_CUCUMBER_PRO'] ? "--format Cucumber::Pro --out /dev/null" : ""
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format pretty #{rerun}"
std_opts = "--format progress features -r features --strict #{cucumber_pro_opts}"
std_opts = "--format progress features -r features --strict #{cucumber_pro_opts}".dup
std_opts << " --tags ~@wip-jruby" if defined?(JRUBY_VERSION)
wip_opts = "--color -r features"
wip_opts = "--color -r features".dup
wip_opts << " --tags @wip" if !defined?(JRUBY_VERSION)
wip_opts << " --tags @wip,@wip-jruby" if defined?(JRUBY_VERSION)
%>
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/term/ansicolor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def self.coloring=(val)
ATTRIBUTES.each do |c, v|
eval %Q{
def #{c}(string = nil)
result = ''
result = String.new
result << "\e[#{v}m" if Cucumber::Term::ANSIColor.coloring?
if block_given?
result << yield
Expand Down

0 comments on commit 9aa704f

Please sign in to comment.