Skip to content

Commit

Permalink
Fix DeprecationWarnings for #startsWith:
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover committed Oct 7, 2020
1 parent 6985347 commit e6391a0
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ tryHandleError: anError
['PHONE_NUMBER_INVALID'] -> [UIManager default inform: TCCErrorConstants invalidAuthenticationCode].
['PHONE_CODE_INVALID'] -> [UIManager default inform: TCCErrorConstants invalidAuthenticationCode]}
otherwise: [
((anError at: 'message') startsWith: 'Can''t lock file')
((anError at: 'message') beginsWith: 'Can''t lock file')
ifTrue: [UIManager default inform: TCCErrorConstants tdlibAlreadyInUse]
ifFalse: [self halt: 'An Error Occured. Check Transcript Output.']].
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"sendMessage:to:" : "rs 6/13/2020 15:26",
"sendPhoneNumber:" : "js 6/13/2020 15:35",
"setUserID:" : "js 8/2/2020 13:15",
"tryHandleError:" : "js 7/31/2020 15:13",
"tryHandleError:" : "ct 10/7/2020 19:37",
"update" : "js 7/31/2020 22:34" } }
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ initialize
self
classes: ((SystemNavigation default allClasses
select: [:aClass |
(aClass class category startsWith: 'TelegramClient') and: [(aClass class name startsWith: 'TCCFFIClient') not]]));
(aClass class category beginsWith: 'TelegramClient') and: [(aClass class name beginsWith: 'TCCFFIClient') not]]));
classTestObjects: (self classes collect: [:anObject | anObject as: SLTestObject]).
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ testCorrectClassPrefix

self classes do: [:aClass |
(aClass class category endsWith: 'Core')
ifTrue: [self assert: (aClass class name startsWith: 'TCC')].
ifTrue: [self assert: (aClass class name beginsWith: 'TCC')].

(aClass class category endsWith: 'Tests')
ifTrue: [self assert: (aClass class name startsWith: 'TCT')].
ifTrue: [self assert: (aClass class name beginsWith: 'TCT')].

(aClass class category endsWith: 'UI')
ifTrue: [self assert: (aClass class name startsWith: 'TCU')]]
ifTrue: [self assert: (aClass class name beginsWith: 'TCU')]]
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"classes" : "js 6/13/2020 11:38",
"classes:" : "js 6/13/2020 11:38",
"environmentFor:withRule:" : "js 6/13/2020 17:53",
"initialize" : "js 6/13/2020 18:35",
"initialize" : "ct 10/7/2020 19:31",
"isLineWithOnlyTabsAndSpaces:" : "j 7/16/2020 12:30",
"methodTestObjects" : "js 6/13/2020 14:06",
"methodsLinesDo:" : "js 6/13/2020 18:05",
"testCorrectClassPrefix" : "js 6/13/2020 18:23",
"testCorrectClassPrefix" : "ct 10/7/2020 19:32",
"testIfTrueReturnsRule" : "js 6/13/2020 18:35",
"testInstanceVarAccess" : "js 6/13/2020 16:54",
"testLongMethods" : "rs 6/25/2020 10:47",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ testString

self assert: (self request asString includesSubstring: '"@type":"test"').
self assert: (self request asString includesSubstring: '"code":"0"').
self assert: (self request asString startsWith: '{').
self assert: (self request asString beginsWith: '{').
self assert: (self request asString endsWith: '}').
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"request" : "js 8/1/2020 12:09",
"request:" : "js 8/1/2020 12:10",
"setUp" : "js 8/1/2020 12:21",
"testString" : "js 8/1/2020 12:22",
"testString" : "ct 10/7/2020 19:31",
"testType" : "js 8/1/2020 12:12" } }
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ testCreateSarFile
zip := ZipArchive new.
self streamForPackage: corePackage inZip: zip.
self streamForPackage: uiPackage inZip: zip.
zip addTree: Smalltalk imagePath match: [:e | e fullName startsWith: Smalltalk imagePath, FileDirectory slash, tdlibFolder].
zip addTree: Smalltalk imagePath match: [:e | e fullName beginsWith: Smalltalk imagePath, FileDirectory slash, tdlibFolder].
zip addString: (self generatePreamble: corePackage uipackage: uiPackage nativeResourceFolder: tdlibFolder) as: 'install/preamble'.
zip writeToFileNamed: 'TelegramClient.sar'.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"instance" : {
"generatePreamble:uipackage:nativeResourceFolder:" : "js 8/7/2020 22:23",
"streamForPackage:inZip:" : "js 8/2/2020 13:52",
"testCreateSarFile" : "js 8/7/2020 22:28",
"testCreateSarFile" : "ct 10/7/2020 19:32",
"versionForWorkingCopy:" : "js 8/2/2020 13:52" } }

0 comments on commit e6391a0

Please sign in to comment.