Skip to content

Commit 445d1ac

Browse files
committed
[[ ScriptExtensions ]] Add metadata to script extensions
1 parent 4573b1e commit 445d1ac

File tree

9 files changed

+80
-21
lines changed

9 files changed

+80
-21
lines changed

extensions/script-libraries/diff/diff.livecodescript

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ on revLoadLibrary
2626

2727
if the environment contains "development" then
2828
set the _ideoverride of me to true
29-
revSBAddAvailableLibrary the short name of me, "Diff"
3029
end if
3130
end revLoadLibrary
3231

@@ -39,6 +38,13 @@ on revUnloadLibrary
3938
end revUnloadLibrary
4039

4140
/**
41+
Title: Unified Diff Library
42+
43+
Author: LiveCode
44+
45+
Version: 1.0.0
46+
47+
Description:
4248
Text comparison library, handling differences in unified diff format
4349
*/
4450

extensions/script-libraries/dropbox/dropbox.livecodescript

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ on revLoadLibrary
2828

2929
if the environment contains "development" then
3030
set the _ideoverride of me to true
31-
revSBAddAvailableLibrary the short name of me, "Dropbox"
3231
end if
3332
end revLoadLibrary
3433

@@ -41,10 +40,17 @@ on revUnloadLibrary
4140
end revUnloadLibrary
4241

4342
/**
43+
Title: Dropbox Library
44+
45+
Author: LiveCode
46+
47+
Version: 2.0.0
48+
49+
SVGIcon: M402 717L896 1022 554 1307 64 988ZM1388 1272L1388 1380 898 1673 898 1674 897 1673 896 1674 896 1673 407 1380 407 1272 554 1368 896 1084 896 1082 897 1083 898 1082 898 1084 1241 1368ZM554 128L896 413 402 717 64 447ZM1390 717L1728 988 1239 1307 896 1022ZM1239 128L1728 447 1390 717 896 413Z
50+
51+
Description:
4452
Implements the Dropbox v2 API.
4553
Doesn't include business pro API.
46-
47-
Version 2.0.0
4854
*/
4955

5056
/**

extensions/script-libraries/getopt/getopt.livecodescript

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ on revLoadLibrary
2626

2727
if the environment contains "development" then
2828
set the _ideoverride of me to true
29-
revSBAddAvailableLibrary the short name of me, "GetOpt"
3029
end if
3130
end revLoadLibrary
3231

3332
/**
33+
Title: Command-line Option Parser
34+
35+
Author: LiveCode
36+
37+
Version: 1.0.0
38+
39+
Description:
3440
Command-line argument parser library.
3541
*/
3642

extensions/script-libraries/httpd/httpd.livecodescript

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ on revLoadLibrary
2525

2626
if the environment contains "development" then
2727
set the _ideoverride of me to true
28-
revSBAddAvailableLibrary the short name of me, "HTTP Server"
2928
end if
3029
end revLoadLibrary
3130

@@ -38,9 +37,13 @@ on revUnloadLibrary
3837
end revUnloadLibrary
3938

4039
/**
40+
Title: HTTPD Library
4141
42-
Handle HTTP requests in your application
42+
Version: 1.0.0
4343
44+
Author: LiveCode
45+
46+
Description: Handle HTTP requests in your application
4447
*/
4548

4649
local sServers -- an array of server info keyed on server port

extensions/script-libraries/messageauthentication/messageauthentication.livecodescript

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ on revLoadLibrary
2626

2727
if the environment contains "development" then
2828
set the _ideoverride of me to true
29-
revSBAddAvailableLibrary the short name of me, "Message Authentication"
3029
end if
3130
end revLoadLibrary
3231

@@ -39,13 +38,17 @@ on revUnloadLibrary
3938
end revUnloadLibrary
4039

4140
/**
41+
Title: Message Authentication Library
4242
43-
This script library implements message authentication codes
43+
Version: 1.0.0
44+
45+
Author: LiveCode
4446
47+
Description:
48+
This script library implements message authentication codes
4549
*/
4650

4751
/**
48-
4952
Compute a message authentication code.
5053
5154
Syntax:

extensions/script-libraries/mime/mime.livecodescript

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ on revLoadLibrary
2626

2727
if the environment contains "development" then
2828
set the _ideoverride of me to true
29-
revSBAddAvailableLibrary the short name of me, "MIME"
3029
end if
3130

3231
__Initialize
@@ -41,11 +40,17 @@ on revUnloadLibrary
4140
end revUnloadLibrary
4241

4342
/**
43+
Title: MIME Library
4444
45-
This script library implements portions of Multipurpose Internet Mail Extensions (MIME)
46-
as described in RFCs 2045 - 2049. Use this library to implement common data formats such
47-
as email message bodies and form encoding in HTTP.
45+
Version: 1.0.0
4846
47+
Author: LiveCode
48+
49+
Description:
50+
This script library implements portions of Multipurpose Internet Mail
51+
Extensions (MIME) as described in RFCs 2045 - 2049. Use this library to
52+
implement common data formats such as email message bodies and form
53+
encoding in HTTP.
4954
*/
5055

5156
local sMIMETypes

extensions/script-libraries/oauth2/oauth2.livecodescript

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ on revLoadLibrary
2626

2727
if the environment contains "development" then
2828
set the _ideoverride of me to true
29-
revSBAddAvailableLibrary the short name of me, "OAuth2"
3029
revSBAddDependencyForInclusion "scriptLibraries", "OAuth2", "externals", "mergJSON"
3130
end if
3231
end revLoadLibrary
@@ -40,11 +39,15 @@ on revUnloadLibrary
4039
end revUnloadLibrary
4140

4241
/**
42+
Title: OAuth2 Library
4343
44-
Present an authorization dialog for any web service that supports OAuth2 Authorization Code Flow
44+
Version: 1.0.0
4545
46-
Requires mergJSON
46+
Author: LiveCode
4747
48+
Description:
49+
Present an authorization dialog for any web service that supports
50+
OAuth2 Authorization Code Flow
4851
*/
4952

5053
constant kRedirectURL = "http://127.0.0.1"

extensions/script-libraries/qr/qr.livecodescript

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ on revLoadLibrary
1818

1919
if the environment contains "development" then
2020
set the _ideoverride of me to true
21-
revSBAddAvailableLibrary the short name of me, "QR Code Generator"
2221
end if
2322
end revLoadLibrary
2423

@@ -31,7 +30,13 @@ on revUnloadLibrary
3130
end revUnloadLibrary
3231

3332
/**
33+
Title: QR Code Generator
3434
35+
Version: 2.0.0
36+
37+
Author: LiveCode
38+
39+
Description:
3540
The QR Code Generator library for LiveCode generates QR codes
3641
according to the ISO international standard (ISO/IEC18004).
3742
@@ -40,7 +45,7 @@ according to the ISO international standard (ISO/IEC18004).
4045
All versions (1 - 40) and all error correction levels
4146
(L, M, Q, H) are supported.
4247
43-
Version 2.0.0
48+
SVGIcon: M384 1024L384 1152 256 1152 256 1024 384 1024ZM384 256L384 384 256 384 256 256 384 256ZM1152 256L1152 384 1024 384 1024 256 1152 256ZM128 1279L512 1279 512 896 128 896 128 1279ZM128 512L512 512 512 128 128 128 128 512ZM896 512L1280 512 1280 128 896 128 896 512ZM640 768L640 1408 0 1408 0 768 640 768ZM1152 1280L1152 1408 1024 1408 1024 1280 1152 1280ZM1408 1280L1408 1408 1280 1408 1280 1280 1408 1280ZM1408 768L1408 1152 1024 1152 1024 1024 896 1024 896 1408 768 1408 768 768 1152 768 1152 896 1280 896 1280 768 1408 768ZM640 0L640 640 0 640 0 0 640 0ZM1408 0L1408 640 768 640 768 0 1408 0Z
4449
4550
Tags:
4651
barcode

extensions/script-libraries/semver/semver.livecodescript

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,35 @@ Copyright (c) Isaac Z. Schlueter and Contributors
2121
2222
*/
2323

24+
on revLoadLibrary
25+
if the target is not me then
26+
pass revLoadLibrary
27+
end if
28+
29+
insert the script of me into back
30+
31+
if the environment contains "development" then
32+
set the _ideoverride of me to true
33+
end if
34+
end revLoadLibrary
35+
36+
on revUnloadLibrary
37+
if the target is not me then
38+
pass revUnloadLibrary
39+
end if
40+
41+
remove the script of me from back
42+
end revUnloadLibrary
43+
2444
/**
2545
26-
Name: semver
46+
Title: Semantic Versioning Library
47+
48+
Author: LiveCode
2749
2850
Type: library
2951
30-
Version: 0.0.0
52+
Version: 1.0.0
3153
3254
Description:
3355

0 commit comments

Comments
 (0)