cbeta 2.7.0 → 2.7.1

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: c335364272ca0bdcc387fa3d77b68c4b84876b4f9cfa07ffc7a677de9d03b873
4
- data.tar.gz: 2451e8f1f19dbcba7cc07c569f26bc6ebf28c1ee005b858c68168413745948ac
3
+ metadata.gz: 3f12002b3c456908bd24e4c82682d3f7045d2ead52d6c4ab137dd14ed8ac26dd
4
+ data.tar.gz: c1df10ffb082cbba8acffac64ea9cb0cde7ac08f049cad9c1b61f3fb67340efe
5
5
  SHA512:
6
- metadata.gz: 595fb30acc0a8705abfe12cd7b8c8baeeca83e13e13c090e7f42466fd204d27803e82a594c377b61e54b2c4424a01f6eeaa5623cb9c1e6d2460e8312bb4c7452
7
- data.tar.gz: e19c82e4b5c7dbb0f11e7a37db78716f89d998f7163f938de689a4fb0e0bbd2e9e1a4629ab763f89cb9c867ea77d727b838d81ffce7498498f8f555319dd5443
6
+ metadata.gz: d95f8e426057ad85802c52ed7eecf4edf54ee887c64d9f415f12870921b738796108f5d4fd9b91e8d140dc901bc422318db1041307d6c5e30ea2345d6b561878
7
+ data.tar.gz: 68961d7aa5854af88ef48301bf04f9d1fcd12557d94ee06a42d72c88f6f8d36474ca0f677a317783606df818ed09cc8d4bd5600701d42896821cce5ac39be221
@@ -131,14 +131,14 @@ class CBETA::P5aToSimpleHTML
131
131
 
132
132
  # 悉曇字 or 蘭札體
133
133
  if gid.start_with?('SD') or gid.start_with? 'RJ'
134
- return g['symbol'] unless g['symbol'].blank?
135
- return g['romanized'] unless g['romanized'].blank?
134
+ return g['symbol'] if g.key?('symbol')
135
+ return g['romanized'] if g.key?('romanized')
136
136
  return g['pua']
137
137
  end
138
138
 
139
- return g['uni_char'] unless g['uni_char'].blank?
140
- return g['norm_uni_char'] unless g['norm_uni_char'].blank?
141
- return g['norm_big5_char'] unless g['norm_big5_char'].blank?
139
+ return g['uni_char'] unless g['uni_char'].empty?
140
+ return g['norm_uni_char'] unless g['norm_uni_char'].empty?
141
+ return g['norm_big5_char'] unless g['norm_big5_char'].empty?
142
142
 
143
143
  # Unicode PUA
144
144
  [0xf0000 + gid[2..-1].to_i].pack 'U'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.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: 2018-07-20 00:00:00.000000000 Z
11
+ date: 2018-07-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby gem for use Chinese Buddhist Text resources made by CBETA (http://www.cbeta.org).
14
14
  email: zhoubx@gmail.com