unicode_converter 0.1.0 → 0.1.1

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: 4e01bd72252ae09c88030a5a62dbd821d2e9d29c724cd3179a340abe1fc54439
4
- data.tar.gz: 37a8de6511eabe41ae70871177141a892a65b1d2bfed2c0b7eddbcf6560e5697
3
+ metadata.gz: 3df00ae4d3001f9fa7bd9e7f2fd1e062bae053b40ef43a43717b2a26bb000045
4
+ data.tar.gz: 5f5f8013d6093557bb5ce3e62e9aae15147b3d13c3770c90a5917b7bf1c9b713
5
5
  SHA512:
6
- metadata.gz: 86e5ee86bd446a4bfab99d55e1ea8b446e62d85120f8f3bd6ded7e906d5a4d9c01fdb653a4172659de3048d5c50709236e74091be23eac32bb65bd85b2c9c426
7
- data.tar.gz: 31d25ad3018fdb1b00e8ccfbfd3b8ee2de2f10c19aa0bc717a4ed9e1d52c0533825d25f639b4ac3cce50779e425b37aa9f34435c60c80ef6e4269290cbf704c7
6
+ metadata.gz: 162ccd41ae1de78346f48b960aaf5251d205f3ee74a5ea68d5b26b513ea95f57b91e4250d001541bdd876d05609c7b0b16f924d3be1aceed4b54d70adaa9b4e7
7
+ data.tar.gz: cb6c464ba4261d5c0f45531dc224e7f56df49a60a60decd6eb67405b37ff90594a7c1cca9679b0ce1b2129c071a4432fdd6b9572f09f0ca5bdd6ba811ecb19cc
@@ -0,0 +1,25 @@
1
+ name: Ruby CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['2.7']
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - name: Set up Ruby ${{ matrix.ruby-version }}
18
+ uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
19
+ with:
20
+ ruby-version: ${{ matrix.ruby-version }}
21
+ bundler-cache: true
22
+ - name: Install dependencies
23
+ run: bundle install
24
+ - name: Run tests
25
+ run: bundle exec rake
@@ -0,0 +1,47 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ # Manually publish
5
+ workflow_dispatch:
6
+ # Alternatively, publish whenever changes are merged to the `main` branch.
7
+ push:
8
+ branches: [main]
9
+ pull_request:
10
+ branches: [main]
11
+
12
+ jobs:
13
+ build:
14
+ name: Build + Publish
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ packages: write
18
+ contents: read
19
+
20
+ steps:
21
+ - uses: actions/checkout@v3
22
+ - name: Set up Ruby 2.7
23
+ uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
24
+ with:
25
+ ruby-version: 2.7
26
+ - run: bundle install
27
+ - name: Publish to GPR
28
+ run: |
29
+ mkdir -p $HOME/.gem
30
+ touch $HOME/.gem/credentials
31
+ chmod 0600 $HOME/.gem/credentials
32
+ printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
33
+ gem build *.gemspec
34
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
35
+ env:
36
+ GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
37
+ OWNER: ${{ github.repository_owner }}
38
+ - name: Publish to RubyGems
39
+ run: |
40
+ mkdir -p $HOME/.gem
41
+ touch $HOME/.gem/credentials
42
+ chmod 0600 $HOME/.gem/credentials
43
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
44
+ gem build *.gemspec
45
+ gem push *.gem
46
+ env:
47
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
data/.gitignore CHANGED
@@ -6,6 +6,8 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ Gemfile.lock
10
+ *.gem
9
11
 
10
12
  # rspec failure tracking
11
13
  .rspec_status
data/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # UnicodeConverter
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/unicode_converter`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
3
  ## Installation
8
4
 
9
5
  Add this line to your application's Gemfile:
@@ -23,7 +19,8 @@ Or install it yourself as:
23
19
  ## Usage
24
20
 
25
21
  ```ruby
26
-
22
+ # return ガギグゲゴ
23
+ UnicodeConverter.nfc("ガギグゲゴ")
27
24
  ```
28
25
 
29
26
  ## Development
@@ -34,7 +31,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
34
31
 
35
32
  ## Contributing
36
33
 
37
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/unicode_converter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/unicode_converter/blob/master/CODE_OF_CONDUCT.md).
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/masanorifunaki/unicode_converter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/masanorifunaki/unicode_converter/blob/master/CODE_OF_CONDUCT.md).
38
35
 
39
36
  ## License
40
37
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UnicodeConverter
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MsanoriFunaki
@@ -17,6 +17,8 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".github/workflows/ci.yml"
21
+ - ".github/workflows/release.yml"
20
22
  - ".gitignore"
21
23
  - ".rspec"
22
24
  - ".rubocop.yml"
@@ -51,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
53
  - !ruby/object:Gem::Version
52
54
  version: '0'
53
55
  requirements: []
54
- rubygems_version: 3.1.4
56
+ rubygems_version: 3.1.6
55
57
  signing_key:
56
58
  specification_version: 4
57
59
  summary: Convert to NFC