negarmoji 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +64 -0
- data/.gitignore +144 -5
- data/.gitlab-ci.yml +124 -0
- data/.gitlab/issue_templates/Default.md +20 -0
- data/.gitlab/merge_request_templates/Default.md +25 -0
- data/.rubocop.yml +47 -0
- data/.rubocop_todo.yml +7 -0
- data/CHANGELOG.md +6 -0
- data/CODE_OF_CONDUCT.md +78 -0
- data/CONTRIBUTING.md +190 -21
- data/CREDITS +11 -0
- data/Gemfile +5 -3
- data/README.md +81 -0
- data/ROADMAP.md +28 -0
- data/Rakefile +7 -5
- data/SUPPORT.md +6 -0
- data/db/dump.rb +35 -37
- data/db/emoji-test-parser.rb +28 -33
- data/db/negarmoji.json +20788 -18818
- data/lib/negarmoji/character.rb +12 -6
- data/lib/negarmoji/emoji.rb +71 -146
- data/lib/negarmoji/version.rb +1 -1
- data/logo.svg +200 -0
- data/negarmoji.gemspec +11 -4
- data/script/ci_rubygems.sh +13 -0
- data/script/dev_release.py +91 -0
- data/script/dev_revert_tag.py +39 -0
- data/script/test.sh +12 -0
- data/script/test_module.sh +10 -0
- data/script/test_style.sh +18 -0
- data/test/documentation_test.rb +17 -10
- data/test/emoji_test.rb +44 -54
- data/test/test_helper.rb +12 -2
- data/vendor/{unicode-negarmoji-test.txt → unicode-emoji-test.txt} +4028 -3842
- metadata +109 -11
- data/.travis.yml +0 -12
- data/script/console +0 -16
- data/script/release +0 -31
- data/script/test +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77c9b45d6dccec3e92d9cf4afe53f78ae9e7f20de80fe9cd1cac82dc3037fd7a
|
4
|
+
data.tar.gz: 25fadbaf593442f23e2367e36eff1ea78d0e0510359bc40524bf319f7fa3d63b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a801b927b4f2b3afbacfe3c375c85a21b0d1229e43d6bbe44bad2e2f9ece4ffd57c3c38e521c2724c3d63e166ba15bc42644d14e1fa0a27bdfc3668c11565ed
|
7
|
+
data.tar.gz: a9b2e0dba2c90dcca0f18dfe6cd6cc1beede8b03043b25ceb95f7df3d5c1c816bf40eda72931b3134bcb5e457f3c79bf4b9e602cef8441554f3bd83744ca4f12
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
version: "2"
|
2
|
+
checks:
|
3
|
+
argument-count:
|
4
|
+
enabled: true
|
5
|
+
config:
|
6
|
+
threshold: 5
|
7
|
+
complex-logic:
|
8
|
+
enabled: true
|
9
|
+
config:
|
10
|
+
threshold: 5
|
11
|
+
file-lines:
|
12
|
+
enabled: true
|
13
|
+
config:
|
14
|
+
threshold: 350
|
15
|
+
method-complexity:
|
16
|
+
enabled: true
|
17
|
+
config:
|
18
|
+
threshold: 10
|
19
|
+
method-count:
|
20
|
+
enabled: true
|
21
|
+
config:
|
22
|
+
threshold: 20
|
23
|
+
method-lines:
|
24
|
+
enabled: true
|
25
|
+
config:
|
26
|
+
threshold: 30
|
27
|
+
nested-control-flow:
|
28
|
+
enabled: true
|
29
|
+
config:
|
30
|
+
threshold: 5
|
31
|
+
return-statements:
|
32
|
+
enabled: true
|
33
|
+
config:
|
34
|
+
threshold: 4
|
35
|
+
similar-code:
|
36
|
+
enabled: true
|
37
|
+
config:
|
38
|
+
threshold: #language-specific defaults. overrides affect all languages.
|
39
|
+
identical-code:
|
40
|
+
enabled: true
|
41
|
+
config:
|
42
|
+
threshold: #language-specific defaults. overrides affect all languages.
|
43
|
+
plugins:
|
44
|
+
git-legal:
|
45
|
+
enabled: true
|
46
|
+
config:
|
47
|
+
allow_affero_copyleft: true
|
48
|
+
allow_strong_copyleft: true
|
49
|
+
rubocop:
|
50
|
+
enabled: true
|
51
|
+
|
52
|
+
exclude_patterns:
|
53
|
+
- "config/"
|
54
|
+
- "db/"
|
55
|
+
- "dist/"
|
56
|
+
- "features/"
|
57
|
+
- "images/"
|
58
|
+
- "**/node_modules/"
|
59
|
+
- "script/"
|
60
|
+
- "**/spec/"
|
61
|
+
- "**/test/"
|
62
|
+
- "**/tests/"
|
63
|
+
- "**/vendor/"
|
64
|
+
- "**/*.d.ts"
|
data/.gitignore
CHANGED
@@ -1,6 +1,145 @@
|
|
1
|
-
/
|
2
|
-
.
|
3
|
-
|
4
|
-
Gemfile.lock
|
1
|
+
# Created by https://www.gitignore.io/api/ruby,rubymine
|
2
|
+
# Edit at https://www.gitignore.io/?templates=ruby,rubymine
|
3
|
+
|
5
4
|
vendor/*
|
6
|
-
!vendor/unicode-
|
5
|
+
!vendor/unicode-emoji-test.txt
|
6
|
+
|
7
|
+
### Ruby ###
|
8
|
+
Gemfile.lock
|
9
|
+
*.gem
|
10
|
+
*.rbc
|
11
|
+
/.config
|
12
|
+
/coverage/
|
13
|
+
/InstalledFiles
|
14
|
+
/pkg/
|
15
|
+
/spec/reports/
|
16
|
+
/spec/examples.txt
|
17
|
+
/test/tmp/
|
18
|
+
/test/version_tmp/
|
19
|
+
/tmp/
|
20
|
+
/.rakeTasks
|
21
|
+
|
22
|
+
# Used by dotenv library to load environment variables.
|
23
|
+
# .env
|
24
|
+
|
25
|
+
# Ignore Byebug command history file.
|
26
|
+
.byebug_history
|
27
|
+
|
28
|
+
## Specific to RubyMotion:
|
29
|
+
.dat*
|
30
|
+
.repl_history
|
31
|
+
build/
|
32
|
+
*.bridgesupport
|
33
|
+
build-iPhoneOS/
|
34
|
+
build-iPhoneSimulator/
|
35
|
+
|
36
|
+
## Specific to RubyMotion (use of CocoaPods):
|
37
|
+
#
|
38
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
39
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
40
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
41
|
+
# vendor/Pods/
|
42
|
+
|
43
|
+
## Documentation cache and generated files:
|
44
|
+
/.yardoc/
|
45
|
+
/_yardoc/
|
46
|
+
/doc/
|
47
|
+
/rdoc/
|
48
|
+
|
49
|
+
## Environment normalization:
|
50
|
+
/.bundle/
|
51
|
+
/vendor/bundle
|
52
|
+
/lib/bundler/man/
|
53
|
+
|
54
|
+
# for a library or gem, you might want to ignore these files since the code is
|
55
|
+
# intended to run in multiple environments; otherwise, check them in:
|
56
|
+
# Gemfile.lock
|
57
|
+
# .ruby-version
|
58
|
+
# .ruby-gemset
|
59
|
+
|
60
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
61
|
+
.rvmrc
|
62
|
+
|
63
|
+
### RubyMine ###
|
64
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
|
65
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
66
|
+
|
67
|
+
# User-specific stuff
|
68
|
+
/.idea/
|
69
|
+
.idea/**/workspace.xml
|
70
|
+
.idea/**/tasks.xml
|
71
|
+
.idea/**/usage.statistics.xml
|
72
|
+
.idea/**/dictionaries
|
73
|
+
.idea/**/shelf
|
74
|
+
|
75
|
+
# Generated files
|
76
|
+
.idea/**/contentModel.xml
|
77
|
+
|
78
|
+
# Sensitive or high-churn files
|
79
|
+
.idea/**/dataSources/
|
80
|
+
.idea/**/dataSources.ids
|
81
|
+
.idea/**/dataSources.local.xml
|
82
|
+
.idea/**/sqlDataSources.xml
|
83
|
+
.idea/**/dynamic.xml
|
84
|
+
.idea/**/uiDesigner.xml
|
85
|
+
.idea/**/dbnavigator.xml
|
86
|
+
|
87
|
+
# Gradle
|
88
|
+
.idea/**/gradle.xml
|
89
|
+
.idea/**/libraries
|
90
|
+
|
91
|
+
# Gradle and Maven with auto-import
|
92
|
+
# When using Gradle or Maven with auto-import, you should exclude module files,
|
93
|
+
# since they will be recreated, and may cause churn. Uncomment if using
|
94
|
+
# auto-import.
|
95
|
+
# .idea/modules.xml
|
96
|
+
# .idea/*.iml
|
97
|
+
# .idea/modules
|
98
|
+
# *.iml
|
99
|
+
# *.ipr
|
100
|
+
|
101
|
+
# CMake
|
102
|
+
cmake-build-*/
|
103
|
+
|
104
|
+
# Mongo Explorer plugin
|
105
|
+
.idea/**/mongoSettings.xml
|
106
|
+
|
107
|
+
# File-based project format
|
108
|
+
*.iws
|
109
|
+
|
110
|
+
# IntelliJ
|
111
|
+
out/
|
112
|
+
|
113
|
+
# mpeltonen/sbt-idea plugin
|
114
|
+
.idea_modules/
|
115
|
+
|
116
|
+
# JIRA plugin
|
117
|
+
atlassian-ide-plugin.xml
|
118
|
+
|
119
|
+
# Cursive Clojure plugin
|
120
|
+
.idea/replstate.xml
|
121
|
+
|
122
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
123
|
+
com_crashlytics_export_strings.xml
|
124
|
+
crashlytics.properties
|
125
|
+
crashlytics-build.properties
|
126
|
+
fabric.properties
|
127
|
+
|
128
|
+
# Editor-based Rest Client
|
129
|
+
.idea/httpRequests
|
130
|
+
|
131
|
+
# Android studio 3.1+ serialized cache file
|
132
|
+
.idea/caches/build_file_checksums.ser
|
133
|
+
|
134
|
+
### RubyMine Patch ###
|
135
|
+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
|
136
|
+
|
137
|
+
# *.iml
|
138
|
+
# modules.xml
|
139
|
+
# .idea/misc.xml
|
140
|
+
# *.ipr
|
141
|
+
|
142
|
+
# Sonarlint plugin
|
143
|
+
.idea/sonarlint
|
144
|
+
|
145
|
+
# End of https://www.gitignore.io/api/ruby,jekyll,rubymine
|
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
# stages of gitlab ci.
|
2
|
+
stages:
|
3
|
+
- test
|
4
|
+
- release
|
5
|
+
|
6
|
+
# default settings for all ci jobs.
|
7
|
+
default:
|
8
|
+
image: azadehafzarhub/gitlab-ci-ruby-build:latest
|
9
|
+
cache:
|
10
|
+
paths:
|
11
|
+
- vendor/
|
12
|
+
|
13
|
+
# job for testing package against ruby version 2.6
|
14
|
+
# on master branch and send test coverage result to
|
15
|
+
# codeclimate.
|
16
|
+
main_test:
|
17
|
+
stage: test
|
18
|
+
before_script:
|
19
|
+
# setup rvm.
|
20
|
+
- source ~/.bash_profile
|
21
|
+
# use ruby version 2.6.
|
22
|
+
- rvm use 2.6
|
23
|
+
# upgrade bundler to latest version.
|
24
|
+
- gem install bundler
|
25
|
+
# install dependency gems.
|
26
|
+
- bundle install --path vendor
|
27
|
+
# run codeclimate test reporter agent.
|
28
|
+
- cc-test-reporter before-build
|
29
|
+
# run tests.
|
30
|
+
script:
|
31
|
+
- script/test.sh
|
32
|
+
# send test coverage result to codeclimate.
|
33
|
+
after_script:
|
34
|
+
- cc-test-reporter after-build --coverage-input-type simplecov
|
35
|
+
only:
|
36
|
+
- master
|
37
|
+
|
38
|
+
# job for testing package on other branches than master
|
39
|
+
# and merge requests against 2.6 version.
|
40
|
+
ruby_2_6_test:
|
41
|
+
stage: test
|
42
|
+
before_script:
|
43
|
+
# setup rvm.
|
44
|
+
- source ~/.bash_profile
|
45
|
+
# use ruby version 2.6.
|
46
|
+
- rvm use 2.6
|
47
|
+
# upgrade bundler to latest version.
|
48
|
+
- gem install bundler
|
49
|
+
# install dependency gems.
|
50
|
+
- bundle install --path vendor
|
51
|
+
# run tests.
|
52
|
+
script:
|
53
|
+
- script/test.sh
|
54
|
+
only:
|
55
|
+
- branches
|
56
|
+
- merge_requests
|
57
|
+
except:
|
58
|
+
- master
|
59
|
+
|
60
|
+
ruby_2_5_test:
|
61
|
+
stage: test
|
62
|
+
before_script:
|
63
|
+
# setup rvm.
|
64
|
+
- source ~/.bash_profile
|
65
|
+
# use ruby version 2.5.
|
66
|
+
- rvm use 2.5
|
67
|
+
# upgrade bundler to latest version.
|
68
|
+
- gem install bundler
|
69
|
+
# install dependency gems.
|
70
|
+
- bundle install --path vendor
|
71
|
+
# run tests.
|
72
|
+
script:
|
73
|
+
- script/test.sh
|
74
|
+
|
75
|
+
ruby_2_4_test:
|
76
|
+
stage: test
|
77
|
+
before_script:
|
78
|
+
# setup rvm.
|
79
|
+
- source ~/.bash_profile
|
80
|
+
# use ruby version 2.4.
|
81
|
+
- rvm use 2.4
|
82
|
+
# upgrade bundler to latest version.
|
83
|
+
- gem install bundler
|
84
|
+
# install dependency gems.
|
85
|
+
- bundle install --path vendor
|
86
|
+
# run tests.
|
87
|
+
script:
|
88
|
+
- script/test.sh
|
89
|
+
|
90
|
+
ruby_2_3_test:
|
91
|
+
stage: test
|
92
|
+
before_script:
|
93
|
+
# setup rvm.
|
94
|
+
- source ~/.bash_profile
|
95
|
+
# use ruby version 2.3.
|
96
|
+
- rvm use 2.3
|
97
|
+
# upgrade bundler to latest version.
|
98
|
+
- gem install bundler
|
99
|
+
# install dependency gems.
|
100
|
+
- bundle install --path vendor
|
101
|
+
# run tests.
|
102
|
+
script:
|
103
|
+
- script/test.sh
|
104
|
+
|
105
|
+
# deploy gems to rubygems.org whenever a tag is released.
|
106
|
+
release_rubygems:
|
107
|
+
stage: release
|
108
|
+
script:
|
109
|
+
# setup rvm.
|
110
|
+
- source ~/.bash_profile
|
111
|
+
# use ruby version 2.6.
|
112
|
+
- rvm use 2.6
|
113
|
+
# create rubygems credential file for auto login.
|
114
|
+
- script/ci_rubygems.sh
|
115
|
+
# extract tag from git log and strip "v".
|
116
|
+
- version=$(git describe --tags)
|
117
|
+
- version=${version:1}
|
118
|
+
# build and push gem.
|
119
|
+
- gem build negarmoji.gemspec
|
120
|
+
- gem push "negarmoji-$version.gem"
|
121
|
+
# only run for new tags.
|
122
|
+
only:
|
123
|
+
- tags
|
124
|
+
when: manual
|
@@ -0,0 +1,20 @@
|
|
1
|
+
## Details
|
2
|
+
Mersad version:
|
3
|
+
OS name and version: (e.g. Ubuntu 18.04)
|
4
|
+
|
5
|
+
## Description
|
6
|
+
|
7
|
+
**Describe the bug**
|
8
|
+
A clear and concise description of what the bug is.
|
9
|
+
|
10
|
+
**Expected behavior**
|
11
|
+
A clear and concise description of what you expected to happen.
|
12
|
+
|
13
|
+
**Screenshots**
|
14
|
+
If applicable, add screenshots to help explain your problem.
|
15
|
+
|
16
|
+
**To Reproduce**
|
17
|
+
Steps to reproduce the behavior.
|
18
|
+
|
19
|
+
**Additional context**
|
20
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Description
|
2
|
+
|
3
|
+
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
|
4
|
+
|
5
|
+
Fixes # (issue)
|
6
|
+
|
7
|
+
## Type of change
|
8
|
+
|
9
|
+
Please delete options that are not relevant.
|
10
|
+
|
11
|
+
- [ ] Bug fix (non-breaking change which fixes an issue)
|
12
|
+
- [ ] New feature (non-breaking change which adds functionality)
|
13
|
+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
14
|
+
- [ ] This change requires a documentation update
|
15
|
+
|
16
|
+
# Checklist:
|
17
|
+
|
18
|
+
- [ ] My code follows the style guidelines of this project
|
19
|
+
- [ ] I have performed a self-review of my own code
|
20
|
+
- [ ] I have commented my code, particularly in hard-to-understand areas
|
21
|
+
- [ ] I have made corresponding changes to the documentation
|
22
|
+
- [ ] My changes generate no new warnings
|
23
|
+
- [ ] I have added tests that prove my fix is effective or that my feature works
|
24
|
+
- [ ] New and existing unit tests pass locally with my changes
|
25
|
+
- [ ] Any dependent changes have been merged and published in downstream modules
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
TargetRubyVersion: 2.3
|
5
|
+
Exclude:
|
6
|
+
- vendor/**/*
|
7
|
+
- test/**/*
|
8
|
+
- db/**/*
|
9
|
+
- Rakefile
|
10
|
+
|
11
|
+
|
12
|
+
Layout/HashAlignment:
|
13
|
+
EnforcedHashRocketStyle: table
|
14
|
+
|
15
|
+
Layout/MultilineMethodCallIndentation:
|
16
|
+
EnforcedStyle: indented_relative_to_receiver
|
17
|
+
IndentationWidth: 2
|
18
|
+
|
19
|
+
Metrics/AbcSize:
|
20
|
+
Max: 50
|
21
|
+
|
22
|
+
Metrics/BlockLength:
|
23
|
+
Max: 50
|
24
|
+
|
25
|
+
Metrics/CyclomaticComplexity:
|
26
|
+
Max: 10
|
27
|
+
|
28
|
+
Metrics/LineLength:
|
29
|
+
Max: 85
|
30
|
+
|
31
|
+
Metrics/MethodLength:
|
32
|
+
Max: 40
|
33
|
+
|
34
|
+
Metrics/ModuleLength:
|
35
|
+
Max: 200
|
36
|
+
|
37
|
+
Metrics/PerceivedComplexity:
|
38
|
+
Max: 10
|
39
|
+
|
40
|
+
Style/HashSyntax:
|
41
|
+
EnforcedStyle: hash_rockets
|
42
|
+
|
43
|
+
Style/RegexpLiteral:
|
44
|
+
EnforcedStyle: percent_r
|
45
|
+
|
46
|
+
Style/StringLiterals:
|
47
|
+
EnforcedStyle: double_quotes
|