guard-markdown 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@ module Guard
42
42
  target_path = output.gsub(reg,"\\1")
43
43
  FileUtils.mkpath target_path unless target_path.empty?
44
44
 
45
- kram_ops = { :input => "markdown" }
45
+ kram_ops = { :input => "kramdown", :output => "html" }
46
46
  kram_ops.update({ :template => template }) unless template.nil?
47
47
 
48
48
  doc = Kramdown::Document.new(source, kram_ops).to_html
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module MarkdownVersion
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -93,7 +93,7 @@ describe "Guard-Markdown" do
93
93
  File.should_receive(:open).with("input.md","rb").and_return(file_double)
94
94
  kram_doc = double()
95
95
  kram_doc.should_receive(:to_html)
96
- Kramdown::Document.should_receive(:new).with("#Title", :input => "markdown", :template => "template.html.erb").and_return(kram_doc)
96
+ Kramdown::Document.should_receive(:new).with("#Title", :input => "kramdown", :output => "html", :template => "template.html.erb").and_return(kram_doc)
97
97
 
98
98
  file_out = double()
99
99
  FileUtils.should_receive(:mkpath)
@@ -131,6 +131,6 @@ private
131
131
 
132
132
  def mock_kramdown text
133
133
  kram_doc = double()
134
- Kramdown::Document.should_receive(:new).with(text, :input => "markdown").and_return(kram_doc)
134
+ Kramdown::Document.should_receive(:new).with(text, :input => "kramdown", :output=> "html").and_return(kram_doc)
135
135
  kram_doc
136
136
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: guard-markdown
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Darren Wallace
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-06 00:00:00 Z
13
+ date: 2011-06-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: guard