Skip to content

Commit

Permalink
postal-code-japan: suppress "literal string will be frozen in the fut…
Browse files Browse the repository at this point in the history
…ure" warning

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
```
  • Loading branch information
tikkss committed Sep 8, 2024
1 parent c4177ec commit abbbc76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datasets/postal-code-japan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def initialize(reading: :lowercase)
super()
@reading = reading
unless VALID_READINGS.include?(@reading)
message = ":reading must be one of ["
message = +":reading must be one of ["
message << VALID_READINGS.collect(&:inspect).join(", ")
message << "]: #{@reading.inspect}"
raise ArgumentError, message
Expand Down

0 comments on commit abbbc76

Please sign in to comment.