zarchitect 1.7.3 → 1.7.5
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/zarchitect/content.rb +3 -2
- data/lib/zarchitect.rb +8 -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: 4ac1702f34b08639fa39abf50b281d00231041ef8d5c80b94631bc737a376408
|
|
4
|
+
data.tar.gz: 161d685c09799e10dfca6dacd13315ba4d867325db0dc46644dd1e6c23f57f7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29e645130b9adc08cb9f509b4e2833c4c9a765826a8fee02ebda6f9810a0f74e3ae17e149173434efa304915edf3a614c2f4978e12a2ec54bd57c693fb2df894
|
|
7
|
+
data.tar.gz: 4edf9a9f984dad5c6d2a923cc8358fd01615b18edc37b67ae6c3e8eeea154fe2014224553fc33412b31d1b518b9dfad40d03ea3c96da79e7d3ef725b496f2e57
|
data/lib/zarchitect/content.rb
CHANGED
|
@@ -200,8 +200,9 @@ class Content < Zarchitect
|
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
202
|
else
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
# nokogiri debug
|
|
204
|
+
# GPI.print html if GPI::CLU.check_option('v')
|
|
205
|
+
node = Nokogiri::HTML5.fragment(html) do |config|
|
|
205
206
|
config.strict.noblanks
|
|
206
207
|
end
|
|
207
208
|
|
data/lib/zarchitect.rb
CHANGED
|
@@ -6,10 +6,11 @@ require 'rss'
|
|
|
6
6
|
require 'nokogiri'
|
|
7
7
|
require 'katex'
|
|
8
8
|
require 'sitemap_generator'
|
|
9
|
+
require 'pathname'
|
|
9
10
|
|
|
10
11
|
class Zarchitect
|
|
11
12
|
|
|
12
|
-
VERSION = "1.7.
|
|
13
|
+
VERSION = "1.7.5"
|
|
13
14
|
HTMLDIR = "_html"
|
|
14
15
|
BUILDIR = "_build"
|
|
15
16
|
NODEDIR = "_build/nodes"
|
|
@@ -97,7 +98,9 @@ class Zarchitect
|
|
|
97
98
|
Dir[ File.join(NODEDIR, "**", "*") ].reverse.reject do |fullpath|
|
|
98
99
|
if File.directory?(fullpath)
|
|
99
100
|
GPI.print "deleting dir #{fullpath}"
|
|
100
|
-
|
|
101
|
+
pathname = Pathname.new(fullpath).expand_path
|
|
102
|
+
pathname.rmtree
|
|
103
|
+
#Dir.delete(fullpath)
|
|
101
104
|
GPI.print "deleted dir #{fullpath}"
|
|
102
105
|
else
|
|
103
106
|
GPI.print "deleting file #{fullpath}"
|
|
@@ -109,7 +112,9 @@ class Zarchitect
|
|
|
109
112
|
Dir[ File.join(HTMLDIR, "**", "*") ].reverse.reject do |fullpath|
|
|
110
113
|
if File.directory?(fullpath)
|
|
111
114
|
GPI.print "deleting dir #{fullpath}"
|
|
112
|
-
|
|
115
|
+
pathname = Pathname.new(fullpath).expand_path
|
|
116
|
+
pathname.rmtree
|
|
117
|
+
#Dir.delete(fullpath)
|
|
113
118
|
GPI.print "deleted dir #{fullpath}"
|
|
114
119
|
else
|
|
115
120
|
GPI.print "deleting file #{fullpath}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zarchitect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ryu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-07-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Yet another static website generator
|
|
14
14
|
email: ryu@tohya.net
|