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 +4 -4
- data/lib/spud_blog/engine.rb +8 -2
- data/lib/spud_blog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecb52356b1361df2ea2c5b8515243e4d0d18ae05
|
4
|
+
data.tar.gz: a829255d1eee53d9fbb9a45fa9b2777e9037b144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65552c98ad3fc18794c29b3670d7d70d2d4d4b3886fddaff570dbef7befd9a7f9c815b3df5f8b23a49ddd1f8af435e63db6ce5a13762240a69aba861a23ea846
|
7
|
+
data.tar.gz: 46262bed323d60ec7084cecded595c9b91461d85f462bf55c731f68142d0e79a01cdb679d3b4e3bff91462dd0bb13a0838de32297c8a50b7273d3d8291a9baa8
|
data/lib/spud_blog/engine.rb
CHANGED
@@ -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
|
-
|
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 += [{
|
data/lib/spud_blog/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|