Skip to content

Commit

Permalink
Merge pull request #1136 from pat/frozen-string-literals
Browse files Browse the repository at this point in the history
Frozen-string-literal fixes in eval'd code.
  • Loading branch information
olleolleolle authored Jan 8, 2018
2 parents 631b418 + 6a3bde3 commit 89d5d93
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 89d5d93

Please sign in to comment.