From 666583972d90d19a302bb6af3c0a9748791b3f95 Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Mon, 1 Apr 2019 21:12:36 +0000 Subject: [PATCH] Meta.pm: add META.json small and large example files git-svn-id: https://svn.fhem.de/fhem/trunk@19087 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/MAINTAINER.txt | 2 + fhem/contrib/META.json.full.txt | 195 ++++++++++++++++++++++++++++++++ fhem/contrib/META.json.txt | 42 +++++++ 3 files changed, 239 insertions(+) create mode 100644 fhem/contrib/META.json.full.txt create mode 100644 fhem/contrib/META.json.txt diff --git a/fhem/MAINTAINER.txt b/fhem/MAINTAINER.txt index b96b38027..df444d5e5 100644 --- a/fhem/MAINTAINER.txt +++ b/fhem/MAINTAINER.txt @@ -589,6 +589,8 @@ contrib/deprecated/70_Pushalot.pm Talkabout (deprecated) contrib/deprecated/95_PachLog.pm rudolfkoenig/orphan (deprecated) contrib/DoorPi/70_DoorPi.pm pahenning Automatisierung contrib/Infratec/* wzut Bastelecke +contrib/META.json.full.txt loredo FHEM Development +contrib/META.json.txt loredo FHEM Development contrib/PRESENCE markusbloch Unterstuetzende Dienste contrib/PRESENCE/lepresenced PatrickR Unterstuetzende Dienste contrib/SIP/* wzut Sonstiges diff --git a/fhem/contrib/META.json.full.txt b/fhem/contrib/META.json.full.txt new file mode 100644 index 000000000..af23719ce --- /dev/null +++ b/fhem/contrib/META.json.full.txt @@ -0,0 +1,195 @@ +=pod + +=encoding utf8 + +=item [helper|device|command] +=item summary Short description in English +=item summary_DE Kurzbeschreibung in Deutsch + +=begin html + + +

+ myModule +

+ + +=end html + +=begin html_DE + + +

+ myModule +

+ + +=end html_DE + +=for :application/json;q=META.json 00_myModule.pm +{ + "abstract": "Short description, will overwrite '=item summary'", + "description": "This can be some extended description or documentation.", + "x_lang": { + "de": { + "abstract": "Kurzbeschreibung auf Deutsch, überschreibt '=item summary_DE'", + "description": "Hier kann eine erweiterte Beschreibung oder Dokumentation stehen." + } + }, + "license": "GPL_2", + "version": "v1.0.0", + "release_status": "stable", + "author": [ + "I am the maintainer ", + "I am a co-author ", + "I am another co-author ", + "I might be the orignal author " + ], + "keywords": [ + "additional", + "keywords", + "that shall", + "appear", + "for example", + "vendorName", + "or", + "function" + ], + "prereqs": { + "runtime": { + "requires": { + "FHEM": 5.00918623, + "FHEM::Meta": 0.001006, + "HttpUtils": 0, + "JSON": 0, + "perl": 5.014 + }, + "recommends": { + }, + "suggests": { + } + } + }, + "resources": { + "bugtracker": { + "web": "https://github.com/fhem/myModule/issues", + "x_web_title": "Github Issues for fhem/myModule" + }, + "homepage": "https://myModuleHasAhomepage.com", + "license": [ + "https://github.com/fhem/myModule/blob/master/LICENSE" + ], + "repository": { + "type": "git", + "url": "https://github.com/fhem/myModule.git", + "web": "https://github.com/fhem/myModule/blob/master/subdir/00_myModule.pm", + "x_branch": "master", + "x_dev": { + "type": "git", + "url": "https://github.com/fhem/myModule.git", + "web": "https://github.com/fhem/myModule/blob/dev/subdir/00_myModule.pm", + "x_branch": "dev", + "x_filepath": "subdir/", + "x_raw": "https://raw.githubusercontent.com/fhem/myModule/dev/subdir/00_myModule.pm" + }, + "x_filepath": "subdir/", + "x_raw": "https://raw.githubusercontent.com/fhem/myModule/master/subdir/00_myModule.pm" + }, + "x_support_commercial": { + "title": "My Company", + "web": "https://support.mycompany.com" + }, + "x_support_community": { + "rss": "https://forum.fhem.de/index.php?action=.xml;type=rss;board=33", + "title": "FHEM Forum: Server - Linux", + "web": "https://forum.fhem.de/index.php/board,33.0.html" + } + }, + "x_fhem_maintainer": [ + "myFhemForumAndSVNusername" + ], + "x_fhem_maintainer_github": [ + "myGithubUsername" + ] +} +=end :application/json;q=META.json + +=cut diff --git a/fhem/contrib/META.json.txt b/fhem/contrib/META.json.txt new file mode 100644 index 000000000..5239ad294 --- /dev/null +++ b/fhem/contrib/META.json.txt @@ -0,0 +1,42 @@ +{ + "description": "This can be some extended description or documentation.", + "x_lang": { + "de": { + "description": "Hier kann eine erweiterte Beschreibung oder Dokumentation stehen." + } + }, + "author": [ + "I am the maintainer " + ], + "keywords": [ + "additional", + "keywords", + "that shall", + "appear", + "for example", + "vendorName", + "or", + "function" + ], + "prereqs": { + "runtime": { + "requires": { + "FHEM": 5.00918623, + "FHEM::Meta": 0.001006, + "HttpUtils": 0, + "JSON": 0, + "perl": 5.014 + }, + "recommends": { + }, + "suggests": { + } + } + }, + "x_fhem_maintainer": [ + "myFhemForumAndSVNusername" + ], + "x_fhem_maintainer_github": [ + "myGithubUsername" + ] +} \ No newline at end of file