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 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.2'
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.3
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
@@ -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
- <%= format article.summary %>
6
+ <%= article.summary.formatted %>
7
7
  <% else %>
8
- <%= format article.body %>
8
+ <%= article.body.formatted %>
9
9
  <span class="author right">Written by <%= article.author %></span>
10
10
  <% end %>
11
11
  </div>
@@ -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 format(article.summary), "type" => "html"
17
- xml.content format(article.body), "type" => "html"
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{serious}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christoph Olszowka"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka