Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly define mutable strings #620

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/roo/formatters/yaml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def to_yaml(prefix = {}, from_row = nil, from_column = nil, to_row = nil, to_col
from_column ||= first_column(sheet)
to_column ||= last_column(sheet)

result = "--- \n"
result = String.new("--- \n")
from_row.upto(to_row) do |row|
from_column.upto(to_column) do |col|
next if empty?(row, col, sheet)
Expand Down
2 changes: 1 addition & 1 deletion test/roo/test_open_office.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def test_bug_ric
assert workbook.empty?("C", 1)
assert workbook.empty?("D", 1)
expected = 1
letter = "e"
letter = String.new("e")
while letter <= "u"
assert_equal expected, workbook.cell(letter, 1)
letter.succ!
Expand Down