zenweb 3.10.1 → 3.10.2

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
- SHA1:
3
- metadata.gz: 3737a3b87e86c85728272600f7ae0a1f8f55d564
4
- data.tar.gz: d3bdb4f609b52e54d3754bf3eede3ca0f8fdf584
2
+ SHA256:
3
+ metadata.gz: 1b4fad66a102c7e624056d1908d4e6087034dfc5755e84f68b8968d403957c9a
4
+ data.tar.gz: b49e8241c32670e45738f217ea1a9cb151a54e5456217f9c6c54d16d2f05467a
5
5
  SHA512:
6
- metadata.gz: 8e47e0cac3bb1f56c6ff9b049fc7e8f356a4ac7bc25d7848d7be8f6b34252ea9c3be128e1bc00ca830cac84ff974412a22fe6b752b5e00f29dbd0bdb7a193769
7
- data.tar.gz: 8434b923ad69c434d5fccc2c0034588a30d75bafc04cb36a07e9a76691eb366ff64d9fc7e7655d317ae8c220bd4bd1f7537836448c41fef20c5216c6f42fbb79
6
+ metadata.gz: 4d1ac7338660b7cb5f31d496c9124912c03c00227290a3c1e9f91e3329fb388b150496051e8ce863870f5f2777dabd551d3a2dcf0355a51f4de23714ce2ff2a0
7
+ data.tar.gz: 329aa8c3907a69543bf46895b514f6c0245b38734c671549bc9b50eac1768b1f8ceb00c0e0cd5702fc725dd2ccc9ab43f1bad2d78e7b439f9ddef25b53494b9c
@@ -1,2 +1,5 @@
1
- qx6��(��"Ub3�|��aO����΄V����isdo,7����, p<:��X���8�;���/�NEW��f�� �p�\冲��Mc]��2k�����g��24����ط�����+�Ӓ��Z+~ kUڽ��3�l%��pD����E:o��"����=�2p���5��{��+ѐ��_��Vv@��_�D���r ɺ�h$�J:�
2
- ��"��/
1
+ ���X�ڣ�b9)C�Bs��[� }tpUdu�ا8�D��X�~��t CAsEt $��R�?�H��^J~Rr�� ��#g��Yh�%����R����"�w7�B�6:�M� �ch�Yy�wQ�,' H��Ŧhx��V�w�;!6��nhJwC�+594K�ޚ�'��NE<ߧ��k��\�
2
+ ������nj��=�兺�6x�
3
+ �0�߯;A��\X�Q�Q �P���)���� "�/�Cu&���n�W��ي
4
+
5
+ ɮE
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,13 @@
1
+ === 3.10.2 / 2018-03-16
2
+
3
+ * 5 bug fixes:
4
+
5
+ * Argh! Fixed logic error in inherited config lookup.
6
+ * Fix subpages after time pruning in categories.
7
+ * Fixed Site#fix_subpages from duplicating pages. Now idempotent.
8
+ * Fixed double-loading warnings from plugins if you're testing against local.
9
+ * Fixed filtering of pre-dated pages. (thagomizer)
10
+
1
11
  === 3.10.1 / 2016-11-16
2
12
 
3
13
  * 1 bug fix:
@@ -6,7 +6,7 @@ require "time"
6
6
 
7
7
  module Zenweb
8
8
  # duh
9
- VERSION = "3.10.1"
9
+ VERSION = "3.10.2"
10
10
  end
11
11
 
12
12
  require "zenweb/site"
@@ -48,7 +48,7 @@ module Zenweb
48
48
  # Access value at +k+. The value can be inherited from the parent configs.
49
49
 
50
50
  def [] k
51
- h[k.to_s] or parent[k]
51
+ h.key?(k.to_s) ? h[k.to_s] : parent[k]
52
52
  end
53
53
 
54
54
  def key? k
@@ -34,7 +34,11 @@ module Zenweb
34
34
  # Loads all files matching "zenweb/plugins/*.rb".
35
35
 
36
36
  def self.load_plugins
37
+ seen = {}
37
38
  Gem.find_files("zenweb/plugins/*.rb").each do |path|
39
+ file = File.basename path
40
+ next if seen[file]
41
+ seen[file] = true
38
42
  require path
39
43
  end
40
44
  end
@@ -67,6 +71,9 @@ module Zenweb
67
71
  end
68
72
  end
69
73
 
74
+ time_prune
75
+ fix_subpages
76
+
70
77
  pages.each do |url, page|
71
78
  dir = url.split(/\//).first
72
79
  next unless File.directory? dir and dir !~ /^_/
@@ -201,11 +208,15 @@ module Zenweb
201
208
  $website = self # HACK
202
209
  task(:virtual_pages).invoke
203
210
 
211
+ time_prune
212
+
213
+ fix_subpages
214
+ end
215
+
216
+ def time_prune
204
217
  t = Time.now
205
218
  @pages.reject! { |path, page| page.date && page.date > t } unless
206
219
  ENV["ALL"]
207
-
208
- fix_subpages
209
220
  end
210
221
 
211
222
  def self.binary_files
@@ -250,7 +261,7 @@ module Zenweb
250
261
 
251
262
  @pages.values.each do |p|
252
263
  unless p.subpages.empty? then
253
- sorted = p.subpages.sort_by(&:clean_url)
264
+ sorted = p.subpages.sort_by(&:clean_url).uniq
254
265
  p.subpages.replace sorted
255
266
  end
256
267
  end
@@ -54,7 +54,8 @@ class TestZenwebPageErb < Minitest::Test
54
54
  page.erb "this is {{ 1 + }} content", page
55
55
  end
56
56
 
57
- assert_includes e.message, "concat(( 1 + ).to_s)"
57
+ # in 2.5 this changes from concat to <<, but the syntax error stays
58
+ assert_includes e.message, "(( 1 + ).to_s)"
58
59
  assert e.backtrace.grep('Page["blog/2012-01-02-page1.html.md"]:1')
59
60
  end
60
61
  end
@@ -50,6 +50,22 @@ class TestZenwebSite < Minitest::Test
50
50
  end
51
51
  end
52
52
 
53
+ def test_fix_subpages
54
+ top = setup_complex_website
55
+
56
+ site.fix_subpages
57
+ site.fix_subpages
58
+ # ...
59
+
60
+ sp = site.pages
61
+ exp = [[sp["blog/index.html.md"],
62
+ [[sp["blog/2014-01-01-first.html.md"], []],
63
+ [sp["blog/2014-02-02-second.html.md"], []],
64
+ [sp["blog/2014-03-03-third.html.md"], []]]]]
65
+
66
+ assert_equal exp, top.all_subpages
67
+ end
68
+
53
69
  def test_config
54
70
  assert_equal "_config.yml", site.config.path
55
71
  end
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.1
4
+ version: 3.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -10,9 +10,9 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDijCCAnKgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
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GrYwRWQmvMfC4bJ02bC1+rVOUIXXKp3+cUmiN4sTniof8VFo
29
- bo/YYP4c7erpERa+9hrqygg6WQbJlk2YRlH3JXPFjmu869i2dcbR5ZLOAeEy+axH
30
- E4oJcnPkJAr0rw504JGtlZtONZQblwmRJOIdXzolaE3NRGUzGVOUSptZppAKiavY
31
- fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
23
+ gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
+ HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
25
+ AQAfAXSQpsW7YSxd1csRtA/M4Zt0AMXFMd76GJ8Lgtg8G0+VFbdChRyDuDb0kPlW
26
+ h9QQX/YABfCW8vxmssbMGrP+VGBAn7BbdTcfTlgCWrvMX1uL5aRL74nA4urKXqdW
27
+ a0nP70K4958P3GffBdtE3KGkU5xstFnXGajxuBRnL66E15KU0BNehVxdG258bdPu
28
+ EKN6MqBPftFiev3tuwqDV11r2GquDpniYcT+Mi8/PgeAgVT/afBeVgbB3KaZeTRR
29
+ AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
30
+ V+HB+LYYhXWitInO/eXxDrFB
32
31
  -----END CERTIFICATE-----
33
- date: 2016-11-17 00:00:00.000000000 Z
32
+ date: 2018-03-16 00:00:00.000000000 Z
34
33
  dependencies:
35
34
  - !ruby/object:Gem::Dependency
36
35
  name: rake
37
36
  requirement: !ruby/object:Gem::Requirement
38
37
  requirements:
39
- - - '>='
38
+ - - ">="
40
39
  - !ruby/object:Gem::Version
41
40
  version: '0.9'
42
- - - <
41
+ - - "<"
43
42
  - !ruby/object:Gem::Version
44
43
  version: '11'
45
44
  type: :runtime
46
45
  prerelease: false
47
46
  version_requirements: !ruby/object:Gem::Requirement
48
47
  requirements:
49
- - - '>='
48
+ - - ">="
50
49
  - !ruby/object:Gem::Version
51
50
  version: '0.9'
52
- - - <
51
+ - - "<"
53
52
  - !ruby/object:Gem::Version
54
53
  version: '11'
55
54
  - !ruby/object:Gem::Dependency
56
55
  name: makerakeworkwell
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - ~>
58
+ - - "~>"
60
59
  - !ruby/object:Gem::Version
61
60
  version: '1.0'
62
61
  type: :runtime
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
- - - ~>
65
+ - - "~>"
67
66
  - !ruby/object:Gem::Version
68
67
  version: '1.0'
69
68
  - !ruby/object:Gem::Dependency
70
69
  name: less
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
- - - ~>
72
+ - - "~>"
74
73
  - !ruby/object:Gem::Version
75
74
  version: '2.0'
76
75
  type: :runtime
77
76
  prerelease: false
78
77
  version_requirements: !ruby/object:Gem::Requirement
79
78
  requirements:
80
- - - ~>
79
+ - - "~>"
81
80
  - !ruby/object:Gem::Version
82
81
  version: '2.0'
83
82
  - !ruby/object:Gem::Dependency
84
83
  name: coderay
85
84
  requirement: !ruby/object:Gem::Requirement
86
85
  requirements:
87
- - - ~>
86
+ - - "~>"
88
87
  - !ruby/object:Gem::Version
89
88
  version: '1.0'
90
89
  type: :runtime
91
90
  prerelease: false
92
91
  version_requirements: !ruby/object:Gem::Requirement
93
92
  requirements:
94
- - - ~>
93
+ - - "~>"
95
94
  - !ruby/object:Gem::Version
96
95
  version: '1.0'
97
96
  - !ruby/object:Gem::Dependency
98
97
  name: kramdown
99
98
  requirement: !ruby/object:Gem::Requirement
100
99
  requirements:
101
- - - ~>
100
+ - - "~>"
102
101
  - !ruby/object:Gem::Version
103
102
  version: '1.4'
104
103
  type: :runtime
105
104
  prerelease: false
106
105
  version_requirements: !ruby/object:Gem::Requirement
107
106
  requirements:
108
- - - ~>
107
+ - - "~>"
109
108
  - !ruby/object:Gem::Version
110
109
  version: '1.4'
111
110
  - !ruby/object:Gem::Dependency
112
111
  name: rdoc
113
112
  requirement: !ruby/object:Gem::Requirement
114
113
  requirements:
115
- - - ~>
114
+ - - "~>"
116
115
  - !ruby/object:Gem::Version
117
116
  version: '4.0'
118
117
  type: :development
119
118
  prerelease: false
120
119
  version_requirements: !ruby/object:Gem::Requirement
121
120
  requirements:
122
- - - ~>
121
+ - - "~>"
123
122
  - !ruby/object:Gem::Version
124
123
  version: '4.0'
125
124
  - !ruby/object:Gem::Dependency
126
125
  name: hoe
127
126
  requirement: !ruby/object:Gem::Requirement
128
127
  requirements:
129
- - - ~>
128
+ - - "~>"
130
129
  - !ruby/object:Gem::Version
131
- version: '3.15'
130
+ version: '3.16'
132
131
  type: :development
133
132
  prerelease: false
134
133
  version_requirements: !ruby/object:Gem::Requirement
135
134
  requirements:
136
- - - ~>
135
+ - - "~>"
137
136
  - !ruby/object:Gem::Version
138
- version: '3.15'
137
+ version: '3.16'
139
138
  description: |-
140
139
  Zenweb is a set of classes/tools for organizing and formating a
141
140
  website. It is website oriented rather than webpage oriented, unlike
@@ -166,7 +165,7 @@ extra_rdoc_files:
166
165
  - example-site/blog/_tmp/not_yet.html.md
167
166
  - example-site/pages/nonblogpage.html.md
168
167
  files:
169
- - .autotest
168
+ - ".autotest"
170
169
  - History.txt
171
170
  - Manifest.txt
172
171
  - README.txt
@@ -233,23 +232,23 @@ licenses:
233
232
  metadata: {}
234
233
  post_install_message:
235
234
  rdoc_options:
236
- - --main
235
+ - "--main"
237
236
  - README.txt
238
237
  require_paths:
239
238
  - lib
240
239
  required_ruby_version: !ruby/object:Gem::Requirement
241
240
  requirements:
242
- - - '>='
241
+ - - ">="
243
242
  - !ruby/object:Gem::Version
244
243
  version: '0'
245
244
  required_rubygems_version: !ruby/object:Gem::Requirement
246
245
  requirements:
247
- - - '>='
246
+ - - ">="
248
247
  - !ruby/object:Gem::Version
249
248
  version: '0'
250
249
  requirements: []
251
250
  rubyforge_project:
252
- rubygems_version: 2.4.5
251
+ rubygems_version: 2.7.3
253
252
  signing_key:
254
253
  specification_version: 4
255
254
  summary: Zenweb is a set of classes/tools for organizing and formating a website
metadata.gz.sig CHANGED
Binary file