ZMediumToMarkdown 1.7.1 → 1.7.2

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/lib/ZMediumFetcher.rb +7 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa026cbea9d117e46a188297165e98602f40a32862699ff9cfb28da67002bfd1
4
- data.tar.gz: 06a512791cef282c8fd5ccd1d587dc851e6223f5ca7f9659a846c0800aecc618
3
+ metadata.gz: 2ad7d4aaa279746048959177dd44d856a0ea2bdd5e7abafe0a17bb91c1fa270c
4
+ data.tar.gz: 190cf803221cc22ce226a0d2ce75209a561defde7223b156a373af1e510b730c
5
5
  SHA512:
6
- metadata.gz: 4bb69819a9591b7fa9056cbf12a97b26148e98a5e8e4d3a9155ff6e77f4416e5755326b83ac562d30a3b961b49db6501c9ce729687dec1d6e7d54ab0ccec3b10
7
- data.tar.gz: 13479a388652bfa137c01a6d02300f30fe0b66402aca6b240b29a4d6bd653349b066b3e478420224ef07bb15eb9052a46a73e76d06d83bc494a6ef49ac8dc020
6
+ metadata.gz: 1c38796a2d4f3a3b3e88af2ee3da95af37828a8cc112f10694ee50cba21ed916aeae5bfcde075714fbc51c9b93cdc3595e7cab2672a21bbb7c58ed1bd2ed7d07
7
+ data.tar.gz: a82fbc482dff1902662076964c2eb76f14b1bb69c694257e80ba64755a99d3af38f6a4ff47fa085c0f71cb3c466e6cfe6389f93334ac9775e1bd0f8d49198356
@@ -303,10 +303,15 @@ class ZMediumFetcher
303
303
  progress.message = "Downloading posts..."
304
304
  progress.printLog()
305
305
 
306
- userPathPolicy = PathPolicy.new(pathPolicy.getAbsolutePath(nil), "users/#{username}")
306
+ if isForJekyll
307
+ downloadPathPolicy = pathPolicy
308
+ else
309
+ downloadPathPolicy = PathPolicy.new(pathPolicy.getAbsolutePath(nil), "users/#{username}")
310
+ end
311
+
307
312
  index = 0
308
313
  postURLS.each do |postURL|
309
- downloadPost(postURL, userPathPolicy)
314
+ downloadPost(postURL, downloadPathPolicy)
310
315
 
311
316
  index += 1
312
317
  progress.currentPostIndex = index
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZMediumToMarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-10 00:00:00.000000000 Z
11
+ date: 2022-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri