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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f290d6b0c34bf4b0b297b8d354e59191b49e9947ad8dabfc2436d462dbff438
4
- data.tar.gz: 6ee66cab2f75582e4170371e86796a4ab35bb45b3e8a74e08be25343ac191fd2
3
+ metadata.gz: 642ac8ed5c2013e18da6e2cb05a8ab9e1a4655d73c14c382ef1f4a7c672d8f24
4
+ data.tar.gz: 2a8529b97dbbed69d18fba0960c41db11a12db1f09d64023d40530fb9d8fdfa9
5
5
  SHA512:
6
- metadata.gz: e0d952a27935086b719223636ac25ac7108183bea9b0b858cd4ecedffdc6edce2a7555be0574e8398a163f8a9cbafc24c41009a4fa8368b368e984d63667e0fd
7
- data.tar.gz: f65ea56e0d5b05b7b2e89be8c160c2720b0cc6fb7da60287c96cf78f3e82279adf584aa979e3713faed4145abbf3d25b55e3e4318bd35a2400c6f289ac612083
6
+ metadata.gz: 9f8de9c78b848c490498dc4f52ef478b891ad218ce1b0da166d28e6284e8d798116e131114607f5229539e8bffcc4724baa795b643d36102fb0e0147865a4afc
7
+ data.tar.gz: e1b221ae6d60c23895d2c90caed131659f5dc16e2ac67dcd419c356393e953e03bcdba87be5150c1ff8255d1d43e108b1f8a552761cf284e0df3980d8321715c
@@ -0,0 +1,7 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ open-pull-requests-limit: 10
@@ -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
@@ -7,17 +7,14 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- ruby: ['2.4.x', '2.5.x', '2.6.x']
10
+ ruby: ["3.3", "3.4", "4.0"]
11
11
 
12
12
  steps:
13
- - uses: actions/checkout@v1
14
- - name: Set up Ruby
15
- uses: actions/setup-ruby@v1
16
- with:
17
- ruby-version: ${{ matrix.ruby }}
18
- - name: Build and test with Rake
19
- run: |
20
- gem install bundler
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
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /Gemfile.lock
9
10
 
10
11
  # rspec failure tracking
11
12
  .rspec_status
data/README.md CHANGED
@@ -15,3 +15,7 @@ Emoja.search("猫")
15
15
  ```ruby
16
16
  gem 'emoja'
17
17
  ```
18
+
19
+ ## Notice
20
+
21
+ [emoji_ja.json](https://github.com/d-mato/emoja/blob/master/lib/data/emoji_ja.json) in this project is provided by [emoji-ja](https://github.com/yagays/emoji-ja).
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 "bundler", "~> 1.17"
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