polytexnic 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/polytexnic/postprocessors/html.rb +3 -3
- data/lib/polytexnic/version.rb +1 -1
- data/polytexnic.gemspec +1 -1
- data/spec/to_html/lists_spec.rb +15 -15
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661a979e224cca511cb29bf8b4268cd5a003b2b540dd9a9f249813f448aa346d
|
4
|
+
data.tar.gz: 740758da8a65f87cd934a4e7ed47525adae3e9760d0a5981f93256f177a7e021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87990735c902b06126f371ee8da891b74c54efe609026a27d333b38653ccfc1e0e34dd1140f8ca50b6ea496b998dee77e481a55eac714de67b60a3ca26b07375
|
7
|
+
data.tar.gz: 2f535ccba676cd8dc3adea72fe87b8728d7579d0c5ba12004694bdf3a5c59b48621f82a3d8abed39c344063e27a98aa165fdf49cf60cd481534788c95ed324e7
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
polytexnic (1.
|
4
|
+
polytexnic (1.9.0)
|
5
5
|
json (= 2.3.1)
|
6
6
|
kramdown (= 2.4.0)
|
7
7
|
msgpack (= 1.2.10)
|
8
|
-
nokogiri (= 1.
|
8
|
+
nokogiri (= 1.15.2)
|
9
9
|
pygments.rb (~> 2.3.1)
|
10
10
|
|
11
11
|
GEM
|
@@ -51,7 +51,7 @@ GEM
|
|
51
51
|
msgpack (1.2.10)
|
52
52
|
multi_json (1.15.0)
|
53
53
|
nenv (0.3.0)
|
54
|
-
nokogiri (1.
|
54
|
+
nokogiri (1.15.2-arm64-darwin)
|
55
55
|
racc (~> 1.4)
|
56
56
|
notiffany (0.1.3)
|
57
57
|
nenv (~> 0.1)
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
ffi (~> 1.0)
|
68
68
|
rest-client (1.6.7)
|
69
69
|
mime-types (>= 1.16)
|
70
|
-
rexml (3.2.
|
70
|
+
rexml (3.2.6)
|
71
71
|
rspec (2.99.0)
|
72
72
|
rspec-core (~> 2.99.0)
|
73
73
|
rspec-expectations (~> 2.99.0)
|
@@ -541,9 +541,9 @@ module Polytexnic
|
|
541
541
|
|
542
542
|
# Returns the node for a list item (li).
|
543
543
|
def item(doc)
|
544
|
-
doc.xpath('//item/p[@noindent="true"]').each do |node|
|
545
|
-
|
546
|
-
end
|
544
|
+
# doc.xpath('//item/p[@noindent="true"]').each do |node|
|
545
|
+
# node.replace(node.inner_html)
|
546
|
+
# end
|
547
547
|
doc.xpath('//item').each do |node|
|
548
548
|
clean_node node, %w{id-text id label}
|
549
549
|
node.name = 'li'
|
data/lib/polytexnic/version.rb
CHANGED
data/polytexnic.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_dependency 'nokogiri', '1.
|
21
|
+
gem.add_dependency 'nokogiri', '1.15.2'
|
22
22
|
gem.add_dependency 'pygments.rb', '~> 2.3.1'
|
23
23
|
gem.add_dependency 'msgpack', '1.2.10'
|
24
24
|
gem.add_dependency 'kramdown', '2.4.0'
|
data/spec/to_html/lists_spec.rb
CHANGED
@@ -17,7 +17,7 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
17
17
|
|
18
18
|
describe "item" do
|
19
19
|
let(:polytex) { '\item foo' }
|
20
|
-
it { should resemble
|
20
|
+
it { should resemble %(<li><p class="noindent">foo\n</p></li>)}
|
21
21
|
end
|
22
22
|
|
23
23
|
describe "itemized list" do
|
@@ -33,8 +33,8 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
33
33
|
it do
|
34
34
|
should resemble <<-'EOS'
|
35
35
|
<ul>
|
36
|
-
<li>Foo</li>
|
37
|
-
<li>Bar</li>
|
36
|
+
<li><p class="noindent">Foo</p></li>
|
37
|
+
<li><p class="noindent">Bar</p></li>
|
38
38
|
</ul>
|
39
39
|
EOS
|
40
40
|
end
|
@@ -54,8 +54,8 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
54
54
|
should resemble <<-'EOS'
|
55
55
|
<p>lorem ipsum</p>
|
56
56
|
<ul>
|
57
|
-
<li>Foo</li>
|
58
|
-
<li>Bar</li>
|
57
|
+
<li><p class="noindent">Foo</p></li>
|
58
|
+
<li><p class="noindent">Bar</p></li>
|
59
59
|
</ul>
|
60
60
|
EOS
|
61
61
|
end
|
@@ -74,8 +74,8 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
74
74
|
it do
|
75
75
|
should resemble <<-'EOS'
|
76
76
|
<ul>
|
77
|
-
<li>Foo</li>
|
78
|
-
<li>Bar</li>
|
77
|
+
<li><p class="noindent">Foo</p></li>
|
78
|
+
<li><p class="noindent">Bar</p></li>
|
79
79
|
</ul><p>lorem ipsum
|
80
80
|
</p>
|
81
81
|
EOS
|
@@ -104,15 +104,15 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
104
104
|
it do
|
105
105
|
should resemble <<-'EOS'
|
106
106
|
<ul>
|
107
|
-
<li>foo
|
107
|
+
<li><p class="noindent">foo</p>
|
108
108
|
<ul>
|
109
|
-
<li>bar</li>
|
110
|
-
<li>baz</li>
|
109
|
+
<li><p class="noindent">bar</p></li>
|
110
|
+
<li><p class="noindent">baz</p></li>
|
111
111
|
</ul>
|
112
112
|
</li>
|
113
|
-
<li>quux
|
113
|
+
<li><p class="noindent">quux</p>
|
114
114
|
<ul>
|
115
|
-
<li>dude</li>
|
115
|
+
<li><p class="noindent">dude</p></li>
|
116
116
|
</ul>
|
117
117
|
</li>
|
118
118
|
</ul>
|
@@ -132,10 +132,10 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
132
132
|
it do
|
133
133
|
should resemble <<-'EOS'
|
134
134
|
<ol>
|
135
|
-
<li>Foo</li>
|
136
|
-
<li>Bar</li>
|
135
|
+
<li><p class="noindent">Foo</p></li>
|
136
|
+
<li><p class="noindent">Bar</p></li>
|
137
137
|
</ol>
|
138
138
|
EOS
|
139
139
|
end
|
140
140
|
end
|
141
|
-
end
|
141
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polytexnic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-08-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.
|
20
|
+
version: 1.15.2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.
|
27
|
+
version: 1.15.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pygments.rb
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|