tilt-rdoc-markdown 0.0.2 → 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/.travis.yml +12 -0
- data/TILT_RDOC_MARKDOWN_VERSION +1 -0
- data/spec/tilt_rdoc_markdown_spec.rb +13 -1
- data/tilt-rdoc-markdown.gemspec +2 -4
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21c7904b284d31a0622e703e6ed3844111b96cf1
|
4
|
+
data.tar.gz: 50d8628a5f3eb11cf67188fc88d45a14de72cbfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dbc8524c72ada00ed2bff6af2deeda3fdaba30bb9f4958681441752aaee1acac54166a9ce4a6dc4835adc75367f0f1fd41cbe319ed4c24cfa9aa017cf42dc4f
|
7
|
+
data.tar.gz: f0a9ee5e348b616fc28e765ccbcc18953bb776844bcc83d898e2129cbc816d11726f39ce8d20f745aa7f7e0a28dda6681d743997d036721d26c42ad760777051
|
data/.travis.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
@@ -21,6 +21,18 @@ describe Tilt::RDoc::Markdown do
|
|
21
21
|
it "should prepare and evaluate templates on #render" do
|
22
22
|
template = Tilt::RDoc::Markdown.new { |t| "# Hello World!" }
|
23
23
|
doc = Nokogiri::HTML(template.render)
|
24
|
-
assert_equal
|
24
|
+
assert_equal 'Hello World!¶ ↑', doc.search("h1").text
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should render with pipe" do
|
28
|
+
template = Tilt::RDoc::Markdown.new(:pipe => true) { |t| "# Hello World!" }
|
29
|
+
doc = Nokogiri::HTML(template.render)
|
30
|
+
assert_equal 'Hello World!', doc.search("h1").text
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should render with toc" do
|
34
|
+
template = Tilt::RDoc::Markdown.new(:toc => true) { |t| "# Hello World!" }
|
35
|
+
result = template.render
|
36
|
+
assert_equal "<li><a href='#label-Hello+World%21'>Hello World!</a></li>", result
|
25
37
|
end
|
26
38
|
end
|
data/tilt-rdoc-markdown.gemspec
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'tilt/rdoc/markdown'
|
2
|
+
version = File.read(File.expand_path('../TILT_RDOC_MARKDOWN_VERSION', __FILE__)).strip
|
5
3
|
|
6
4
|
Gem::Specification.new do |spec|
|
7
5
|
spec.name = "tilt-rdoc-markdown"
|
8
|
-
spec.version =
|
6
|
+
spec.version = version
|
9
7
|
spec.authors = ["Zachary Scott"]
|
10
8
|
spec.email = ["zachary@zacharyscott.net"]
|
11
9
|
spec.description = %q{Tilt template to render Markdown using RDoc}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tilt-rdoc-markdown
|
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
|
- Zachary Scott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -88,10 +88,12 @@ extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
90
|
- .gitignore
|
91
|
+
- .travis.yml
|
91
92
|
- Gemfile
|
92
93
|
- LICENSE.txt
|
93
94
|
- README.md
|
94
95
|
- Rakefile
|
96
|
+
- TILT_RDOC_MARKDOWN_VERSION
|
95
97
|
- lib/tilt/rdoc/markdown.rb
|
96
98
|
- spec/spec_helper.rb
|
97
99
|
- spec/tilt_rdoc_markdown_spec.rb
|