gitmoji-regex 0.1.3 โ 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 +8 -0
- data/README.md +7 -6
- 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
- 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
@@ -13,6 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
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
|
23
|
+
|
16
24
|
## [0.1.3] - 2022-03-30
|
17
25
|
### Added
|
18
26
|
- Documentation
|
data/README.md
CHANGED
@@ -14,8 +14,6 @@
|
|
14
14
|
|
15
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
16
|
|
17
|
-
This gem has no runtime dependencies.
|
18
|
-
|
19
17
|
<!--
|
20
18
|
Numbering rows and badges in each row as a visual "database" lookup,
|
21
19
|
as the table is extremely dense, and it can be very difficult to find anything
|
@@ -51,7 +49,7 @@ appended indicators:
|
|
51
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]--> |
|
52
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] |
|
53
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] |
|
54
|
-
| 7๏ธโฃ | spread ๐ | [![Liberapay Patrons][โณliberapay-img]][โณliberapay] [![Sponsor Me][๐sponsor-img]][๐sponsor] [![Tweet @ Peter][๐tweet-img]][๐tweet] [๐][aboutme] [๐ผ][angelme] [๐ป][coderme]
|
52
|
+
| 7๏ธโฃ | spread ๐ | [![Liberapay Patrons][โณliberapay-img]][โณliberapay] [![Sponsor Me][๐sponsor-img]][๐sponsor] [![Tweet @ Peter][๐tweet-img]][๐tweet] [๐][aboutme] [๐ผ][angelme] [๐ป][coderme] |
|
55
53
|
|
56
54
|
<!--
|
57
55
|
The link tokens in the following sections should be kept ordered by the row and badge numbering scheme
|
@@ -155,8 +153,6 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
155
153
|
[aboutme]: https://about.me/peter.boling
|
156
154
|
[angelme]: https://angel.co/peter-boling
|
157
155
|
[coderme]:http://coderwall.com/pboling
|
158
|
-
[politicme]: https://nationalprogressiveparty.org
|
159
|
-
|
160
156
|
|
161
157
|
## Installation
|
162
158
|
|
@@ -183,6 +179,11 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
183
179
|
|
184
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).
|
185
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
|
+
|
186
187
|
## Contributing
|
187
188
|
|
188
189
|
See [CONTRIBUTING.md][contributing]
|
@@ -220,7 +221,7 @@ the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
|
220
221
|
For example:
|
221
222
|
|
222
223
|
```ruby
|
223
|
-
spec.add_dependency "gitmoji-regex", "~> 0
|
224
|
+
spec.add_dependency "gitmoji-regex", "~> 1.0"
|
224
225
|
```
|
225
226
|
|
226
227
|
## Security
|
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
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
|