polytexnic 1.8.2 → 1.9.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: ff82492919e49e1998de1a1daf06d8d35d58091b36f00ec0ba9131233655cd2f
4
- data.tar.gz: d63bced974ebbb926b24fac2640f081aea3cc8300e9a8a428397dc772d9b5acf
3
+ metadata.gz: 661a979e224cca511cb29bf8b4268cd5a003b2b540dd9a9f249813f448aa346d
4
+ data.tar.gz: 740758da8a65f87cd934a4e7ed47525adae3e9760d0a5981f93256f177a7e021
5
5
  SHA512:
6
- metadata.gz: 248c5a703557b271839e4b933b1412bff785bb0924b30c8a9c557582a9ab2a2c2126c2454177b064fc2e32a1c407fe443c15bfae49cf5add5c7ef6438d782356
7
- data.tar.gz: 66c68711d14ad7bc00b6b319464f2468807df6f36a8bd30a70e440e887bc0ef406511c336e28987c2ffbf8cd50753d76b02d1daa543a6ea3f40a29f24e4720db
6
+ metadata.gz: 87990735c902b06126f371ee8da891b74c54efe609026a27d333b38653ccfc1e0e34dd1140f8ca50b6ea496b998dee77e481a55eac714de67b60a3ca26b07375
7
+ data.tar.gz: 2f535ccba676cd8dc3adea72fe87b8728d7579d0c5ba12004694bdf3a5c59b48621f82a3d8abed39c344063e27a98aa165fdf49cf60cd481534788c95ed324e7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polytexnic (1.8.2)
4
+ polytexnic (1.9.0)
5
5
  json (= 2.3.1)
6
6
  kramdown (= 2.4.0)
7
7
  msgpack (= 1.2.10)
@@ -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.5)
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
- node.replace(node.inner_html)
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'
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "1.8.2"
2
+ VERSION = "1.9.0"
3
3
  end
@@ -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 "<li>foo\n</li>"}
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.8.2
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-06-30 00:00:00.000000000 Z
12
+ date: 2023-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri