cbeta 2.7.7 → 2.7.8

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/cbeta.rb +2 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7f1b65eb7deaa750ce83de37cff2e4fdcddb2cf2237a56df1ee378c281ba38b
4
- data.tar.gz: 1d8f140723f7928a4a3bb98d2b721cf2eb204cbca6b1ca398142ad166ec907ef
3
+ metadata.gz: 15d32301ca84415fd11b0a839144af5564011967b1b6cd7d85960f2389b3f296
4
+ data.tar.gz: 2000299f5b2696355ba7b53f782501074a9c2a6773f22ba1229d331b8a555d74
5
5
  SHA512:
6
- metadata.gz: 47c6c54de1e2e4052bc1e1fea7bd82de19a7460f67f15a2aefe6a4671914f2d38bd013ead2467d6a07087b7b5f429a6fa1deb9c6bbcc111e7539d2bb62c88b08
7
- data.tar.gz: 14de3874c886c1a522241191443dcfc86594c7e43d19d2c5ab98fd76107194c942c883a02c1dea2b92c7210f0a71be7f8330b9201e74080ef4a1cf5d8bcd474f
6
+ metadata.gz: 43737cf809bbc986e88859fc64f17f54041b3114fbbf0bb86ccfde36d3414eb96ee0c653dee62caaf248c19fda58195233e0be8ef79877b6c11574846219a302
7
+ data.tar.gz: '0248265c51ec343c07c880cbfe7abc7afa3d679679c18d973e36ed6813058fdef61fa62d516e52df467706301cb612d6bb154a085be73c347dc2a202d8e9a260'
@@ -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
- CSV.parse(text, :headers => true) do |row|
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.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-10-04 00:00:00.000000000 Z
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