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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db848f7682345fd76f34c90d5ed1184fc72045fb
4
- data.tar.gz: c4d0905aa90ee12b1c3ba2f878c93e91590650e3
3
+ metadata.gz: bae3c50cc1f794a7fa8ca499c20b7aaa72978ae9
4
+ data.tar.gz: fa99d51038c77515076dcd660c8ba77e9b132cf3
5
5
  SHA512:
6
- metadata.gz: 9a746ee3d6a05df89e43f129f0772afc28ba07496c57334c84f8eab985ae88c02c7c71aa219d9ac7e1bd594b0f773beeed6dee39a571f01d3b72d4265af0a4c4
7
- data.tar.gz: 3783b7bc6c741984e0451d77b27626e4c77fb3838394643c07fd34d6f785a0a4da40d27ee657e4ca0fb713ad95379761661b1f49394d702875f1b004f6fba6c7
6
+ metadata.gz: 790f179eedbc869a429d816e044734d32bf49ce2156052bda9885b05647a82f6ebebc088dd1d346f65ff9fd280482fd349866dddab5bcc3df04db458a8e3f80f
7
+ data.tar.gz: bffc48e54f3410466117b5a7525f4646fdfacfdfa05a245502ce5bf0a3543b402bd143eaca54a16f0c477288e4789f3e064caffe0bc9d72747c37830009d1e7b
@@ -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
- gem 'blogo'
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
- rake blogo:install:migrations
31
- rake db:migrate
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
@@ -36,7 +36,13 @@
36
36
  </div>
37
37
  </div>
38
38
 
39
+ <div class="pure-g-r">
40
+ <div class="pure-u-1-1">
41
+ <%= link_to "Powered by Blogo", Blogo::HOME_PAGE_URL, class: "powered-by" %>
42
+ </div>
43
+ </div>
39
44
  </div>
45
+
40
46
  </div>
41
47
  </body>
42
48
  </html>
@@ -1,4 +1,6 @@
1
1
  require 'blogo/version'
2
+ require 'blogo/constants'
3
+
2
4
  require 'blogo/errors'
3
5
  require 'blogo/engine'
4
6
  require 'blogo/config'
@@ -0,0 +1,4 @@
1
+ module Blogo
2
+ # Used in the gemspec and in the footer for default layout
3
+ HOME_PAGE_URL = "https://github.com/greyblake/blogo"
4
+ end
@@ -1,3 +1,3 @@
1
1
  module Blogo
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -0,0 +1,4 @@
1
+ Creates `config/initializers/blogo.rb` with default Blogo settings.
2
+
3
+ Example:
4
+ rails generate blogo:install
@@ -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.9
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-06-08 00:00:00.000000000 Z
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