gitmoji-regex 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -1
- data/README.md +163 -4
- data/lib/gitmoji/regex/version.rb +3 -1
- data/lib/gitmoji/regex.rb +9 -2
- data/spec/gitmoji/regex/reference_spec.rb +1 -1
- data/spec/gitmoji/regex_spec.rb +1 -1
- data/spec/spec_helper.rb +22 -1
- metadata +45 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dedba866d8ac584c54ed809319e5709b05a0d37fabd16570a96ba0067b574237
|
4
|
+
data.tar.gz: 6bf7ab47a85eed3d08568082835ee47df19acb66b61c86bb1bd4d67b31ec620d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 936e9b1bf89bd826d56b9d0bad6950a34fc45eefdc2ed449a76c63577d35e32fb8f997286d28c0b5174e9fd0d065852553ed10340c59c514b56e2400a4216ea7
|
7
|
+
data.tar.gz: 5eeaefcc99adc749d50a625144e9b06e4fe380954e6be4857dd692841a7249e033d2960123f538ef6c6ce10d888ba84646e0d646c8626f6dbd432061c76c3e52
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,49 @@
|
|
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
|
+
|
1
7
|
## [Unreleased]
|
8
|
+
### Added
|
2
9
|
|
3
|
-
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
### Removed
|
15
|
+
|
16
|
+
## [1.0.0] - 2022-06-24
|
17
|
+
### Added
|
18
|
+
- New gitmoji "💸"
|
19
|
+
- Gitmoji::Regex::Version is introspectable
|
20
|
+
|
21
|
+
### Changed
|
22
|
+
- Gitmoji::Regex::VERSION is now Gitmoji::Regex::Version::VERSION
|
4
23
|
|
24
|
+
## [0.1.3] - 2022-03-30
|
25
|
+
### Added
|
26
|
+
- Documentation
|
27
|
+
- Badges
|
28
|
+
|
29
|
+
### Fixed
|
30
|
+
- Code Coverage
|
31
|
+
- Changelog URLs
|
32
|
+
|
33
|
+
## [0.1.2] - 2022-03-29
|
34
|
+
### Added
|
35
|
+
- Badges and Logos
|
36
|
+
|
37
|
+
## [0.1.1] - 2022-03-28
|
38
|
+
### Added
|
39
|
+
- Usage documentation
|
40
|
+
|
41
|
+
## [0.1.0] - 2022-03-28
|
42
|
+
### Added
|
5
43
|
- Initial release
|
44
|
+
|
45
|
+
[Unreleased]: https://github.com/pboling/gitmoji-regex/compare/.v0.1.3...HEAD
|
46
|
+
[0.1.3]: https://github.com/pboling/gitmoji-regex/compare/v0.1.2...v0.1.3
|
47
|
+
[0.1.2]: https://github.com/pboling/gitmoji-regex/compare/v0.1.1...v0.1.2
|
48
|
+
[0.1.1]: https://github.com/pboling/gitmoji-regex/compare/v0.1.0...v0.1.1
|
49
|
+
[0.1.0]: https://github.com/pboling/gitmoji-regex/compare/e71c6c3dad5bfd59ae2509531eaea3a16e21cb63...v0.1.0
|
data/README.md
CHANGED
@@ -1,8 +1,158 @@
|
|
1
|
-
|
1
|
+
<p align="center">
|
2
|
+
<a href="https://gitmoji.dev/" target="_blank" rel="noopener">
|
3
|
+
<img width="120px" src="https://github.com/pboling/gitmoji-regex/raw/main/docs/images/logo/gitmoji-logo-120px.png?raw=true" alt="Gotmoji Logo Copyright (c) 2016-2022 Carlos Cuesta, MIT License">
|
4
|
+
</a>
|
5
|
+
<a href="https://rubular.com/" target="_blank" rel="noopener">
|
6
|
+
<img width="120px" src="https://github.com/pboling/gitmoji-regex/raw/main/docs/images/logo/regex-logo-120px.png?raw=true" alt="Regular Expression OOjs UI Icon by GOJU, MIT License via Wikimedia Commons">
|
7
|
+
</a>
|
8
|
+
<a href="https://www.ruby-lang.org/" target="_blank" rel="noopener">
|
9
|
+
<img width="120px" src="https://github.com/pboling/gitmoji-regex/raw/main/docs/images/logo/ruby-logo-198px.svg?raw=true" alt="Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5">
|
10
|
+
</a>
|
11
|
+
</p>
|
2
12
|
|
3
|
-
|
13
|
+
# Gitmoji::Regex
|
4
14
|
|
5
|
-
This gem
|
15
|
+
This gem provides a regex that allows Ruby code to test a string for a [Gitmoji](https://github.com/carloscuesta/gitmoji) character. Gitmoji is a [subset](https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json) of the Unicode Emoji character set. This gem is _not_ a fork of, but was **inspired** by, the wonderful [emoji_regex](https://github.com/ticky/ruby-emoji-regex) gem.
|
16
|
+
|
17
|
+
<!--
|
18
|
+
Numbering rows and badges in each row as a visual "database" lookup,
|
19
|
+
as the table is extremely dense, and it can be very difficult to find anything
|
20
|
+
Putting one on each row here, to document the emoji that should be used, and for ease of copy/paste.
|
21
|
+
|
22
|
+
row #s:
|
23
|
+
1️⃣
|
24
|
+
2️⃣
|
25
|
+
3️⃣
|
26
|
+
4️⃣
|
27
|
+
5️⃣
|
28
|
+
6️⃣
|
29
|
+
7️⃣
|
30
|
+
|
31
|
+
badge #s:
|
32
|
+
⛳️
|
33
|
+
🖇
|
34
|
+
🏘
|
35
|
+
🚎
|
36
|
+
🖐
|
37
|
+
🧮
|
38
|
+
📗
|
39
|
+
|
40
|
+
appended indicators:
|
41
|
+
♻️ - URL needs to be updated from SASS integration. Find / Replace is insufficient.
|
42
|
+
-->
|
43
|
+
|
44
|
+
| | Project | bundle add gitmoji-regex |
|
45
|
+
|:----|--------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
46
|
+
| 1️⃣ | name, license, docs, standards | [![RubyGems.org][⛳️name-img]][⛳️gem] [![License: MIT][🖇src-license-img]][🖇src-license] <!--[![FOSSA][🏘fossa-img]][🏘fossa]--> [![RubyDoc.info][🚎yard-img]][🚎yard] [![GitMoji][🖐gitmoji-img]][🖐gitmoji] [![SemVer 2.0.0][🧮semver-img]][semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] |
|
47
|
+
| 2️⃣ | version & activity | [![Gem Version][⛳️version-img]][⛳️gem] [![Total Downloads][🖇DL-total-img]][⛳️gem] [![Download Rank][🏘DL-rank-img]][⛳️gem] [![Source Code][🚎src-home-img]][🚎src-home] [![Open PRs][🖐prs-o-img]][🖐prs-o] [![Closed PRs][🧮prs-c-img]][🧮prs-c] <!--[![Next Version][📗next-img]][📗next]--> |
|
48
|
+
| 3️⃣ | maintanence & linting | [![Maintainability][⛳cclim-maint-img♻️]][⛳cclim-maint] [![Helpers][🖇triage-help-img]][🖇triage-help] [![Depfu][🏘depfu-img♻️]][🏘depfu♻️] [![Contributors][🚎contributors-img]][🚎contributors] [![Style][🖐style-wf-img]][🖐style-wf] [![Kloc Roll][🧮kloc-img]][🧮kloc] |
|
49
|
+
| 4️⃣ | testing | [![Open Issues][⛳iss-o-img]][⛳iss-o] [![Closed Issues][🖇iss-c-img]][🖇iss-c] [![Supported][🏘sup-wf-img]][🏘sup-wf] [![Heads][🚎heads-wf-img]][🚎heads-wf] [![Unofficial Support][🖐uns-wf-img]][🖐uns-wf] <!--[![MacOS][🧮mac-wf-img]][🧮mac-wf] [![Windows][📗win-wf-img]][📗win-wf]--> |
|
50
|
+
| 5️⃣ | coverage & security | [![CodeClimate][⛳cclim-cov-img♻️]][⛳cclim-cov] [![CodeCov][🖇codecov-img♻️]][🖇codecov] [![Coveralls][🏘coveralls-img]][🏘coveralls] [![Security Policy][🚎sec-pol-img]][🚎sec-pol] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Code Coverage][🧮cov-wf-img]][🧮cov-wf] |
|
51
|
+
| 6️⃣ | resources | [![Discussion][⛳gh-discussions-img]][⛳gh-discussions] [![Get help on Codementor][🖇codementor-img]][🖇codementor] [![Chat][🏘chat-img]][🏘chat] [![Blog][🚎blog-img]][🚎blog] [![Wiki][🖐wiki-img]][🖐wiki] |
|
52
|
+
| 7️⃣ | spread 💖 | [![Liberapay Patrons][⛳liberapay-img]][⛳liberapay] [![Sponsor Me][🖇sponsor-img]][🖇sponsor] [![Tweet @ Peter][🏘tweet-img]][🏘tweet] [🌏][aboutme] [👼][angelme] [💻][coderme] |
|
53
|
+
|
54
|
+
<!--
|
55
|
+
The link tokens in the following sections should be kept ordered by the row and badge numbering scheme
|
56
|
+
-->
|
57
|
+
|
58
|
+
<!-- 1️⃣ name, license, docs -->
|
59
|
+
[⛳️gem]: https://rubygems.org/gems/gitmoji-regex
|
60
|
+
[⛳️name-img]: https://img.shields.io/badge/name-gitmoji--regex-brightgreen.svg?style=flat
|
61
|
+
[🖇src-license]: https://opensource.org/licenses/MIT
|
62
|
+
[🖇src-license-img]: https://img.shields.io/badge/License-MIT-green.svg
|
63
|
+
[🏘fossa]: https://app.fossa.io/projects/git%2Bgithub.com%2Fpboling%2Fgitmoji-regex?ref=badge_shield
|
64
|
+
[🏘fossa-img]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fpboling%2Fgitmoji-regex.svg?type=shield
|
65
|
+
[🚎yard]: https://www.rubydoc.info/github/pboling/gitmoji-regex
|
66
|
+
[🚎yard-img]: https://img.shields.io/badge/documentation-rubydoc-brightgreen.svg?style=flat
|
67
|
+
[🖐gitmoji]: https://gitmoji.dev
|
68
|
+
[🖐gitmoji-img]: https://img.shields.io/badge/gitmoji-3.9.0-FFDD67.svg?style=flat
|
69
|
+
[🧮semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
|
70
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
71
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
72
|
+
|
73
|
+
<!-- 2️⃣ version & activity -->
|
74
|
+
[⛳️version-img]: http://img.shields.io/gem/v/gitmoji-regex.svg
|
75
|
+
[🖇DL-total-img]: https://img.shields.io/gem/dt/gitmoji-regex.svg
|
76
|
+
[🏘DL-rank-img]: https://img.shields.io/gem/rt/gitmoji-regex.svg
|
77
|
+
[🚎src-home]: https://github.com/pboling/gitmoji-regex
|
78
|
+
[🚎src-home-img]: https://img.shields.io/badge/source-github-brightgreen.svg?style=flat
|
79
|
+
[🖐prs-o]: https://github.com/pboling/gitmoji-regex/pulls
|
80
|
+
[🖐prs-o-img]: https://img.shields.io/github/issues-pr/pboling/gitmoji-regex
|
81
|
+
[🧮prs-c]: https://github.com/pboling/gitmoji-regex/pulls?q=is%3Apr+is%3Aclosed
|
82
|
+
[🧮prs-c-img]: https://img.shields.io/github/issues-pr-closed/pboling/gitmoji-regex
|
83
|
+
[📗next]: https://github.com/pboling/gitmoji-regex/milestone/1
|
84
|
+
[📗next-img]: https://img.shields.io/github/milestones/progress/pboling/gitmoji-regex/1?label=Next%20Version
|
85
|
+
|
86
|
+
<!-- 3️⃣ maintanence & linting -->
|
87
|
+
[⛳cclim-maint]: https://codeclimate.com/github/pboling/gitmoji-regex/maintainability
|
88
|
+
[⛳cclim-maint-img♻️]: https://api.codeclimate.com/v1/badges/f32e1d1148e8bad58197/maintainability
|
89
|
+
[🖇triage-help]: https://www.codetriage.com/pboling/gitmoji-regex
|
90
|
+
[🖇triage-help-img]: https://www.codetriage.com/pboling/gitmoji-regex/badges/users.svg
|
91
|
+
[🏘depfu♻️]: https://depfu.com/github/pboling/gitmoji-regex?project_id=34924
|
92
|
+
[🏘depfu-img♻️]: https://badges.depfu.com/badges/300630ab4b7c2efea20806d13d1ef41f/count.svg
|
93
|
+
[🚎contributors]: https://github.com/pboling/gitmoji-regex/graphs/contributors
|
94
|
+
[🚎contributors-img]: https://img.shields.io/github/contributors-anon/pboling/gitmoji-regex
|
95
|
+
[🖐style-wf]: https://github.com/pboling/gitmoji-regex/actions/workflows/style.yml
|
96
|
+
[🖐style-wf-img]: https://github.com/pboling/gitmoji-regex/actions/workflows/style.yml/badge.svg
|
97
|
+
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
98
|
+
[🧮kloc-img]: https://img.shields.io/tokei/lines/github.com/pboling/gitmoji-regex
|
99
|
+
|
100
|
+
<!-- 4️⃣ testing -->
|
101
|
+
[⛳iss-o]: https://github.com/pboling/gitmoji-regex/issues
|
102
|
+
[⛳iss-o-img]: https://img.shields.io/github/issues-raw/pboling/gitmoji-regex
|
103
|
+
[🖇iss-c]: https://github.com/pboling/gitmoji-regex/issues?q=is%3Aissue+is%3Aclosed
|
104
|
+
[🖇iss-c-img]: https://img.shields.io/github/issues-closed-raw/pboling/gitmoji-regex
|
105
|
+
[🏘sup-wf]: https://github.com/pboling/gitmoji-regex/actions/workflows/supported.yml
|
106
|
+
[🏘sup-wf-img]: https://github.com/pboling/gitmoji-regex/actions/workflows/supported.yml/badge.svg
|
107
|
+
[🚎heads-wf]: https://github.com/pboling/gitmoji-regex/actions/workflows/heads.yml
|
108
|
+
[🚎heads-wf-img]: https://github.com/pboling/gitmoji-regex/actions/workflows/heads.yml/badge.svg
|
109
|
+
[🖐uns-wf]: https://github.com/pboling/gitmoji-regex/actions/workflows/unsupported.yml
|
110
|
+
[🖐uns-wf-img]: https://github.com/pboling/gitmoji-regex/actions/workflows/unsupported.yml/badge.svg
|
111
|
+
[🧮mac-wf]: https://github.com/pboling/gitmoji-regex/actions/workflows/macos.yml
|
112
|
+
[🧮mac-wf-img]: https://github.com/pboling/gitmoji-regex/actions/workflows/macos.yml/badge.svg
|
113
|
+
[📗win-wf]: https://github.com/pboling/gitmoji-regex/actions/workflows/windows.yml
|
114
|
+
[📗win-wf-img]: https://github.com/pboling/gitmoji-regex/actions/workflows/windows.yml/badge.svg
|
115
|
+
|
116
|
+
<!-- 5️⃣ coverage & security -->
|
117
|
+
[⛳cclim-cov]: https://codeclimate.com/github/pboling/gitmoji-regex/test_coverage
|
118
|
+
[⛳cclim-cov-img♻️]: https://api.codeclimate.com/v1/badges/f32e1d1148e8bad58197/test_coverage
|
119
|
+
[🖇codecov-img♻️]: https://codecov.io/gh/pboling/gitmoji-regex/branch/main/graph/badge.svg?token=EJCOr0hsPq
|
120
|
+
[🖇codecov]: https://codecov.io/gh/pboling/gitmoji-regex
|
121
|
+
[🏘coveralls]: https://coveralls.io/github/pboling/gitmoji-regex?branch=main
|
122
|
+
[🏘coveralls-img]: https://coveralls.io/repos/github/pboling/gitmoji-regex/badge.svg?branch=main
|
123
|
+
[🚎sec-pol]: https://github.com/pboling/gitmoji-regex/blob/main/SECURITY.md
|
124
|
+
[🚎sec-pol-img]: https://img.shields.io/badge/security-policy-brightgreen.svg?style=flat
|
125
|
+
[🖐codeQL]: https://github.com/pboling/gitmoji-regex/security/code-scanning
|
126
|
+
[🖐codeQL-img]: https://github.com/pboling/gitmoji-regex/actions/workflows/codeql-analysis.yml/badge.svg
|
127
|
+
[🧮cov-wf]: https://github.com/pboling/gitmoji-regex/actions/workflows/coverage.yml
|
128
|
+
[🧮cov-wf-img]: https://github.com/pboling/gitmoji-regex/actions/workflows/coverage.yml/badge.svg
|
129
|
+
|
130
|
+
<!-- 6️⃣ resources -->
|
131
|
+
[⛳gh-discussions]: https://github.com/pboling/gitmoji-regex/discussions
|
132
|
+
[⛳gh-discussions-img]: https://img.shields.io/github/discussions/pboling/gitmoji-regex
|
133
|
+
[🖇codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
134
|
+
[🖇codementor-img]: https://cdn.codementor.io/badges/get_help_github.svg
|
135
|
+
[🏘chat]: https://gitter.im/pboling/gitmoji-regex
|
136
|
+
[🏘chat-img]: https://img.shields.io/gitter/room/pboling/gitmoji-regex.svg
|
137
|
+
[🚎blog]: http://www.railsbling.com/tags/gitmoji-regex/
|
138
|
+
[🚎blog-img]: https://img.shields.io/badge/blog-railsbling-brightgreen.svg?style=flat
|
139
|
+
[🖐wiki]: https://github.com/pboling/gitmoji-regex/wiki
|
140
|
+
[🖐wiki-img]: https://img.shields.io/badge/wiki-examples-brightgreen.svg?style=flat
|
141
|
+
|
142
|
+
<!-- 7️⃣ spread 💖 -->
|
143
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/patrons/pboling.svg?logo=liberapay
|
144
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
145
|
+
[🖇sponsor-img]: https://img.shields.io/badge/sponsor-pboling.svg?style=social&logo=github
|
146
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
147
|
+
[🏘tweet-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
|
148
|
+
[🏘tweet]: http://twitter.com/galtzo
|
149
|
+
|
150
|
+
<!-- Maintainer Contact Links -->
|
151
|
+
[railsbling]: http://www.railsbling.com
|
152
|
+
[peterboling]: http://www.peterboling.com
|
153
|
+
[aboutme]: https://about.me/peter.boling
|
154
|
+
[angelme]: https://angel.co/peter-boling
|
155
|
+
[coderme]:http://coderwall.com/pboling
|
6
156
|
|
7
157
|
## Installation
|
8
158
|
|
@@ -29,6 +179,11 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
29
179
|
|
30
180
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
31
181
|
|
182
|
+
To update the cached `src/gitmojis.json` load the console with `bin/console`, and run:
|
183
|
+
```ruby
|
184
|
+
Gitmoji::Regex::Reference.instance.write_json
|
185
|
+
```
|
186
|
+
|
32
187
|
## Contributing
|
33
188
|
|
34
189
|
See [CONTRIBUTING.md][contributing]
|
@@ -66,9 +221,13 @@ the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
|
66
221
|
For example:
|
67
222
|
|
68
223
|
```ruby
|
69
|
-
spec.add_dependency "gitmoji-regex", "~> 0
|
224
|
+
spec.add_dependency "gitmoji-regex", "~> 1.0"
|
70
225
|
```
|
71
226
|
|
227
|
+
## Security
|
228
|
+
|
229
|
+
See [SECURITY.md](https://github.com/pboling/gitmoji-regex/blob/main/SECURITY.md).
|
230
|
+
|
72
231
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
73
232
|
|
74
233
|
[gh_discussions]: https://github.com/pboling/gitmoji-regex/discussions
|
data/lib/gitmoji/regex.rb
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "version_gem"
|
4
|
+
|
5
|
+
require "gitmoji/regex/version"
|
6
|
+
require "gitmoji/regex/reference"
|
4
7
|
|
5
8
|
module Gitmoji
|
6
9
|
module Regex
|
7
|
-
REGEX = Regexp.new("(?-mix
|
10
|
+
REGEX = Regexp.new("(?-mix:🎨|⚡️|🔥|🐛|🚑️|✨|📝|🚀|💄|🎉|✅|🔒️|🔐|🔖|🚨|🚧|💚|⬇️|⬆️|📌|👷|📈|♻️|➕|➖|🔧|🔨|🌐|✏️|💩|⏪️|🔀|📦️|👽️|🚚|📄|💥|🍱|♿️|💡|🍻|💬|🗃️|🔊|🔇|👥|🚸|🏗️|📱|🤡|🥚|🙈|📸|⚗️|🔍️|🏷️|🌱|🚩|🥅|💫|🗑️|🛂|🩹|🧐|⚰️|🧪|👔|🩺|🧱|🧑💻|💸)")
|
8
11
|
end
|
9
12
|
end
|
13
|
+
|
14
|
+
Gitmoji::Regex::Version.class_eval do
|
15
|
+
extend VersionGem::Basic
|
16
|
+
end
|
@@ -10,7 +10,7 @@ RSpec.describe Gitmoji::Regex::Reference do
|
|
10
10
|
"👽️", "🚚", "📄", "💥", "🍱", "♿️", "💡", "🍻", "💬", "🗃️", "🔊",
|
11
11
|
"🔇", "👥", "🚸", "🏗️", "📱", "🤡", "🥚", "🙈", "📸", "⚗️", "🔍️",
|
12
12
|
"🏷️", "🌱", "🚩", "🥅", "💫", "🗑️", "🛂", "🩹", "🧐", "⚰️", "🧪",
|
13
|
-
"👔", "🩺", "🧱", "🧑💻"])
|
13
|
+
"👔", "🩺", "🧱", "🧑💻", "💸"])
|
14
14
|
end
|
15
15
|
|
16
16
|
describe "#compare_src" do
|
data/spec/gitmoji/regex_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -20,7 +20,28 @@ if DEBUG
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
if RUN_COVERAGE
|
24
|
+
require "simplecov" # Config file `.simplecov` is run immediately when simplecov loads
|
25
|
+
require "codecov"
|
26
|
+
require "simplecov-json"
|
27
|
+
require "simplecov-lcov"
|
28
|
+
require "simplecov-cobertura"
|
29
|
+
# This will override any formatter set in .simplecov
|
30
|
+
if ALL_FORMATTERS
|
31
|
+
SimpleCov::Formatter::LcovFormatter.config do |c|
|
32
|
+
c.report_with_single_file = true
|
33
|
+
c.single_report_path = "coverage/lcov.info"
|
34
|
+
end
|
35
|
+
|
36
|
+
SimpleCov.formatters = [
|
37
|
+
SimpleCov::Formatter::HTMLFormatter,
|
38
|
+
SimpleCov::Formatter::CoberturaFormatter, # XML for Jenkins
|
39
|
+
SimpleCov::Formatter::LcovFormatter,
|
40
|
+
SimpleCov::Formatter::JSONFormatter, # For CodeClimate
|
41
|
+
SimpleCov::Formatter::Codecov # For CodeCov
|
42
|
+
]
|
43
|
+
end
|
44
|
+
end
|
24
45
|
|
25
46
|
# This gem
|
26
47
|
require "gitmoji/regex"
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitmoji-regex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: version_gem
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: http
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,6 +120,26 @@ dependencies:
|
|
106
120
|
- - "~>"
|
107
121
|
- !ruby/object:Gem::Version
|
108
122
|
version: '1.0'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: rubocop-lts
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '12.0'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 12.0.1
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '12.0'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 12.0.1
|
109
143
|
- !ruby/object:Gem::Dependency
|
110
144
|
name: yard
|
111
145
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,13 +179,13 @@ licenses:
|
|
145
179
|
- MIT
|
146
180
|
metadata:
|
147
181
|
homepage_uri: https://github.com/pboling/gitmoji-regex
|
148
|
-
source_code_uri: https://github.com/pboling/gitmoji-regex/tree/
|
149
|
-
changelog_uri: https://github.com/pboling/gitmoji-regex/blob/
|
182
|
+
source_code_uri: https://github.com/pboling/gitmoji-regex/tree/v1.0.0
|
183
|
+
changelog_uri: https://github.com/pboling/gitmoji-regex/blob/v1.0.0/CHANGELOG.md
|
150
184
|
bug_tracker_uri: https://github.com/pboling/gitmoji-regex/issues
|
151
|
-
documentation_uri: https://www.rubydoc.info/gems/gitmoji-regex/0.
|
185
|
+
documentation_uri: https://www.rubydoc.info/gems/gitmoji-regex/1.0.0
|
152
186
|
wiki_uri: https://github.com/pboling/gitmoji-regex/wiki
|
153
187
|
rubygems_mfa_required: 'true'
|
154
|
-
post_install_message:
|
188
|
+
post_install_message:
|
155
189
|
rdoc_options: []
|
156
190
|
require_paths:
|
157
191
|
- lib
|
@@ -166,12 +200,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
200
|
- !ruby/object:Gem::Version
|
167
201
|
version: '0'
|
168
202
|
requirements: []
|
169
|
-
rubygems_version: 3.3.
|
170
|
-
signing_key:
|
203
|
+
rubygems_version: 3.3.16
|
204
|
+
signing_key:
|
171
205
|
specification_version: 4
|
172
206
|
summary: A regular expression for Gitmoji symbols
|
173
207
|
test_files:
|
208
|
+
- spec/spec_helper.rb
|
174
209
|
- spec/config/rspec/rspec_core.rb
|
175
|
-
- spec/gitmoji/regex/reference_spec.rb
|
176
210
|
- spec/gitmoji/regex_spec.rb
|
177
|
-
- spec/
|
211
|
+
- spec/gitmoji/regex/reference_spec.rb
|