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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fabc1063f3b8eb3f538a2f86dca13a4d49ae1eb
4
- data.tar.gz: 0f322ae095c5d7ca9e71774ca1ece9229aaaad79
3
+ metadata.gz: 21c7904b284d31a0622e703e6ed3844111b96cf1
4
+ data.tar.gz: 50d8628a5f3eb11cf67188fc88d45a14de72cbfe
5
5
  SHA512:
6
- metadata.gz: 7d3622b169fb9bb2b4e0c4f82ae2933a66e6872fd1db7954152a616d551bdd968a4211530b7cdb4463bc274b5e1c094e12a21528fe08cebd10817673c5184d16
7
- data.tar.gz: 5141d59de225fdb0ff409ac8ce99a6361bfbd3e3b9947d57113488a95f51235c73511d3883273df6f69b4f91262d1105517342fa8721745fc8ceb4df7f9b8117
6
+ metadata.gz: 5dbc8524c72ada00ed2bff6af2deeda3fdaba30bb9f4958681441752aaee1acac54166a9ce4a6dc4835adc75367f0f1fd41cbe319ed4c24cfa9aa017cf42dc4f
7
+ data.tar.gz: f0a9ee5e348b616fc28e765ccbcc18953bb776844bcc83d898e2129cbc816d11726f39ce8d20f745aa7f7e0a28dda6681d743997d036721d26c42ad760777051
@@ -0,0 +1,12 @@
1
+ ---
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - ruby-head
7
+ - jruby-19mode
8
+ - jruby-head
9
+ - rbx-19mode
10
+ notifications:
11
+ recipients:
12
+ - zachary@zacharyscott.net
@@ -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 "Hello World!", doc.search("h1").text
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
@@ -1,11 +1,9 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
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 = Tilt::RDoc::Markdown::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.2
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-21 00:00:00.000000000 Z
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