unihan2 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/unihan2.rb +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5eb38245b07a071dd3489121782a109ec34c6bf3371822c6d610df11b035257
4
- data.tar.gz: 0f8349355c0c597c3fc1dbfe7d191bb0a38d54a08fb534f415ca31884753c8f2
3
+ metadata.gz: 9166824f13d2f0396d7b33ec1a655ca0474977666c04644e4260cab816e9af49
4
+ data.tar.gz: 836e55a2fa019cb3aca5270a9653ed970003002e3087c98cc76e2f67ad6d4c4f
5
5
  SHA512:
6
- metadata.gz: d5e69eea0311f7b462c9c5b3a39f0d5a2bc6b2dbf35098f6a4dd01064c81e6670a3a5c07ddbbf4c95ca56c029d323069f5032ab89b0b7d1ab497e1e18e5c7a12
7
- data.tar.gz: 3f5b644491711e5da436dc780b67e331fa425df852f115b9245f0b6f945c523f7d732907aefeb2756fa99764bc2fb618deaae7b50b221db7360b47b5b38959a4
6
+ metadata.gz: 4f9c86f455bd60f6622ea6df605d3178a57e3d6459740c0f390244b377b5b0b693504a769d5d527d9154f87efa5c2347a6b5cbb4fe2e17cea71a695775ed1e9d
7
+ data.tar.gz: 722386ba5f282e4ae9ac9fdcec38b972f4c672dc605748427fe4424f8082ab7bb97fc3aa834933d5e7f6a81854f63fe5d02f5d5fe9164848ec2bff1f5310e153
@@ -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.unicode_version(code)
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.0
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-10 00:00:00.000000000 Z
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