buttercms 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5b10147175b27beca1bc7a9c21bc7689d1e35b0
4
- data.tar.gz: 65b4125680201c559198ba9d8ca22089c1c10c47
3
+ metadata.gz: 327551dc335aae41bf3736ea5a12fe7d408e2e72
4
+ data.tar.gz: d2551f50d1cc81b985df40294edcf896ab97c7c7
5
5
  SHA512:
6
- metadata.gz: 9d73293f6a835331177585be8ade3cc5483cd511dbd38c33647de25a65c570f17125c2574adddaafe3306a202ee2c3d0f71b8e5b66e0f51fbc108f46b13178bc
7
- data.tar.gz: a9dc4350824d9a042d9a0860ec78f07ab5f43aa6fd3592fe0469f1ab25f2313eea4f03f48896ad9b3602edb0a7209b1f85d441ed99e904abe84e65e811e623b7
6
+ metadata.gz: e86cb5ec8f11b6a96dd53536424e9ff1484d8dd126cd5699f8cd420768ac6efc036be42b989e2d4edc0b194c1d1e5964d2bf96db3aaccb7a8899f304de4fbb7a
7
+ data.tar.gz: 9d81a69ca2ce7981d8c97e50473ba7ac4697106e5100dee52730d9e62135f7c8f8ddc793c34539195a4081ed9bb4a50974af7c7ea090d2598926121729c6bb49
@@ -1,5 +1,5 @@
1
1
  xml.instruct!
2
- xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
2
+ xml.rss :version => '2.0', 'xmlns:content' => 'http://purl.org/rss/1.0/modules/content/', 'xmlns:media' => 'http://search.yahoo.com/mrss/', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
3
3
 
4
4
  xml.channel do
5
5
  xml.tag! 'atom:link', :rel => 'self', :type => 'application/rss+xml', :href => blog_url + 'rss'
@@ -11,10 +11,14 @@ xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
11
11
  for post in @recent_posts
12
12
  xml.item do
13
13
  xml.title post['title']
14
- xml.description post['summary']
14
+ xml.tag! "media:content", :medium => "image", :url => post['featured_image']
15
15
  xml.link post['url']
16
16
  xml.guid post['url']
17
17
  xml.pubDate(Date.strptime(post['published'],"%m/%d/%Y").to_time.rfc2822)
18
+ xml.description post['summary']
19
+ xml.tag! "content:encoded" do
20
+ xml.cdata! post['body']
21
+ end
18
22
  end
19
23
  end
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module Buttercms
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buttercms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ButterCms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json