zenweb 3.12.0 → 3.12.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
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +6 -0
- data/README.rdoc +2 -2
- data/lib/zenweb/page.rb +6 -3
- data/lib/zenweb.rb +1 -1
- data/test/test_zenweb_page.rb +6 -4
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: daea60149fbf87a4578457106ed496e61d697bbb520eeeb50aa2dffec4aeb00b
|
|
4
|
+
data.tar.gz: a1bad86f398c40f52f3deb84f1eb37885ee068a15b97649b65fc3a85f60209e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a15fa52b99df92942e0d3abd2edc780dd186636009f5841da01cd8982e38ab68335bca0b3105fcf1f5486053f4b6261cf90a3db2db9bfb2f0b3391534b7b6d28
|
|
7
|
+
data.tar.gz: a91656ac53901f836cb7ad699826cfde8ce7e882b9e0086152f6efcf942eabc80be4591a7e4144fe852ff2161e4b38fa1332c086a099748e92a74d26a5c049b9
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
|
@@ -5,7 +5,7 @@ bugs :: https://github.com/seattlerb/zenweb/issues
|
|
|
5
5
|
rdoc :: http://docs.seattlerb.org/zenweb
|
|
6
6
|
|
|
7
7
|
== DESCRIPTION:
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
Zenweb is a set of classes/tools for organizing and formating a
|
|
10
10
|
website. It is website oriented rather than webpage oriented, unlike
|
|
11
11
|
most rendering tools. It is content oriented, rather than style
|
|
@@ -21,7 +21,7 @@ website and regenerating incrementally is not just possible, it is
|
|
|
21
21
|
blazingly fast.
|
|
22
22
|
|
|
23
23
|
== FEATURES:
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
* Uses rake to do intelligent incremental builds.
|
|
26
26
|
* Uses rubygems to provide a flexible plugin system.
|
|
27
27
|
* Provides plugins for less, markdown, and erb out of the box.
|
data/lib/zenweb/page.rb
CHANGED
|
@@ -506,10 +506,13 @@ module Zenweb
|
|
|
506
506
|
# would not be modified to changes in config or the like.
|
|
507
507
|
|
|
508
508
|
class Binary < Page
|
|
509
|
+
def date = File.stat(path).mtime
|
|
510
|
+
|
|
509
511
|
def generate
|
|
510
|
-
warn "
|
|
511
|
-
|
|
512
|
-
|
|
512
|
+
warn "Linking #{url_path}"
|
|
513
|
+
verbose = Rake.application.options.trace
|
|
514
|
+
ln path, url_path, verbose: verbose
|
|
515
|
+
touch url_path, mtime: date, verbose: verbose
|
|
513
516
|
end
|
|
514
517
|
|
|
515
518
|
def wire
|
data/lib/zenweb.rb
CHANGED
data/test/test_zenweb_page.rb
CHANGED
|
@@ -259,11 +259,13 @@ class TestZenwebPage < Minitest::Test
|
|
|
259
259
|
|
|
260
260
|
def test_generate_binary
|
|
261
261
|
page = Zenweb::Binary.new site, "blah", site.config
|
|
262
|
-
def page.
|
|
263
|
-
def page.
|
|
262
|
+
def page.ln(...) = puts "link!" # just shows it got called
|
|
263
|
+
def page.mkdir_p(...) = puts "mkdir!"
|
|
264
|
+
def page.touch(...) = puts "touch!"
|
|
265
|
+
def page.date = Time.now
|
|
264
266
|
|
|
265
|
-
out = "
|
|
266
|
-
err = "
|
|
267
|
+
out = "link!\ntouch!\n"
|
|
268
|
+
err = "Linking .site/blah\n"
|
|
267
269
|
|
|
268
270
|
assert_output out, err do
|
|
269
271
|
page.generate
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|