gobi 0.1.0 → 1.0.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/.rubocop.yml +7 -0
- data/CHANGELOG.md +17 -2
- data/README.md +44 -12
- data/Rakefile +0 -2
- data/Steepfile +28 -0
- data/lib/gobi/gobis/dialect_gobi.rb +33 -0
- data/lib/gobi/{gobi_string.rb → gobis/traditional_gobi.rb} +8 -2
- data/lib/gobi/version.rb +1 -1
- data/lib/gobi.rb +2 -3
- data/sig/gobi.rbs +17 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c219412e6f085a2d7918b4916b6c4206544d26d2891879ffedd9ede5943d52b
|
4
|
+
data.tar.gz: 73c7c36c6b51427d99ca8cc261affd4a4be304bcdc882b25ba03e0d0fb883a0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2861b6cc8cde51aa9501491b7fb4fcf31cdaf3f68d97a6efa68c41219e2b67deca90d700892b2850fcc56cc7137f8c0c07a1dd34aceb3d6111c4528513ed582b
|
7
|
+
data.tar.gz: bf542fd0030408b0cb4ff2ebd0dd7e3495327c9283bd02daf1d7d38ff63f1b04bce23fd4c8f6bd13913fa8f0363fe34c59ec30f97cde29f9fd3ee4b3a77c35c0
|
data/.rubocop.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rake
|
3
|
+
- rubocop-rspec
|
4
|
+
|
1
5
|
AllCops:
|
2
6
|
TargetRubyVersion: 3.0
|
3
7
|
|
@@ -12,5 +16,8 @@ Style/StringLiteralsInInterpolation:
|
|
12
16
|
Style/Documentation:
|
13
17
|
Enabled: false
|
14
18
|
|
19
|
+
Style/FrozenStringLiteralComment:
|
20
|
+
Enabled: false
|
21
|
+
|
15
22
|
Layout/LineLength:
|
16
23
|
Max: 120
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
|
-
## [Unreleased]
|
2
|
-
|
3
1
|
## [0.1.0] - 2024-02-17
|
4
2
|
|
5
3
|
- Initial release
|
4
|
+
- Added `#deyansu` and `#nari` to Class String
|
5
|
+
|
6
|
+
# [0.1.1] - 2024-02-18
|
7
|
+
|
8
|
+
- Added these methods to Class String
|
9
|
+
- `#dabe`
|
10
|
+
- `#zura`
|
11
|
+
- `#bai`
|
12
|
+
- `#ja`
|
13
|
+
- `#tai`
|
14
|
+
- `#yanen`
|
15
|
+
- `#degozaru`
|
16
|
+
|
17
|
+
# [1.0.0] - 2024-07-23
|
18
|
+
|
19
|
+
- Added these methods to Class String
|
20
|
+
- `#desuwa`
|
data/README.md
CHANGED
@@ -1,24 +1,56 @@
|
|
1
|
-
#
|
1
|
+
# gobi
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
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/gobi`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
gobi is a gem to add endings to a string.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
|
7
|
+
Add this line to your Gemfile:
|
8
|
+
|
9
|
+
```
|
10
|
+
gem 'gobi'
|
11
|
+
```
|
10
12
|
|
11
|
-
|
13
|
+
And then execute:
|
12
14
|
|
13
|
-
|
15
|
+
```
|
16
|
+
$ bundle install
|
17
|
+
```
|
14
18
|
|
15
|
-
|
19
|
+
Or install it yourself as:
|
16
20
|
|
17
|
-
|
21
|
+
```
|
22
|
+
$ gem install gobi
|
23
|
+
```
|
18
24
|
|
19
25
|
## Usage
|
20
26
|
|
21
|
-
|
27
|
+
```
|
28
|
+
require 'gobi'
|
29
|
+
|
30
|
+
"お団子".deyansu
|
31
|
+
#=> お団子でやんす
|
32
|
+
|
33
|
+
"お団子".nari
|
34
|
+
#=> お団子なり
|
35
|
+
|
36
|
+
etc.
|
37
|
+
```
|
38
|
+
|
39
|
+
## Methods
|
40
|
+
|
41
|
+
This is mapping of all supported methods and endings.
|
42
|
+
|
43
|
+
```
|
44
|
+
#deyansu => "でやんす"
|
45
|
+
#nari => "なり"
|
46
|
+
#dabe => "だべ"
|
47
|
+
#zura => "ずら"
|
48
|
+
#bai => "ばい"
|
49
|
+
#ja => "じゃ"
|
50
|
+
#tai => "たい"
|
51
|
+
#yanen => "やねん"
|
52
|
+
#degozaru => "でござる"
|
53
|
+
```
|
22
54
|
|
23
55
|
## Development
|
24
56
|
|
@@ -28,7 +60,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
28
60
|
|
29
61
|
## Contributing
|
30
62
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
63
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/NaotoCoding/gobi. 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/NaotoCoding/gobi/blob/main/CODE_OF_CONDUCT.md).
|
32
64
|
|
33
65
|
## License
|
34
66
|
|
@@ -36,4 +68,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
36
68
|
|
37
69
|
## Code of Conduct
|
38
70
|
|
39
|
-
Everyone interacting in the Gobi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
71
|
+
Everyone interacting in the Gobi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/NaotoCoding/gobi/blob/main/CODE_OF_CONDUCT.md).
|
data/Rakefile
CHANGED
data/Steepfile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# D = Steep::Diagnostic
|
2
|
+
#
|
3
|
+
# target :lib do
|
4
|
+
# signature "sig"
|
5
|
+
#
|
6
|
+
# check "lib" # Directory name
|
7
|
+
# check "Gemfile" # File name
|
8
|
+
# check "app/models/**/*.rb" # Glob
|
9
|
+
# # ignore "lib/templates/*.rb"
|
10
|
+
#
|
11
|
+
# # library "pathname" # Standard libraries
|
12
|
+
# # library "strong_json" # Gems
|
13
|
+
#
|
14
|
+
# # configure_code_diagnostics(D::Ruby.default) # `default` diagnostics setting (applies by default)
|
15
|
+
# # configure_code_diagnostics(D::Ruby.strict) # `strict` diagnostics setting
|
16
|
+
# # configure_code_diagnostics(D::Ruby.lenient) # `lenient` diagnostics setting
|
17
|
+
# # configure_code_diagnostics(D::Ruby.silent) # `silent` diagnostics setting
|
18
|
+
# # configure_code_diagnostics do |hash| # You can setup everything yourself
|
19
|
+
# # hash[D::Ruby::NoMethod] = :information
|
20
|
+
# # end
|
21
|
+
# end
|
22
|
+
|
23
|
+
target :test do
|
24
|
+
check "lib"
|
25
|
+
signature "sig"
|
26
|
+
|
27
|
+
library "pathname"
|
28
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
class String
|
2
|
+
# 中国 -------------------------
|
3
|
+
def ja
|
4
|
+
"#{self}じゃ"
|
5
|
+
end
|
6
|
+
# -----------------------------
|
7
|
+
|
8
|
+
# 東北 -------------------------
|
9
|
+
def dabe
|
10
|
+
"#{self}だべ"
|
11
|
+
end
|
12
|
+
|
13
|
+
def zura
|
14
|
+
"#{self}ずら"
|
15
|
+
end
|
16
|
+
# -----------------------------
|
17
|
+
|
18
|
+
# 関西 -------------------------
|
19
|
+
def yanen
|
20
|
+
"#{self}やねん"
|
21
|
+
end
|
22
|
+
# -----------------------------
|
23
|
+
|
24
|
+
# 九州 -------------------------
|
25
|
+
def bai
|
26
|
+
"#{self}ばい"
|
27
|
+
end
|
28
|
+
|
29
|
+
def tai
|
30
|
+
"#{self}たい"
|
31
|
+
end
|
32
|
+
# -----------------------------
|
33
|
+
end
|
data/lib/gobi/version.rb
CHANGED
data/lib/gobi.rb
CHANGED
data/sig/gobi.rbs
CHANGED
@@ -2,3 +2,20 @@ module Gobi
|
|
2
2
|
VERSION: String
|
3
3
|
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
|
4
4
|
end
|
5
|
+
|
6
|
+
class String
|
7
|
+
|
8
|
+
# traditional_gobi
|
9
|
+
def deyansu: -> String
|
10
|
+
def nari: -> String
|
11
|
+
def degozaru: -> String
|
12
|
+
def desuwa: -> String
|
13
|
+
|
14
|
+
# dialect_gobi
|
15
|
+
def ja: -> String
|
16
|
+
def dabe: -> String
|
17
|
+
def zura: -> String
|
18
|
+
def bai: -> String
|
19
|
+
def tai: -> String
|
20
|
+
def yanen: -> String
|
21
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NaotoCoding
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 文字列に様々な語尾をつける
|
14
14
|
email:
|
@@ -24,8 +24,10 @@ files:
|
|
24
24
|
- LICENSE.txt
|
25
25
|
- README.md
|
26
26
|
- Rakefile
|
27
|
+
- Steepfile
|
27
28
|
- lib/gobi.rb
|
28
|
-
- lib/gobi/
|
29
|
+
- lib/gobi/gobis/dialect_gobi.rb
|
30
|
+
- lib/gobi/gobis/traditional_gobi.rb
|
29
31
|
- lib/gobi/version.rb
|
30
32
|
- sig/gobi.rbs
|
31
33
|
homepage: https://github.com/NaotoCoding/gobi
|
@@ -50,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
52
|
- !ruby/object:Gem::Version
|
51
53
|
version: '0'
|
52
54
|
requirements: []
|
53
|
-
rubygems_version: 3.5.
|
55
|
+
rubygems_version: 3.5.11
|
54
56
|
signing_key:
|
55
57
|
specification_version: 4
|
56
58
|
summary: 文字列に語尾をつける
|