cbeta 2.4.0 → 2.4.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 +4 -4
- data/lib/cbeta/p5a_to_html_for_every_edition.rb +0 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5bd36f7172ccdb4fcdacabbcab1ecae93f06a4cf
|
|
4
|
+
data.tar.gz: 0a0fc112539ed157233f63bb5c42a440b6418799
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b4a50b1e4896fbe40e1f5843976d70d35074f039c5fa9fc10b12d2cce0e3cd7bff9ae0424bbad05c7fd1abec82b3027903c187212e101e4545e867e2a20e7e5
|
|
7
|
+
data.tar.gz: 51d665bea641af27deae32ed448919e0840b8379b003ce254b9ba95ed77297e537ae9072dbd987092ff974c0a805da494b6fa0c71d0b38df3d8a4c66e64d089a
|
|
@@ -709,7 +709,6 @@ class CBETA::P5aToHTMLForEveryEdition
|
|
|
709
709
|
end
|
|
710
710
|
|
|
711
711
|
def html_back(juan_no, ed)
|
|
712
|
-
progress "html back, juan: #{juan_no}, ed: #{ed}"
|
|
713
712
|
r = ''
|
|
714
713
|
case ed
|
|
715
714
|
when '【CBETA】'
|
|
@@ -860,11 +859,6 @@ class CBETA::P5aToHTMLForEveryEdition
|
|
|
860
859
|
text
|
|
861
860
|
end
|
|
862
861
|
|
|
863
|
-
def progress(msg)
|
|
864
|
-
puts Time.now.strftime("%Y-%m-%d %H:%M:%S")
|
|
865
|
-
puts msg
|
|
866
|
-
end
|
|
867
|
-
|
|
868
862
|
def traverse(e, mode='html')
|
|
869
863
|
r = ''
|
|
870
864
|
e.children.each { |c|
|
|
@@ -886,7 +880,6 @@ class CBETA::P5aToHTMLForEveryEdition
|
|
|
886
880
|
FileUtils.makedirs folder
|
|
887
881
|
|
|
888
882
|
@editions.each do |ed|
|
|
889
|
-
progress "filter html ed: #{ed}"
|
|
890
883
|
ed_html = filter_html(html, ed)
|
|
891
884
|
back = html_back(juan_no, ed)
|
|
892
885
|
|
|
@@ -934,7 +927,6 @@ class CBETA::P5aToHTMLForEveryEdition
|
|
|
934
927
|
#{copyright}
|
|
935
928
|
</body></html>
|
|
936
929
|
eos
|
|
937
|
-
puts "write: #{output_path}"
|
|
938
930
|
File.write(output_path, text)
|
|
939
931
|
end
|
|
940
932
|
|
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.4.
|
|
4
|
+
version: 2.4.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: 2017-04-
|
|
11
|
+
date: 2017-04-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
|