cbeta 2.8.0 → 2.8.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cbeta.rb +2 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e9426da6f59142f948502553702e53d0ec13708b90854574a7e860c9e700b01
4
- data.tar.gz: 731ad5b8d7b16bc1eca6ef1825315354aa7bad3a9c31de17770985404b612ac6
3
+ metadata.gz: 61b9c52ae28aabbcea1c66b51cd083c6a8849d9010096916f6f0d1e610d23aa2
4
+ data.tar.gz: ba2470133e0772c337d09982478f7cf4e5eb2f317ecb5d42de04743dfb644267
5
5
  SHA512:
6
- metadata.gz: 5322a5ed6a7376fad6b8f8cd9d83b07de5c1e2e29a9957f8f5cae1add2bee31b7309e29e52b4f19497c73718f10310eb9f0c8081d485053082631860e27c5ea2
7
- data.tar.gz: e6a311c93d57158f32d7f89e768dffceef91ebeb6f24c76f0bde0b5afee7afb164fa6b1de45913590662d232c115911b048523d849d7713965c3021802c612ce
6
+ metadata.gz: e87b48dbcd43ddfaeafa9ae30e46082d269a01ae5383ba9075c5621d756db6b40af9c0f2242b80bf63ea11694cce9ba63f8df975541c2a6b32f4302ba2da3ab2
7
+ data.tar.gz: e6989a57217e56d786d05c4cc7e66d61a09452e0cd365dc01a7d4860a183793abc808e1344780d628f893c26f872ee2437fb78d06a58ba29f4bc29ad3b2d53ca
data/lib/cbeta.rb CHANGED
@@ -8,6 +8,7 @@ require 'csv'
8
8
  class CBETA
9
9
  CANON = 'CC|DA|GA|GB|LC|TX|ZS|ZW|[A-Z]'
10
10
  SORT_ORDER = %w(T X A K S F C D U P J L G M N ZS I ZW B GA GB Y LC TX CC)
11
+ VOL3 = %w[A CC C G GA GB L M P U]
11
12
  DATA = File.join(File.dirname(__FILE__), 'data')
12
13
  PUNCS = ',.()[] 。‧.,、;?!:︰/()「」『』《》<>〈〉〔〕[]【】〖〗〃…—─ ~│┬▆*+-='
13
14
 
@@ -108,7 +109,7 @@ class CBETA
108
109
  canon = $1
109
110
  vol = $2
110
111
 
111
- if %w[A C G GA GB L M P U].include? canon
112
+ if VOL3.include? canon
112
113
  # 這些藏經的冊號是三碼
113
114
  vol_len = 3
114
115
  else
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.8.0
4
+ version: 2.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Chou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-18 00:00:00.000000000 Z
11
+ date: 2023-07-28 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
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
- rubygems_version: 3.2.29
58
+ rubygems_version: 3.4.10
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: CBETA Tools