ZMediumToMarkdown 1.3.3 → 1.3.6
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/bin/ZMediumToMarkdown +2 -0
- data/lib/Helper.rb +3 -4
- 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: c815f04ee4499e934b2b534a57f7ad23181c2154f2b016b168b6d0381db71f8c
|
|
4
|
+
data.tar.gz: 3b75189faafff983fe756362e0d4111e47cfbfb95a14f4ac725cfb14144acda3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d333e8ede2802b5d3f27dd2b0595bee9f45cab77862ba3ff3e5e1b9c8f79a6e582f2e532c066934784b94105dbf7a2334a5ec8e63f261658d2690c191ee8064
|
|
7
|
+
data.tar.gz: 3206dbdffe8ce77c385ae0a56fb4e7f5cc2e87377c47511b16433b3c94f626bf9f07b97f1320376bc93774255236957178b8ece0a3ab55a821ac5d4ae770eaf2
|
data/bin/ZMediumToMarkdown
CHANGED
|
@@ -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
|
@@ -107,14 +107,13 @@ class Helper
|
|
|
107
107
|
|
|
108
108
|
def self.getLocalVersionFromGemspec()
|
|
109
109
|
rootPath = File.expand_path('../', File.dirname(__FILE__))
|
|
110
|
-
gemspecFile = File.read("#{rootPath}/ZMediumToMarkdown.gemspec")
|
|
111
|
-
|
|
112
110
|
|
|
113
111
|
result = nil
|
|
114
|
-
if File.file?(
|
|
112
|
+
if File.file?("#{rootPath}/ZMediumToMarkdown.gemspec")
|
|
113
|
+
gemspecContent = File.read("#{rootPath}/ZMediumToMarkdown.gemspec")
|
|
115
114
|
result = gemspecContent[/(gem\.version){1}\s+(\=)\s+(\'){1}(\d+(\.){1}\d+(\.){1}\d+){1}(\'){1}/, 4]
|
|
116
115
|
else
|
|
117
|
-
result = Gem.loaded_specs["ZMediumToMarkdown"].version
|
|
116
|
+
result = Gem.loaded_specs["ZMediumToMarkdown"].version.version
|
|
118
117
|
end
|
|
119
118
|
|
|
120
119
|
if !result.nil?
|