emoja 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/data-fetch.yml +36 -0
- data/.github/workflows/release.yml +52 -0
- data/.github/workflows/test.yml +9 -12
- data/.gitignore +1 -0
- data/README.md +4 -0
- data/emoja.gemspec +1 -2
- data/lib/data/emoji_ja.json +7643 -604
- data/lib/emoja/version.rb +1 -1
- metadata +8 -23
- data/Gemfile.lock +0 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 642ac8ed5c2013e18da6e2cb05a8ab9e1a4655d73c14c382ef1f4a7c672d8f24
|
|
4
|
+
data.tar.gz: 2a8529b97dbbed69d18fba0960c41db11a12db1f09d64023d40530fb9d8fdfa9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f8de9c78b848c490498dc4f52ef478b891ad218ce1b0da166d28e6284e8d798116e131114607f5229539e8bffcc4724baa795b643d36102fb0e0147865a4afc
|
|
7
|
+
data.tar.gz: e1b221ae6d60c23895d2c90caed131659f5dc16e2ac67dcd419c356393e953e03bcdba87be5150c1ff8255d1d43e108b1f8a552761cf284e0df3980d8321715c
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Fetch data
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "0 0 1 * *"
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
fetch:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v6
|
|
17
|
+
|
|
18
|
+
- name: Set up Ruby
|
|
19
|
+
uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: ruby
|
|
22
|
+
bundler-cache: true
|
|
23
|
+
|
|
24
|
+
- name: Fetch emoji dictionaries
|
|
25
|
+
run: bundle exec rake data:fetch
|
|
26
|
+
|
|
27
|
+
- name: Create pull request
|
|
28
|
+
uses: peter-evans/create-pull-request@v8
|
|
29
|
+
with:
|
|
30
|
+
branch: automated/data-fetch
|
|
31
|
+
commit-message: "Update emoji dictionaries"
|
|
32
|
+
title: "Update emoji dictionaries"
|
|
33
|
+
body: |
|
|
34
|
+
Automated update from `yagays/emoji-ja` via `rake data:fetch`.
|
|
35
|
+
add-paths: lib/data
|
|
36
|
+
delete-branch: true
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
bump:
|
|
7
|
+
description: "Version bump type"
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options:
|
|
11
|
+
- patch
|
|
12
|
+
- minor
|
|
13
|
+
- major
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
release:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v6
|
|
24
|
+
|
|
25
|
+
- name: Set up Ruby
|
|
26
|
+
uses: ruby/setup-ruby@v1
|
|
27
|
+
with:
|
|
28
|
+
ruby-version: ruby
|
|
29
|
+
bundler-cache: true
|
|
30
|
+
|
|
31
|
+
- name: Install gem-release
|
|
32
|
+
run: gem install gem-release
|
|
33
|
+
|
|
34
|
+
- name: Configure git
|
|
35
|
+
run: |
|
|
36
|
+
git config user.name "github-actions[bot]"
|
|
37
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
38
|
+
|
|
39
|
+
- name: Bump version, commit, tag, push
|
|
40
|
+
id: version
|
|
41
|
+
run: |
|
|
42
|
+
gem bump --version ${{ inputs.bump }} --tag --push
|
|
43
|
+
new=$(ruby -r ./lib/emoja/version -e 'print Emoja::VERSION')
|
|
44
|
+
echo "tag=v${new}" >> "$GITHUB_OUTPUT"
|
|
45
|
+
|
|
46
|
+
- name: Create GitHub Release
|
|
47
|
+
run: gh release create "${{ steps.version.outputs.tag }}" --generate-notes
|
|
48
|
+
env:
|
|
49
|
+
GH_TOKEN: ${{ github.token }}
|
|
50
|
+
|
|
51
|
+
- name: Publish gem to RubyGems
|
|
52
|
+
uses: rubygems/release-gem@v1
|
data/.github/workflows/test.yml
CHANGED
|
@@ -7,17 +7,14 @@ jobs:
|
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
strategy:
|
|
9
9
|
matrix:
|
|
10
|
-
ruby: [
|
|
10
|
+
ruby: ["3.3", "3.4", "4.0"]
|
|
11
11
|
|
|
12
12
|
steps:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
bundle update --bundler
|
|
22
|
-
bundle install --jobs 4 --retry 3
|
|
23
|
-
bundle exec rake
|
|
13
|
+
- uses: actions/checkout@v6
|
|
14
|
+
- name: Set up Ruby
|
|
15
|
+
uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
- name: Build and test with Rake
|
|
20
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/README.md
CHANGED
data/emoja.gemspec
CHANGED
|
@@ -32,7 +32,6 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
33
33
|
spec.require_paths = ["lib"]
|
|
34
34
|
|
|
35
|
-
spec.add_development_dependency "
|
|
36
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
|
35
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
|
37
36
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
38
37
|
end
|