vanilla 1.9.15.2 → 1.9.16
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/vanilla/dynasnips/kind.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ class Kind < Dynasnip
|
|
6
6
|
def handle(kind, limit=10, as=:html)
|
7
7
|
as = as.to_sym
|
8
8
|
snips = app.soup.sieve(:kind => kind)
|
9
|
-
entries = snips.sort_by { |s| s.created_at ||
|
9
|
+
entries = snips.sort_by { |s| s.created_at || Time.at(0) }.reverse[0...limit.to_i].map do |snip|
|
10
10
|
render_entry_in_template(snip, as, kind)
|
11
11
|
end
|
12
12
|
render_entry_collection(snips, entries, as, kind)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vanilla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Adam
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-16 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|