jekyll-crosspost-to-medium 0.1.9 → 0.1.10
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.
- checksums.yaml +4 -4
- data/lib/jekyll-crosspost-to-medium.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e83640baadbb7b239e6f6dcff6c03e2403849d47
|
4
|
+
data.tar.gz: eee586a530345029b70e8281d69ef60aea891def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08232d2c5642cfe4681962d9a2ae3e2edbd47f142e886a826b2e885851525a25386e998e73c998b6d02a797127ab1a5d93a4077a9b407746abf99ba8f31895a8
|
7
|
+
data.tar.gz: afa5471f52e0b9014287d2f530135536426fd7674c403d75bc8c8fb9beb3a15456fabf531afa41aec0d6d9761a38f6a05a3d16e6f1c970f435a62c7095ebc6b1
|
@@ -81,7 +81,16 @@ module Jekyll
|
|
81
81
|
crosspost_payload(crossposted, post, content, title, url)
|
82
82
|
end
|
83
83
|
else
|
84
|
-
|
84
|
+
|
85
|
+
# post Jekyll commit 0c0aea3
|
86
|
+
# https://github.com/jekyll/jekyll/commit/0c0aea3ad7d2605325d420a23d21729c5cf7cf88
|
87
|
+
if defined? site.find_converter_instance
|
88
|
+
markdown_converter = @site.find_converter_instance(Jekyll::Converters::Markdown)
|
89
|
+
# Prior to Jekyll commit 0c0aea3
|
90
|
+
else
|
91
|
+
markdown_converter = @site.getConverterImpl(Jekyll::Converters::Markdown)
|
92
|
+
end
|
93
|
+
|
85
94
|
@site.posts.each do |post|
|
86
95
|
|
87
96
|
if ! post.published?
|
@@ -102,6 +111,7 @@ module Jekyll
|
|
102
111
|
title = post.title
|
103
112
|
|
104
113
|
crosspost_payload(crossposted, post, content, title, url)
|
114
|
+
|
105
115
|
end
|
106
116
|
end
|
107
117
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-crosspost-to-medium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Gustafson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " This generator cross-posts entries to Medium. To work, this script
|
14
14
|
requires\n a MEDIUM_USER_ID environment variable and a MEDIUM_INTEGRATION_TOKEN.\n\n
|