kusabi 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 279c6a67d81b1a4f1be918bb16e07e1c9c739e3ac0168405eba249371ea0c0a3
4
- data.tar.gz: '0895d683f76676cb79d7dafe524ae71132ee09844fada0405cfd40ba3e1fdaaa'
3
+ metadata.gz: 5dd744d2e968e3f090b849a51d61e6da0a38daa15476e0bbd83662e711bd57fc
4
+ data.tar.gz: ee89ee1b18b75a48c2e2e12723c594104c0459db02959b5ae246d76cc3c9f57b
5
5
  SHA512:
6
- metadata.gz: 6618d563651faea280187d5d61c8fa3581cd63218a62a8ac30673bee003c0f2a78b112a6dce2c4bc7513d80879832c9e633a7e3c055183738424a0be86ab43ca
7
- data.tar.gz: 488a22471da9b77ce39f196c66313cb1d8c81cda2689ad0c4432153bdc56d903c2abcb6337a292f7ab6002dc1cfc80130239fd809eebc0ed6a0ef557792a7a40
6
+ metadata.gz: 4ee00f08da23a56214135acd0088bad90f5b5c71e75f3104dffc8b91fac54574c000464ce90f20a41439d7dbdd129f2b384d8bd9c4c4c0e017be1de45ebda66e
7
+ data.tar.gz: 3f96cc09b98e54dcb15aecf67c17d6cd7f2e18ffe994fce532d9a5e2f8ab99ee155e89a551185eadfd053a2556bac56a17a64f45323a4ee8d4fe53b4ece981c5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.0] - 2021-08-21
4
+
5
+ - Initial commit
6
+
7
+ ## Release
8
+
9
+ ## [0.1.0] - 2021-08-24
10
+ - Initial commit
11
+
3
12
  ## [0.1.1] - 2021-08-24
13
+ - Fix doc
4
14
 
5
- - Fix document
15
+ ## [0.2.0] - 2021-08-24
16
+ - Eng support
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kusabi (0.1.1)
4
+ kusabi (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  English
4
4
 
5
- This gem allows you to convert alphabetic or Japanese characters (hiragana and katakana) into cuneiform.
5
+ This gem allows you to convert alphabet(unimplemented) or Japanese characters (hiragana and katakana) into cuneiform.
6
6
 
7
7
  Warning: As this gem is under development, major changes may be made to the master branch.
8
8
 
data/kusabi.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["ppmasa8"]
9
9
  spec.email = ["kiyokiyopip56@gmail.com"]
10
10
 
11
- spec.summary = "This gem allows you to convert alphabet(unimplemented) or Japanese characters (hiragana and katakana) into cuneiform."
12
- spec.description = "This gem allows you to convert alphabet(unimplemented) or Japanese characters (hiragana and katakana) into cuneiform."
11
+ spec.summary = "This gem allows you to convert alphabet or Japanese characters (hiragana and katakana) into cuneiform. This is joke program."
12
+ spec.description = "This gem allows you to convert alphabet or Japanese characters (hiragana and katakana) into cuneiform. This is joke program."
13
13
  spec.homepage = "https://github.com/ppmasa8/kusabi.git"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
@@ -4,10 +4,10 @@
4
4
  # TODO add alphabet
5
5
  hash = {
6
6
  # Alphabet
7
- a: ['12001'], b: [''], c: [''], d: [''], e: [''], f: [''], g: [''],
8
- h: [''], i: [''], j: [''], k: [''], l: [''], m: [''], n: [''],
9
- o: [''], p: [''], q: [''], r: [''], s: [''], t: [''], u: [''],
10
- v: [''], w: [''], x: [''], y: [''], z: [''],
7
+ a: ['12000'], b: ['1204D'], c: ['122EB'], d: ['12072'], e: ['1208A'], f: ['12137'], g: ['12116'],
8
+ h: ['12129'], i: ['1213F'], j: ['12363'], k: ['121A0'], l: ['12292'], m: ['1222C'], n: ['12261'],
9
+ o: ['120F0'], p: ['1204D'], q: ['122E1'], r: ['12292'], s: ['122E2'], t: ['122FC'], u: ['1230B'],
10
+ v: ['1240A'], w: ['1227E'], x: ['1230B'], y: ['1227E'], z: ['1236A'],
11
11
 
12
12
  # Japanese Hiragana
13
13
  あ: ['12000'], い: ['1213F'], う: ['1230B'], え: ['1208A'], お: ['120F0'],
@@ -47,7 +47,7 @@
47
47
  }
48
48
 
49
49
  result = []
50
- strings = split('')
50
+ strings = downcase.split('')
51
51
  strings.each do |str|
52
52
  hash[str.to_sym] ? temp = hash[str.to_sym].join : temp = nil
53
53
  temp ? result << [temp.hex].pack("U") : result << str
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kusabi
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kusabi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ppmasa8
@@ -52,8 +52,8 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- description: This gem allows you to convert alphabet(unimplemented) or Japanese characters
56
- (hiragana and katakana) into cuneiform.
55
+ description: This gem allows you to convert alphabet or Japanese characters (hiragana
56
+ and katakana) into cuneiform. This is joke program.
57
57
  email:
58
58
  - kiyokiyopip56@gmail.com
59
59
  executables: []
@@ -81,7 +81,6 @@ files:
81
81
  - lib/kusabi.rb
82
82
  - lib/kusabi/translator.rb
83
83
  - lib/kusabi/version.rb
84
- - main.rb
85
84
  homepage: https://github.com/ppmasa8/kusabi.git
86
85
  licenses:
87
86
  - MIT
@@ -108,6 +107,6 @@ requirements: []
108
107
  rubygems_version: 3.0.3
109
108
  signing_key:
110
109
  specification_version: 4
111
- summary: This gem allows you to convert alphabet(unimplemented) or Japanese characters
112
- (hiragana and katakana) into cuneiform.
110
+ summary: This gem allows you to convert alphabet or Japanese characters (hiragana
111
+ and katakana) into cuneiform. This is joke program.
113
112
  test_files: []
data/main.rb DELETED
@@ -1,7 +0,0 @@
1
- puts ["12000".hex].pack("U")
2
-
3
- ## 処理としては、日本語・アルファベット等の文字列のあとに".kusabi"とつけると変換できるようにしたい。
4
- ## 入ってきた文字のunicodeをばらして楔形文字の数で割ったあまりごとに12000から始まる楔形文字に割り振る。
5
- ## 多分超簡単だけど一旦はそんな感じ.
6
-
7
-