diff --git a/src/MiniDocs/GtGQLSnippet.extension.st b/src/MiniDocs/GtGQLSnippet.extension.st new file mode 100644 index 0000000..04acc2c --- /dev/null +++ b/src/MiniDocs/GtGQLSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #GtGQLSnippet } + +{ #category : #'*MiniDocs' } +GtGQLSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +GtGQLSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeChangesSnippet.extension.st b/src/MiniDocs/LeChangesSnippet.extension.st new file mode 100644 index 0000000..75dbc3d --- /dev/null +++ b/src/MiniDocs/LeChangesSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LeChangesSnippet } + +{ #category : #'*MiniDocs' } +LeChangesSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeChangesSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeDockerSnippet.extension.st b/src/MiniDocs/LeDockerSnippet.extension.st new file mode 100644 index 0000000..6f3e2a8 --- /dev/null +++ b/src/MiniDocs/LeDockerSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LeDockerSnippet } + +{ #category : #'*MiniDocs' } +LeDockerSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeDockerSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeExampleSnippet.extension.st b/src/MiniDocs/LeExampleSnippet.extension.st index 52de62f..2b8c9ec 100644 --- a/src/MiniDocs/LeExampleSnippet.extension.st +++ b/src/MiniDocs/LeExampleSnippet.extension.st @@ -5,3 +5,28 @@ LeExampleSnippet >> asMarkdeep [ ^ (WriteStream on: '') contents ] + +{ #category : #'*MiniDocs' } +LeExampleSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeExampleSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeGitHubSnippet.extension.st b/src/MiniDocs/LeGitHubSnippet.extension.st new file mode 100644 index 0000000..0290153 --- /dev/null +++ b/src/MiniDocs/LeGitHubSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LeGitHubSnippet } + +{ #category : #'*MiniDocs' } +LeGitHubSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeGitHubSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeJenkinsSnippet.extension.st b/src/MiniDocs/LeJenkinsSnippet.extension.st new file mode 100644 index 0000000..96de5b8 --- /dev/null +++ b/src/MiniDocs/LeJenkinsSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LeJenkinsSnippet } + +{ #category : #'*MiniDocs' } +LeJenkinsSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeJenkinsSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeMockedSnippet.extension.st b/src/MiniDocs/LeMockedSnippet.extension.st new file mode 100644 index 0000000..0807931 --- /dev/null +++ b/src/MiniDocs/LeMockedSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LeMockedSnippet } + +{ #category : #'*MiniDocs' } +LeMockedSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeMockedSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LePharoRewriteSnippet.extension.st b/src/MiniDocs/LePharoRewriteSnippet.extension.st new file mode 100644 index 0000000..e60070d --- /dev/null +++ b/src/MiniDocs/LePharoRewriteSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LePharoRewriteSnippet } + +{ #category : #'*MiniDocs' } +LePharoRewriteSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LePharoRewriteSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LePictureSnippet.extension.st b/src/MiniDocs/LePictureSnippet.extension.st index e821389..01bd3f6 100644 --- a/src/MiniDocs/LePictureSnippet.extension.st +++ b/src/MiniDocs/LePictureSnippet.extension.st @@ -78,3 +78,13 @@ LePictureSnippet >> metadataUpdate [ at: 'modifier' put: self editEmail asString; yourself ] + +{ #category : #'*MiniDocs' } +LePictureSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeSmaCCRewriteSnippet.extension.st b/src/MiniDocs/LeSmaCCRewriteSnippet.extension.st new file mode 100644 index 0000000..86fbb41 --- /dev/null +++ b/src/MiniDocs/LeSmaCCRewriteSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LeSmaCCRewriteSnippet } + +{ #category : #'*MiniDocs' } +LeSmaCCRewriteSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeSmaCCRewriteSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeSnippet.extension.st b/src/MiniDocs/LeSnippet.extension.st index 74fd8ee..c7dfbd5 100644 --- a/src/MiniDocs/LeSnippet.extension.st +++ b/src/MiniDocs/LeSnippet.extension.st @@ -16,21 +16,6 @@ LeSnippet >> metadata [ ^ self metadataUpdate ] -{ #category : #'*MiniDocs' } -LeSnippet >> metadataUpdate [ - | createEmailSanitized editEmailSanitized | - createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. - editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. - ^ OrderedDictionary new - at: 'id' put: self uidString; - at: 'parent' put: self parent uuid; - at: 'created' put: self createTime asString; - at: 'modified' put: self latestEditTime asString; - at: 'creator' put: createEmailSanitized; - at: 'modifier' put: editEmailSanitized; - yourself -] - { #category : #'*MiniDocs' } LeSnippet >> moveToPageTitled: pageName [ | db origin destination thisSnippet | @@ -41,13 +26,3 @@ LeSnippet >> moveToPageTitled: pageName [ origin removeSnippet: thisSnippet. destination addSnippet: thisSnippet. ] - -{ #category : #'*MiniDocs' } -LeSnippet >> sanitizeMetadata [ - self metadata keysAndValuesDo: [:k :v | - (v includesAny: #($< $>)) - ifTrue: [ - self metadata at: k put: (v copyWithoutAll: #($< $>)) - ] - ] -] diff --git a/src/MiniDocs/LeTextualSnippet.extension.st b/src/MiniDocs/LeTextualSnippet.extension.st index d28e84a..2523f7d 100644 --- a/src/MiniDocs/LeTextualSnippet.extension.st +++ b/src/MiniDocs/LeTextualSnippet.extension.st @@ -84,6 +84,22 @@ LeTextualSnippet >> metadataUpdate [ yourself ] +{ #category : #'*MiniDocs' } +LeTextualSnippet >> options [ + ^ options +] + +{ #category : #'*MiniDocs' } +LeTextualSnippet >> sanitizeMetadata [ + self options removeKey: 'metadata'. + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutXMLDelimiters) + ] + ] +] + { #category : #'*MiniDocs' } LeTextualSnippet >> tags [ ^ self metadata at: 'tags' ifAbsentPut: [ Set new ] diff --git a/src/MiniDocs/LeWardleyMapSnippet.extension.st b/src/MiniDocs/LeWardleyMapSnippet.extension.st new file mode 100644 index 0000000..c3610d1 --- /dev/null +++ b/src/MiniDocs/LeWardleyMapSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LeWardleyMapSnippet } + +{ #category : #'*MiniDocs' } +LeWardleyMapSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeWardleyMapSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeWordSnippet.extension.st b/src/MiniDocs/LeWordSnippet.extension.st new file mode 100644 index 0000000..9e2cc24 --- /dev/null +++ b/src/MiniDocs/LeWordSnippet.extension.st @@ -0,0 +1,26 @@ +Extension { #name : #LeWordSnippet } + +{ #category : #'*MiniDocs' } +LeWordSnippet >> metadataUpdate [ + | createEmailSanitized editEmailSanitized | + createEmailSanitized := self createEmail asString withoutXMLTagDelimiters. + editEmailSanitized := self editEmail asString withoutXMLTagDelimiters. + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'parent' put: self parent uuid; + at: 'created' put: self createTime asString; + at: 'modified' put: self latestEditTime asString; + at: 'creator' put: createEmailSanitized; + at: 'modifier' put: editEmailSanitized; + yourself +] + +{ #category : #'*MiniDocs' } +LeWordSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +] diff --git a/src/MiniDocs/LeYoutubeReferenceSnippet.extension.st b/src/MiniDocs/LeYoutubeReferenceSnippet.extension.st index 271659f..41c0b75 100644 --- a/src/MiniDocs/LeYoutubeReferenceSnippet.extension.st +++ b/src/MiniDocs/LeYoutubeReferenceSnippet.extension.st @@ -45,3 +45,13 @@ LeYoutubeReferenceSnippet >> metadataUpdate [ at: 'modifier' put: self editEmail asString; yourself ] + +{ #category : #'*MiniDocs' } +LeYoutubeReferenceSnippet >> sanitizeMetadata [ + self metadata keysAndValuesDo: [:k :v | + (v includesAny: #($< $>)) + ifTrue: [ + self metadata at: k put: (v copyWithoutAll: #($< $>)) + ] + ] +]