From 5a598c4cca0cf1352b89ddb205299c5dcb901966 Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Thu, 15 Dec 2022 16:31:47 +0800 Subject: [PATCH] change ownership to Awilum --- .github/CODE_OF_CONDUCT.md | 8 ++++---- .github/FUNDING.yml | 2 +- CHANGELOG.md | 6 +++++- README.md | 10 +++++----- composer.json | 14 +++++++------- phpunit.xml | 1 - src/Nice.php | 4 ++-- src/NiceTwigExtension.php | 12 ++++++------ src/functions.php | 2 +- tests/NiceTest.php | 10 +++++----- 10 files changed, 36 insertions(+), 33 deletions(-) diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index cc20c2e..5e3c73b 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -1,19 +1,19 @@ # Code of Conduct -Like the technical community as a whole, the Craft Plugins team and community is made up of a mixture of professionals and volunteers from all over the world, working on every aspect of the mission - including mentorship, teaching, and connecting people. +Like the technical community as a whole, the Awilum Dev team and community is made up of a mixture of professionals and volunteers from all over the world, working on every aspect of the mission - including mentorship, teaching, and connecting people. Diversity is one of our strengths. With that, challenges will arise that can lead to communication issues and unhappiness. To that end, we have a few ground rules that we ask people to adhere to. This code applies equally to founders, mentors and those seeking help and guidance. This isn’t an exhaustive list of things that you can’t do. Rather, take it in the spirit in which it’s intended - a guide to make it easier to enrich all of us and the technical communities in which we participate. -This code of conduct applies to all spaces used by the Craft Plugins community for communication. This includes Craft Plugins Discord, GitHub, Twitter, Facebook, meetups, conferences, and any other relevant forums. Violations of this code outside of any spaces managed by the Craft Plugins team will still affect a person’s ability to participate within them. +This code of conduct applies to all spaces used by the Awilum Dev community for communication. This includes Awilum Dev Discord, GitHub, Twitter, Facebook, meetups, conferences, and any other relevant forums. Violations of this code outside of any spaces managed by the Awilum Dev team will still affect a person’s ability to participate within them. If you believe someone is violating the code of conduct, we ask that you report it by contacting us from [awilum@msn.com](mailto:awilum@msn.com). We take all reports seriously, and your identity will remain confidential. - **Be friendly and patient.** - **Be welcoming.** We strive to be a community that welcomes and supports people of all backgrounds and identities. This includes, but is not limited to members of any race, ethnicity, culture, national origin, colour, immigration status, social and economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion, and mental and physical ability. - **Be considerate.** Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we’re a world-wide community, so you might not be communicating in someone else’s primary language. -- **Be respectful.** Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one. Members of the Craft Plugins community should be respectful when dealing with other members as well as with people outside the Craft Plugins community. +- **Be respectful.** Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one. Members of the Awilum Dev community should be respectful when dealing with other members as well as with people outside the Awilum Dev community. - **Be careful in the words that you choose.** We are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behavior aren’t acceptable. This includes, but is not limited to: - Violent threats or language directed against another person. @@ -26,6 +26,6 @@ If you believe someone is violating the code of conduct, we ask that you report - Advocating for, or encouraging, any of the above behavior. - Repeated harassment of others. In general, if someone asks you to stop, then stop. -- **When we disagree, try to understand why.** Disagreements, both social and technical, happen all the time and Craft Plugins is no exception. It is important that we resolve disagreements and differing views constructively. Remember that we’re different. The strength of Craft Plugins comes from its varied community, people from a wide range of backgrounds. Different people have different perspectives on issues. Being unable to understand why someone holds a viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to err and blaming each other doesn’t get us anywhere. Instead, focus on helping to resolve issues and learning from mistakes. +- **When we disagree, try to understand why.** Disagreements, both social and technical, happen all the time and Awilum Dev is no exception. It is important that we resolve disagreements and differing views constructively. Remember that we’re different. The strength of Awilum Dev comes from its varied community, people from a wide range of backgrounds. Different people have different perspectives on issues. Being unable to understand why someone holds a viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to err and blaming each other doesn’t get us anywhere. Instead, focus on helping to resolve issues and learning from mistakes. *Credits for the sources and inspiration of this code of conduct go to the [Speak Up! project.](http://web.archive.org/web/20141109123859/http://speakup.io/coc.html)* diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 687535e..6028c2d 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -custom: ['https://awilum.github.io/donate'] +custom: ['https://awilum.github.io/donate/'] diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f08e9d..8961521 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ + +# [1.1.0](https://github.com/awilum/craft-nice) (2022-12-15) +* Transfer ownership to Awilum + -# [1.0.0](https://github.com/craft-plugins/nice) (2022-11-23) +# [1.0.0](https://github.com/awilum/craft-nice) (2022-11-23) * Initial release diff --git a/README.md b/README.md index 9d0be9f..781b970 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@

Nice plugin for Craft CMS

-License MIT GitHub Repo stars GitHub forks Hits of Code +License MIT GitHub Repo stars GitHub forks Hits of Code

-A nice plugin with nice functions for nice data representation :) +A nice plugin with nice functions for nice data representation in Craft CMS. ## Requirements @@ -20,7 +20,7 @@ To install the plugin, follow these instructions. cd /path/to/project ``` -2. In your terminal run `composer require craft-plugins/nice`. +2. In your terminal run `composer require awilum/craft-nice`. 3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Nice. @@ -93,11 +93,11 @@ Display nice file name in the twig tempalates: Use Nice `niceDateTime` function in the PHP: ```php -use function CraftPlugins\Nice\niceDateTime; +use function Awilum\CraftNice\niceDateTime; echo niceDateTime(1669177469); ``` ## LICENSE -[The MIT License (MIT)](https://github.com/craft-plugins/nice/blob/master/LICENSE.md) +[The MIT License (MIT)](https://github.com/awilum/craft-nice/blob/master/LICENSE.md) Copyright (c) [Sergey Romanenko](https://awilum.github.io/) diff --git a/composer.json b/composer.json index fc30a22..c3ddd23 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "craft-plugins/nice", - "description": "A nice plugin with nice functions for nice data representation :)", + "name": "awilum/craft-nice", + "description": "A nice plugin with nice functions for nice data representation in Craft CMS", "type": "craft-plugin", "keywords": ["twig", "craft", "craft-plugin", "craftcms"], "license": "MIT", @@ -13,16 +13,16 @@ ], "support": { "email": "awilum@msn.com", - "issues": "https://github.com/craft-plugins/nice/issues?state=open", - "source": "https://github.com/craft-plugins/nice", - "docs": "https://github.com/craft-plugins/nice/master/README.md" + "issues": "https://github.com/awilum/craft-nice/issues?state=open", + "source": "https://github.com/awilum/craft-nice", + "docs": "https://github.com/awilum/craft-nice/master/README.md" }, "require": { "craftcms/cms": "^4.3.3" }, "autoload": { "psr-4": { - "CraftPlugins\\Nice\\": "src/" + "Awilum\\CraftNice\\": "src/" }, "files": ["src/functions.php"] }, @@ -31,7 +31,7 @@ "extra": { "name": "Nice", "handle": "nice", - "class": "CraftPlugins\\Nice\\Nice" + "class": "Awilum\\CraftNice\\Nice" }, "require-dev": { "ext-iconv": "*", diff --git a/phpunit.xml b/phpunit.xml index 8f4b58c..ec8702d 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -11,7 +11,6 @@ - ./app ./src diff --git a/src/Nice.php b/src/Nice.php index 1037843..acd7b99 100644 --- a/src/Nice.php +++ b/src/Nice.php @@ -11,11 +11,11 @@ declare(strict_types=1); -namespace CraftPlugins\Nice; +namespace Awilum\CraftNice; use Craft; use craft\base\Plugin; -use CraftPlugins\Nice\NiceTwigExtension; +use Awilum\CraftNice\NiceTwigExtension; class Nice extends Plugin { diff --git a/src/NiceTwigExtension.php b/src/NiceTwigExtension.php index 1da61d9..28e4598 100644 --- a/src/NiceTwigExtension.php +++ b/src/NiceTwigExtension.php @@ -11,18 +11,18 @@ declare(strict_types=1); -namespace CraftPlugins\Nice; +namespace Awilum\CraftNice; use Twig\Environment; use Twig\Extension\AbstractExtension; use Twig\TwigFunction; use Twig\TwigFilter; use Twig_Extension; -use function CraftPlugins\Nice\niceFileSize; -use function CraftPlugins\Nice\niceHumanNumber; -use function CraftPlugins\Nice\niceNumber; -use function CraftPlugins\Nice\niceDateTime; -use function CraftPlugins\Nice\niceFileName; +use function Awilum\CraftNice\niceFileSize; +use function Awilum\CraftNice\niceHumanNumber; +use function Awilum\CraftNice\niceNumber; +use function Awilum\CraftNice\niceDateTime; +use function Awilum\CraftNice\niceFileName; class NiceTwigExtension extends AbstractExtension { diff --git a/src/functions.php b/src/functions.php index 6627e08..445306b 100644 --- a/src/functions.php +++ b/src/functions.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace CraftPlugins\Nice; +namespace Awilum\CraftNice; use TypeError; diff --git a/tests/NiceTest.php b/tests/NiceTest.php index a7186e6..5007dc5 100644 --- a/tests/NiceTest.php +++ b/tests/NiceTest.php @@ -1,10 +1,10 @@ toBe('1 B');