ZMediumToMarkdown 2.1.5 → 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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Post.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94a7ba6ab1c472f3aa523a43e9759a7b6a679c6c96885a64385bd182ea1a9f11
4
- data.tar.gz: e0a26ed5df87ad811c6045d7a7dff7128c00c39039e905eada185dcaede0df9f
3
+ metadata.gz: 86e5929087cc7fbd4567db3c7e5c54735208388d92673453070e93b585788f33
4
+ data.tar.gz: 0353e4a182eb2470162b314b431f7381f9ed6dff8b99cf930532297bf3b96a82
5
5
  SHA512:
6
- metadata.gz: 867ac5286ef4a8ccd43b11380a2da119dc89d80411f456c83040f500db55a741c72bc4319838ab851cbe5523763d68a40eb7173a8a20598c202ac6e77b3f8fea
7
- data.tar.gz: 3643376b627e46802f058271512baa01c2b233222c256cfb948b637302085b1b0d4dadb052e322322286ea401438d870826b15a7bf2a80f29bb1cebdbc4c663a
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")
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: 2.1.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZhgChgLi