-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f40efde
commit 581c192
Showing
24 changed files
with
82 additions
and
52 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
as yet unclassified | ||
open | ||
<script> | ||
Smalltalk garbageCollect. | ||
^ self new openAsMorph |
2 changes: 1 addition & 1 deletion
2
Google-API.package/GaGoogleApiBrowser.class/methodProperties.json
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
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
2 changes: 1 addition & 1 deletion
2
...ass/createClassesFromResource.underParentClass.withClassNamePrefix.inCategory.comment..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
2 changes: 1 addition & 1 deletion
2
...le-API.package/GaGoogleApiCreator.class/class/createMethodFromMethodDef.inClass.named..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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
actions | ||
createMethodFromMethodDef: methodDef inClass: aClass named: methodName | ||
| sources | | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
Google-API.package/GaGoogleApiCreator.class/class/createMethodsFromApiDef.inClass..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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
actions | ||
createMethodsFromApiDef: apiDef inClass: aClass | ||
| methods cnt | | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
Google-API.package/GaGoogleApiCreator.class/class/createSourceFromMethodDef.named..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
3 changes: 3 additions & 0 deletions
3
Google-API.package/GaGoogleApiCreator.class/class/defaultClassNamePrefix..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 @@ | ||
accessing | ||
defaultClassNamePrefix: anObject | ||
defaultClassNamePrefix := anObject |
3 changes: 3 additions & 0 deletions
3
Google-API.package/GaGoogleApiCreator.class/class/defaultClassNamePrefix.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 @@ | ||
accessing | ||
defaultClassNamePrefix | ||
^ defaultClassNamePrefix ifNil: [ defaultClassNamePrefix := '' ] |
3 changes: 3 additions & 0 deletions
3
Google-API.package/GaGoogleApiCreator.class/class/initialize.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 @@ | ||
class initialization | ||
initialize | ||
defaultClassNamePrefix := nil |
7 changes: 5 additions & 2 deletions
7
Google-API.package/GaGoogleApiCreator.class/methodProperties.json
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{ | ||
"class" : { | ||
"createApi:inCategory:" : "KazunoriUeda 10/2/2018 15:58", | ||
"createApi:inCategory:" : "KazunoriUeda 10/2/2018 16:28", | ||
"createClassesFromResource:underParentClass:withClassNamePrefix:inCategory:comment:" : "KazunoriUeda 10/2/2018 15:58", | ||
"createMethodFromMethodDef:inClass:named:" : "KazunoriUeda 10/2/2018 15:58", | ||
"createMethodsFromApiDef:inClass:" : "RichardPrinz 5/12/2014 17:27", | ||
"createSourceFromMethodDef:named:" : "KazunoriUeda 10/2/2018 09:47" }, | ||
"createSourceFromMethodDef:named:" : "KazunoriUeda 10/2/2018 09:47", | ||
"defaultClassNamePrefix" : "KazunoriUeda 10/2/2018 16:24", | ||
"defaultClassNamePrefix:" : "KazunoriUeda 10/2/2018 16:23", | ||
"initialize" : "KazunoriUeda 10/2/2018 16:24" }, | ||
"instance" : { | ||
} } |
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
3 changes: 3 additions & 0 deletions
3
Google-API.package/GaGoogleApiProxy.class/instance/authenticationCredentialsBaseDirectory.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 @@ | ||
authentication | ||
authenticationCredentialsBaseDirectory | ||
^ FileSystem workingDirectory. |
4 changes: 2 additions & 2 deletions
4
Google-API.package/GaGoogleApiProxy.class/instance/authenticationCredentialsFile.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
authentication | ||
authenticationCredentialsFile | ||
authenticationCredentialsFile ifNil: [ | dir fn | | ||
dir := FileSystem workingDirectory. | ||
dir := self authenticationCredentialsBaseDirectory. | ||
fn := ( GaGoogleApiTools replaceInvalidPathChars: self apiName ), '.', self id, '.auth.json'. | ||
fn := dir / 'google_api_data' / fn. | ||
fn := dir asFileReference / 'google_api_data' / fn. | ||
authenticationCredentialsFile := fn fullName ]. | ||
|
||
^ authenticationCredentialsFile |
8 changes: 8 additions & 0 deletions
8
Google-API.package/GaGoogleApiProxy.class/instance/get.token..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,8 @@ | ||
actions-http | ||
get: apiUrl token: apiToken | ||
| url req | | ||
url := ( ZnUrl fromString: apiUrl ) | ||
queryAt: 'access_token' put: apiToken; | ||
yourself. | ||
req := ZnRequest get: url. | ||
^req |
32 changes: 7 additions & 25 deletions
32
Google-API.package/GaGoogleApiProxy.class/instance/initialize.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 |
---|---|---|
@@ -1,27 +1,9 @@ | ||
as yet unclassified | ||
initialize-release | ||
initialize | ||
super initialize. | ||
|
||
methodAction := Dictionary new. | ||
|
||
methodAction at: #GET put: [ :apiUrl :token || url req | | ||
url := ( ZnUrl fromString: apiUrl ) | ||
queryAt: 'access_token' put: token; | ||
yourself. | ||
req := ( ZnRequest get: url ). | ||
req ]. | ||
|
||
methodAction at: #PUT put: [ :apiUrl :token || url req | | ||
url := ( ZnUrl fromString: apiUrl ) | ||
queryAt: 'access_token' put: token; | ||
yourself. | ||
req := ( ZnRequest put: url ). | ||
req ]. | ||
|
||
methodAction at: #POST put: [ :apiUrl :token || url req | | ||
url := ( ZnUrl fromString: apiUrl ) | ||
queryAt: 'access_token' put: token; | ||
yourself. | ||
req := ( ZnRequest post: url ). | ||
req ]. | ||
|
||
methodActions := { | ||
#GET -> #get:token:. | ||
#PUT -> #put:token:. | ||
#POST -> #post:token:. | ||
} asDictionary | ||
|
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
3 changes: 3 additions & 0 deletions
3
Google-API.package/GaGoogleApiProxy.class/instance/methodActions.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 @@ | ||
accessing | ||
methodActions | ||
^methodActions |
8 changes: 8 additions & 0 deletions
8
Google-API.package/GaGoogleApiProxy.class/instance/post.token..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,8 @@ | ||
actions-http | ||
post: apiUrl token: apiToken | ||
| url req | | ||
url := ( ZnUrl fromString: apiUrl ) | ||
queryAt: 'access_token' put: apiToken; | ||
yourself. | ||
req := ZnRequest post: url. | ||
^req |
8 changes: 8 additions & 0 deletions
8
Google-API.package/GaGoogleApiProxy.class/instance/put.token..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,8 @@ | ||
actions-http | ||
put: apiUrl token: apiToken | ||
| url req | | ||
url := ( ZnUrl fromString: apiUrl ) | ||
queryAt: 'access_token' put: apiToken; | ||
yourself. | ||
req := ZnRequest put: url. | ||
^req |
4 changes: 2 additions & 2 deletions
4
Google-API.package/GaGoogleApiProxy.class/instance/registrationCredentialsFile.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
registration | ||
registrationCredentialsFile | ||
registrationCredentialsFile ifNil: [ | dir fn | | ||
dir := FileSystem workingDirectory. | ||
dir := self authenticationCredentialsBaseDirectory. | ||
fn := ( GaGoogleApiTools replaceInvalidPathChars: self apiName ), '.', self id, '.config.json'. | ||
fn := dir / 'google_api_data' / fn. | ||
fn := dir asFileReference / 'google_api_data' / fn. | ||
registrationCredentialsFile := fn fullName ]. | ||
|
||
^ registrationCredentialsFile |
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
(name 'Google-API-KazunoriUeda.7' message 'empty log message' id 'dd697465-f631-4d3b-860e-83805e65a0bf' date '2 October 2018' time '4:01:32.079082 pm' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.6' message 'empty log message' id '744a24ed-9cb6-4066-a720-750068fea7bc' date '2 October 2018' time '4:00:24.360053 pm' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.5' message 'empty log message' id '33aef2d1-9655-4449-b2c4-d1a49f31b8de' date '2 October 2018' time '3:59:43.561324 pm' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.3' message 'empty log message' id '89416a47-4fd6-4315-a2b7-ea9332a3db08' date '2 October 2018' time '9:54:42.236345 am' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.2' message 'empty log message' id 'c72b61cb-4e4c-4655-b0a3-f9abac56cd04' date '2 October 2018' time '9:51:58.389512 am' author 'KazunoriUeda' ancestors ((name 'Google-API-RichardPrinz.1' message 'Initial commit' id 'a27b8d83-3b26-5048-9b29-cb603b12b5d3' date '19 March 2015' time '5:35:50.915345 pm' author 'RichardPrinz' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ()) | ||
(name 'Google-API-KazunoriUeda.8' message 'empty log message' id 'b2a9f061-37e4-4ebf-814b-3c6abdaa4810' date '2 October 2018' time '5:50:21.872255 pm' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.7' message 'empty log message' id 'dd697465-f631-4d3b-860e-83805e65a0bf' date '2 October 2018' time '4:01:32.079082 pm' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.6' message 'empty log message' id '744a24ed-9cb6-4066-a720-750068fea7bc' date '2 October 2018' time '4:00:24.360053 pm' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.5' message 'empty log message' id '33aef2d1-9655-4449-b2c4-d1a49f31b8de' date '2 October 2018' time '3:59:43.561324 pm' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.3' message 'empty log message' id '89416a47-4fd6-4315-a2b7-ea9332a3db08' date '2 October 2018' time '9:54:42.236345 am' author 'KazunoriUeda' ancestors ((name 'Google-API-KazunoriUeda.2' message 'empty log message' id 'c72b61cb-4e4c-4655-b0a3-f9abac56cd04' date '2 October 2018' time '9:51:58.389512 am' author 'KazunoriUeda' ancestors ((name 'Google-API-RichardPrinz.1' message 'Initial commit' id 'a27b8d83-3b26-5048-9b29-cb603b12b5d3' date '19 March 2015' time '5:35:50.915345 pm' author 'RichardPrinz' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ()) |