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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 327b7f9634c689d1232a2e0594c26c5e9c949f68
4
- data.tar.gz: 6dd964531a5d61b3aa8ac3fe7fde947fa72a7ddb
3
+ metadata.gz: b782e996c739731e27df478b62bca38d87e07611
4
+ data.tar.gz: 17b56760de552fb2e8b32adab105be73c8d24e7d
5
5
  SHA512:
6
- metadata.gz: 7ddb96ef601a3c71f4a6efbcc6162be44a2089852d588c5c601786dca2dc252e01471a9b95b28e046e27be51e84723d97c4cfe4d0238dbb964c51ffaf77eaa9b
7
- data.tar.gz: 5dc68ed4eaf4a5bebe5eec78038c55a7a8d03ecd08333002d447b12284ead759c47e0f6becf6cd929aa64e357e2a0ddbda541f04996365147cacccba56340a9b
6
+ metadata.gz: fc1fbec1b1cb9ac1fbad6d63c29a9627f56b55771377f95110282ab55407f60fb5aba639c72fbf1006e0b296347395eb19a99ffe37490f0c10bee5ab8be30da0
7
+ data.tar.gz: 3a706bf7cc7acb46a703d001ee6e6182ed84c06b98c7a2037a2d2fca153bcc262f4545d3a3079aab26bd2969683dcf263897d439d0a2c4ac035d1e9c5707a3ed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wp_conversion (0.1.0)
4
+ wp_conversion (0.1.1)
5
5
  activesupport
6
6
  html_massage
7
7
  methadone (~> 1.3.0)
@@ -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']).tap{|t| debug "#{__FILE__}:#{__LINE__}: output of join_if_array(item['category']): #{t}"}.downcase}]
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
- (HtmlMassage.markdown(html.gsub(/\n/,"<br />\n")) + "\n\n").tap(&:display)
42
+ HtmlMassage.markdown(html.gsub(/\n/,"<br />\n")) + "\n\n"
44
43
  end
45
44
 
46
45
  def join_if_array(s)
@@ -1,3 +1,3 @@
1
1
  module WpConversion
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp_conversion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tamara Temple