tocmd 0.1.3 → 0.1.4

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: 7d59a14846d156d079a4b1a5f9d1546c16542f7f
4
- data.tar.gz: 53f3818d1d2b2615d892ede56c812cdd857c7539
3
+ metadata.gz: 109a4c0dc5885399edc06e72661467d090ae6bf7
4
+ data.tar.gz: 1566a9f798490a6faacf28ed70c1bbc47991eba9
5
5
  SHA512:
6
- metadata.gz: ff5494c6967782b4a2966777e99a6b970e6c9a70f4d83c12de426818e86ecbecab6a02712ec2814b55d0573c9fadcab843378246bd7e12e435efffda2c0820c2
7
- data.tar.gz: 5a7858bd7487cb1980bf86830b8dca9746071903a2e09131e4e8a62ae780e82a3a91e75e07e4955826f680894c27e3cfe0d7da2eab419afedf84f210c5b08c73
6
+ metadata.gz: aacef7840091f74199486f89a1081e9fb48d4f83607a82250ec67e3623aebb0ce62351a023f828c5af722a79d8d99f259f14e0dd63dfb79077ff4d9034cd9e04
7
+ data.tar.gz: 5fbdfcfc063dc21ed0e1d99039d35a9725c3a728f58edff4c2618f44dc79ba0b78355fc3155a8ce59833d934dca830552a2bda242845a683b6c02b4890907b10
data/bin/tocmd CHANGED
@@ -47,14 +47,14 @@ option_parser = OptionParser.new do |opts|
47
47
  ensure
48
48
  end
49
49
 
50
- begin
51
- Dir.mkdir(File.join(src_p ,".toc"), 0700) #=> 0
52
- rescue
53
- ensure
54
- f = File.new(File.join(vendor_path ,"template.html"), "w+").path
55
- FileUtils.cp(f ,File.join(src_p ,".toc"))
56
- end
57
-
50
+ # begin
51
+ # Dir.mkdir(File.join(src_p ,".toc"), 0700) #=> 0
52
+ # rescue
53
+ # ensure
54
+ # f = File.new(File.join(vendor_path ,"template.html"), "w+").path
55
+ # FileUtils.cp(f ,File.join(src_p ,".toc"))
56
+ # end
57
+ #
58
58
 
59
59
  # Option 作为flag,带argument,用于将argument作为数值解析,比如"name"信息
60
60
  #下面的“value”就是用户使用时输入的argument
File without changes
@@ -133,7 +133,7 @@ class Mdpreview::Translator
133
133
  # options = [:fenced_code,:generate_toc,:hard_wrap,:no_intraemphasis,:strikethrough,:gh_blockcode,:autolink,:xhtml,:tables]
134
134
 
135
135
  # convert to html
136
- markdown = Redcarpet::Markdown.new(HTMLwithPygments,:gh_blockcode=>true,:no_intra_emphasis=>true,:filter_html => true,:hard_wrap => true,:autolink => true, :space_after_headers => true,:fenced_code_blocks => true)
136
+ markdown = Redcarpet::Markdown.new(HTMLwithPygments,:gh_blockcode=>true,:no_intra_emphasis=>true,:filter_html => true,:hard_wrap => true,:autolink => true, :space_after_headers => true,:fenced_code_blocks => true,:tables => true)
137
137
  parse_markdown = markdown.render(text)
138
138
  # parse_markdown = syntax_highlighter(parse_markdown)
139
139
 
@@ -1,3 +1,3 @@
1
1
  module Mdpreview
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/mdpreview.rb CHANGED
File without changes
data/test/mdptest.rb CHANGED
File without changes
data/vendor/meta.js CHANGED
@@ -1 +1 @@
1
- /Volumes/data/Github/toc.md/
1
+ /Volumes/XP/git/tocmd.gem/README.md
data/vendor/template.html CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tocmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - shiren1118
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-08 00:00:00.000000000 Z
11
+ date: 2014-06-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: convert markdown to html with toc plugin
14
14
  email: