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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c676272ea8442d11bedf614388e9c3c5e13b21be167436b611b7b4ce17769496
4
- data.tar.gz: 3680237ebcba44bd11922ab9ecd100561d9a230997ab764d89e219d0db63e5ac
3
+ metadata.gz: 0c219412e6f085a2d7918b4916b6c4206544d26d2891879ffedd9ede5943d52b
4
+ data.tar.gz: 73c7c36c6b51427d99ca8cc261affd4a4be304bcdc882b25ba03e0d0fb883a0d
5
5
  SHA512:
6
- metadata.gz: 3e66d3146270cf7784feb41bca0790b435a68f2ff0c140b00211df7a6dfd6910d700c8680781164fd0654a410c46a21713d23c5493b24f58bb388c1cf4760220
7
- data.tar.gz: 5c4484045749a3ffaeee533d8593d1f62809497f04fc98f594c6abcc5a3d09e8d494cd759c12b18d5b75a1338685eb9ab96d0cd6aafc5e1f75e463b4241aca30
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
- # Gobi
1
+ # gobi
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
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
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
7
+ Add this line to your Gemfile:
8
+
9
+ ```
10
+ gem 'gobi'
11
+ ```
10
12
 
11
- Install the gem and add to the application's Gemfile by executing:
13
+ And then execute:
12
14
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+ $ bundle install
17
+ ```
14
18
 
15
- If bundler is not being used to manage dependencies, install the gem by executing:
19
+ Or install it yourself as:
16
20
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+ $ gem install gobi
23
+ ```
18
24
 
19
25
  ## Usage
20
26
 
21
- TODO: Write usage instructions here
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/[USERNAME]/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/[USERNAME]/gobi/blob/master/CODE_OF_CONDUCT.md).
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/[USERNAME]/gobi/blob/master/CODE_OF_CONDUCT.md).
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
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  require "bundler/gem_tasks"
4
2
  require "rspec/core/rake_task"
5
3
 
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
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  class String
4
2
  def deyansu
5
3
  "#{self}でやんす"
@@ -8,4 +6,12 @@ class String
8
6
  def nari
9
7
  "#{self}なり"
10
8
  end
9
+
10
+ def degozaru
11
+ "#{self}でござる"
12
+ end
13
+
14
+ def desuwa
15
+ "#{self}ですわ"
16
+ end
11
17
  end
data/lib/gobi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gobi
4
- VERSION = "0.1.0"
4
+ VERSION = "1.0.0"
5
5
  end
data/lib/gobi.rb CHANGED
@@ -1,6 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
1
  require_relative "gobi/version"
4
- require_relative "gobi/gobi_string"
2
+ require_relative "gobi/gobis/dialect_gobi"
3
+ require_relative "gobi/gobis/traditional_gobi"
5
4
 
6
5
  module Gobi; end
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: 0.1.0
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-02-17 00:00:00.000000000 Z
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/gobi_string.rb
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.3
55
+ rubygems_version: 3.5.11
54
56
  signing_key:
55
57
  specification_version: 4
56
58
  summary: 文字列に語尾をつける