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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 688007f2e3e391d0686db1f7470b5da1fc91ef0c00a599a232fe5a464f6ba4f4
4
- data.tar.gz: '05759397474ef5056319be54383284aba0e9b1d3c362200817522fb7dd7f22f8'
3
+ metadata.gz: c815f04ee4499e934b2b534a57f7ad23181c2154f2b016b168b6d0381db71f8c
4
+ data.tar.gz: 3b75189faafff983fe756362e0d4111e47cfbfb95a14f4ac725cfb14144acda3
5
5
  SHA512:
6
- metadata.gz: ff452f958c21c1a9148074511f364578256971d87c98118a83a7e437e9ec66f12af77fee5544994d689fbc2e948bea39d38d58c026b3a59ebc26ccdfdd408d8a
7
- data.tar.gz: be45e3866f248359383fb99cd299f2dd42fcd5b0181f03db68d24c5a9bb7ff61d61182656a83beda6a38f52d01f9e9d86fd187629a13e3922dda9aef2b469d80
6
+ metadata.gz: 4d333e8ede2802b5d3f27dd2b0595bee9f45cab77862ba3ff3e5e1b9c8f79a6e582f2e532c066934784b94105dbf7a2334a5ec8e63f261658d2690c191ee8064
7
+ data.tar.gz: 3206dbdffe8ce77c385ae0a56fb4e7f5cc2e87377c47511b16433b3c94f626bf9f07b97f1320376bc93774255236957178b8ece0a3ab55a821ac5d4ae770eaf2
@@ -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?(gemspecFile)
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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZMediumToMarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi