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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a34bdf4e77daed3392c972f0894b2f617f5485e6158f978b61357afb19df3a9
4
- data.tar.gz: bffbece18bb05f5e94ee4d4dc708dace3952312642fbfbcf376ada8abcefef8b
3
+ metadata.gz: dedba866d8ac584c54ed809319e5709b05a0d37fabd16570a96ba0067b574237
4
+ data.tar.gz: 6bf7ab47a85eed3d08568082835ee47df19acb66b61c86bb1bd4d67b31ec620d
5
5
  SHA512:
6
- metadata.gz: 8a78297951c52b512118df61c6ccf4374f0454dfd09ae9a9b9b57181ac94fdf1ef8ac2c2c38ff86a9d1a20c6d5c46a984ee3d54b939d4651d282059e48d9f09e
7
- data.tar.gz: 6f5875beff86ae3d52951e1c233c4cd16fb0bea3197de9e84dcaf10034e83c7c402115c38595335ae15b264e9f5bd8830476d84f9c0cd65ddc5dd4dbb1c60c97
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] [๐ŸŒน][politicme] |
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.1"
224
+ spec.add_dependency "gitmoji-regex", "~> 1.0"
224
225
  ```
225
226
 
226
227
  ## Security
@@ -2,6 +2,8 @@
2
2
 
3
3
  module Gitmoji
4
4
  module Regex
5
- VERSION = "0.1.3"
5
+ module Version
6
+ VERSION = "1.0.0"
7
+ end
6
8
  end
7
9
  end
data/lib/gitmoji/regex.rb CHANGED
@@ -1,9 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "regex/version"
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  RSpec.describe Gitmoji::Regex do
4
4
  it "has a version number" do
5
- expect(Gitmoji::Regex::VERSION).not_to be_nil
5
+ expect(Gitmoji::Regex::Version::VERSION).not_to be_nil
6
6
  end
7
7
 
8
8
  GITMOJI_REF.to_a.each do |gitmoji|
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.1.3
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-03-30 00:00:00.000000000 Z
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/v0.1.3
149
- changelog_uri: https://github.com/pboling/gitmoji-regex/blob/v0.1.3/CHANGELOG.md
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.1.3
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.10
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/spec_helper.rb
211
+ - spec/gitmoji/regex/reference_spec.rb