ZMediumToMarkdown 1.3.5 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ZMediumToMarkdown +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc3798f725fa76e3fc223bf24c3f919881f4aa7564e322562951ef84860bc6a5
4
- data.tar.gz: 18fed83cc0fcdc0caa065f25881570dec798b543a9a8f130841b47dde862ced3
3
+ metadata.gz: '047916f49250b0e48700908c765903cb45c934a2b6f8907fbdaf0adc6e07b597'
4
+ data.tar.gz: 7e7ba6e03af72831bd3707ffe9e2d54ef94115ba55993e1647fa8e0b8727ae09
5
5
  SHA512:
6
- metadata.gz: c4531fae8dd6cfb481716e7eeb9e42ba20d92efb3e25490e79910af8b5191c4ac1a33dc463b8b53003044f47b67921506a03b526a22b685a4293797ad5b019b7
7
- data.tar.gz: 758d6dd330075e35d5cb9131462426f411ec81378b6fb4c18504c5ab044f0c282e66be4ed8aab8d694beee35fdd9c5638cd5c8b24bef493b8bb63bbcac9d77ee
6
+ metadata.gz: cf1721121992e4de3bc8659baf19d56b4c9ecbcfadc53d141a8733b4b14e6986dd083ab246adbe77c0852493631fa5547be8b5d6d9084cf82fe1c4aa3e151b9f
7
+ data.tar.gz: 61c54cbde7f3d3b383df1f1038580f7fb8b824677bc809320e115a5df4fa2cf2cd498e204dca21e7afa29f0a0ad713bf4d1ea61403bacd31a1787b8cec9dff24
@@ -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.getwd
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!
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.5
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi