cbeta 2.7.7 → 2.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cbeta.rb +2 -3
- 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: 15d32301ca84415fd11b0a839144af5564011967b1b6cd7d85960f2389b3f296
|
4
|
+
data.tar.gz: 2000299f5b2696355ba7b53f782501074a9c2a6773f22ba1229d331b8a555d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43737cf809bbc986e88859fc64f17f54041b3114fbbf0bb86ccfde36d3414eb96ee0c653dee62caaf248c19fda58195233e0be8ef79877b6c11574846219a302
|
7
|
+
data.tar.gz: '0248265c51ec343c07c880cbfe7abc7afa3d679679c18d973e36ed6813058fdef61fa62d516e52df467706301cb612d6bb154a085be73c347dc2a202d8e9a260'
|
data/lib/cbeta.rb
CHANGED
@@ -152,11 +152,10 @@ class CBETA
|
|
152
152
|
|
153
153
|
# 載入藏經資料
|
154
154
|
def initialize()
|
155
|
-
fn = File.join(File.dirname(__FILE__), 'data/canons.csv')
|
156
|
-
text = File.read(fn)
|
157
155
|
@canon_abbr = {}
|
158
156
|
@canon_nickname = {}
|
159
|
-
|
157
|
+
fn = File.join(File.dirname(__FILE__), 'data/canons.csv')
|
158
|
+
CSV.foreach(fn, :headers => true, encoding: 'utf-8') do |row|
|
160
159
|
id = row['id']
|
161
160
|
unless row['nickname'].nil?
|
162
161
|
@canon_nickname[id] = row['nickname']
|
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.
|
4
|
+
version: 2.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ray Chou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-23 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
|