Skip to content

Commit 7f4212b

Browse files
authored
postal-code-japan: suppress "literal string will be frozen in the future" warning (#227)
Before change: ```console $ ruby test/run-test.rb -t PostalCodeJapanTest 2>&1 | grep red-datasets /Users/zzz/src/github.com/red-data-tools/red-datasets/lib/datasets/postal-code-japan.rb:45: warning: literal string will be frozen in the future ``` After change: ```console $ ruby test/run-test.rb -t PostalCodeJapanTest 2>&1 | grep red-datasets ```
1 parent 6723879 commit 7f4212b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datasets/postal-code-japan.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def initialize(reading: :lowercase)
4141
super()
4242
@reading = reading
4343
unless VALID_READINGS.include?(@reading)
44-
message = ":reading must be one of ["
44+
message = +":reading must be one of ["
4545
message << VALID_READINGS.collect(&:inspect).join(", ")
4646
message << "]: #{@reading.inspect}"
4747
raise ArgumentError, message

0 commit comments

Comments
 (0)