cmless 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cmless.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88e89d58e76efcdb293c533e56ee350dcfba3e7b
4
- data.tar.gz: 9cb8e84a3cc8e551aebca2257d1e0c9e2e37d537
3
+ metadata.gz: df8fed832f07c5ef9e406e7f3c590953077593c2
4
+ data.tar.gz: a6cbc326451f8f7a98e1354cf4e27a2db48f240d
5
5
  SHA512:
6
- metadata.gz: 00c6c89750850619db742a90853e5e20ebdf03db5918836c9012b2af3ed5eb89d6eba980855b0b59c47d04a0ffbc07dc4f748cc8d83466da8b7624eaa176f35b
7
- data.tar.gz: 009c9ce026b0b94e30664c183ee92a0c994b9616489d70a3f20d3815951795e614be74ba5704066b57ab5ae539d36a6bdda97b486d8a005ec356be316b17535d
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.9
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-10-15 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet