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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5d65b2aa52df8d273f1d9495c817afaec7e29c5628106c28feced37ea7cf988
4
- data.tar.gz: c8f3ce1cd5a8528ee6d8302a0173c2b3673870378458c0a0dba4b26ad5eb280b
3
+ metadata.gz: daea60149fbf87a4578457106ed496e61d697bbb520eeeb50aa2dffec4aeb00b
4
+ data.tar.gz: a1bad86f398c40f52f3deb84f1eb37885ee068a15b97649b65fc3a85f60209e0
5
5
  SHA512:
6
- metadata.gz: 6170ff66ec3020cd0ec7f268f05a220e799601b8ba1899b0ab15ce769eab9b3ce98ff9ca89ad400109324908444d93e31eb47b116cae01f815f6fdb5d58b8acc
7
- data.tar.gz: a4dd4c2f449052627667eb862fce8f34f7a74f5d3b2b537cacdfd8b03b0d90d086133bab7d5cd1205c01a460da50636a0878ee0413399eb1a55a24ee011d13c9
6
+ metadata.gz: a15fa52b99df92942e0d3abd2edc780dd186636009f5841da01cd8982e38ab68335bca0b3105fcf1f5486053f4b6261cf90a3db2db9bfb2f0b3391534b7b6d28
7
+ data.tar.gz: a91656ac53901f836cb7ad699826cfde8ce7e882b9e0086152f6efcf942eabc80be4591a7e4144fe852ff2161e4b38fa1332c086a099748e92a74d26a5c049b9
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 3.12.1 / 2026-04-14
2
+
3
+ * 1 bug fix:
4
+
5
+ * Make Binary pages hard link instead of copy to save some disk.
6
+
1
7
  === 3.12.0 / 2026-01-29
2
8
 
3
9
  * 2 minor enhancements:
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 "Copying #{url_path}"
511
- cp path, url_path, preserve:true, verbose: Rake.application.options.trace
512
- # touch url_path, mtime: date, verbose: Rake.application.options.trace
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
@@ -6,7 +6,7 @@ require "time"
6
6
 
7
7
  module Zenweb
8
8
  # duh
9
- VERSION = "3.12.0"
9
+ VERSION = "3.12.1"
10
10
  end
11
11
 
12
12
  require "zenweb/site"
@@ -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.cp(...) = puts "copy!" # just shows it got called
263
- def page.date = Time.now
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 = "copy!\n"
266
- err = "Copying .site/blah\n"
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.0
4
+ version: 3.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
metadata.gz.sig CHANGED
Binary file