ZMediumToMarkdown 1.3.4 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ZMediumToMarkdown +3 -1
- data/lib/Helper.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: 4be2055916b1bde26c581c7b3eb4c1c68a585ec00586bf4793f4282fa3d1c28d
|
4
|
+
data.tar.gz: 9f761bf65f4d51e3023275987e564703ad16a3f007489f133f1e1e211dcf56cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 193c22b25282eea143a5494ea2d6e1b2c6cfa6e441f1f3492d1465d9843f943f9e335e80fd9c47430a84b0416e6ca64264525516d491e9a2c9f824aede1e20e8
|
7
|
+
data.tar.gz: 183e87f4445049b8c8b5224da5f7f981251655e1cddb085756dc9d8199c3601862d5754beb6c6129b0a656ebacecf801b292d93fd8ae468d402b8a0b76ef8c23
|
data/bin/ZMediumToMarkdown
CHANGED
@@ -13,7 +13,7 @@ class Main
|
|
13
13
|
fetcher = ZMediumFetcher.new
|
14
14
|
ARGV << '-h' if ARGV.empty?
|
15
15
|
|
16
|
-
filePath =
|
16
|
+
filePath = Dir.pwd
|
17
17
|
outputFilePath = PathPolicy.new(filePath, "Output")
|
18
18
|
|
19
19
|
OptionParser.new do |opts|
|
@@ -41,12 +41,14 @@ class Main
|
|
41
41
|
|
42
42
|
opts.on('-c', '--clean', 'Remove all downloaded posts data') do
|
43
43
|
FileUtils.rm_rf(Dir[outputFilePath.getAbsolutePath(nil)])
|
44
|
+
puts "All downloaded posts data has been removed."
|
44
45
|
|
45
46
|
Helper.printNewVersionMessageIfExists()
|
46
47
|
end
|
47
48
|
|
48
49
|
opts.on('-v', '--version', 'Print current ZMediumToMarkdown Version') do
|
49
50
|
puts "Version:#{Helper.getLocalVersionFromGemspec().to_string}"
|
51
|
+
puts "Output Path:#{outputFilePath.getAbsolutePath(nil)}"
|
50
52
|
end
|
51
53
|
|
52
54
|
end.parse!
|
data/lib/Helper.rb
CHANGED
@@ -113,7 +113,7 @@ class Helper
|
|
113
113
|
gemspecContent = File.read("#{rootPath}/ZMediumToMarkdown.gemspec")
|
114
114
|
result = gemspecContent[/(gem\.version){1}\s+(\=)\s+(\'){1}(\d+(\.){1}\d+(\.){1}\d+){1}(\'){1}/, 4]
|
115
115
|
else
|
116
|
-
result = Gem.loaded_specs["ZMediumToMarkdown"].version
|
116
|
+
result = Gem.loaded_specs["ZMediumToMarkdown"].version.version
|
117
117
|
end
|
118
118
|
|
119
119
|
if !result.nil?
|