governor_atom 0.1.0 → 0.1.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.
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
|
@@ -8,7 +8,7 @@ atom_feed do |feed|
|
|
|
8
8
|
feed.entry(article) do |entry|
|
|
9
9
|
|
|
10
10
|
entry.title article.title
|
|
11
|
-
entry.summary article.description
|
|
11
|
+
entry.summary(article.description) if article.description.present?
|
|
12
12
|
entry.content truncate(strip_tags(Governor::Formatters.format_article(article)), :length => 100)
|
|
13
13
|
|
|
14
14
|
entry.author do |author|
|
data/governor_atom.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{governor_atom}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Liam Morley"]
|
|
12
|
-
s.date = %q{2011-04-
|
|
12
|
+
s.date = %q{2011-04-26}
|
|
13
13
|
s.description = %q{A plugin for the Rails 3-based Governor blogging system that adds an ATOM feed to a blog.}
|
|
14
14
|
s.email = %q{liam@carpeliam.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -22,6 +22,9 @@ module Governor
|
|
|
22
22
|
it "has the title of the article" do
|
|
23
23
|
response.should have_selector 'feed entry title', :content => 'Some article'
|
|
24
24
|
end
|
|
25
|
+
it "doesn't have a summary if the description is blank" do
|
|
26
|
+
response.should_not have_selector 'feed entry summary'
|
|
27
|
+
end
|
|
25
28
|
it "has the content of the article" do
|
|
26
29
|
response.should have_selector 'feed entry content', :content => "It's about the benjis"
|
|
27
30
|
end
|
data/spec/rails_app/Gemfile.lock
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: governor_atom
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.1.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Liam Morley
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-04-
|
|
18
|
+
date: 2011-04-26 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|