hiki2md 0.3.1 → 0.3.2
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/Gemfile.lock +1 -1
- data/exe/hiki2md +13 -3
- data/lib/hiki2md/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2eadadcdf955959f37f54812f13450c9857332ef90f6f2cb5f5e5940f8fcfd02
|
|
4
|
+
data.tar.gz: 185d22374c5563f3ced9065bace12d72376a493c464ce3c62a22c64bd533192f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 787a7dddab91db99bbcabb914ba8adbeb6053b81c09ba9da9035a8ae7eb2f76fdb593c1dd1be056cfde9e285685f3b0427af5373b1d9c803c0105144adbdd066
|
|
7
|
+
data.tar.gz: 1c7326e41186265c58b7e80d6d6398e172a9d25ab3ad262bfa732da33229a61746fc1357215d837102a0e61bf6e42871545d324e88cf22078aa9a0e31e3bd939
|
data/Gemfile.lock
CHANGED
data/exe/hiki2md
CHANGED
|
@@ -86,7 +86,7 @@ use_wiki_name = true
|
|
|
86
86
|
preserve_plugins = false
|
|
87
87
|
input_encoding = nil
|
|
88
88
|
|
|
89
|
-
OptionParser.new do |opts|
|
|
89
|
+
option_parser = OptionParser.new do |opts|
|
|
90
90
|
opts.banner = "Usage: hiki2md [options] <file>"
|
|
91
91
|
|
|
92
92
|
opts.on("--interwiki-map PATH", "Path to a YAML file for InterWiki definitions") do |path|
|
|
@@ -112,10 +112,20 @@ OptionParser.new do |opts|
|
|
|
112
112
|
) do |encoding|
|
|
113
113
|
input_encoding = encoding
|
|
114
114
|
end
|
|
115
|
-
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
no_arguments = ARGV.empty?
|
|
118
|
+
option_parser.parse!
|
|
119
|
+
|
|
120
|
+
if no_arguments
|
|
121
|
+
puts option_parser
|
|
122
|
+
exit
|
|
123
|
+
end
|
|
116
124
|
|
|
117
125
|
if ARGV.size != 1
|
|
118
|
-
|
|
126
|
+
warn "hiki2md: expected exactly one input file"
|
|
127
|
+
warn option_parser
|
|
128
|
+
exit 1
|
|
119
129
|
end
|
|
120
130
|
|
|
121
131
|
input_file = ARGV[0]
|
data/lib/hiki2md/version.rb
CHANGED