blogg 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/app/assets/images/blogg/fallback/about-bg.jpg +0 -0
- data/app/assets/images/blogg/fallback/contact-bg.jpg +0 -0
- data/app/assets/images/blogg/fallback/default-image-header.jpg +0 -0
- data/app/assets/images/blogg/fallback/post-bg.jpg +0 -0
- data/app/assets/images/blogg/fallback/post-sample-image.jpg +0 -0
- data/app/assets/javascripts/blogg/application.js +2 -13
- data/app/assets/javascripts/blogg/bootstrap.js +2363 -0
- data/app/assets/javascripts/blogg/scripts.js.coffee +23 -0
- data/app/assets/stylesheets/blogg/application.sass +3 -0
- data/app/assets/stylesheets/blogg/bootstrap.css +6760 -0
- data/app/assets/stylesheets/blogg/style.sass +345 -0
- data/app/controllers/blogg/application_controller.rb +12 -0
- data/app/controllers/blogg/posts_controller.rb +21 -75
- data/app/helpers/blogg/application_helper.rb +29 -0
- data/app/models/blogg/post.rb +42 -1
- data/app/models/user_ability.rb +37 -0
- data/app/uploaders/blogg/image_uploader.rb +26 -0
- data/app/views/blogg/posts/_form.html.haml +46 -0
- data/app/views/blogg/posts/edit.html.haml +6 -0
- data/app/views/blogg/posts/index.html.haml +30 -0
- data/app/views/blogg/posts/new.html.haml +6 -0
- data/app/views/blogg/posts/show.html.haml +38 -0
- data/app/views/blogg/shared/_disqus_thread.html.haml +17 -0
- data/app/views/blogg/shared/_flash_messages.html.haml +5 -0
- data/app/views/blogg/shared/_footer.html.haml +6 -0
- data/app/views/blogg/shared/_header.html.haml +11 -0
- data/app/views/blogg/shared/_nav.html.haml +15 -0
- data/app/views/blogg/shared/_posted_by.html.haml +1 -0
- data/app/views/blogg/shared/_social.html.haml +7 -0
- data/app/views/layouts/blogg/application.haml +34 -0
- data/config/blogg/initializers/meta_tags.rb +6 -0
- data/config/locales/blogg.en.yml +21 -0
- data/config/locales/blogg.ru.yml +21 -0
- data/config/locales/blogg.uk.yml +21 -0
- data/db/migrate/20151127175927_add_author_id_to_blogg_posts.rb +5 -0
- data/db/migrate/20151128104131_add_subtitle_to_blogg_posts.rb +5 -0
- data/db/migrate/20151130232512_add_image_to_blogg_posts.rb +5 -0
- data/db/migrate/20151204181631_add_slug_to_blogg_post.rb +6 -0
- data/db/migrate/20151206194451_add_static_to_blogg_posts.rb +5 -0
- data/lib/blogg/engine.rb +1 -0
- data/lib/blogg/version.rb +1 -1
- data/lib/blogg.rb +40 -0
- metadata +229 -24
- data/app/assets/javascripts/blogg/posts.js +0 -2
- data/app/assets/stylesheets/blogg/application.css +0 -13
- data/app/assets/stylesheets/blogg/posts.css +0 -4
- data/app/assets/stylesheets/scaffold.css +0 -56
- data/app/views/blogg/posts/_form.html.erb +0 -25
- data/app/views/blogg/posts/edit.html.erb +0 -6
- data/app/views/blogg/posts/index.html.erb +0 -25
- data/app/views/blogg/posts/new.html.erb +0 -5
- data/app/views/blogg/posts/show.html.erb +0 -15
- data/app/views/layouts/blogg/application.html.erb +0 -14
@@ -0,0 +1,38 @@
|
|
1
|
+
- set_meta_tags title: resource.title,
|
2
|
+
og: { title: resource.title, type: 'article', url: post_url(resource), image: request.protocol + request.host_with_port + resource.image.url }
|
3
|
+
|
4
|
+
- if Blogg.google_plus_profile
|
5
|
+
- set_meta_tags author: Blogg.google_plus_profile, publisher: Blogg.google_plus_profile
|
6
|
+
|
7
|
+
|
8
|
+
= render 'blogg/shared/header', post: resource
|
9
|
+
.container
|
10
|
+
.row
|
11
|
+
.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
|
12
|
+
= render 'blogg/shared/flash_messages'
|
13
|
+
%p= markdown resource.text
|
14
|
+
- if can? :manage, resource
|
15
|
+
%p.post-actions.text-right
|
16
|
+
= link_to edit_post_path(resource) do
|
17
|
+
%i.fa.fa-edit
|
18
|
+
= t('blogg.posts.actions.edit')
|
19
|
+
- if resource.is_article?
|
20
|
+
%ul.pager
|
21
|
+
- if resource.prev
|
22
|
+
%li.prev
|
23
|
+
= link_to resource.prev, title: resource.prev.title do
|
24
|
+
%i.fa.fa-angle-double-left
|
25
|
+
= resource.prev.title.truncate(25)
|
26
|
+
- if resource.next
|
27
|
+
%li.next
|
28
|
+
= link_to resource.next, title: resource.next.title do
|
29
|
+
= resource.next.title.truncate(25)
|
30
|
+
%i.fa.fa-angle-double-right
|
31
|
+
%hr
|
32
|
+
.text-center
|
33
|
+
= link_to root_path, title: t('blogg.posts.actions.back') do
|
34
|
+
%span.fa-stack.fa-lg
|
35
|
+
%i.fa.fa-circle.fa-stack-2x
|
36
|
+
%i.fa.fa-home.fa-stack-1x.fa-inverse
|
37
|
+
|
38
|
+
= render 'blogg/shared/disqus_thread', post: resource if Blogg.disqus
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#disqus_thread
|
2
|
+
:javascript
|
3
|
+
var disqus_config = function () {
|
4
|
+
// this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
|
5
|
+
this.page.identifier = 'post_#{post.created_at.to_i}'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
6
|
+
};
|
7
|
+
(function() { // DON'T EDIT BELOW THIS LINE
|
8
|
+
var d = document, s = d.createElement('script');
|
9
|
+
|
10
|
+
s.src = '//#{Blogg.disqus_url}/embed.js';
|
11
|
+
|
12
|
+
s.setAttribute('data-timestamp', +new Date());
|
13
|
+
(d.head || d.body).appendChild(s);
|
14
|
+
})();
|
15
|
+
%noscript
|
16
|
+
Please enable JavaScript to view the
|
17
|
+
%a{:href => "https://disqus.com/?ref_noscript", :rel => "nofollow"} comments powered by Disqus.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
%header.intro-header{:style => "background-image: url('#{post ? post.image_url : asset_path('blogg/fallback/default-image-header.jpg')}')"}
|
2
|
+
.container
|
3
|
+
.row
|
4
|
+
.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
|
5
|
+
%div{class: post ? 'post-heading' : 'site-heading'}
|
6
|
+
%h1= post ? post.title : Blogg.blog_title
|
7
|
+
- unless post
|
8
|
+
%hr.small
|
9
|
+
%span.subheading= post ? post.subtitle : Blogg.blog_description
|
10
|
+
- if post && !post.is_static?
|
11
|
+
%span.meta= render 'blogg/shared/posted_by', post: post
|
@@ -0,0 +1,15 @@
|
|
1
|
+
%nav.navbar.navbar-default.navbar-custom.navbar-fixed-top
|
2
|
+
.container-fluid
|
3
|
+
.navbar-header.page-scroll
|
4
|
+
%button.navbar-toggle{"data-target" => "#bs-example-navbar-collapse-1", "data-toggle" => "collapse", :type => "button"}
|
5
|
+
%span.sr-only Toggle navigation
|
6
|
+
%span.icon-bar
|
7
|
+
%span.icon-bar
|
8
|
+
%span.icon-bar
|
9
|
+
%a.navbar-brand{href: Blogg.brand_url.present? ? Blogg.brand_url : root_path}= Blogg.brand_text
|
10
|
+
#bs-example-navbar-collapse-1.collapse.navbar-collapse
|
11
|
+
%ul.nav.navbar-nav.navbar-right
|
12
|
+
%li
|
13
|
+
= link_to t('blogg.navigation.home'), root_path
|
14
|
+
- Blogg::Post.static.each do |static_page|
|
15
|
+
%li= link_to static_page.title, static_page
|
@@ -0,0 +1 @@
|
|
1
|
+
#{t('blogg.posts.posted_by')} #{post.author} | #{l(post.author.created_at.to_date, format: :long)}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
!!!
|
2
|
+
/[if lt IE 7] <html lang="en" class="no-js ie6">
|
3
|
+
/[if IE 7 ] <html lang="en" class="no-js ie7">
|
4
|
+
/[if IE 8 ] <html lang="en" class="no-js ie8">
|
5
|
+
/[if IE 9 ] <html lang="en" class="no-js ie9">
|
6
|
+
%html
|
7
|
+
%head
|
8
|
+
-# = render 'shared/favicon'
|
9
|
+
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}
|
10
|
+
%meta{"http-equiv"=>"X-UA-Compatible", :content=>"IE=edge,chrome=1"}
|
11
|
+
%meta{:charset => "utf-8"}
|
12
|
+
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
|
13
|
+
= csrf_meta_tags
|
14
|
+
= display_meta_tags site: Blogg.blog_title, description: Blogg.blog_description, reverse: true
|
15
|
+
|
16
|
+
= stylesheet_link_tag 'blogg/application'
|
17
|
+
- if Rails.env.production?
|
18
|
+
= render 'shared/ga'
|
19
|
+
= javascript_include_tag 'blogg/application'
|
20
|
+
%link{:href => "http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic&subset=latin,cyrillic", :rel => "stylesheet", :type => "text/css"}
|
21
|
+
%link{:href => "http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic", :rel => "stylesheet", :type => "text/css"}
|
22
|
+
/ HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries
|
23
|
+
/ WARNING: Respond.js doesn't work if you view the page via file://
|
24
|
+
/[if lt IE 9]
|
25
|
+
%script{:src => "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"}
|
26
|
+
%script{:src => "https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"}
|
27
|
+
|
28
|
+
%body
|
29
|
+
= render 'blogg/shared/nav'
|
30
|
+
= yield
|
31
|
+
%hr/
|
32
|
+
= render 'blogg/shared/footer'
|
33
|
+
- if Blogg.disqus
|
34
|
+
%script#dsq-count-scr{ async: "", src: "//#{Blogg.disqus_url}/count.js"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
en:
|
2
|
+
blogg:
|
3
|
+
navigation:
|
4
|
+
home: "Home"
|
5
|
+
posts:
|
6
|
+
posted_by: "Posted by"
|
7
|
+
actions:
|
8
|
+
edit: "Edit"
|
9
|
+
new: "New Post"
|
10
|
+
delete: "Delete"
|
11
|
+
back: "Back"
|
12
|
+
unauthorized:
|
13
|
+
manage:
|
14
|
+
all: "Not authorized to %{action} %{subject}."
|
15
|
+
errors:
|
16
|
+
messages:
|
17
|
+
carrierwave_processing_error: "Cannot resize image."
|
18
|
+
carrierwave_integrity_error: "Not an image."
|
19
|
+
carrierwave_download_error: "Couldn't download image."
|
20
|
+
extension_white_list_error: "You are not allowed to upload %{extension} files, allowed types: %{allowed_types}"
|
21
|
+
extension_black_list_error: "You are not allowed to upload %{extension} files, prohibited types: %{prohibited_types}"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
ru:
|
2
|
+
blogg:
|
3
|
+
navigation:
|
4
|
+
home: "Главная"
|
5
|
+
posts:
|
6
|
+
posted_by: "Опубликовано"
|
7
|
+
actions:
|
8
|
+
edit: "Изменить"
|
9
|
+
new: "Новый пост"
|
10
|
+
delete: "Удалить"
|
11
|
+
back: "На главную"
|
12
|
+
unauthorized:
|
13
|
+
manage:
|
14
|
+
all: "Not authorized to %{action} %{subject}."
|
15
|
+
errors:
|
16
|
+
messages:
|
17
|
+
carrierwave_processing_error: "Cannot resize image."
|
18
|
+
carrierwave_integrity_error: "Not an image."
|
19
|
+
carrierwave_download_error: "Couldn't download image."
|
20
|
+
extension_white_list_error: "You are not allowed to upload %{extension} files, allowed types: %{allowed_types}"
|
21
|
+
extension_black_list_error: "You are not allowed to upload %{extension} files, prohibited types: %{prohibited_types}"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
uk:
|
2
|
+
blogg:
|
3
|
+
navigation:
|
4
|
+
home: "Головна"
|
5
|
+
posts:
|
6
|
+
posted_by: "Опублікував"
|
7
|
+
actions:
|
8
|
+
edit: "Редагувати"
|
9
|
+
new: "Нова стаття"
|
10
|
+
delete: "Видалити"
|
11
|
+
back: "На головну"
|
12
|
+
unauthorized:
|
13
|
+
manage:
|
14
|
+
all: "Not authorized to %{action} %{subject}."
|
15
|
+
errors:
|
16
|
+
messages:
|
17
|
+
carrierwave_processing_error: "Cannot resize image."
|
18
|
+
carrierwave_integrity_error: "Not an image."
|
19
|
+
carrierwave_download_error: "Couldn't download image."
|
20
|
+
extension_white_list_error: "You are not allowed to upload %{extension} files, allowed types: %{allowed_types}"
|
21
|
+
extension_black_list_error: "You are not allowed to upload %{extension} files, prohibited types: %{prohibited_types}"
|
data/lib/blogg/engine.rb
CHANGED
data/lib/blogg/version.rb
CHANGED
data/lib/blogg.rb
CHANGED
@@ -1,4 +1,44 @@
|
|
1
1
|
require "blogg/engine"
|
2
2
|
|
3
3
|
module Blogg
|
4
|
+
mattr_accessor :user_class
|
5
|
+
@@user_class = "User"
|
6
|
+
|
7
|
+
mattr_accessor :brand_text
|
8
|
+
@@brand_text = "Blogg"
|
9
|
+
|
10
|
+
mattr_accessor :brand_url
|
11
|
+
@brand_url = ''
|
12
|
+
|
13
|
+
mattr_accessor :blog_title
|
14
|
+
@@blog_title = "The Blogg"
|
15
|
+
|
16
|
+
mattr_accessor :blog_description
|
17
|
+
@@blog_description = "Simple blog in complicated world"
|
18
|
+
|
19
|
+
mattr_accessor :footer_text
|
20
|
+
@@footer_text = "Copyright © The Blogg #{Date.today.year}"
|
21
|
+
|
22
|
+
mattr_accessor :show_social
|
23
|
+
@@show_social = true
|
24
|
+
|
25
|
+
# Social icons set. You can use any key names here listed on http://fontawesome.io/icons/#brand
|
26
|
+
mattr_accessor :social_links
|
27
|
+
@@social_links = {}
|
28
|
+
|
29
|
+
# Full url of google+ profile page for author/publisher meta_tag
|
30
|
+
mattr_accessor :google_plus_profile
|
31
|
+
@@google_plus_profile = ''
|
32
|
+
|
33
|
+
# Enable Disqus comments for your blog posts
|
34
|
+
mattr_accessor :disqus
|
35
|
+
@@disqus = false
|
36
|
+
|
37
|
+
# Your unique Disqus Url, eg. 'awesomeblog.disqus.com'
|
38
|
+
mattr_accessor :disqus_url
|
39
|
+
@@disqus_url = ''
|
40
|
+
|
41
|
+
def self.setup
|
42
|
+
yield self
|
43
|
+
end
|
4
44
|
end
|
metadata
CHANGED
@@ -1,51 +1,232 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blogg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Ponomarenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.2'
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 3.2.13
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ~>
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.2'
|
30
|
-
- -
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.2.13
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: jquery-rails
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: devise
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: cancancan
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.10'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.10'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: inherited_resources
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: responders
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: haml
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: font-awesome-rails
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: carrierwave
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :runtime
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: friendly_id
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 4.0.10
|
152
|
+
type: :runtime
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 4.0.10
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: babosa
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :runtime
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: redcarpet
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :runtime
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: rouge
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
type: :runtime
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: meta-tags
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
208
|
+
type: :runtime
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0'
|
33
215
|
- !ruby/object:Gem::Dependency
|
34
216
|
name: sqlite3
|
35
217
|
requirement: !ruby/object:Gem::Requirement
|
36
218
|
requirements:
|
37
|
-
- - ~>
|
219
|
+
- - "~>"
|
38
220
|
- !ruby/object:Gem::Version
|
39
221
|
version: '0'
|
40
222
|
type: :development
|
41
223
|
prerelease: false
|
42
224
|
version_requirements: !ruby/object:Gem::Requirement
|
43
225
|
requirements:
|
44
|
-
- - ~>
|
226
|
+
- - "~>"
|
45
227
|
- !ruby/object:Gem::Version
|
46
228
|
version: '0'
|
47
|
-
description:
|
48
|
-
system for your rails application
|
229
|
+
description: Design ready SEO optimized customizable blog engine for your rails application
|
49
230
|
email:
|
50
231
|
- mcmegavolt@gmail.com
|
51
232
|
executables: []
|
@@ -55,24 +236,48 @@ files:
|
|
55
236
|
- MIT-LICENSE
|
56
237
|
- README.rdoc
|
57
238
|
- Rakefile
|
239
|
+
- app/assets/images/blogg/fallback/about-bg.jpg
|
240
|
+
- app/assets/images/blogg/fallback/contact-bg.jpg
|
241
|
+
- app/assets/images/blogg/fallback/default-image-header.jpg
|
242
|
+
- app/assets/images/blogg/fallback/post-bg.jpg
|
243
|
+
- app/assets/images/blogg/fallback/post-sample-image.jpg
|
58
244
|
- app/assets/javascripts/blogg/application.js
|
59
|
-
- app/assets/javascripts/blogg/
|
60
|
-
- app/assets/
|
61
|
-
- app/assets/stylesheets/blogg/
|
62
|
-
- app/assets/stylesheets/
|
245
|
+
- app/assets/javascripts/blogg/bootstrap.js
|
246
|
+
- app/assets/javascripts/blogg/scripts.js.coffee
|
247
|
+
- app/assets/stylesheets/blogg/application.sass
|
248
|
+
- app/assets/stylesheets/blogg/bootstrap.css
|
249
|
+
- app/assets/stylesheets/blogg/style.sass
|
63
250
|
- app/controllers/blogg/application_controller.rb
|
64
251
|
- app/controllers/blogg/posts_controller.rb
|
65
252
|
- app/helpers/blogg/application_helper.rb
|
66
253
|
- app/helpers/blogg/posts_helper.rb
|
67
254
|
- app/models/blogg/post.rb
|
68
|
-
- app/
|
69
|
-
- app/
|
70
|
-
- app/views/blogg/posts/
|
71
|
-
- app/views/blogg/posts/
|
72
|
-
- app/views/blogg/posts/
|
73
|
-
- app/views/
|
255
|
+
- app/models/user_ability.rb
|
256
|
+
- app/uploaders/blogg/image_uploader.rb
|
257
|
+
- app/views/blogg/posts/_form.html.haml
|
258
|
+
- app/views/blogg/posts/edit.html.haml
|
259
|
+
- app/views/blogg/posts/index.html.haml
|
260
|
+
- app/views/blogg/posts/new.html.haml
|
261
|
+
- app/views/blogg/posts/show.html.haml
|
262
|
+
- app/views/blogg/shared/_disqus_thread.html.haml
|
263
|
+
- app/views/blogg/shared/_flash_messages.html.haml
|
264
|
+
- app/views/blogg/shared/_footer.html.haml
|
265
|
+
- app/views/blogg/shared/_header.html.haml
|
266
|
+
- app/views/blogg/shared/_nav.html.haml
|
267
|
+
- app/views/blogg/shared/_posted_by.html.haml
|
268
|
+
- app/views/blogg/shared/_social.html.haml
|
269
|
+
- app/views/layouts/blogg/application.haml
|
270
|
+
- config/blogg/initializers/meta_tags.rb
|
271
|
+
- config/locales/blogg.en.yml
|
272
|
+
- config/locales/blogg.ru.yml
|
273
|
+
- config/locales/blogg.uk.yml
|
74
274
|
- config/routes.rb
|
75
275
|
- db/migrate/20151127152905_create_blogg_posts.rb
|
276
|
+
- db/migrate/20151127175927_add_author_id_to_blogg_posts.rb
|
277
|
+
- db/migrate/20151128104131_add_subtitle_to_blogg_posts.rb
|
278
|
+
- db/migrate/20151130232512_add_image_to_blogg_posts.rb
|
279
|
+
- db/migrate/20151204181631_add_slug_to_blogg_post.rb
|
280
|
+
- db/migrate/20151206194451_add_static_to_blogg_posts.rb
|
76
281
|
- lib/blogg.rb
|
77
282
|
- lib/blogg/engine.rb
|
78
283
|
- lib/blogg/version.rb
|
@@ -125,20 +330,20 @@ require_paths:
|
|
125
330
|
- lib
|
126
331
|
required_ruby_version: !ruby/object:Gem::Requirement
|
127
332
|
requirements:
|
128
|
-
- -
|
333
|
+
- - ">="
|
129
334
|
- !ruby/object:Gem::Version
|
130
335
|
version: '0'
|
131
336
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
337
|
requirements:
|
133
|
-
- -
|
338
|
+
- - ">="
|
134
339
|
- !ruby/object:Gem::Version
|
135
340
|
version: '0'
|
136
341
|
requirements: []
|
137
342
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.4.
|
343
|
+
rubygems_version: 2.4.6
|
139
344
|
signing_key:
|
140
345
|
specification_version: 4
|
141
|
-
summary:
|
346
|
+
summary: Design ready SEO optimized customizable blog engine
|
142
347
|
test_files:
|
143
348
|
- test/fixtures/blogg/posts.yml
|
144
349
|
- test/blogg_test.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|