-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes SquotSoundMapper instances having no encoding after c0da920.
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotSoundMapper.class/instance/doPostUpdateMigrationsIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
migrations | ||
doPostUpdateMigrationsIn: aWorkingCopy | ||
self fixNilEncoding. |
9 changes: 9 additions & 0 deletions
9
src/Squot.package/SquotSoundMapper.class/instance/fixNilEncoding.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters