activeadmin-mongoid-blog 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -5,6 +5,8 @@ Blog app on the top of activeadmin and mongoid, using redactor and select2 plugi
|
|
5
5
|
|
6
6
|
## Quick install
|
7
7
|
|
8
|
+
**IMPORTANT**: Make sure local mongodb instance is running.
|
9
|
+
|
8
10
|
Replace `new_blog` name with the real one and run:
|
9
11
|
|
10
12
|
export project_name=new_blog ; curl https://raw.github.com/alexkravets/activeadmin-mongoid-blog/master/install.sh | sh
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = 'activeadmin-mongoid-blog'
|
6
|
-
gem.version = '0.3.
|
6
|
+
gem.version = '0.3.9'
|
7
7
|
gem.summary = 'Blog app on the top of activeadmin and mongoid, using redactor and select2 plugins.'
|
8
8
|
gem.description = ''
|
9
9
|
gem.license = 'MIT'
|
@@ -1,3 +1,4 @@
|
|
1
|
+
<% if categories.size > 0 %>
|
1
2
|
<ul id="blog_categories_list">
|
2
3
|
<% categories.each do |c| %>
|
3
4
|
<li id="category_<%= c.id %>">
|
@@ -11,6 +12,7 @@
|
|
11
12
|
</li>
|
12
13
|
<% end %>
|
13
14
|
</ul>
|
14
|
-
|
15
15
|
<br/>
|
16
|
+
<% end %>
|
17
|
+
|
16
18
|
<%= link_to "New Category", new_admin_category_path %>
|
data/install.sh
CHANGED
@@ -28,7 +28,8 @@ gem "activeadmin-mongoid"
|
|
28
28
|
|
29
29
|
# Blog
|
30
30
|
gem "mongoid_slug"
|
31
|
-
gem "mongoid_search"
|
31
|
+
#gem "mongoid_search" this uses mongoid 3.x
|
32
|
+
gem "mongoid_search", "~> 0.2.8"
|
32
33
|
gem "nokogiri"
|
33
34
|
gem "select2-rails"
|
34
35
|
gem "redactor-rails", :git => "git://github.com/alexkravets/redactor-rails.git"
|
@@ -62,14 +63,15 @@ rails g bootstrap:install
|
|
62
63
|
|
63
64
|
|
64
65
|
# Add blog settings
|
65
|
-
echo '\
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
66
|
+
echo '\nGeneral:
|
67
|
+
Blog Title:
|
68
|
+
description: You can change blog title with this setting
|
69
|
+
default_value: <%= Rails.application.class.parent_name %>
|
70
|
+
|
71
|
+
Delivered By:
|
72
|
+
description: Link in the footer of the website
|
73
|
+
default_value: (Slate Studio) http://slatestudio.com
|
74
|
+
type: link' >> config/activeadmin_settings.yml
|
73
75
|
|
74
76
|
|
75
77
|
# Tweak application.css.scss
|
@@ -46,12 +46,12 @@ module ActiveAdmin
|
|
46
46
|
|
47
47
|
def add_gems
|
48
48
|
gem "mongoid_slug"
|
49
|
-
gem "mongoid_search"
|
49
|
+
gem "mongoid_search", "~> 0.2.8"
|
50
50
|
gem "nokogiri"
|
51
51
|
gem "activeadmin-mongoid-reorder"
|
52
52
|
gem "activeadmin-settings"
|
53
53
|
gem "redactor-rails", :git => "git://github.com/alexkravets/redactor-rails.git"
|
54
|
-
gem "carrierwave-mongoid", :require =>
|
54
|
+
gem "carrierwave-mongoid", :require => "carrierwave/mongoid"
|
55
55
|
gem "mini_magick"
|
56
56
|
gem "select2-rails"
|
57
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-mongoid-blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ''
|
15
15
|
email: santyor@gmail.com
|
@@ -57,7 +57,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: '0'
|
58
58
|
segments:
|
59
59
|
- 0
|
60
|
-
hash: -
|
60
|
+
hash: -3074535221952281189
|
61
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|