wp_conversion 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/wp_conversion/convert.rb +2 -3
- data/lib/wp_conversion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b782e996c739731e27df478b62bca38d87e07611
|
4
|
+
data.tar.gz: 17b56760de552fb2e8b32adab105be73c8d24e7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc1fbec1b1cb9ac1fbad6d63c29a9627f56b55771377f95110282ab55407f60fb5aba639c72fbf1006e0b296347395eb19a99ffe37490f0c10bee5ab8be30da0
|
7
|
+
data.tar.gz: 3a706bf7cc7acb46a703d001ee6e6182ed84c06b98c7a2037a2d2fca153bcc262f4545d3a3079aab26bd2969683dcf263897d439d0a2c4ac035d1e9c5707a3ed
|
data/Gemfile.lock
CHANGED
@@ -29,18 +29,17 @@ module WpConversion
|
|
29
29
|
layout: #{item['post_type']}
|
30
30
|
author: #{item['creator']}
|
31
31
|
date: #{item['post_date']}
|
32
|
-
categories: [#{join_if_array(item['category']).
|
32
|
+
categories: [#{join_if_array(item['category']).downcase}]
|
33
33
|
---
|
34
34
|
# #{item['title']}
|
35
35
|
|
36
36
|
EOT
|
37
37
|
markdown += html_to_markdown(item['encoded'].join)
|
38
|
-
# markdown.tap(&:display)
|
39
38
|
|
40
39
|
end
|
41
40
|
|
42
41
|
def html_to_markdown(html)
|
43
|
-
|
42
|
+
HtmlMassage.markdown(html.gsub(/\n/,"<br />\n")) + "\n\n"
|
44
43
|
end
|
45
44
|
|
46
45
|
def join_if_array(s)
|