ZMediumToMarkdown 2.1.3 → 2.1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Post.rb +2 -2
  3. data/lib/Request.rb +2 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef2cfaaf84fa78546e7a2206881c0e2939d069c5deb2495164ca1c302386f89e
4
- data.tar.gz: 815b6ecfa9c52741e17493904697757baeaa5107b276fce63e6641da59381b11
3
+ metadata.gz: 86e5929087cc7fbd4567db3c7e5c54735208388d92673453070e93b585788f33
4
+ data.tar.gz: 0353e4a182eb2470162b314b431f7381f9ed6dff8b99cf930532297bf3b96a82
5
5
  SHA512:
6
- metadata.gz: 1fc077211ea5c2adf6bdec8a1ad685706b2d9ba0a94760d9ad65c6ef4b39a3e8d68a2a5aca441c9ff986006bf91a15e51eb583690268014809014fcd01ee7c88
7
- data.tar.gz: d86bb626242e376406b37704efa2204337226ab712786966dba7dfbf5b1c6d6be9017f1dfe4d7bae514f9a69a87bbd8d23a88cad1f05723adbc7b7f41da929fe
6
+ metadata.gz: 3a12c25f931886137c601ab7e840d6acecc654d3c3bc405272ee1d0d78d8fba14d1aa8948ef46c3462ff13907fcb0a6a19bff44c7012122fb846c0797bf50bd9
7
+ data.tar.gz: 2dda8f8bf3e82dcb8a5a59c2fb01ae24e91dd6c292bdf31cb22a0f65ab3ada6dcee2a1647f24f72ca04dac6011e2d816f87f71082e1e5be883c7f98dbcab0701
data/lib/Post.rb CHANGED
@@ -61,8 +61,8 @@ class Post
61
61
 
62
62
  def self.parsePostInfoFromPostContent(content, postID, pathPolicy)
63
63
  postInfo = PostInfo.new()
64
- postInfo.description = content&.dig("Post:#{postID}", "previewContent", "subtitle")
65
- postInfo.title = content&.dig("Post:#{postID}", "title")
64
+ postInfo.description = content&.dig("Post:#{postID}", "previewContent", "subtitle")&.gsub(/[^[:print:]]/ , '')
65
+ postInfo.title = content&.dig("Post:#{postID}", "title")&.gsub(/[^[:print:]]/ , '')
66
66
  postInfo.tags = content&.dig("Post:#{postID}", "tags").map{ |tag| tag["__ref"].gsub! 'Tag:', '' }
67
67
 
68
68
  previewImage = content&.dig("Post:#{postID}", "previewImage", "__ref")
data/lib/Request.rb CHANGED
@@ -33,7 +33,8 @@ class Request
33
33
  if !location.match? /^(http)/
34
34
  location = "#{uri.scheme}://#{uri.host}#{location}"
35
35
  end
36
- response = self.URL(location, method, data)
36
+
37
+ response = self.URL(location, method, data, retryCount)
37
38
  end
38
39
  end
39
40
  rescue
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: 2.1.3
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-17 00:00:00.000000000 Z
11
+ date: 2023-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri