negarmoji 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,7 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-12-06 11:59:49 +0100 using RuboCop version 0.61.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
@@ -0,0 +1,78 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to make participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies within all project spaces, and it also applies when
49
+ an individual is representing the project or its community in public spaces.
50
+ Examples of representing a project or community include using an official
51
+ project e-mail address, posting via an official social media account, or acting
52
+ as an appointed representative at an online or offline event. Representation of
53
+ a project may be further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at [MahdiBaghbani@protonmail.com][email]. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ [email]: mailto:MahdiBaghbani@protonmail.com
69
+
70
+ ## Attribution
71
+
72
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
73
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
74
+
75
+ [homepage]: https://www.contributor-covenant.org
76
+
77
+ For answers to common questions about this code of conduct, see
78
+ https://www.contributor-covenant.org/faq
data/CONTRIBUTING.md CHANGED
@@ -1,31 +1,200 @@
1
- Contributions to this project are released to the public under the [project's open source license](LICENSE).
1
+ # Contributing to Negareh Emoji Library
2
2
 
3
- Some useful tools in development are:
3
+ Welcome! Azadeh Afzar - Negareh Emoji Library (AA-NEL) is a hobby project that
4
+ aims to implement an easy way to generate emoji database for using in other packages.
5
+ If you're trying AA-NEL, your experience and what you can contribute are important to
6
+ the project's success.
4
7
 
5
- ```
6
- script/bootstrap
7
- ```
8
8
 
9
- Sets up the development environment. The prerequisites are:
9
+ ## Getting started, building, and testing
10
10
 
11
- * Ruby 1.9+
12
- * Bundler
11
+ If you haven't already, take a look at the project's [README.md file](README.md).
13
12
 
14
- ```
15
- script/test
16
- ```
13
+ ### Git repository
17
14
 
18
- Runs the test suite.
15
+ All project's development and discussion takes place on [GitLab][gitlab repo],
16
+ there is also a mirror on [GitHub][github repo].
19
17
 
20
- ```
21
- script/console
22
- ```
18
+ For contributing to this project, first login into your GitLab account and fork this
19
+ repository. After forking this repo, clone it into your local machine and create a
20
+ new branch from `master` branch with a descriptive name that describes your new feature
21
+ or `fix #issue-code` when you are fixing an issue. This part is important!
22
+ we do not accept MRs from master branch.
23
23
 
24
- Opens `irb` console with negarmoji library preloded for experimentation.
24
+ After doing your changes, commit and push your new branch to your forked repository on
25
+ GitLab and then ask for a Merge Request to `master` branch of this repository.
25
26
 
26
- ```
27
- script/release
28
- ```
27
+ ### Environment and dependency
29
28
 
30
- For maintainers only: after the gemspec has been edited, this commits the
31
- change, tags a release, and pushes it to both GitHub and RubyGems.org.
29
+
30
+ [gitlab repo]: https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library
31
+ [github repo]: https://github.com/azadeh-afzar/Negareh-Emoji-Library
32
+
33
+ ## Discussion
34
+
35
+ If you've run into behavior in Negareh Emoji Library you don't understand,
36
+ or you're having trouble working out a good way to apply it to your code, or
37
+ you've found a bug or would like a feature it doesn't have, we want to hear from you!
38
+
39
+ Our main forum for discussion is the project's [GitLab issue tracker][gitlab issue].
40
+ This is the right place to start a discussion of any of the above or most any other
41
+ topic concerning the project.
42
+
43
+ ### Code of Conduct
44
+
45
+ Everyone participating in the AA-NEL community, and in particular
46
+ in our issue tracker, pull requests, and IRC channel, is expected to treat
47
+ other people with respect and more generally to follow the guidelines
48
+ articulated in the [Negareh Emoji Library Code of Conduct](CODE_OF_CONDUCT.md).
49
+
50
+ [gitlab issue]: https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/issues
51
+
52
+ ## First Time Contributors
53
+
54
+ Negareh Emoji Library appreciates your contribution! If you are interested in
55
+ helping improve AA-NEL, there are several ways to get started:
56
+
57
+ * Find bugs and open issues on GitLab! this is almost one of the best ways to contribute.
58
+ * Work on [documentation issues][project documentation].
59
+ * Write tests for existing modules.
60
+ * Add new features (first discuss it as an issue).
61
+
62
+ [project documentation]: https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/labels/documentation
63
+
64
+ ## Submitting Changes
65
+
66
+ Even more excellent than a good bug report is a fix for a bug, or the
67
+ implementation of a much-needed new feature. (*) We'd love to have
68
+ your contributions.
69
+
70
+ (*) If your new feature will be a lot of work, we recommend talking to
71
+ us early -- see below.
72
+
73
+ We use the usual [GitLab merge-request flow][gitlab flow],
74
+ which may be familiar to you if you've contributed to other projects on GitLab.
75
+
76
+ Anyone interested in Negareh Emoji Library may review your code.
77
+ One of the AA-NEL core developers will merge your
78
+ merge request when they think it's ready.
79
+ For every merge request, we aim to promptly either merge it or say why
80
+ it's not yet ready; if you go a few days without a reply, please feel
81
+ free to ping the thread by adding a new comment.
82
+
83
+ For a list of AA-NEL core developers, see the file [CREDITS](CREDITS).
84
+
85
+ [gitlab flow]: https://docs.gitlab.com/ee/user/project/merge_requests
86
+
87
+ ## Preparing Changes
88
+
89
+ Before you begin: if your change will be a significant amount of work
90
+ to write, we highly recommend starting by opening an issue laying out
91
+ what you want to do. That lets a conversation happen early in case
92
+ other contributors disagree with what you'd like to do or have ideas
93
+ that will help you do it.
94
+
95
+ The best pull requests are focused, clearly describe what they're for
96
+ and why they're correct, and contain tests for whatever changes they
97
+ make to the code's behavior. As a bonus these are easiest for someone
98
+ to review, which helps your merge request get merged quickly! Standard
99
+ advice about good merge requests for open-source projects applies; we
100
+ have [our own writeup][good merge request]
101
+ of this advice. (adapted from mypy guidelines)
102
+
103
+ See also our [coding conventions][code conventions] -- which consist mainly of a
104
+ reference to [Ruby Style Guide][ruby style] -- for the code you
105
+ put in the merge request.
106
+
107
+ Also, do not squash your commits after you have submitted a merge request, as this
108
+ erases context during review. We will squash commits when the merge request is merged.
109
+
110
+ You may also find other pages in the [AA-NEL wiki][wiki]
111
+ helpful in developing your change.
112
+
113
+ [goode merge request]: https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/wikis/Good-Merge-Request
114
+ [code conventions]: https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/wikis/Code-Conventions
115
+ [wiki]: https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/wikis
116
+ [ruby style]: https://www.rubystyle.guide
117
+
118
+ # Core developer guidelines
119
+
120
+ Core developers should follow these rules when processing merge requests:
121
+
122
+ * Always wait for tests to pass before merging MRs.
123
+ * Use "[Squash and merge](https://gitlab.com/blog/2141-squash-your-commits)"
124
+ to merge MRs.
125
+ * Delete branches for merged MRs (by core devs pushing to the main repo).
126
+ * Edit the final commit message before merging to conform to the following
127
+ style (we wish to have a clean `git log` output):
128
+ * all commit messages should start with one of these keywords in the subject:
129
+ - init: for initial commits.
130
+ - add: for adding new feature.
131
+ - fix: for fixing an issue.
132
+ - modify: for changing existing code for optimization/readability etc.
133
+ - update: for changing doc files or comments.
134
+ - remove: for deleting code or file.
135
+ - build: for updating MakeFiles, etc for build process.
136
+ - style: for fixing indentation or line breaks, etc.
137
+ - document: for adding new documentation.
138
+ - version: for releasing version tags.
139
+ - ci: for DevOps jobs, like editing `.travis.yml` file.
140
+ - [skip ci]: use this keyword when you change docs to avoid running CI/CD jobs.
141
+
142
+ * When merging a multi-commit MR make sure that the commit message doesn't
143
+ contain the local history from the committer and the review history from
144
+ the MR. Edit the message to only describe the end state of the MR.
145
+ * Make sure there is a *single* newline at the end of the commit message.
146
+ This way there is a single empty line between commits in `git log`
147
+ output.
148
+ * Split lines as needed so that the maximum line length of the commit
149
+ message is under 80 characters, including the subject line.
150
+ * Do not capitalize the subject and each paragraph.
151
+ * Make sure that the subject of the commit message has no trailing dot.
152
+ * If the MR fixes an issue, make sure something like "issue #xxx." occurs
153
+ in the body of the message and not in the subject (e.g. `fix: issue #32`).
154
+ * Use Markdown for formatting.
155
+
156
+
157
+ ## Issue-tracker conventions
158
+
159
+ We aim to reply to all new issues promptly. We'll assign a milestone
160
+ to help us track which issues we intend to get to when, and may apply
161
+ labels to carry some other information. Here's what our milestones
162
+ and labels mean.
163
+
164
+ ### Task priority and sizing
165
+
166
+ We use GitLab "labels" ([see our list][labels])
167
+ to roughly order what we want to do soon and less soon. There's two dimensions
168
+ taken into account: **priority** (does it matter to our users) and **size** (how
169
+ long will it take to complete).
170
+
171
+ Bugs that aren't a huge deal but do matter to users and don't seem
172
+ like a lot of work to fix generally will be dealt with sooner; things
173
+ that will take longer may go further out.
174
+
175
+ We are trying to keep the backlog at a manageable size, an issue that is
176
+ unlikely to be acted upon in foreseeable future is going to be
177
+ respectfully closed. This doesn't mean the issue is not important, but
178
+ rather reflects the limits of the team.
179
+
180
+ The **question** label is for issue threads where a user is asking a
181
+ question but it isn't yet clear that it represents something to actually
182
+ change. We use the issue tracker as the preferred venue for such
183
+ questions, even when they aren't literally issues, to keep down the
184
+ number of distinct discussion venues anyone needs to track. These might
185
+ evolve into a bug or feature request.
186
+
187
+ Issues **without a priority or size** haven't been triaged. We aim to
188
+ triage all new issues promptly, but there are some issues from previous
189
+ years that we haven't yet re-reviewed since adopting these conventions.
190
+
191
+ ### Other labels
192
+
193
+ * **discussion**: This issue needs agreement on some kind of
194
+ design before it makes sense to implement it, and it either doesn't
195
+ yet have a design or doesn't yet have agreement on one.
196
+ * **feature**, **bug**, **crash**, **refactoring**, **documentation**:
197
+ These classify the user-facing impact of the change. Specifically
198
+ "refactoring" means there should be no user-facing effect.
199
+
200
+ [labels]: https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/labels
data/CREDITS ADDED
@@ -0,0 +1,11 @@
1
+ # Credits
2
+
3
+ For full list of contributors you can mine the commit history:
4
+ https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/commits/master
5
+
6
+ or see graphs:
7
+ https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/-/graphs/master
8
+
9
+ Core team:
10
+
11
+ Mohammad Mahdi Baghbani Pourvahid <MahdiBaghbani@protonmail.com>
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- gem "rake", "~> 10.3.2"
4
- gem "minitest", "~> 5.3.5"
3
+ source "https://rubygems.org"
5
4
 
6
5
  gemspec
6
+
7
+ gem "minitest", "~> 5.3.5"
8
+ gem "rake", "~> 10.3.2"
data/README.md CHANGED
@@ -1,3 +1,65 @@
1
+ <p align="center">
2
+ <br>
3
+ <a href="#">
4
+ <img src="logo.svg" width="100" alt="Negareh Emoji Library"/>
5
+ </a>
6
+ </p>
7
+
8
+ <h1 align="center">Negareh Emoji Library</h1>
9
+ <h3 align="center">Character information and metadata for Unicode emoji.</h3>
10
+
11
+ <p align="center">
12
+ <a title="Open Source" href="https://opensource.com/resources/what-open-source" target="_blank">
13
+ <img src="https://img.shields.io/badge/Open%20Source-Forever-brightgreen?logo=open-source-initiative&style=flat-square" alt="Open Source">
14
+ </a>
15
+ <a title="License: GPLv3" href="https://www.opensource.org/licenses/GPL-3.0" target="_blank">
16
+ <img src="https://img.shields.io/github/license/azadeh-afzar/Negareh-Emoji-Library?logo=gnu&style=flat-square" alt="License: GPLv3">
17
+ </a>
18
+ <a title="Language counter" href="#" target="_blank">
19
+ <img src="https://img.shields.io/github/languages/count/azadeh-afzar/Negareh-Emoji-Library?logo=gitlab&style=flat-square" alt="Language counter">
20
+ </a>
21
+ <a title="Top language" href="#" target="_blank">
22
+ <img src="https://img.shields.io/github/languages/top/azadeh-afzar/Negareh-Emoji-Library?logo=gitlab&style=flat-square" alt="Top language">
23
+ </a>
24
+
25
+ <br>
26
+
27
+ <a title="Code Quality: Codefactor.io" href="https://www.codefactor.io/repository/github/azadeh-afzar/Negareh-Emoji-Library" target="_blank">
28
+ <img src="https://www.codefactor.io/repository/github/azadeh-afzar/Negareh-Emoji-Library/badge?style=flat-square" alt="CodeFactor"/>
29
+ </a>
30
+ <a title="Code Quality: CodeClimate.com" href="https://codeclimate.com/github/azadeh-afzar/Negareh-Emoji-Library/maintainability" target="_blank">
31
+ <img src="https://img.shields.io/codeclimate/maintainability/azadeh-afzar/Negareh-Emoji-Library?logo=code-climate&style=flat-square" alt="CodeClimate rating"/>
32
+ </a>
33
+ <a title="Code Technical Debt: CodeClimate.com" href="https://codeclimate.com/github/azadeh-afzar/Negareh-Emoji-Library/maintainability" target="_blank">
34
+ <img src="https://img.shields.io/codeclimate/tech-debt/azadeh-afzar/Negareh-Emoji-Library?logo=code-climate&style=flat-square" alt="CodeClimate technical debt"/>
35
+ </a>
36
+ <a title="Code Issues: CodeClimate.com" href="https://codeclimate.com/github/azadeh-afzar/Negareh-Emoji-Library/maintainability" target="_blank">
37
+ <img src="https://img.shields.io/codeclimate/issues/azadeh-afzar/Negareh-Emoji-Library?logo=code-climate&style=flat-square" alt="CodeClimate issues"/>
38
+ </a>
39
+
40
+ <br>
41
+
42
+ <a title="GitLab: pipeline status" href="https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library/commits/master" target="_blank">
43
+ <img src="https://img.shields.io/gitlab/pipeline/Web-Development/Negareh-Emoji-Library?gitlab_url=https%3A%2F%2Fgitlab.com%2FAzadeh-Afzar&logo=gitlab&style=flat-square" alt="pipeline status" />
44
+ </a>
45
+ <a title="Test Coverage: CodeClimate.com" href="https://codeclimate.com/github/azadeh-afzar/Negareh-Emoji-Library" target="_blank">
46
+ <img src="https://img.shields.io/codeclimate/coverage/azadeh-afzar/Negareh-Emoji-Library?logo=code-climate&style=flat-square" alt="CodeClimate"/>
47
+ </a>
48
+
49
+ <br>
50
+
51
+ <a title="Gem Version" href="https://rubygems.org/gems/negarmoji">
52
+ <img src="https://img.shields.io/gem/v/negarmoji?color=red&label=Negareh%20Emoji%20Library&logo=rubygems&style=flat-square" alt="Gem Version">
53
+ </a>
54
+ </p>
55
+
56
+ > If you are viewing this repository on GitHub, this GitHub repository is a mirror of the Negareh Emoji Library,
57
+ > the main repository is served on
58
+ ><a href="https://gitlab.com/Azadeh-Afzar/Web-Development/Negareh-Emoji-Library">GitLab</a>, all developments and
59
+ >discussions, issue tracking and merge requests take place in GitLab.
60
+
61
+ > This project is a fork of <a href="https://github.com/github/jemoji">Gemoji</a>.
62
+
1
63
  negarmoji
2
64
  ======
3
65
 
@@ -98,3 +160,22 @@ end
98
160
  Emoji.find_by_alias "music" #=> emoji
99
161
  Emoji.find_by_unicode "\u{266b}" #=> emoji
100
162
  ```
163
+ ## Contribution
164
+
165
+ If you want to contribute to this project, please read [CONTRIBUTING](CONTRIBUTING.md).
166
+
167
+ ## Code of Conduct
168
+
169
+ Visit the [Code of Conduct](CODE_OF_CONDUCT.md).
170
+
171
+ ## Roadmap
172
+
173
+ Visit the [Roadmap](ROADMAP.md) to keep track of which features we are currently
174
+ working on.
175
+
176
+ ## License
177
+
178
+ Licensed under the [GPLv3](LICENSE).
179
+
180
+ ## Attribution
181
+ 2. This project is a fork of [Gemoji](https://github.com/github/gemoji). License: MIT
data/ROADMAP.md ADDED
@@ -0,0 +1,28 @@
1
+ # Negareh Emoji Library v1.0 Roadmap
2
+
3
+ ## Overview
4
+
5
+ This document outlines our roadmap to delivering Azadeh Afzar - Negareh Emoji Library
6
+ v1.0 by Summer 2021.
7
+
8
+ ## Milestones
9
+
10
+ The Azadeh Afzar - Negareh Emoji Library
11
+ v1.0 project milestones:
12
+
13
+ Milestone name: No milestones.
14
+ Start date of this Milestone: None
15
+
16
+ | Feature | Duration |
17
+ | --- | --- |
18
+
19
+
20
+ ## Terminal Roadmap / Timeline
21
+
22
+ Ultimately, we're aiming for Negareh Emoji Library v1.0 to be feature-complete by Jan 2021,
23
+ and to declare v1.0 by Jul 2021:
24
+
25
+ | Milestone end date | Milestone Name | Key Deliverables |
26
+ | --- | --- | --- |
27
+ | 2019-09-8 | Start | Azadeh Afzar forked Gemoji package from GitHub
28
+ | 2019-12-12| fundamental refactor | Add skin tone variations, update to emoji 12.1