zenweb 3.10.8 → 3.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 448821783e1068f92a0284e93d3072d8501cf21cc0ab94da3f6fc63d251de7d0
4
- data.tar.gz: 314bda2c7bc1882f01e5c7b5ff37da023dc46bfd7e0b73de67e605f7260e20f0
3
+ metadata.gz: 84df6337b405ae77d3a2ed5fb1c6aa940ce2ad08ba6dd904a9b3cde365a47623
4
+ data.tar.gz: bc471952a820c258e6704dc1e73039c16978edf51b7016ee12db27514e9eeb2e
5
5
  SHA512:
6
- metadata.gz: d4753d177c0ab4b46a58e929f57e1d1c26fcda263c24aa7cc2d0b7875b2b13a2103903664af997a2c15b8903ce7d2d74dc9a13838947338c7ef4d5e45f4602de
7
- data.tar.gz: 0d59fdbee4361cce03ef42aac407a39dd25ee2a4a025964de78ab50b5b68ef070d2a54c1b8ef95d0b03d0c07785606978f19367cbd8beeba3c046c17990c3c84
6
+ metadata.gz: '08fbb2f23c3ebb0ca4323a5a79d0604f84d61f5904c3c758e2c3ef2e5956fc2044cf1eec66b3a3a93b18b914e12fa47247b4bcc7e3a6498750c7201b9d5fa8b7'
7
+ data.tar.gz: 26452812d1d9459a0413ca40b8fa9a394372b7c4f2cdcacc6ce7cef7b85bb8a69b4c78e3e7def7e9356ed6f1af2ac584434d9da4465b8b8c861e8c1ea729229d
checksums.yaml.gz.sig CHANGED
Binary file
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 3.11.0 / 2023-09-28
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added Page#link_head helper method to clean up <link...> tags
6
+
1
7
  === 3.10.8 / 2023-08-30
2
8
 
3
9
  * 1 bug fix:
@@ -22,8 +22,8 @@ rss_length: 15
22
22
  <email>{{ email }}</email>
23
23
  </author>
24
24
 
25
- <link href="{{ feed_url }}" rel="self"/>
26
- <link href="{{ domain }}/"/>
25
+ {{ link_head href:feed_url, rel:"self" }}
26
+ {{ link_head href:domain }}
27
27
 
28
28
  <rights> © {{ author }} - {{ email }} </rights>
29
29
 
@@ -33,7 +33,7 @@ rss_length: 15
33
33
  <title>{{ h post.title }}</title>
34
34
  <updated>{{ post.date.iso8601 }}</updated>
35
35
 
36
- <link rel="alternate" href="{{ domain }}{{ post.url }}"/>
36
+ {{ link_head rel:"alternate", href:"{{ domain }}{{ post.url }}" }}
37
37
 
38
38
  <published>{{ post.date.iso8601 }}</published>
39
39
  <content type="html">{{ h post.subrender }}</content>
data/lib/zenweb/page.rb CHANGED
@@ -330,6 +330,13 @@ module Zenweb
330
330
  %(<meta #{label}="#{name}" content="#{val}">) if val
331
331
  end
332
332
 
333
+ ##
334
+ # Stupid helper method to make declaring header link lines cleaner
335
+
336
+ def link_head **kws
337
+ %(<link #{kws.map { |k,v| "#{k}=#{v.inspect}" }.join " "} />)
338
+ end
339
+
333
340
  ##
334
341
  # Access a config variable and only warn if it isn't accessible.
335
342
  # If +msg+ starts with render, go ahead and pass that up to the
@@ -373,7 +380,7 @@ module Zenweb
373
380
  # Stupid helper method to make declaring stylesheets cleaner
374
381
 
375
382
  def stylesheet name
376
- %(<link rel="stylesheet" type="text/css" href="/css/#{name}.css">)
383
+ link_head rel:"stylesheet", type:"text/css", href:"/css/#{name}.css"
377
384
  end
378
385
 
379
386
  ##
data/lib/zenweb.rb CHANGED
@@ -6,7 +6,7 @@ require "time"
6
6
 
7
7
  module Zenweb
8
8
  # duh
9
- VERSION = "3.10.8"
9
+ VERSION = "3.11.0"
10
10
  end
11
11
 
12
12
  require "zenweb/site"
@@ -441,7 +441,7 @@ class TestZenwebPage < Minitest::Test
441
441
  end
442
442
 
443
443
  def test_stylesheet
444
- exp = %(<link rel="stylesheet" type="text/css" href="/css/woot.css">)
444
+ exp = %(<link rel="stylesheet" type="text/css" href="/css/woot.css" />)
445
445
  assert_equal exp, page.stylesheet("woot")
446
446
  end
447
447
 
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.10.8
4
+ version: 3.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  ROfWo9Uyp8ba/j9eVG14KkYRaLydAY1MNQk2yd3R5CGfeOpD1kttxjoypoUJ2dOG
30
30
  nsNBRuQJ1UfiCG97a6DNm+Fr
31
31
  -----END CERTIFICATE-----
32
- date: 2023-08-30 00:00:00.000000000 Z
32
+ date: 2023-09-29 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rake
metadata.gz.sig CHANGED
@@ -1 +1,3 @@
1
- W��F\:�:Nڌ�=(:�� AKi�^*��=��A zr���^�ӧK[2����I��
1
+ r������2�u\5��� 84��f y�vBϥg� 6!���7�J6;�9!GJ�V�m������
2
+ e �6Y/���=�ᢞbN2q�EEE_;�<<0��� �Ƌ*�w� ˚J��cQe� �rU�_�)���>}j-=]�D/Z�x���$E�;I�/��{O�ȭ�*�,���Wɝ S>��0�`��/Y��n�ڴ�C����� �V���R<�C��燅�[Mf��_��4�><;���׸�p{��Y���
3
+ �\�)