ZMediumToMarkdown 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ZMediumToMarkdown +2 -7
- data/lib/ZMediumFetcher.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c5da608d284269b0674c80fdd4fd6d93c825937a8eff28669993b623b5fa414
|
4
|
+
data.tar.gz: 17c83bf6c50f8e35b1defe2b4ac8c212d038ab148e174f863bfff370effeb927
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 315bf2b11ce127d096dfa981c306f6882b8bcb0db975ccc7c36c5365b579b157bf9322649495410177cdad8894e3201aa1fadc392b6bd492cd490049b1c48e9e
|
7
|
+
data.tar.gz: c2455da2a611863c1735eadd0f3a02005804228fcdaa3b588b98c75fcf80a362c609fbdaea684eb085559cd32e679c6a59a250f3fb7e116bb4217957a6dfe230
|
data/bin/ZMediumToMarkdown
CHANGED
@@ -76,7 +76,7 @@ end
|
|
76
76
|
begin
|
77
77
|
puts "#https://github.com/ZhgChgLi/ZMediumToMarkdown"
|
78
78
|
puts "You have read and agree with the Disclaimer."
|
79
|
-
|
79
|
+
Main.new()
|
80
80
|
puts "Execute Successfully!!!"
|
81
81
|
puts "#https://github.com/ZhgChgLi/ZMediumToMarkdown"
|
82
82
|
puts "#Thanks for using this tool."
|
@@ -86,9 +86,4 @@ rescue => e
|
|
86
86
|
puts e.backtrace
|
87
87
|
puts "#Please feel free to open an Issue or submit a fix/contribution via Pull Request on:\n"
|
88
88
|
puts "#https://github.com/ZhgChgLi/ZMediumToMarkdown\n"
|
89
|
-
end
|
90
|
-
|
91
|
-
obj = JSON.parse('{ "id": "e41429008434_63", "name": "35a0", "type": "ULI", "href": null, "layout": null, "metadata": null, "text": "[New] Customer reviews", "hasDropCap": null, "dropCapImage": null, "markups": [ { "type": "A", "start": 6, "end": 22, "href": "https://developer.apple.com/documentation/appstoreconnectapi/app_store/customer_reviews", "anchorType": "LINK", "userId": null, "linkMetadata": null, "__typename": "Markup" }, { "type": "STRONG", "start": 0, "end": 6, "href": null, "anchorType": null, "userId": null, "linkMetadata": null, "__typename": "Markup" } ], "__typename": "Paragraph", "iframe": null, "mixtapeMetadata": null }')
|
92
|
-
p = Paragraph.new(obj, "100")
|
93
|
-
r = MarkupParser.new(p, false)
|
94
|
-
puts r.parse()
|
89
|
+
end
|
data/lib/ZMediumFetcher.rb
CHANGED
@@ -233,7 +233,7 @@ class ZMediumFetcher
|
|
233
233
|
if lines.first.start_with?("---")
|
234
234
|
dateLine = lines.select { |line| line.start_with?("last_modified_at:") }.first
|
235
235
|
if !dateLine.nil?
|
236
|
-
|
236
|
+
fileLatestPublishedAt = Time.parse(dateLine[/^(last_modified_at:)\s+(\S*)/, 2]).to_i
|
237
237
|
end
|
238
238
|
end
|
239
239
|
end
|