tb_blog 1.1.1 → 1.1.2

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
  SHA1:
3
- metadata.gz: 802c108fe17335d97afc54c19b4f96b4290e5955
4
- data.tar.gz: 3eac913036ca3b888fe64e5d487e0c6f946e0074
3
+ metadata.gz: ecb52356b1361df2ea2c5b8515243e4d0d18ae05
4
+ data.tar.gz: a829255d1eee53d9fbb9a45fa9b2777e9037b144
5
5
  SHA512:
6
- metadata.gz: 34caa2105ac16c419d727376e74bcf6e2a4815c84ed303ec409555145c5b2c4352614fd221f0c4c9e7c930c0e6d8fbab32d53f395e0808a77c965051bdba3ee3
7
- data.tar.gz: 8e2b6cd24220aeba585b4b1b7eb866be797c343353bca397bac469ff65d34ffb01009eb0060db8db27681a8f5b199712d52984d2e3186acf65531072a084770b
6
+ metadata.gz: 65552c98ad3fc18794c29b3670d7d70d2d4d4b3886fddaff570dbef7befd9a7f9c815b3df5f8b23a49ddd1f8af435e63db6ce5a13762240a69aba861a23ea846
7
+ data.tar.gz: 46262bed323d60ec7084cecded595c9b91461d85f462bf55c731f68142d0e79a01cdb679d3b4e3bff91462dd0bb13a0838de32297c8a50b7273d3d8291a9baa8
@@ -23,12 +23,18 @@ module Spud
23
23
  Spud::Core.config.sitemap_urls += [:blog_sitemap_url]
24
24
  end
25
25
  if Spud::Blog.config.blog_enabled
26
- Spud::Core.config.admin_applications += [{
26
+ blog_app = {
27
27
  :name => 'Blog Posts',
28
28
  :thumbnail => 'spud/admin/posts_thumb.png',
29
29
  :url => '/admin/posts',
30
30
  :order => 1
31
- }]
31
+ }
32
+ if Spud::Blog.config.default_comment_approval == false
33
+ blog_app[:badge] = ->(user){
34
+ SpudPostComment.where(:approved => false).count()
35
+ }
36
+ end
37
+ Spud::Core.config.admin_applications += [blog_app]
32
38
  end
33
39
  if Spud::Blog.config.news_enabled
34
40
  Spud::Core.config.admin_applications += [{
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Blog
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Westlake Design
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-06 00:00:00.000000000 Z
11
+ date: 2014-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails