madowu 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/CHANGES +15 -1
- data/Gemfile +2 -1
- data/VERSION +1 -1
- data/bin/dirmap +5 -8
- data/bin/madowu +41 -38
- data/bin/urltitle +40 -7
- data/example/Rakefile +1 -1
- data/example/urltitle/url.dat +4 -0
- data/lib/madowu/directorymapper.rb +21 -10
- data/madowu.gemspec +15 -6
- data/test/directorymapper/japanese/hayasu.md +8 -0
- data/test/directorymapper/japanese/kiito.md +8 -0
- data/test/directorymapper/japanese/nama.md +8 -0
- data/test/directorymapper/japanese/seimei.md +8 -0
- data/test/directorymapper/japanese/shougai.md +8 -0
- data/test/directorymapper/japanese/umareru.md +8 -0
- data/test/test_directorymapper.rb +38 -20
- metadata +24 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44189e5d16442234da611b91060a05d1bc3cd732
|
4
|
+
data.tar.gz: 093a5bbf14f4baa1cae59749cfdcb28b3748d8b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8d0a69c5ab29f7bace895e8aa75b99f106b87b0a55b7edde46b75a113b7016687b3a7e56aa05685cc5d0b47dff75a656a501287389023d5765c704accc726cf
|
7
|
+
data.tar.gz: 3429b1f6be911870920be080cbc64cd7e79e0078c723d39fdb7ddee885533cc597920015b2ab07eaf2970caa3d5eac1b26b6b98d448082d7cc3d2b6ea5f1a5c2
|
data/CHANGES
CHANGED
@@ -1,20 +1,31 @@
|
|
1
1
|
= THIS_GEM changelog
|
2
2
|
|
3
|
-
|
3
|
+
<!-- Master -->
|
4
|
+
|
5
|
+
== Version 0.0.7 [2016-07-14]
|
6
|
+
|
7
|
+
* /bin/madowu is abolished
|
8
|
+
* Add /bin/dirmap --kakasi
|
9
|
+
* Simplify output of /bin/dirmap
|
10
|
+
* bin/urltitle can substitute partial strings in lines
|
4
11
|
|
5
12
|
== Version 0.0.6 [2016-04-27]
|
13
|
+
|
6
14
|
* Adjust to pandoc style title
|
7
15
|
|
8
16
|
== Version 0.0.5 [2016-04-25]
|
17
|
+
|
9
18
|
* Bugfix of 'madowu --outline' for pandoc.
|
10
19
|
|
11
20
|
== Version 0.0.4 [2016-04-23]
|
21
|
+
|
12
22
|
* bin/urltitle was added
|
13
23
|
* bin/isbninfo was added
|
14
24
|
* 'madowu --outline' was adjusted to pandoc style md file
|
15
25
|
* bin/dirmap changed to find only *.html, ignore else.
|
16
26
|
|
17
27
|
== Version 0.0.3 [2016-02-26]
|
28
|
+
|
18
29
|
* bin/
|
19
30
|
* modify 'madowu' command
|
20
31
|
* add -O (--outline-selflink) option.
|
@@ -34,10 +45,13 @@
|
|
34
45
|
* lib/htmlgenerator.rb, <HTML> header to <html> in HtmlGenerator.generate
|
35
46
|
|
36
47
|
== Version 0.0.2 [2015-10-20]
|
48
|
+
|
37
49
|
* Add -C (--charset) option and default encoding is set to be 'us-ascii'
|
38
50
|
|
39
51
|
== Version 0.0.1 [2015-10-20]
|
52
|
+
|
40
53
|
* Add ' ' into title in dirmap.
|
41
54
|
|
42
55
|
== Version 0.0.0 [2015-10-20]
|
56
|
+
|
43
57
|
First release.
|
data/Gemfile
CHANGED
@@ -6,10 +6,11 @@ source "http://rubygems.org"
|
|
6
6
|
# Add dependencies to develop your gem here.
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
8
8
|
group :development do
|
9
|
-
gem "test-unit", "~> 3.
|
9
|
+
gem "test-unit", "~> 3.2"
|
10
10
|
gem "rdoc", "~> 4.2"
|
11
11
|
gem "bundler", "~> 1.11"
|
12
12
|
gem "jeweler", "~> 2.0"
|
13
13
|
gem "simplecov", "~> 0.11"
|
14
14
|
gem 'amazon-ecs', "~> 2.4"
|
15
|
+
gem 'tefil', "~> 0.1"
|
15
16
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
data/bin/dirmap
CHANGED
@@ -18,8 +18,7 @@ op.banner = [
|
|
18
18
|
].join("\n")
|
19
19
|
op.on("-v" , "--verbose" , "Output to stdout too"){ options[:verbose] = true}
|
20
20
|
op.on("-f" , "--force" , "Force output"){ options[:force] = true}
|
21
|
-
|
22
|
-
#op.on("-b val", "--bak=val", "descriptionB"){|v| options[:bak] = v}
|
21
|
+
op.on("-k" , "--kakasi" , "Sort by Japanese yomi"){ options[:kakasi] = true}
|
23
22
|
op.parse!(ARGV)
|
24
23
|
|
25
24
|
if ARGV.size > 1
|
@@ -36,17 +35,15 @@ end
|
|
36
35
|
def should_update?(options, outfile, new_contents)
|
37
36
|
return true if options[:force]
|
38
37
|
return true unless FileTest.exist? outfile
|
39
|
-
|
40
|
-
old_contents = File.open(outfile, "r").readlines.map{|i| i.chomp}
|
41
|
-
return false if old_contents == new_contents
|
42
|
-
|
38
|
+
return false if new_contents == File.open(outfile, "r").readlines.map{|i| i.chomp}
|
39
|
+
#old_contents = File.open(outfile, "r").readlines.map{|i| i.chomp}
|
40
|
+
#return false if old_contents == new_contents
|
43
41
|
return true
|
44
42
|
end
|
45
43
|
|
46
44
|
outfile = DEFAULT_OUTFILE
|
47
|
-
contents = Madowu::DirectoryMapper.dirmap(dir)
|
45
|
+
contents = Madowu::DirectoryMapper.dirmap(dir, options[:kakasi])
|
48
46
|
|
49
|
-
#pp contents
|
50
47
|
if should_update?(options, outfile, contents)
|
51
48
|
io = File.open(outfile, 'w')
|
52
49
|
io.puts contents
|
data/bin/madowu
CHANGED
@@ -1,42 +1,45 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# coding: utf-8
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
require "fileutils"
|
7
|
-
require "madowu"
|
4
|
+
push "'madowu' command is already obsoleted. Use 'pandoc'."
|
5
|
+
exit
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
op
|
21
|
-
op.
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
}
|
27
|
-
#op.on("-
|
28
|
-
op.on("-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
7
|
+
#require "optparse"
|
8
|
+
#require "pp"
|
9
|
+
#require "fileutils"
|
10
|
+
#require "madowu"
|
11
|
+
#
|
12
|
+
#ENCODING = "UTF-8"
|
13
|
+
#HTML2PDF = "wkhtmltopdf"
|
14
|
+
#HTML2PDF_OPTIONS = "-B 1cm -L 1.5cm -R 1.5cm -T 1.5cm -s A4 --encoding #{ENCODING} "
|
15
|
+
#
|
16
|
+
#### option analysis
|
17
|
+
#OPTIONS = {}
|
18
|
+
#op = OptionParser.new
|
19
|
+
#op.banner = [
|
20
|
+
# "Usage: #{File.basename("#{__FILE__}")} [options] foo.md",
|
21
|
+
# " You can see help with '#{File.basename("#{__FILE__}")} --help'.",
|
22
|
+
#].join("\n")
|
23
|
+
#op.on("-c css_file", "--css=file", "Indicate css file"){|v| OPTIONS[:css] = v}
|
24
|
+
#op.on("-C charset", "--charset=str", "Indicate charset like 'UTF-8'"){|v| OPTIONS[:charset] = v}
|
25
|
+
#op.on("-o" , "--outline" , "Embed outline"){ OPTIONS[:outline] = true}
|
26
|
+
#op.on("-O" , "--outline-selflink", "Embed outline with link to the line"){
|
27
|
+
# OPTIONS[:outline] = true
|
28
|
+
# OPTIONS[:selflink] = true
|
29
|
+
#}
|
30
|
+
##op.on("-d" , "--dirmap-side", "Embed sideber of directory map"){OPTIONS[:dirmap] = true}
|
31
|
+
#op.on("-s file" , "--side=md_file", "Read Markdown file for sidebar"){|v|OPTIONS[:sidebar] = v}
|
32
|
+
#op.on("-m markdown" , "--markdown=command", "Indicate Markdown command"){|v| OPTIONS[:markdown] = v}
|
33
|
+
#op.parse!(ARGV)
|
34
|
+
#
|
35
|
+
##pp OPTIONS
|
36
|
+
#
|
37
|
+
#unless ARGV.size == 1
|
38
|
+
# puts op.banner
|
39
|
+
# exit
|
40
|
+
#end
|
41
|
+
#
|
42
|
+
#md_file = ARGV[0]
|
43
|
+
#html_file = md_file.sub(/\.md/, ".html")
|
44
|
+
#hg = Madowu::HtmlGenerator.new(md_file, OPTIONS[:markdown])
|
45
|
+
#File.open(html_file, "w") { |io| io.puts hg.generate(OPTIONS) }
|
data/bin/urltitle
CHANGED
@@ -1,12 +1,45 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
require 'nokogiri'
|
3
|
+
|
5
4
|
require "open-uri"
|
5
|
+
require "optparse"
|
6
|
+
require "tefil.rb"
|
7
|
+
require 'nokogiri'
|
8
|
+
require 'pp'
|
9
|
+
require 'uri'
|
6
10
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
11
|
+
class UrlTitle < Tefil::TextFilterBase
|
12
|
+
def initialize(options = {})
|
13
|
+
super(options)
|
14
|
+
end
|
15
|
+
|
16
|
+
def process_stream(in_io, out_io)
|
17
|
+
in_io.each do |line|
|
18
|
+
URI.extract(line).each do |uri|
|
19
|
+
begin
|
20
|
+
html = open(uri)
|
21
|
+
doc = Nokogiri::HTML.parse(html)
|
22
|
+
line.gsub!(uri, "[#{doc.title}](#{uri})")
|
23
|
+
rescue #rescue Errno::ENOENT
|
24
|
+
#do nothing
|
25
|
+
end
|
26
|
+
end
|
27
|
+
out_io.puts line
|
28
|
+
end
|
29
|
+
end
|
12
30
|
end
|
31
|
+
|
32
|
+
## option analysis
|
33
|
+
options = {}
|
34
|
+
op = OptionParser.new
|
35
|
+
op.banner = [
|
36
|
+
"Usage: #{File.basename("#{__FILE__}")} [options]",
|
37
|
+
].join("\n")
|
38
|
+
op.on("-o" , "--overwrite" , "Overwrite"){ options[:overwrite] = true}
|
39
|
+
op.parse!(ARGV)
|
40
|
+
|
41
|
+
options[:overwrite] ||= false
|
42
|
+
|
43
|
+
ut = UrlTitle.new(options)
|
44
|
+
ut.filter(ARGV)
|
45
|
+
|
data/example/Rakefile
CHANGED
data/example/urltitle/url.dat
CHANGED
@@ -3,3 +3,7 @@ index.html
|
|
3
3
|
http://whatisthor.com/
|
4
4
|
http://unageanu.hatenablog.com/entry/20091019/1255962812
|
5
5
|
http://qiita.com/succi0303/items/32560103190436c9435b
|
6
|
+
|
7
|
+
* GOOGLE: https://www.google.co.jp/ , google. RUBYGEMS https://rubygems.org/ , rubygems
|
8
|
+
[2016-07-13]http://qiita.com/kazukikudo/items/703d6e6664e13882fa0b
|
9
|
+
http://www.02.246.ne.jp/~torutk/linux/centos6/openldap.html
|
@@ -8,7 +8,7 @@ class Madowu::DirectoryMapper
|
|
8
8
|
#
|
9
9
|
#def initialize()
|
10
10
|
#end
|
11
|
-
def self.dirmap(dir)
|
11
|
+
def self.dirmap(dir, with_kakasi = false)
|
12
12
|
results = []
|
13
13
|
md_dir = Pathname.new(dir)
|
14
14
|
|
@@ -25,9 +25,11 @@ class Madowu::DirectoryMapper
|
|
25
25
|
results << ""
|
26
26
|
current_entries = []
|
27
27
|
cur_dir_entries = Dir.entries(md_dir).sort.delete_if{|i| i =~ /^\./}
|
28
|
+
|
29
|
+
links = []
|
28
30
|
cur_dir_entries.each do |i|
|
29
31
|
path = md_dir + i
|
30
|
-
|
32
|
+
filename = i
|
31
33
|
if FileTest.directory?(path)
|
32
34
|
if FileTest.file?(path + "index.md")
|
33
35
|
link_path = (path + "index.html")
|
@@ -39,27 +41,36 @@ class Madowu::DirectoryMapper
|
|
39
41
|
link_path = path
|
40
42
|
title = nil
|
41
43
|
end
|
42
|
-
|
44
|
+
filename += "/"
|
43
45
|
else
|
44
46
|
if path.fnmatch?('*.md')
|
45
47
|
link_path = Pathname.new(path.sub_ext('.html'))
|
46
|
-
|
48
|
+
filename = link_path
|
47
49
|
title = self.get_title((path.to_s))
|
48
50
|
elsif path.fnmatch?('*.html')
|
49
51
|
next if FileTest.exist? (path.sub_ext('.md'))
|
50
52
|
link_path = Pathname.new(path.sub_ext('.html'))
|
51
53
|
title = self.get_title(path.to_s)
|
52
54
|
else
|
53
|
-
#link_path = path
|
54
|
-
#title = nil
|
55
55
|
next
|
56
56
|
end
|
57
57
|
end
|
58
58
|
link_path = link_path.to_s.sub(/^#{md_dir}\//, '')
|
59
|
-
|
60
|
-
|
61
|
-
line
|
62
|
-
|
59
|
+
filename = filename.to_s.sub(/^#{md_dir}\//, '')
|
60
|
+
title = " (#{filename})" if title.to_s.empty?
|
61
|
+
#line = "* [#{title}](#{link_path})"
|
62
|
+
links << [link_path, title]
|
63
|
+
end
|
64
|
+
|
65
|
+
links = links.sort_by do |path, title|
|
66
|
+
if with_kakasi
|
67
|
+
`echo #{title} | nkf -e | kakasi -JH |nkf -w`
|
68
|
+
else
|
69
|
+
title
|
70
|
+
end
|
71
|
+
end
|
72
|
+
links.each do |path, title|
|
73
|
+
results << "* [#{title}](#{path})"
|
63
74
|
end
|
64
75
|
#results << "</ul>"
|
65
76
|
results
|
data/madowu.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: madowu 0.0.
|
5
|
+
# stub: madowu 0.0.7 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "madowu"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.7"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["ippei94da"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-07-13"
|
15
15
|
s.description = "Markdown to HTML with table of contents, sidebar to neighboring directories."
|
16
16
|
s.email = "ippei94da@gmail.com"
|
17
17
|
s.executables = ["dirmap", "isbninfo", "madowu", "tex2image", "urltitle"]
|
@@ -73,6 +73,12 @@ Gem::Specification.new do |s|
|
|
73
73
|
"test/directorymapper/empty.md",
|
74
74
|
"test/directorymapper/file1.md",
|
75
75
|
"test/directorymapper/head.md",
|
76
|
+
"test/directorymapper/japanese/hayasu.md",
|
77
|
+
"test/directorymapper/japanese/kiito.md",
|
78
|
+
"test/directorymapper/japanese/nama.md",
|
79
|
+
"test/directorymapper/japanese/seimei.md",
|
80
|
+
"test/directorymapper/japanese/shougai.md",
|
81
|
+
"test/directorymapper/japanese/umareru.md",
|
76
82
|
"test/directorymapper/title.html",
|
77
83
|
"test/empty.md",
|
78
84
|
"test/head.md",
|
@@ -95,27 +101,30 @@ Gem::Specification.new do |s|
|
|
95
101
|
s.specification_version = 4
|
96
102
|
|
97
103
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
98
|
-
s.add_development_dependency(%q<test-unit>, ["~> 3.
|
104
|
+
s.add_development_dependency(%q<test-unit>, ["~> 3.2"])
|
99
105
|
s.add_development_dependency(%q<rdoc>, ["~> 4.2"])
|
100
106
|
s.add_development_dependency(%q<bundler>, ["~> 1.11"])
|
101
107
|
s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
|
102
108
|
s.add_development_dependency(%q<simplecov>, ["~> 0.11"])
|
103
109
|
s.add_development_dependency(%q<amazon-ecs>, ["~> 2.4"])
|
110
|
+
s.add_development_dependency(%q<tefil>, ["~> 0.1"])
|
104
111
|
else
|
105
|
-
s.add_dependency(%q<test-unit>, ["~> 3.
|
112
|
+
s.add_dependency(%q<test-unit>, ["~> 3.2"])
|
106
113
|
s.add_dependency(%q<rdoc>, ["~> 4.2"])
|
107
114
|
s.add_dependency(%q<bundler>, ["~> 1.11"])
|
108
115
|
s.add_dependency(%q<jeweler>, ["~> 2.0"])
|
109
116
|
s.add_dependency(%q<simplecov>, ["~> 0.11"])
|
110
117
|
s.add_dependency(%q<amazon-ecs>, ["~> 2.4"])
|
118
|
+
s.add_dependency(%q<tefil>, ["~> 0.1"])
|
111
119
|
end
|
112
120
|
else
|
113
|
-
s.add_dependency(%q<test-unit>, ["~> 3.
|
121
|
+
s.add_dependency(%q<test-unit>, ["~> 3.2"])
|
114
122
|
s.add_dependency(%q<rdoc>, ["~> 4.2"])
|
115
123
|
s.add_dependency(%q<bundler>, ["~> 1.11"])
|
116
124
|
s.add_dependency(%q<jeweler>, ["~> 2.0"])
|
117
125
|
s.add_dependency(%q<simplecov>, ["~> 0.11"])
|
118
126
|
s.add_dependency(%q<amazon-ecs>, ["~> 2.4"])
|
127
|
+
s.add_dependency(%q<tefil>, ["~> 0.1"])
|
119
128
|
end
|
120
129
|
end
|
121
130
|
|
@@ -12,20 +12,35 @@ class TC_Klass < Test::Unit::TestCase
|
|
12
12
|
#end
|
13
13
|
|
14
14
|
def test_map
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
#correct << "
|
26
|
-
#
|
15
|
+
correct = []
|
16
|
+
correct << "Parent directory:"
|
17
|
+
correct << ""
|
18
|
+
correct << "* [../](../)"
|
19
|
+
correct << ""
|
20
|
+
correct << "Current directory:"
|
21
|
+
correct << ""
|
22
|
+
correct << "* [dir index md](dir/index.html)"
|
23
|
+
correct << "* [foo md](foo.html)"
|
24
|
+
correct << "* [title index.html](index.html)"
|
25
|
+
#correct << "* [dir/](dir/index.html) (dir index md)"
|
26
|
+
#correct << "* [foo.html](foo.html) (foo md)"
|
27
|
+
#correct << "* [index.html](index.html) (title index.html)"
|
28
|
+
assert_equal(correct, Madowu::DirectoryMapper.dirmap("test/directorymapper/dir2"))
|
27
29
|
|
28
|
-
|
30
|
+
correct = []
|
31
|
+
correct << "Parent directory:"
|
32
|
+
correct << ""
|
33
|
+
correct << "* [../](../)"
|
34
|
+
correct << ""
|
35
|
+
correct << "Current directory:"
|
36
|
+
correct << ""
|
37
|
+
correct << "* [生、なま](nama.html)"
|
38
|
+
correct << "* [生まれる、うまれる](umareru.html)"
|
39
|
+
correct << "* [生やす、はやす](hayasu.html)"
|
40
|
+
correct << "* [生命、せいめい](seimei.html)"
|
41
|
+
correct << "* [生涯、しょうがい](shougai.html)"
|
42
|
+
correct << "* [生糸、きいと](kiito.html)"
|
43
|
+
assert_equal(correct, Madowu::DirectoryMapper.dirmap("test/directorymapper/japanese"))
|
29
44
|
|
30
45
|
correct = []
|
31
46
|
correct << "Parent directory:"
|
@@ -34,12 +49,17 @@ class TC_Klass < Test::Unit::TestCase
|
|
34
49
|
correct << ""
|
35
50
|
correct << "Current directory:"
|
36
51
|
correct << ""
|
37
|
-
correct << "* [
|
38
|
-
correct << "* [
|
39
|
-
correct << "* [
|
40
|
-
|
52
|
+
correct << "* [生まれる、うまれる](umareru.html)"
|
53
|
+
correct << "* [生糸、きいと](kiito.html)"
|
54
|
+
correct << "* [生涯、しょうがい](shougai.html)"
|
55
|
+
correct << "* [生命、せいめい](seimei.html)"
|
56
|
+
correct << "* [生、なま](nama.html)"
|
57
|
+
correct << "* [生やす、はやす](hayasu.html)"
|
58
|
+
assert_equal(correct, Madowu::DirectoryMapper.dirmap("test/directorymapper/japanese", true))
|
41
59
|
end
|
42
60
|
|
61
|
+
|
62
|
+
|
43
63
|
def test_get_title
|
44
64
|
# markdown without heading
|
45
65
|
#assert_equal('empty.html',
|
@@ -48,7 +68,7 @@ class TC_Klass < Test::Unit::TestCase
|
|
48
68
|
)
|
49
69
|
|
50
70
|
# markdown without heading
|
51
|
-
|
71
|
+
|
52
72
|
assert_equal('head',
|
53
73
|
Madowu::DirectoryMapper.get_title('test/directorymapper/head.md')
|
54
74
|
)
|
@@ -62,8 +82,6 @@ class TC_Klass < Test::Unit::TestCase
|
|
62
82
|
assert_equal('dir1/',
|
63
83
|
Madowu::DirectoryMapper.get_title('test/directorymapper/dir1')
|
64
84
|
)
|
65
|
-
|
66
|
-
|
67
85
|
end
|
68
86
|
|
69
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: madowu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ippei94da
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.2'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '2.4'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: tefil
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.1'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.1'
|
97
111
|
description: Markdown to HTML with table of contents, sidebar to neighboring directories.
|
98
112
|
email: ippei94da@gmail.com
|
99
113
|
executables:
|
@@ -160,6 +174,12 @@ files:
|
|
160
174
|
- test/directorymapper/empty.md
|
161
175
|
- test/directorymapper/file1.md
|
162
176
|
- test/directorymapper/head.md
|
177
|
+
- test/directorymapper/japanese/hayasu.md
|
178
|
+
- test/directorymapper/japanese/kiito.md
|
179
|
+
- test/directorymapper/japanese/nama.md
|
180
|
+
- test/directorymapper/japanese/seimei.md
|
181
|
+
- test/directorymapper/japanese/shougai.md
|
182
|
+
- test/directorymapper/japanese/umareru.md
|
163
183
|
- test/directorymapper/title.html
|
164
184
|
- test/empty.md
|
165
185
|
- test/head.md
|