mdexport 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/markdown.rb +9 -0
  3. data/lib/mdexport.rb +47 -1822
  4. data/lib/string.rb +21 -0
  5. metadata +43 -1
@@ -0,0 +1,21 @@
1
+ require 'pathname'
2
+
3
+ class String
4
+ def filename
5
+ File.basename(self)
6
+ end
7
+
8
+ def extension
9
+ File.extname(self)
10
+ end
11
+
12
+ def basename
13
+ File.basename(self, extension)
14
+ end
15
+
16
+ def html_file_path
17
+ dirname = Pathname.new(self).dirname
18
+ filename = self.filename.gsub(extension, '.html')
19
+ "#{dirname}/#{filename}"
20
+ end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdexport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Madson Cardoso
@@ -38,6 +38,46 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.6.8
41
+ - !ruby/object:Gem::Dependency
42
+ name: mustache
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ - - '>='
49
+ - !ruby/object:Gem::Version
50
+ version: 1.0.2
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ version: '1.0'
58
+ - - '>='
59
+ - !ruby/object:Gem::Version
60
+ version: 1.0.2
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: '3.3'
68
+ - - '>='
69
+ - !ruby/object:Gem::Version
70
+ version: 3.3.0
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '3.3'
78
+ - - '>='
79
+ - !ruby/object:Gem::Version
80
+ version: 3.3.0
41
81
  description: A simple gem that exports all markdown files from current folder to html
42
82
  files.
43
83
  email: madsonmac@gmail.com
@@ -47,7 +87,9 @@ extensions: []
47
87
  extra_rdoc_files: []
48
88
  files:
49
89
  - bin/mdexport
90
+ - lib/markdown.rb
50
91
  - lib/mdexport.rb
92
+ - lib/string.rb
51
93
  homepage: http://github.com/madson/mdexport
52
94
  licenses:
53
95
  - MIT