carraway 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ababf3434d0e74af988d3d2570089792fb09e156cf1bcce889b7ea64d3bc34d3
4
- data.tar.gz: 8fb1a553ba112358931cb2f463075b04328db67a284c1841f82b07fcaf186bb1
3
+ metadata.gz: 2fa7bf196fef42d4f8131df73bcec5885b3fd0501603495c9e60fde6ca94f288
4
+ data.tar.gz: da4a03acb56e94e169463ade2399f8163afa03afa8333d0282b7c28a4012c75b
5
5
  SHA512:
6
- metadata.gz: 2c9b67264231865ec7f23aa81b40ef53a04fededdffc6d3c466fb979efadba3205f84420690a39d97bc16f8f5122e0998489eb845c07a493f4664521acba86e5
7
- data.tar.gz: b3fe28420dd50f07f8380da2970c66b73a24de348211a22e58c2b3b5b55b2bf66693305511324a0345599243a495714c9461b797d7437d501d454eb121507055
6
+ metadata.gz: dbb157533c82f9cb6b4e18eb713b34f658a879785ecdac0c26aad5830981808c550dee0e0cda5477f26e60eaf0b371852eed4ea6561e4ba5849430034720cb7d
7
+ data.tar.gz: ee328b4c377160bd03d81314279fff864dbd524164e2d887415b86d32ba91340a403b305acb39a8be11e022275c7661d93a60fc55f6b226fafef387e7de94baa
@@ -18,6 +18,9 @@ module Carraway
18
18
  get '/carraway/' do
19
19
  @categories = Category.all
20
20
  @category_posts = Post.all.group_by {|post| post.category.key }
21
+ @category_posts.each do |category, posts|
22
+ posts.sort_by!(&:updated).reverse!
23
+ end
21
24
  erb :top
22
25
  end
23
26
 
@@ -1,3 +1,3 @@
1
1
  module Carraway
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carraway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - adorechic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-05 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor