zenweb 3.10.5 → 3.10.7

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: 21c85d185e152fb057384c1defe583ab0f535a5c705f34976976f5a55506dff7
4
- data.tar.gz: e5091b07884222fdfa2b724b8d54fcbc31e82543db52e61c5574bc2b4c243e9b
3
+ metadata.gz: 01e3cb1c4a6f9989e24beda9df68db5371f2080146b9b25b01a95af133f61e77
4
+ data.tar.gz: 0ad4b847828bbc507ee26cc30d68abf9df3899a2df582840a47d3096a5eab788
5
5
  SHA512:
6
- metadata.gz: 6ea058ede3f2d836a3f86f0551538f4380575653660da686e9b81c6c5d0f8c025730d368f985374fe6e36141e4978088ccc7d673c6502885750d1d350ecf1b76
7
- data.tar.gz: e7365a35018a899fecc62d73307d3c3b854524c257a596ad480345d8709676645fefb0b94087f84239e602f23728b93f678800a2860eaa8490a116a28670f60e
6
+ metadata.gz: 3ea4ac607e3341abfb5120abe57cd3614671b8c2659feddad45c621aac669300737864b6b4418e6966d3dbd53bd830862f622fa498a61cefe4096c8244bb882b
7
+ data.tar.gz: c5765b977e8798763cd16a9f3cf0cba8bf19c5fd9bb8804899191e8f5170db8fee001a3152538fc9e700df48461636ab8651d911bf416721841d7b33feef68c3
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- r,�\ k@H_?b
2
- w�" �p���LH{ -$��P���� f|Խk&'����N7�ߞ�#.���6a�g��[�
3
- :X-kbu&��m)��7E�zA��8
1
+ �֏c�T޻��}v�xn�4�%t]E���|�c:�=�?\Qy�*�g���),A;¤+g�#����M��xc�J�N�;P(�7�ܚP��0yx��S<M҄�k�pL��ި����FI��Ys���Ew� wJ�1���pw�X[O�p[y� "�Z����y���ty�1;���[ڤ�߫�*�/�MOZ���\���ǃ���Wz��6R�s�w��r��ȁ�_��I�з��|U@�B8����{�:Q�
@@ -1,3 +1,15 @@
1
+ === 3.10.7 / 2023-07-25
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Updated to use kramdown 2.x + kramdown-syntax-coderay + kramdown-parser-gfm.
6
+
7
+ === 3.10.6 / 2023-05-04
8
+
9
+ * 1 bug fix:
10
+
11
+ * Remove page from parent subpages if being moved via fix_subpages.
12
+
1
13
  === 3.10.5 / 2022-01-04
2
14
 
3
15
  * 1 bug fix:
data/Manifest.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  .autotest
2
- History.txt
2
+ History.rdoc
3
3
  Manifest.txt
4
- README.txt
4
+ README.rdoc
5
5
  Rakefile
6
6
  example-site/.isolate.rb
7
7
  example-site/Rakefile
data/Rakefile CHANGED
@@ -9,11 +9,17 @@ Hoe.plugin :isolate
9
9
  Hoe.spec 'zenweb' do
10
10
  developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
11
11
 
12
+ license "MIT"
13
+
12
14
  dependency "rake", [">= 0.9", "< 15"]
13
15
  dependency "makerakeworkwell", "~> 1.0"
14
16
  dependency "less", "~> 2.0"
17
+
15
18
  dependency "coderay", "~> 1.0"
16
- dependency "kramdown", "~> 1.4" # TODO: 1.17.0 -> 2.1.0
19
+
20
+ dependency "kramdown", "~> 2.0"
21
+ dependency "kramdown-syntax-coderay", "~> 1.0"
22
+ dependency "kramdown-parser-gfm", "~> 1.0"
17
23
  end
18
24
 
19
25
  # vim: syntax=ruby
@@ -1,13 +1,18 @@
1
1
  class Zenweb::Page
2
2
  KRAMDOWN_CONFIG = { # :nodoc:
3
- :toc_levels => '2..4',
4
-
3
+ :toc_levels => 2..4,
5
4
  :entity_output => :symbolic,
6
-
7
- :coderay_wrap => :div,
8
- :coderay_line_numbers => :table,
9
- :coderay_tab_width => 4,
10
- :coderay_css => :class,
5
+ :hard_wrap => false,
6
+ :input => "GFM",
7
+ :gfm_quirks => "no_auto_typographic",
8
+
9
+ :syntax_highlighter => :coderay,
10
+ :syntax_highlighter_opts => {
11
+ :wrap => :div,
12
+ :line_numbers => :table,
13
+ :tab_width => 4,
14
+ :css => :class,
15
+ },
11
16
  }
12
17
 
13
18
  ##
@@ -30,12 +35,10 @@ class Zenweb::Page
30
35
 
31
36
  def markdown content, no_line_numbers = false
32
37
  require "kramdown"
38
+ require "kramdown-parser-gfm"
39
+ require "kramdown-syntax-coderay"
33
40
  require "coderay/zenweb_extensions"
34
41
 
35
- content = content.
36
- gsub(/^\`\`\` *(\w+)/) { "~~~ #$1" }.
37
- gsub(/^\`\`\`/, '~~~')
38
-
39
42
  config = KRAMDOWN_CONFIG.dup
40
43
  config[:coderay_line_numbers] = nil if no_line_numbers
41
44
 
data/lib/zenweb/site.rb CHANGED
@@ -255,6 +255,7 @@ module Zenweb
255
255
 
256
256
  next unless parent and parent != p and p.url =~ /html$/
257
257
 
258
+ p.parent.subpages.delete p if p.parent
258
259
  p.parent = parent
259
260
  parent.subpages << p
260
261
  end
data/lib/zenweb.rb CHANGED
@@ -6,7 +6,7 @@ require "time"
6
6
 
7
7
  module Zenweb
8
8
  # duh
9
- VERSION = "3.10.5"
9
+ VERSION = "3.10.7"
10
10
  end
11
11
 
12
12
  require "zenweb/site"
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.5
4
+ version: 3.10.7
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
- MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBBzANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIy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BIFDfK/OhlPzqKZad4nsdcsVH8ODCiT+ATMIZyz5K
28
+ WCnNtqlyiWXI8tdTpahDgcUwfcN/oN7v4K8iU5IbLJX6HQ5DKgmKjfb6XyMth16k
29
+ ROfWo9Uyp8ba/j9eVG14KkYRaLydAY1MNQk2yd3R5CGfeOpD1kttxjoypoUJ2dOG
30
+ nsNBRuQJ1UfiCG97a6DNm+Fr
31
31
  -----END CERTIFICATE-----
32
- date: 2022-01-05 00:00:00.000000000 Z
32
+ date: 2023-07-25 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rake
@@ -99,14 +99,42 @@ dependencies:
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '1.4'
102
+ version: '2.0'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '2.0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: kramdown-syntax-coderay
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '1.0'
117
+ type: :runtime
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1.0'
124
+ - !ruby/object:Gem::Dependency
125
+ name: kramdown-parser-gfm
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '1.0'
103
131
  type: :runtime
104
132
  prerelease: false
105
133
  version_requirements: !ruby/object:Gem::Requirement
106
134
  requirements:
107
135
  - - "~>"
108
136
  - !ruby/object:Gem::Version
109
- version: '1.4'
137
+ version: '1.0'
110
138
  - !ruby/object:Gem::Dependency
111
139
  name: rdoc
112
140
  requirement: !ruby/object:Gem::Requirement
@@ -133,14 +161,14 @@ dependencies:
133
161
  requirements:
134
162
  - - "~>"
135
163
  - !ruby/object:Gem::Version
136
- version: '3.23'
164
+ version: '4.0'
137
165
  type: :development
138
166
  prerelease: false
139
167
  version_requirements: !ruby/object:Gem::Requirement
140
168
  requirements:
141
169
  - - "~>"
142
170
  - !ruby/object:Gem::Version
143
- version: '3.23'
171
+ version: '4.0'
144
172
  description: |-
145
173
  Zenweb is a set of classes/tools for organizing and formating a
146
174
  website. It is website oriented rather than webpage oriented, unlike
@@ -160,9 +188,9 @@ email:
160
188
  executables: []
161
189
  extensions: []
162
190
  extra_rdoc_files:
163
- - History.txt
191
+ - History.rdoc
164
192
  - Manifest.txt
165
- - README.txt
193
+ - README.rdoc
166
194
  - example-site/about/index.html.md
167
195
  - example-site/blog/2012-01-02-page1.html.md
168
196
  - example-site/blog/2012-01-03-page2.html.md
@@ -172,9 +200,9 @@ extra_rdoc_files:
172
200
  - example-site/pages/nonblogpage.html.md
173
201
  files:
174
202
  - ".autotest"
175
- - History.txt
203
+ - History.rdoc
176
204
  - Manifest.txt
177
- - README.txt
205
+ - README.rdoc
178
206
  - Rakefile
179
207
  - example-site/.isolate.rb
180
208
  - example-site/Rakefile
@@ -241,7 +269,7 @@ metadata:
241
269
  post_install_message:
242
270
  rdoc_options:
243
271
  - "--main"
244
- - README.txt
272
+ - README.rdoc
245
273
  require_paths:
246
274
  - lib
247
275
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -255,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
283
  - !ruby/object:Gem::Version
256
284
  version: '0'
257
285
  requirements: []
258
- rubygems_version: 3.3.3
286
+ rubygems_version: 3.4.10
259
287
  signing_key:
260
288
  specification_version: 4
261
289
  summary: Zenweb is a set of classes/tools for organizing and formating a website
metadata.gz.sig CHANGED
Binary file
File without changes