blogo 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +13 -5
- data/app/assets/stylesheets/blogo/blog.sass +9 -0
- data/app/views/layouts/blogo/blog.html.erb +6 -0
- data/lib/blogo.rb +2 -0
- data/lib/blogo/constants.rb +4 -0
- data/lib/blogo/version.rb +1 -1
- data/lib/generators/blogo/install/USAGE +4 -0
- data/lib/generators/blogo/install/install_generator.rb +9 -0
- data/lib/generators/blogo/install/templates/initializer.rb +38 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bae3c50cc1f794a7fa8ca499c20b7aaa72978ae9
|
4
|
+
data.tar.gz: fa99d51038c77515076dcd660c8ba77e9b132cf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 790f179eedbc869a429d816e044734d32bf49ce2156052bda9885b05647a82f6ebebc088dd1d346f65ff9fd280482fd349866dddab5bcc3df04db458a8e3f80f
|
7
|
+
data.tar.gz: bffc48e54f3410466117b5a7525f4646fdfacfdfa05a245502ce5bf0a3543b402bd143eaca54a16f0c477288e4789f3e064caffe0bc9d72747c37830009d1e7b
|
data/README.markdown
CHANGED
@@ -15,7 +15,7 @@ Mountable blog engine for Ruby on Rails 4.
|
|
15
15
|
Add the gem to Gemfile of you Rails application:
|
16
16
|
|
17
17
|
```
|
18
|
-
|
18
|
+
gem 'blogo'
|
19
19
|
```
|
20
20
|
|
21
21
|
Install the gem:
|
@@ -24,11 +24,19 @@ Install the gem:
|
|
24
24
|
bundle install
|
25
25
|
```
|
26
26
|
|
27
|
+
Install initializer file:
|
28
|
+
|
29
|
+
```
|
30
|
+
rails generate blogo:install
|
31
|
+
```
|
32
|
+
|
33
|
+
Take a look into `config/initializers/blogo.rb` and configure what you need.
|
34
|
+
|
27
35
|
Install blogo migrations and run them:
|
28
36
|
|
29
37
|
```
|
30
|
-
|
31
|
-
|
38
|
+
rake blogo:install:migrations
|
39
|
+
rake db:migrate
|
32
40
|
```
|
33
41
|
|
34
42
|
|
@@ -44,9 +52,9 @@ Mount the blog routes to you rails application in `config/routes.rb`
|
|
44
52
|
Blogo::Routes.mount_to(self, at: '/blog')
|
45
53
|
```
|
46
54
|
|
47
|
-
Run the rails application and go to http://localhost:3000/blog/admin to create you first post!
|
55
|
+
Run the rails application and go to `http://localhost:3000/blog/admin` to create you first post!
|
48
56
|
|
49
|
-
Go to http://localhost::3000/blog to take a look at your posts.
|
57
|
+
Go to `http://localhost::3000/blog` to take a look at your posts.
|
50
58
|
|
51
59
|
## Features
|
52
60
|
|
@@ -229,3 +229,12 @@ aside
|
|
229
229
|
// Adjust the widths individually if you like
|
230
230
|
.google
|
231
231
|
width: 75px
|
232
|
+
|
233
|
+
a.powered-by
|
234
|
+
display: block
|
235
|
+
color: $link-color
|
236
|
+
text-decoration: none
|
237
|
+
text-align: right
|
238
|
+
font-size: 0.8em
|
239
|
+
&:hover
|
240
|
+
text-decoration: underline
|
data/lib/blogo.rb
CHANGED
data/lib/blogo/version.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Copies initializer file with default settings.
|
2
|
+
class Blogo::InstallGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path('../templates', __FILE__)
|
4
|
+
|
5
|
+
# :nodoc:
|
6
|
+
def copy_initializer_file
|
7
|
+
copy_file "initializer.rb", "config/initializers/blogo.rb"
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
Blogo.configure do |config|
|
2
|
+
# Edit this to match the subject of your blog
|
3
|
+
config.site_title = 'Blogo'
|
4
|
+
config.site_subtitle = 'Mountable blog engine for Ruby on Rails'
|
5
|
+
|
6
|
+
# Supported languages: :html, :markdown
|
7
|
+
config.markup_lang = :html
|
8
|
+
|
9
|
+
config.paginator_size = 3
|
10
|
+
config.posts_per_page = 10
|
11
|
+
config.recent_posts = 3
|
12
|
+
|
13
|
+
# Maybe you do not want to use CKEditor, if you use markdown
|
14
|
+
config.use_ckeditor = true
|
15
|
+
|
16
|
+
config.show_rss_icon = true
|
17
|
+
|
18
|
+
# Keywords that will be added automatically to every page
|
19
|
+
config.keywords = ["blog"]
|
20
|
+
|
21
|
+
# Do not change this once you installed and ran migrations
|
22
|
+
config.table_name_prefix = 'blogo_'
|
23
|
+
|
24
|
+
# Set disqus shortname if you want to your users to have ability to comment
|
25
|
+
# your posts.
|
26
|
+
#
|
27
|
+
# config.disqus_shortname = 'brainv2'
|
28
|
+
|
29
|
+
|
30
|
+
# Put GOOGLE ANALYTICS ID here, if you want to use Google Analytics
|
31
|
+
#
|
32
|
+
# config.google_analytics_id = 'GOOGLE_ID'
|
33
|
+
|
34
|
+
# Uncomment and edit if you want to have icon links to github or twitter
|
35
|
+
#
|
36
|
+
# config.github_username = 'GITHUB_USERNAME'
|
37
|
+
# config.twitter_username = 'TWITTER_USERNAME'
|
38
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blogo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Potapov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -158,6 +158,7 @@ files:
|
|
158
158
|
- db/migrate/20140218134620_create_blogo_taggings.rb
|
159
159
|
- lib/blogo.rb
|
160
160
|
- lib/blogo/config.rb
|
161
|
+
- lib/blogo/constants.rb
|
161
162
|
- lib/blogo/engine.rb
|
162
163
|
- lib/blogo/errors.rb
|
163
164
|
- lib/blogo/paginator.rb
|
@@ -167,6 +168,9 @@ files:
|
|
167
168
|
- lib/blogo/renderer/markdown.rb
|
168
169
|
- lib/blogo/routes.rb
|
169
170
|
- lib/blogo/version.rb
|
171
|
+
- lib/generators/blogo/install/USAGE
|
172
|
+
- lib/generators/blogo/install/install_generator.rb
|
173
|
+
- lib/generators/blogo/install/templates/initializer.rb
|
170
174
|
- lib/tasks/blogo_tasks.rake
|
171
175
|
- vendor/assets/images/blogo/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png
|
172
176
|
- vendor/assets/images/blogo/ckeditor/plugins/about/dialogs/logo_ckeditor.png
|