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 +4 -4
- data/CHANGELOG.md +12 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/kusabi.gemspec +2 -2
- data/lib/kusabi/translator.rb +5 -5
- data/lib/kusabi/version.rb +1 -1
- metadata +5 -6
- data/main.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dd744d2e968e3f090b849a51d61e6da0a38daa15476e0bbd83662e711bd57fc
|
4
|
+
data.tar.gz: ee89ee1b18b75a48c2e2e12723c594104c0459db02959b5ae246d76cc3c9f57b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ee00f08da23a56214135acd0088bad90f5b5c71e75f3104dffc8b91fac54574c000464ce90f20a41439d7dbdd129f2b384d8bd9c4c4c0e017be1de45ebda66e
|
7
|
+
data.tar.gz: 3f96cc09b98e54dcb15aecf67c17d6cd7f2e18ffe994fce532d9a5e2f8ab99ee155e89a551185eadfd053a2556bac56a17a64f45323a4ee8d4fe53b4ece981c5
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
English
|
4
4
|
|
5
|
-
This gem allows you to convert
|
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
|
12
|
-
spec.description = "This gem allows you to convert alphabet
|
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")
|
data/lib/kusabi/translator.rb
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
# TODO add alphabet
|
5
5
|
hash = {
|
6
6
|
# Alphabet
|
7
|
-
a: ['
|
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
|
data/lib/kusabi/version.rb
CHANGED
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.
|
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
|
56
|
-
|
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
|
112
|
-
|
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: []
|