serious 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/serious.rb +0 -4
- data/lib/site/views/_article.erb +2 -2
- data/lib/site/views/atom.builder +2 -2
- data/serious.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -61,7 +61,7 @@ The config.ru is pretty straight-forward if you want to stick to the defaults:
|
|
61
61
|
The .gems file if you want to host on heroku:
|
62
62
|
|
63
63
|
stupid_formatter --version '>= 0.2.0'
|
64
|
-
serious --version '>= 0.1.
|
64
|
+
serious --version '>= 0.1.3'
|
65
65
|
|
66
66
|
Note that sinatra is not included in the gemfile since heroku has it installed by default, but serious
|
67
67
|
will install it as a gem dependency on other systems as well.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/serious.rb
CHANGED
@@ -19,10 +19,6 @@ class Serious < Sinatra::Base
|
|
19
19
|
end
|
20
20
|
|
21
21
|
helpers do
|
22
|
-
def format(text)
|
23
|
-
StupidFormatter.result(text)
|
24
|
-
end
|
25
|
-
|
26
22
|
# Helper for rendering partial _archives
|
27
23
|
def render_archived(articles)
|
28
24
|
render :erb, :'_archives', :locals => { :articles => articles }, :layout => false
|
data/lib/site/views/_article.erb
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
<h2><a href="<%= article.url %>"><%= article.title %></a></h2>
|
4
4
|
<div class="body">
|
5
5
|
<% if summary_only %>
|
6
|
-
<%=
|
6
|
+
<%= article.summary.formatted %>
|
7
7
|
<% else %>
|
8
|
-
<%=
|
8
|
+
<%= article.body.formatted %>
|
9
9
|
<span class="author right">Written by <%= article.author %></span>
|
10
10
|
<% end %>
|
11
11
|
</div>
|
data/lib/site/views/atom.builder
CHANGED
@@ -13,8 +13,8 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
|
13
13
|
xml.published article.date.to_s
|
14
14
|
xml.updated article.date.to_s
|
15
15
|
xml.author { xml.name article.author }
|
16
|
-
xml.summary
|
17
|
-
xml.content
|
16
|
+
xml.summary article.summary.formatted, "type" => "html"
|
17
|
+
xml.content article.body.formatted, "type" => "html"
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
data/serious.gemspec
CHANGED