toto 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/toto.rb +4 -1
- data/toto.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/lib/toto.rb
CHANGED
@@ -195,7 +195,7 @@ module Toto
|
|
195
195
|
else
|
196
196
|
self[:body].match(/(.{1,#{length}}.*?)(\n|\Z)/m).to_s
|
197
197
|
end
|
198
|
-
markdown(sum.length == self[:body].length ? sum : sum.strip.sub(
|
198
|
+
markdown(sum.length == self[:body].length ? sum : sum.strip.sub(/\.\Z/, '…'))
|
199
199
|
end
|
200
200
|
|
201
201
|
def url
|
@@ -283,6 +283,9 @@ module Toto
|
|
283
283
|
@response['Etag'] = Digest::SHA1.hexdigest(response[:body])
|
284
284
|
|
285
285
|
@response.status = response[:status]
|
286
|
+
rescue
|
287
|
+
return [500, {}, []]
|
288
|
+
else
|
286
289
|
@response.finish
|
287
290
|
end
|
288
291
|
end
|
data/toto.gemspec
CHANGED