toto 0.2.1 → 0.2.2
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/VERSION +1 -1
- data/lib/toto.rb +4 -1
- data/test/toto_test.rb +1 -0
- data/toto.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.2
|
data/lib/toto.rb
CHANGED
|
@@ -201,8 +201,11 @@ module Toto
|
|
|
201
201
|
"http://#{(@config[:url].sub("http://", '') + self.path).squeeze('/')}"
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
+
def body
|
|
205
|
+
markdown self[:body].sub(@config[:summary][:delim], '') rescue markdown self[:body]
|
|
206
|
+
end
|
|
207
|
+
|
|
204
208
|
def title() self[:title] || "an article" end
|
|
205
|
-
def body() markdown self[:body] end
|
|
206
209
|
def date() @config[:date, self[:date]] end
|
|
207
210
|
def path() self[:date].strftime("/%Y/%m/%d/#{slug}/") end
|
|
208
211
|
def author() self[:author] || @config[:author] end
|
data/test/toto_test.rb
CHANGED
data/toto.gemspec
CHANGED