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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a6958e55e7fc557d770b9d79e32b57ea568f2412992d320804ab09ee90f87fb
4
- data.tar.gz: cf3f1b921b9a8e6ba317312ae2e6aa475c58d8e9708b4ebdac7adeae987fdda9
3
+ metadata.gz: 4be2055916b1bde26c581c7b3eb4c1c68a585ec00586bf4793f4282fa3d1c28d
4
+ data.tar.gz: 9f761bf65f4d51e3023275987e564703ad16a3f007489f133f1e1e211dcf56cd
5
5
  SHA512:
6
- metadata.gz: 0d4ba9e0f89578efa9dde620412e5c3cacc86db82d63f2f0ead542d78c14b73fbb7f309a1565325ac9bcce0ef6eb0a10df15810d7e28987a556a6bf018731af1
7
- data.tar.gz: 1faa5c450c7528abbe60f57676e80f0bc39267d1557fabab70abd6ba9589b617d26bf74920885f7f9ab8b61093e2799e3cc7b56e0a6a919ca5a2dbf67d0757c1
6
+ metadata.gz: 193c22b25282eea143a5494ea2d6e1b2c6cfa6e441f1f3492d1465d9843f943f9e335e80fd9c47430a84b0416e6ca64264525516d491e9a2c9f824aede1e20e8
7
+ data.tar.gz: 183e87f4445049b8c8b5224da5f7f981251655e1cddb085756dc9d8199c3601862d5754beb6c6129b0a656ebacecf801b292d93fd8ae468d402b8a0b76ef8c23
@@ -13,7 +13,7 @@ class Main
13
13
  fetcher = ZMediumFetcher.new
14
14
  ARGV << '-h' if ARGV.empty?
15
15
 
16
- filePath = File.expand_path File.dirname(__FILE__)
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?
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.4
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi