Skip to content

Commit

Permalink
change ownership to Awilum
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 15, 2022
1 parent 689f1f0 commit 5a598c4
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 33 deletions.
8 changes: 4 additions & 4 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -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:[email protected]). 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.
Expand All @@ -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)*
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
custom: ['https://awilum.github.io/donate']
custom: ['https://awilum.github.io/donate/']
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<a name="1.1.0"></a>
# [1.1.0](https://github.com/awilum/craft-nice) (2022-12-15)
* Transfer ownership to Awilum

<a name="1.0.0"></a>
# [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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<h1 align="center">Nice plugin for <a href="https://github.com/craftcms">Craft CMS</a></h1>

<p align="center">
<img src="https://img.shields.io/badge/license-MIT-blue.svg?label=License" alt="License MIT"> <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/craft-plugins/nice?label=Stars"> <img alt="GitHub forks" src="https://img.shields.io/github/forks/craft-plugins/nice?label=Forks"> <a href="https://hitsofcode.com"><img alt="Hits of Code" src="https://hitsofcode.com/github/craft-plugins/nice?branch=1.x"></a>
<img src="https://img.shields.io/badge/license-MIT-blue.svg?label=License" alt="License MIT"> <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/awilum/craft-nice?label=Stars"> <img alt="GitHub forks" src="https://img.shields.io/github/forks/awilum/craft-nice?label=Forks"> <a href="https://hitsofcode.com"><img alt="Hits of Code" src="https://hitsofcode.com/github/awilum/craft-nice?branch=1.x"></a>
</p>

A nice plugin with nice functions for nice data representation :)
A nice plugin with nice functions for nice data representation in Craft CMS.

## Requirements

Expand All @@ -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.
Expand Down Expand Up @@ -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/)
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -13,16 +13,16 @@
],
"support": {
"email": "[email protected]",
"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"]
},
Expand All @@ -31,7 +31,7 @@
"extra": {
"name": "Nice",
"handle": "nice",
"class": "CraftPlugins\\Nice\\Nice"
"class": "Awilum\\CraftNice\\Nice"
},
"require-dev": {
"ext-iconv": "*",
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./app</directory>
<directory suffix=".php">./src</directory>
</include>
</coverage>
Expand Down
4 changes: 2 additions & 2 deletions src/Nice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
12 changes: 6 additions & 6 deletions src/NiceTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

declare(strict_types=1);

namespace CraftPlugins\Nice;
namespace Awilum\CraftNice;

use TypeError;

Expand Down
10 changes: 5 additions & 5 deletions tests/NiceTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

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;

test('nice file size', function () {
expect(niceFileSize(1))->toBe('1 B');
Expand Down

0 comments on commit 5a598c4

Please sign in to comment.