ceilingfish-toto 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ceilingfish-toto.gemspec +1 -1
- data/lib/toto.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.4
|
data/ceilingfish-toto.gemspec
CHANGED
data/lib/toto.rb
CHANGED
@@ -67,7 +67,7 @@ module Toto
|
|
67
67
|
|
68
68
|
def archives filter = ""
|
69
69
|
entries = ! self.articles.empty??
|
70
|
-
self.articles.
|
70
|
+
self.articles.select do |a|
|
71
71
|
filter !~ /^\d{4}/ || a.path =~ /^\/#{filter}/
|
72
72
|
end : []
|
73
73
|
|
@@ -79,7 +79,7 @@ module Toto
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def articles ext = self[:ext]
|
82
|
-
Dir["#{Paths[:articles]}/*.#{ext}"].
|
82
|
+
Dir["#{Paths[:articles]}/*.#{ext}"].map do |article|
|
83
83
|
Article.new article, @config
|
84
84
|
end
|
85
85
|
end
|