Skip to content

Commit

Permalink
Fix nil encodings as a migration
Browse files Browse the repository at this point in the history
Fixes SquotSoundMapper instances having no encoding after c0da920.
  • Loading branch information
MariusDoe committed Jan 12, 2024
1 parent 1cd3e91 commit 7b20a44
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
migrations
doPostUpdateMigrationsIn: aWorkingCopy
self fixNilEncoding.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
migrations
fixNilEncoding
| extension |
self encoding ifNotNil: [^ self].
extension := self path extension asLowercase.
self encoding:
(self class validEncodings
detect: [:each | each asLowercase = extension]
ifNone: [self class defaultEncoding])
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"wavEncoding" : "mad 9/20/2023 17:58" },
"instance" : {
"canReadVersionFrom:" : "mad 10/19/2023 12:56",
"doPostUpdateMigrationsIn:" : "mad 1/12/2024 12:34",
"fixNilEncoding" : "mad 1/12/2024 12:37",
"isValidVersion:" : "mad 10/21/2023 21:33",
"readVersionFrom:" : "mad 10/17/2023 12:22",
"transformVersion:ifFail:" : "mad 10/17/2023 12:33",
Expand Down

0 comments on commit 7b20a44

Please sign in to comment.