Skip to content

Commit 5c9024a

Browse files
committed
refactor using linter, e.g. categories
1 parent 71e7f45 commit 5c9024a

File tree

71 files changed

+425
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+425
-405
lines changed

src/BaselineOfSpotifyConnect/BaselineOfSpotifyConnect.class.st

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Class {
99
}
1010

1111
{
12-
#category : #'as yet unclassified',
13-
#'squeak_changestamp' : 'TL 7/8/2024 16:29'
12+
#category : #baseline,
13+
#'squeak_changestamp' : 'TL 7/11/2024 19:56'
1414
}
1515
BaselineOfSpotifyConnect >> baseline: spec [
1616

@@ -22,8 +22,7 @@ BaselineOfSpotifyConnect >> baseline: spec [
2222
baseline: 'Squot' with: [
2323
spec repository: 'github://hpi-swa/Squot:mapper/src'].
2424
spec
25-
package: 'SpotifyConnect' with: [spec requires: #('Squot')];
26-
yourself.
25+
package: 'SpotifyConnect' with: [spec requires: #('Squot')].
2726
spec
2827
group: 'default' with: #('SpotifyConnect');
2928
group: 'tests' with: #('SpotifyConnect');

src/SpotifyConnect/SPOCAlbum.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SPOCAlbum >> equals: anAlbum [
4444
]
4545

4646
{
47-
#category : #'event handling',
47+
#category : #'event-handling',
4848
#'squeak_changestamp' : 'TL 7/8/2024 19:22'
4949
}
5050
SPOCAlbum >> onClick: anApp [

src/SpotifyConnect/SPOCApiEndpoint.class.st

+6-15
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ SPOCApiEndpoint class >> cannotRefreshErrorMessage [
3030
^ 'Refreshing Access Token failed'
3131
]
3232

33-
{
34-
#category : #constants,
35-
#'squeak_changestamp' : 'OW 7/7/2024 16:28'
36-
}
37-
SPOCApiEndpoint class >> gitRepoName [
38-
39-
^ 'SpotifyConnect'
40-
]
41-
4233
{
4334
#category : #constants,
4435
#'squeak_changestamp' : 'OW 7/7/2024 16:37'
@@ -133,7 +124,7 @@ SPOCApiEndpoint >> executeRequest: request withParams: aParameterDictionary [
133124
]
134125

135126
{
136-
#category : #'api-call',
127+
#category : #response,
137128
#'squeak_changestamp' : 'TL 6/10/2024 03:39'
138129
}
139130
SPOCApiEndpoint >> executeTest [
@@ -142,7 +133,7 @@ SPOCApiEndpoint >> executeTest [
142133
]
143134

144135
{
145-
#category : #initialization,
136+
#category : #'initialize-release',
146137
#'squeak_changestamp' : 'TL 6/10/2024 03:39'
147138
}
148139
SPOCApiEndpoint >> initialize [
@@ -153,13 +144,13 @@ SPOCApiEndpoint >> initialize [
153144
]
154145

155146
{
156-
#category : #accessing,
157-
#'squeak_changestamp' : 'OW 7/7/2024 16:41'
147+
#category : #response,
148+
#'squeak_changestamp' : 'TL 7/11/2024 20:04'
158149
}
159150
SPOCApiEndpoint >> loadMockdataFromAsset: anAsset [
160151

161-
^ ((GitAssetLoader for: self class gitRepoName)
162-
loadPlaintext: self class mockdataBasepath , anAsset) readStream
152+
^ ((GitAssetLoader for: SPOCApp gitRepoName)
153+
loadPlaintext: self class mockdataBasepath, anAsset) readStream
163154
]
164155

165156
{

src/SpotifyConnect/SPOCApiNext.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ SPOCApiNext >> skipToNextOn: aDevice [
4747
]
4848

4949
{
50-
#category : #'api-call',
50+
#category : #response,
5151
#'squeak_changestamp' : 'VE 7/9/2024 11:51'
5252
}
5353
SPOCApiNext >> tinkerReponseContent: aContentStream [

src/SpotifyConnect/SPOCApiPause.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ SPOCApiPause >> pauseOn: aDevice [
4747
]
4848

4949
{
50-
#category : #'api-call',
50+
#category : #response,
5151
#'squeak_changestamp' : 'VE 7/9/2024 11:49'
5252
}
5353
SPOCApiPause >> tinkerReponseContent: aContentStream [

src/SpotifyConnect/SPOCApiPlay.class.st

+6-5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ SPOCApiPlay >> endpointMethod [
7373

7474
{
7575
#category : #'api-call',
76-
#'squeak_changestamp' : 'TL 7/11/2024 16:51'
76+
#'squeak_changestamp' : 'TL 7/11/2024 19:14'
7777
}
7878
SPOCApiPlay >> executeRequest: request withParams: aParamDictionary [
7979

@@ -83,7 +83,8 @@ SPOCApiPlay >> executeRequest: request withParams: aParamDictionary [
8383
(aParamDictionary size = 2)
8484
ifTrue: [data := self buildDataWithTrack: (aParamDictionary at: #uris)]
8585
ifFalse: [(aParamDictionary includesKey: #context_uri)
86-
ifTrue: [data := self buildDataWithContext: (aParamDictionary at: #context_uri) andTrack: (aParamDictionary at: #uris)]].
86+
ifTrue: [data := self buildDataWithContext: (aParamDictionary at: #context_uri)
87+
andTrack: (aParamDictionary at: #uris)]].
8788
request headerAt: 'Content-Length' put: data size.
8889
(data isEmpty)
8990
ifTrue: [^ self client sendRequest: request]
@@ -112,7 +113,7 @@ SPOCApiPlay >> playTrack: aString on: aDevice [
112113
]
113114

114115
{
115-
#category : #parameters,
116+
#category : #'api-call',
116117
#'squeak_changestamp' : 'MH 7/7/2024 15:26'
117118
}
118119
SPOCApiPlay >> playTrack: aString withAlbum: anotherString on: aDevice [
@@ -124,7 +125,7 @@ SPOCApiPlay >> playTrack: aString withAlbum: anotherString on: aDevice [
124125
]
125126

126127
{
127-
#category : #parameters,
128+
#category : #'api-call',
128129
#'squeak_changestamp' : 'MH 7/7/2024 15:27'
129130
}
130131
SPOCApiPlay >> playTrack: aString withPlaylist: anotherString on: aDevice [
@@ -136,7 +137,7 @@ SPOCApiPlay >> playTrack: aString withPlaylist: anotherString on: aDevice [
136137
]
137138

138139
{
139-
#category : #parameters,
140+
#category : #response,
140141
#'squeak_changestamp' : 'VE 7/9/2024 11:51'
141142
}
142143
SPOCApiPlay >> tinkerReponseContent: aContentStream [

src/SpotifyConnect/SPOCApiPrevious.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ SPOCApiPrevious >> skipToPreviousOn: aDevice [
4747
]
4848

4949
{
50-
#category : #'api-call',
50+
#category : #response,
5151
#'squeak_changestamp' : 'VE 7/9/2024 11:51'
5252
}
5353
SPOCApiPrevious >> tinkerReponseContent: aContentStream [

src/SpotifyConnect/SPOCApiRecentlyPlayed.class.st

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ SPOCApiRecentlyPlayed >> endpointMethod [
2828

2929
{
3030
#category : #'api-call',
31-
#'squeak_changestamp' : 'TL 7/7/2024 01:20'
31+
#'squeak_changestamp' : 'TL 7/11/2024 19:13'
3232
}
3333
SPOCApiRecentlyPlayed >> executeRequest: request withParams: aParameterDictionary [
3434

35-
request rawUrl: (request rawUrl, '?limit=', (aParameterDictionary at: #limit), '&before=', (aParameterDictionary at: #before)).
35+
request rawUrl: (request rawUrl,
36+
'?limit=', (aParameterDictionary at: #limit),
37+
'&before=', (aParameterDictionary at: #before)).
3638
^ self client sendRequest: request
3739
]
3840

src/SpotifyConnect/SPOCApiSearch.class.st

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ SPOCApiSearch >> endpointMethod [
3939

4040
{
4141
#category : #'api-call',
42-
#'squeak_changestamp' : 'TL 7/7/2024 01:19'
42+
#'squeak_changestamp' : 'TL 7/11/2024 19:14'
4343
}
4444
SPOCApiSearch >> executeRequest: request withParams: aParameterDictionary [
4545

46-
request rawUrl: (request rawUrl, '?q=', (aParameterDictionary at: #input), '&type=', (aParameterDictionary at: #type), '&limit=', (aParameterDictionary at: #limit)).
46+
request rawUrl: (request rawUrl,
47+
'?q=', (aParameterDictionary at: #input),
48+
'&type=', (aParameterDictionary at: #type),
49+
'&limit=', (aParameterDictionary at: #limit)).
4750
^ self client sendRequest: request
4851
]
4952

src/SpotifyConnect/SPOCApiVolume.class.st

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ SPOCApiVolume >> endpointMethod [
3939

4040
{
4141
#category : #'api-call',
42-
#'squeak_changestamp' : 'TL 6/10/2024 03:28'
42+
#'squeak_changestamp' : 'TL 7/11/2024 19:14'
4343
}
4444
SPOCApiVolume >> executeRequest: request withParams: aParameterDictionary [
4545

46-
request rawUrl: (request rawUrl, '?volume_percent=', (aParameterDictionary at: #volume_percent), '&device_id=', (aParameterDictionary at: #device_id));
46+
request rawUrl: (request rawUrl,
47+
'?volume_percent=', (aParameterDictionary at: #volume_percent),
48+
'&device_id=', (aParameterDictionary at: #device_id));
4749
headerAt: 'Content-Length' put: 0.
4850
^ self client sendRequest: request
4951
]

0 commit comments

Comments
 (0)