buttercms 0.2.7 → 0.2.8

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: fee5a9ca16b49784b489066e79ba202f87bc93ac
4
- data.tar.gz: 6eca210254c638a6605fb0e187d361beb449140a
3
+ metadata.gz: 827873805b5cda153f28104fb2173cd291d693ad
4
+ data.tar.gz: b804daab221eab9edab7ce7c94cb65ae3d0a4751
5
5
  SHA512:
6
- metadata.gz: ae6da0259d7c01f13cb1e75576108334e6c29dd69e9ebe293969d9e5e914c8d87e41f8e3166e6b0ad7fc26ff7e5566b677e9c6f45f32c2a929369d578068003d
7
- data.tar.gz: ba5bb5eacfef7eec16133c3d1c1a4d5237041c0795013996bb3f4b7ee7b49295f3272a9796529b82d301afe154dd510190dca89a8fa21483aacd67bad715c68d
6
+ metadata.gz: 77a9c5938d4f723ef08db102ec5a689c8a580b61523bd0e9feeb300eb31fadc9adc214f4e408804f444d264398c08068542cedf31c58f8fa0dd607ea8d495f82
7
+ data.tar.gz: 0542fdb020fd5d88a34aa8eb2a6c549aae9def0ec14a80fa2a8c13a853a31ed376a2a050787dd01a7bccc1ca02a00efa0afd9d6e4489127fbfeb05dd20eaf7ad
@@ -2,7 +2,9 @@ xml.instruct!
2
2
  xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
3
3
 
4
4
  xml.channel do
5
+ xml.tag! 'atom:link', :rel => 'self', :type => 'application/rss+xml', :href => blog_url + 'rss'
5
6
  xml.title 'Latest blog posts'
7
+ xml.description 'Latest blog posts from ' + blog_url
6
8
  xml.link blog_url
7
9
  xml.language 'en-us'
8
10
 
@@ -11,9 +13,8 @@ xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
11
13
  xml.title post['title']
12
14
  xml.description post['summary']
13
15
  xml.link post['url']
14
- xml.tag!("dc:creator", post['author']['first_name'])
15
16
  xml.guid post['url']
16
- xml.pubDate(post['published'])
17
+ xml.pubDate(Time.parse(post['published']).rfc2822)
17
18
  end
18
19
  end
19
20
  end
data/lib/buttercms.rb CHANGED
@@ -1,9 +1,6 @@
1
1
  require "buttercms/engine"
2
2
 
3
3
  module Buttercms
4
-
5
- # mattr_accessor :parent_controller
6
- # @@parent_controller = "ApplicationController"
7
4
 
8
5
  class << self
9
6
  attr_accessor :configuration
@@ -1,3 +1,3 @@
1
1
  module Buttercms
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
@@ -8,4 +8,9 @@ Buttercms.configure do |config|
8
8
  # For example uncomment the line below and define the layout in /view/layout/blog.html.erb
9
9
  # You can of course also use your existing main application layout.
10
10
  # config.layout = "blog"
11
+
12
+ # Specify a custom parent controller for Butter's BlogController to inherit from.
13
+ # By default Butter inherit's from ApplicationController but you can override this with your own
14
+ # controller and tell Butter to use that with this config option.
15
+ # config.parent_controller = "ApplicationController"
11
16
  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.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ButterCms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-29 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json