Skip to content

Добавлено свойство АдресРепозитория (repo-address) в манифест #233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/core/Классы/ОписаниеПакета.os
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
Возврат ЭтотОбъект;
КонецФункции

Функция АдресРепозитория(Знач Параметр) Экспорт
УстановитьСвойствоПакета("АдресРепозитория", Параметр);
Возврат ЭтотОбъект;
КонецФункции

Функция ВерсияСреды(Знач Параметр) Экспорт
УстановитьСвойствоПакета("ВерсияСреды", Параметр);
Возврат ЭтотОбъект;
Expand Down
1 change: 1 addition & 0 deletions src/core/Классы/СборщикПакета.os
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@
| .Версия(""1.0.0"")
| .Автор("""")
| .АдресАвтора(""[email protected]"")
| .АдресРепозитория(""https://github.com/oscript-library/mypackage"")
| .Описание(""Это очень хороший и нужный пакет программ"")
| .ВерсияСреды(""1.0.21"")
| .ВключитьФайл(""src"")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
СоответствиеИменСвойств.Вставить("Автор" , "author");
СоответствиеИменСвойств.Вставить("Описание" , "description");
СоответствиеИменСвойств.Вставить("АдресАвтора", "author-email");
СоответствиеИменСвойств.Вставить("АдресРепозитория", "repo-address");
СоответствиеИменСвойств.Вставить("ВерсияСреды", "engine-version");
СоответствиеИменСвойств.Вставить("ВерсияМанифеста", "manifest-version");
СоответствиеИменСвойств.Вставить("Задачи", "tasks");
Expand Down
3 changes: 3 additions & 0 deletions tests/mft-serializer-test.os
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
.ВерсияМанифеста("1.0")
.Описание("Это пакет для тестирования")
.АдресАвтора("[email protected]")
.АдресРепозитория("https://github.com/oscript-library/mypackage")
.ЗависитОт("asserts")
.ЗависитОт("cmdline",">=2.1","<3.0")
.РазработкаЗависитОт("logos")
Expand Down Expand Up @@ -76,6 +77,7 @@
| <manifest-version>1.0</manifest-version>
| <description>Это пакет для тестирования</description>
| <author-email>[email protected]</author-email>
| <repo-address>https://github.com/oscript-library/mypackage</repo-address>
| <tasks>tasks</tasks>
| <depends-on name=""asserts"" dev=""false""/>
| <depends-on name=""cmdline"" dev=""false"" version=""&gt;=2.1"" version-max=""&lt;3.0""/>
Expand Down Expand Up @@ -117,6 +119,7 @@
| <manifest-version>1.0</manifest-version>
| <description>Это пакет для тестирования</description>
| <author-email>[email protected]</author-email>
| <repo-address>https://github.com/oscript-library/mypackage</repo-address>
| <tasks>tasks</tasks>
| <depends-on name=""asserts"" dev=""false""/>
| <depends-on name=""cmdline"" dev=""false"" version=""&gt;=2.1"" version-max=""&lt;3.0""/>
Expand Down
2 changes: 2 additions & 0 deletions tests/packagedef-test.os
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
.ВерсияМанифеста("1.0")
.Описание("Это пакет для тестирования")
.АдресАвтора("[email protected]")
.АдресРепозитория("https://github.com/oscript-library/mypackage")
;

Свойства = Описание.Свойства();
Expand All @@ -59,6 +60,7 @@
Ожидаем.Что(Свойства.ВерсияМанифеста).Равно("1.0");
Ожидаем.Что(Свойства.Описание).Равно("Это пакет для тестирования");
Ожидаем.Что(Свойства.АдресАвтора).Равно("[email protected]");
Ожидаем.Что(Свойства.АдресРепозитория).Равно("https://github.com/oscript-library/mypackage");

КонецФункции

Expand Down
Loading