cmless 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cmless.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df8fed832f07c5ef9e406e7f3c590953077593c2
|
4
|
+
data.tar.gz: a6cbc326451f8f7a98e1354cf4e27a2db48f240d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46458a0196b24c28bfd50d92e94c3ebc4f9c008d582b007941c5aba3b0e3d4aa75c2c441333dc7d95549fd04fa6bd671b194c87e2407c13d27113df688827517
|
7
|
+
data.tar.gz: a77ac6ff4f1b7182ce9ca70f957f6acde6012c7e2fda42f1cf5aeb43c1834d946b691a42334c3836dcfbdd38ed8efbe9c9b6d1a6d9729f5bd6c87307166c727e
|
data/lib/cmless.rb
CHANGED
@@ -34,9 +34,9 @@ class Cmless
|
|
34
34
|
inner = hs.map do |h|
|
35
35
|
escaped = CGI.escapeHTML(h.text)
|
36
36
|
hash = '#' + CGI.escapeHTML(h.attribute('id').to_s)
|
37
|
-
"<li><a href='#{hash}'>#{escaped}</a></li>"
|
37
|
+
"<li class='cmless cmless-#{h.name}'><a href='#{hash}'>#{escaped}</a></li>"
|
38
38
|
end.join("\n")
|
39
|
-
@toc_html = inner.empty? ? '' : "<ol>#{inner}</ol>\n"
|
39
|
+
@toc_html = inner.empty? ? '' : "<ol class='cmless'>#{inner}</ol>\n"
|
40
40
|
end
|
41
41
|
|
42
42
|
if html_methods.include?(:head_html)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chuck McCallum
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|