unihan2 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unihan2.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9166824f13d2f0396d7b33ec1a655ca0474977666c04644e4260cab816e9af49
|
4
|
+
data.tar.gz: 836e55a2fa019cb3aca5270a9653ed970003002e3087c98cc76e2f67ad6d4c4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f9c86f455bd60f6622ea6df605d3178a57e3d6459740c0f390244b377b5b0b693504a769d5d527d9154f87efa5c2347a6b5cbb4fe2e17cea71a695775ed1e9d
|
7
|
+
data.tar.gz: 722386ba5f282e4ae9ac9fdcec38b972f4c672dc605748427fe4424f8082ab7bb97fc3aa834933d5e7f6a81854f63fe5d02f5d5fe9164848ec2bff1f5310e153
|
data/lib/unihan2.rb
CHANGED
@@ -18,7 +18,9 @@ class Unihan2
|
|
18
18
|
|
19
19
|
# Listing of Characters Covered by the Unihan Database
|
20
20
|
# https://www.unicode.org/reports/tr38/tr38-29.html#BlockListing
|
21
|
-
def self.
|
21
|
+
def self.ver(code)
|
22
|
+
return nil if code.nil?
|
23
|
+
|
22
24
|
if code.is_a? Integer
|
23
25
|
i = code
|
24
26
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unihan2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ray Chou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Unihan Database Utilities
|
14
14
|
email: zhoubx@gmail.com
|