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 Nov 8, 2017
1 parent 9c4250d commit 6a3bde3
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
@@ -1,9 +1,9 @@
<%
cucumber_pro_opts = ENV['ENABLE_CUCUMBER_PRO'] ? "--format Cucumber::Pro --out /dev/null" : ""
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 6a3bde3

Please sign in to comment.