blogg 0.1.0 → 0.1.1
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 +4 -4
- data/Rakefile +2 -5
- data/app/controllers/blogg/application_controller.rb +3 -3
- data/app/controllers/blogg/posts_controller.rb +7 -7
- data/app/helpers/blogg/application_helper.rb +3 -5
- data/app/models/blogg/post.rb +6 -19
- data/app/models/user_ability.rb +3 -4
- data/app/uploaders/blogg/image_uploader.rb +3 -5
- data/app/views/blogg/posts/index.html.haml +2 -2
- data/app/views/blogg/posts/show.html.haml +1 -1
- data/app/views/blogg/shared/_flash_messages.html.haml +6 -5
- data/app/views/blogg/shared/_footer.html.haml +2 -1
- data/app/views/blogg/shared/_header.html.haml +4 -3
- data/app/views/blogg/shared/_nav.html.haml +2 -1
- data/app/views/blogg/shared/_posted_by.html.haml +5 -1
- data/app/views/layouts/blogg/application.haml +3 -1
- data/config/locales/blogg.en.yml +1 -1
- data/config/locales/blogg.ru.yml +5 -0
- data/config/locales/blogg.uk.yml +5 -0
- data/config/routes.rb +1 -1
- data/db/migrate/20151204181631_add_slug_to_blogg_post.rb +1 -1
- data/lib/blogg.rb +10 -6
- data/lib/blogg/engine.rb +2 -1
- data/lib/blogg/version.rb +1 -1
- data/test/blogg_test.rb +1 -1
- data/test/dummy/Rakefile +0 -0
- data/test/dummy/config.ru +1 -1
- data/test/dummy/config/application.rb +2 -3
- data/test/dummy/config/boot.rb +1 -1
- data/test/dummy/config/environments/test.rb +2 -2
- data/test/dummy/config/routes.rb +1 -2
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +2 -3
- data/test/dummy/script/rails +2 -2
- data/test/functional/blogg/posts_controller_test.rb +16 -16
- data/test/integration/navigation_test.rb +0 -1
- data/test/test_helper.rb +4 -4
- metadata +49 -65
- data/test/dummy/log/development.log +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4692a6404c780325060f433391535209d8c161c
|
4
|
+
data.tar.gz: da40afc23abf1a045df5c3e982cff3e75d75ac0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c02365078606dc755bbdbee404ce919c4ad7f1bc650ace1ad6c5b66bd7bf04550431f87b9d84c252152d20129b5d74460e7e4fa83d3aefb5bdc16c69b86b9ebb
|
7
|
+
data.tar.gz: 8f4e5ce5a5632823f586f809628c1f4014780e8755fd9696996f71b6a86084b5f08a41c44eef45290c79eef344347ed94fcf3e6833e51e6722ddd12166793443
|
data/Rakefile
CHANGED
@@ -20,11 +20,9 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
23
|
-
APP_RAKEFILE = File.expand_path(
|
23
|
+
APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__)
|
24
24
|
load 'rails/tasks/engine.rake'
|
25
25
|
|
26
|
-
|
27
|
-
|
28
26
|
Bundler::GemHelper.install_tasks
|
29
27
|
|
30
28
|
require 'rake/testtask'
|
@@ -36,5 +34,4 @@ Rake::TestTask.new(:test) do |t|
|
|
36
34
|
t.verbose = false
|
37
35
|
end
|
38
36
|
|
39
|
-
|
40
|
-
task :default => :test
|
37
|
+
task default: :test
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module Blogg
|
2
|
+
#
|
2
3
|
class ApplicationController < ActionController::Base
|
3
|
-
|
4
4
|
rescue_from CanCan::AccessDenied do |exception|
|
5
5
|
respond_to do |format|
|
6
|
-
format.html { redirect_to root_url, :
|
6
|
+
format.html { redirect_to root_url, alert: exception.message }
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
|
-
# layout
|
10
|
+
# layout 'blogg/application'
|
11
11
|
|
12
12
|
def current_ability
|
13
13
|
@current_ability ||= UserAbility.new(current_user)
|
@@ -1,26 +1,27 @@
|
|
1
|
-
require_dependency
|
1
|
+
require_dependency 'blogg/application_controller'
|
2
2
|
|
3
3
|
module Blogg
|
4
|
+
#
|
4
5
|
class PostsController < ApplicationController
|
5
|
-
|
6
6
|
respond_to :html
|
7
|
+
|
7
8
|
inherit_resources
|
8
9
|
|
9
10
|
load_and_authorize_resource
|
10
|
-
skip_authorize_resource :
|
11
|
+
skip_authorize_resource only: %i[index show]
|
11
12
|
|
12
13
|
def destroy
|
13
|
-
destroy!(:
|
14
|
+
destroy!(notice: 'Blog post was successfully deleted.')
|
14
15
|
end
|
15
16
|
|
16
17
|
def update
|
17
|
-
update!(:
|
18
|
+
update!(notice: 'Blog post was successfully updated.')
|
18
19
|
end
|
19
20
|
|
20
21
|
def create
|
21
22
|
@post = Post.new(params[:post])
|
22
23
|
@post.author = current_user
|
23
|
-
create!(:
|
24
|
+
create!(notice: 'Blog post was successfully created.')
|
24
25
|
end
|
25
26
|
|
26
27
|
protected
|
@@ -28,6 +29,5 @@ module Blogg
|
|
28
29
|
def collection
|
29
30
|
end_of_association_chain.articles
|
30
31
|
end
|
31
|
-
|
32
32
|
end
|
33
33
|
end
|
@@ -4,13 +4,12 @@ require 'rouge/plugins/redcarpet'
|
|
4
4
|
|
5
5
|
module Blogg
|
6
6
|
module ApplicationHelper
|
7
|
-
|
8
7
|
class HTML < Redcarpet::Render::HTML
|
9
8
|
include Rouge::Plugins::Redcarpet
|
10
|
-
def rouge_formatter(opts={})
|
11
|
-
opts ={
|
9
|
+
def rouge_formatter(opts = {})
|
10
|
+
opts = {
|
12
11
|
line_numbers: true,
|
13
|
-
wrap: true
|
12
|
+
wrap: true
|
14
13
|
}
|
15
14
|
Rouge::Formatters::HTML.new(opts)
|
16
15
|
end
|
@@ -28,6 +27,5 @@ module Blogg
|
|
28
27
|
}
|
29
28
|
Redcarpet::Markdown.new(renderer, options).render(text).html_safe
|
30
29
|
end
|
31
|
-
|
32
30
|
end
|
33
31
|
end
|
data/app/models/blogg/post.rb
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
require "babosa"
|
2
|
-
|
3
1
|
module Blogg
|
2
|
+
#
|
4
3
|
class Post < ActiveRecord::Base
|
5
|
-
|
6
4
|
# Use FriendlyId for pretty urls
|
7
5
|
extend FriendlyId
|
8
6
|
friendly_id :title, use: :slugged
|
9
7
|
|
10
8
|
attr_accessible :text, :title, :subtitle, :image, :image_cache, :remove_image, :static
|
11
|
-
belongs_to :author, :
|
9
|
+
belongs_to :author, class_name: Blogg.user_class
|
12
10
|
validates_presence_of :text, :title, :subtitle, :author
|
13
11
|
|
14
12
|
scope :static, where(static: true)
|
@@ -16,31 +14,20 @@ module Blogg
|
|
16
14
|
|
17
15
|
mount_uploader :image, Blogg::ImageUploader
|
18
16
|
|
19
|
-
|
20
|
-
def normalize_friendly_id(value)
|
21
|
-
case I18n.locale
|
22
|
-
when :ru, :uk
|
23
|
-
value.to_s.to_slug.normalize(transliterations: :russian).to_s
|
24
|
-
else
|
25
|
-
value.to_s.to_slug.normalize.to_s
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def is_static?
|
17
|
+
def static?
|
30
18
|
static
|
31
19
|
end
|
32
20
|
|
33
|
-
def
|
21
|
+
def article?
|
34
22
|
!static
|
35
23
|
end
|
36
24
|
|
37
25
|
def next
|
38
|
-
self.class.articles.where(
|
26
|
+
self.class.articles.where('id > ?', id).first
|
39
27
|
end
|
40
28
|
|
41
29
|
def prev
|
42
|
-
self.class.articles.where(
|
30
|
+
self.class.articles.where('id < ?', id).last
|
43
31
|
end
|
44
|
-
|
45
32
|
end
|
46
33
|
end
|
data/app/models/user_ability.rb
CHANGED
@@ -2,13 +2,12 @@ class UserAbility
|
|
2
2
|
include CanCan::Ability
|
3
3
|
|
4
4
|
def initialize(user)
|
5
|
-
|
6
5
|
user ||= User.new
|
7
6
|
|
8
|
-
|
9
|
-
can :manage, Blogg::Post#, :author_id => user.id
|
10
|
-
else
|
7
|
+
if user.new_record?
|
11
8
|
can :read, Blogg::Post
|
9
|
+
else
|
10
|
+
can :manage, Blogg::Post # , :author_id => user.id
|
12
11
|
end
|
13
12
|
|
14
13
|
# Define abilities for the passed in user here. For example:
|
@@ -1,5 +1,4 @@
|
|
1
1
|
class Blogg::ImageUploader < CarrierWave::Uploader::Base
|
2
|
-
|
3
2
|
include CarrierWave::MiniMagick
|
4
3
|
|
5
4
|
include Sprockets::Helpers::RailsHelper
|
@@ -14,13 +13,12 @@ class Blogg::ImageUploader < CarrierWave::Uploader::Base
|
|
14
13
|
end
|
15
14
|
|
16
15
|
def extension_white_list
|
17
|
-
%w
|
16
|
+
%w[jpg jpeg png]
|
18
17
|
end
|
19
18
|
|
20
19
|
def default_url
|
21
|
-
ActionController::Base.helpers.asset_path(
|
20
|
+
ActionController::Base.helpers.asset_path('blogg/fallback/' + [version_name, 'default-image-header.jpg'].compact.join('_'))
|
22
21
|
end
|
23
22
|
|
24
|
-
process :
|
25
|
-
|
23
|
+
process resize_to_fit: [1000, 600]
|
26
24
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
.row
|
4
4
|
.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
|
5
5
|
= render 'blogg/shared/flash_messages'
|
6
|
-
- collection.each do |post|
|
6
|
+
- collection.order('created_at DESC').each do |post|
|
7
7
|
.post-preview
|
8
8
|
= link_to post do
|
9
9
|
%h2.post-title
|
@@ -15,7 +15,7 @@
|
|
15
15
|
- if Blogg.disqus
|
16
16
|
|
|
17
17
|
%i.fa.fa-comments-o.fa-fw.text-small
|
18
|
-
= link_to 'Comments', post_url(post, anchor: "disqus_thread"), "data-disqus-identifier"
|
18
|
+
= link_to 'Comments', post_url(post, anchor: "disqus_thread"), "data-disqus-identifier" => "post_#{post.created_at.to_i}"
|
19
19
|
- if can? :manage, post
|
20
20
|
%p.post-meta
|
21
21
|
%i.fa.fa-edit
|
@@ -1,5 +1,6 @@
|
|
1
|
-
- flash.
|
2
|
-
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
- if flash.any?
|
2
|
+
- flash.each do |key, value|
|
3
|
+
- if key == :notice
|
4
|
+
= content_tag(:div, value, :class => "alert alert-success")
|
5
|
+
- else
|
6
|
+
= content_tag(:div, value, :class => "alert alert-danger")
|
@@ -3,4 +3,5 @@
|
|
3
3
|
.row
|
4
4
|
.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
|
5
5
|
= render 'blogg/shared/social' if Blogg.show_social
|
6
|
-
%p.copyright.text-muted
|
6
|
+
%p.copyright.text-muted
|
7
|
+
= t('blogg.settings.footer_text', year: Date.today.year, default: Blogg.footer_text.html_safe)
|
@@ -3,9 +3,10 @@
|
|
3
3
|
.row
|
4
4
|
.col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
|
5
5
|
%div{class: post ? 'post-heading' : 'site-heading'}
|
6
|
-
%h1= post ? post.title : Blogg.blog_title
|
6
|
+
%h1= post ? post.title : t('blogg.settings.blog_title', default: Blogg.blog_title)
|
7
7
|
- unless post
|
8
8
|
%hr.small
|
9
|
-
%span.subheading
|
10
|
-
|
9
|
+
%span.subheading
|
10
|
+
= post ? post.subtitle : t('blogg.settings.blog_description', default: Blogg.blog_description)
|
11
|
+
- if post && !post.static?
|
11
12
|
%span.meta= render 'blogg/shared/posted_by', post: post
|
@@ -6,7 +6,8 @@
|
|
6
6
|
%span.icon-bar
|
7
7
|
%span.icon-bar
|
8
8
|
%span.icon-bar
|
9
|
-
%a.navbar-brand{href: Blogg.brand_url.present? ? Blogg.brand_url : root_path}
|
9
|
+
%a.navbar-brand{href: Blogg.brand_url.present? ? Blogg.brand_url : main_app.root_path}
|
10
|
+
= t('blogg.settings.brand_text', default: Blogg.brand_text)
|
10
11
|
#bs-example-navbar-collapse-1.collapse.navbar-collapse
|
11
12
|
%ul.nav.navbar-nav.navbar-right
|
12
13
|
%li
|
@@ -11,7 +11,9 @@
|
|
11
11
|
%meta{:charset => "utf-8"}
|
12
12
|
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
|
13
13
|
= csrf_meta_tags
|
14
|
-
= display_meta_tags site:
|
14
|
+
= display_meta_tags site: t('blogg.settings.blog_title', default: Blogg.blog_title),
|
15
|
+
description: t('blogg.settings.blog_description', default: Blogg.blog_description),
|
16
|
+
reverse: true
|
15
17
|
|
16
18
|
= stylesheet_link_tag 'blogg/application'
|
17
19
|
- if Rails.env.production?
|
data/config/locales/blogg.en.yml
CHANGED
data/config/locales/blogg.ru.yml
CHANGED
data/config/locales/blogg.uk.yml
CHANGED
data/config/routes.rb
CHANGED
data/lib/blogg.rb
CHANGED
@@ -1,24 +1,28 @@
|
|
1
|
-
require
|
1
|
+
require 'blogg/engine'
|
2
2
|
|
3
|
+
# The blogg engine
|
3
4
|
module Blogg
|
4
5
|
mattr_accessor :user_class
|
5
|
-
@@user_class =
|
6
|
+
@@user_class = 'User'
|
6
7
|
|
7
8
|
mattr_accessor :brand_text
|
8
|
-
@@brand_text =
|
9
|
+
@@brand_text = 'Blogg'
|
9
10
|
|
10
11
|
mattr_accessor :brand_url
|
11
|
-
|
12
|
+
@@brand_url = ''
|
12
13
|
|
13
14
|
mattr_accessor :blog_title
|
14
|
-
@@blog_title =
|
15
|
+
@@blog_title = 'The Blogg'
|
15
16
|
|
16
17
|
mattr_accessor :blog_description
|
17
|
-
@@blog_description =
|
18
|
+
@@blog_description = 'Simple blog in complicated world'
|
18
19
|
|
19
20
|
mattr_accessor :footer_text
|
20
21
|
@@footer_text = "Copyright © The Blogg #{Date.today.year}"
|
21
22
|
|
23
|
+
mattr_accessor :show_author
|
24
|
+
@@show_author = true
|
25
|
+
|
22
26
|
mattr_accessor :show_social
|
23
27
|
@@show_social = true
|
24
28
|
|
data/lib/blogg/engine.rb
CHANGED
data/lib/blogg/version.rb
CHANGED
data/test/blogg_test.rb
CHANGED
data/test/dummy/Rakefile
CHANGED
File without changes
|
data/test/dummy/config.ru
CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../boot', __FILE__)
|
|
3
3
|
require 'rails/all'
|
4
4
|
|
5
5
|
Bundler.require(*Rails.groups)
|
6
|
-
require
|
6
|
+
require 'blogg'
|
7
7
|
|
8
8
|
module Dummy
|
9
9
|
class Application < Rails::Application
|
@@ -30,7 +30,7 @@ module Dummy
|
|
30
30
|
# config.i18n.default_locale = :de
|
31
31
|
|
32
32
|
# Configure the default encoding used in templates for Ruby 1.9.
|
33
|
-
config.encoding =
|
33
|
+
config.encoding = 'utf-8'
|
34
34
|
|
35
35
|
# Configure sensitive parameters which will be filtered from the log file.
|
36
36
|
config.filter_parameters += [:password]
|
@@ -56,4 +56,3 @@ module Dummy
|
|
56
56
|
config.assets.version = '1.0'
|
57
57
|
end
|
58
58
|
end
|
59
|
-
|
data/test/dummy/config/boot.rb
CHANGED
@@ -9,7 +9,7 @@ Dummy::Application.configure do
|
|
9
9
|
|
10
10
|
# Configure static asset server for tests with Cache-Control for performance
|
11
11
|
config.serve_static_assets = true
|
12
|
-
config.static_cache_control =
|
12
|
+
config.static_cache_control = 'public, max-age=3600'
|
13
13
|
|
14
14
|
# Log error messages when you accidentally call methods on nil
|
15
15
|
config.whiny_nils = true
|
@@ -22,7 +22,7 @@ Dummy::Application.configure do
|
|
22
22
|
config.action_dispatch.show_exceptions = false
|
23
23
|
|
24
24
|
# Disable request forgery protection in test environment
|
25
|
-
config.action_controller.allow_forgery_protection
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
26
|
|
27
27
|
# Tell Action Mailer not to deliver emails to the real world.
|
28
28
|
# The :test delivery method accumulates sent emails in the
|
data/test/dummy/config/routes.rb
CHANGED
File without changes
|
data/test/dummy/db/schema.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
|
2
2
|
# This file is auto-generated from the current state of the database. Instead
|
3
3
|
# of editing this file, please use the migrations feature of Active Record to
|
4
4
|
# incrementally modify your database, and then regenerate this schema definition.
|
@@ -11,6 +11,5 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
15
|
-
|
14
|
+
ActiveRecord::Schema.define(version: 0) do
|
16
15
|
end
|
data/test/dummy/script/rails
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
3
|
|
4
|
-
APP_PATH = File.expand_path('../../config/application',
|
5
|
-
require File.expand_path('../../config/boot',
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
6
|
require 'rails/commands'
|
@@ -5,46 +5,46 @@ module Blogg
|
|
5
5
|
setup do
|
6
6
|
@post = posts(:one)
|
7
7
|
end
|
8
|
-
|
9
|
-
test
|
8
|
+
|
9
|
+
test 'should get index' do
|
10
10
|
get :index
|
11
11
|
assert_response :success
|
12
12
|
assert_not_nil assigns(:posts)
|
13
13
|
end
|
14
|
-
|
15
|
-
test
|
14
|
+
|
15
|
+
test 'should get new' do
|
16
16
|
get :new
|
17
17
|
assert_response :success
|
18
18
|
end
|
19
|
-
|
20
|
-
test
|
19
|
+
|
20
|
+
test 'should create post' do
|
21
21
|
assert_difference('Post.count') do
|
22
22
|
post :create, post: { text: @post.text, title: @post.title }
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
assert_redirected_to post_path(assigns(:post))
|
26
26
|
end
|
27
|
-
|
28
|
-
test
|
27
|
+
|
28
|
+
test 'should show post' do
|
29
29
|
get :show, id: @post
|
30
30
|
assert_response :success
|
31
31
|
end
|
32
|
-
|
33
|
-
test
|
32
|
+
|
33
|
+
test 'should get edit' do
|
34
34
|
get :edit, id: @post
|
35
35
|
assert_response :success
|
36
36
|
end
|
37
|
-
|
38
|
-
test
|
37
|
+
|
38
|
+
test 'should update post' do
|
39
39
|
put :update, id: @post, post: { text: @post.text, title: @post.title }
|
40
40
|
assert_redirected_to post_path(assigns(:post))
|
41
41
|
end
|
42
|
-
|
43
|
-
test
|
42
|
+
|
43
|
+
test 'should destroy post' do
|
44
44
|
assert_difference('Post.count', -1) do
|
45
45
|
delete :destroy, id: @post
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
assert_redirected_to posts_path
|
49
49
|
end
|
50
50
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Configure Rails Environment
|
2
|
-
ENV[
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
3
|
|
4
|
-
require File.expand_path(
|
5
|
-
require
|
4
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
|
+
require 'rails/test_help'
|
6
6
|
|
7
7
|
Rails.backtrace_cleaner.remove_silencers!
|
8
8
|
|
@@ -11,5 +11,5 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
11
11
|
|
12
12
|
# Load fixtures from the engine
|
13
13
|
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path(
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blogg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Ponomarenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -31,21 +31,21 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.2.13
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: cancancan
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '1.10'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '1.10'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: carrierwave
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
@@ -59,21 +59,21 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: devise
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: font-awesome-rails
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
@@ -87,19 +87,19 @@ dependencies:
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: friendly_id
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 4.0.10
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - "
|
100
|
+
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: 4.0.10
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: haml
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,7 +115,7 @@ dependencies:
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
118
|
+
name: inherited_resources
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - ">="
|
@@ -129,7 +129,7 @@ dependencies:
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
132
|
+
name: jquery-rails
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - ">="
|
@@ -143,21 +143,7 @@ dependencies:
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
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
|
146
|
+
name: meta-tags
|
161
147
|
requirement: !ruby/object:Gem::Requirement
|
162
148
|
requirements:
|
163
149
|
- - ">="
|
@@ -185,7 +171,7 @@ dependencies:
|
|
185
171
|
- !ruby/object:Gem::Version
|
186
172
|
version: '0'
|
187
173
|
- !ruby/object:Gem::Dependency
|
188
|
-
name:
|
174
|
+
name: responders
|
189
175
|
requirement: !ruby/object:Gem::Requirement
|
190
176
|
requirements:
|
191
177
|
- - ">="
|
@@ -199,7 +185,7 @@ dependencies:
|
|
199
185
|
- !ruby/object:Gem::Version
|
200
186
|
version: '0'
|
201
187
|
- !ruby/object:Gem::Dependency
|
202
|
-
name:
|
188
|
+
name: rouge
|
203
189
|
requirement: !ruby/object:Gem::Requirement
|
204
190
|
requirements:
|
205
191
|
- - ">="
|
@@ -308,7 +294,6 @@ files:
|
|
308
294
|
- test/dummy/config/routes.rb
|
309
295
|
- test/dummy/db/development.sqlite3
|
310
296
|
- test/dummy/db/schema.rb
|
311
|
-
- test/dummy/log/development.log
|
312
297
|
- test/dummy/public/404.html
|
313
298
|
- test/dummy/public/422.html
|
314
299
|
- test/dummy/public/500.html
|
@@ -340,46 +325,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
340
325
|
version: '0'
|
341
326
|
requirements: []
|
342
327
|
rubyforge_project:
|
343
|
-
rubygems_version: 2.
|
328
|
+
rubygems_version: 2.6.13
|
344
329
|
signing_key:
|
345
330
|
specification_version: 4
|
346
331
|
summary: Design ready SEO optimized customizable blog engine
|
347
332
|
test_files:
|
348
|
-
- test/fixtures/blogg/posts.yml
|
349
|
-
- test/blogg_test.rb
|
350
|
-
- test/test_helper.rb
|
351
|
-
- test/dummy/log/development.log
|
352
|
-
- test/dummy/README.rdoc
|
353
|
-
- test/dummy/Rakefile
|
354
|
-
- test/dummy/script/rails
|
355
|
-
- test/dummy/db/development.sqlite3
|
356
|
-
- test/dummy/db/schema.rb
|
357
|
-
- test/dummy/public/422.html
|
358
|
-
- test/dummy/public/500.html
|
359
|
-
- test/dummy/public/favicon.ico
|
360
|
-
- test/dummy/public/404.html
|
361
|
-
- test/dummy/config.ru
|
362
333
|
- test/dummy/config/environment.rb
|
363
|
-
- test/dummy/config/
|
334
|
+
- test/dummy/config/routes.rb
|
335
|
+
- test/dummy/config/database.yml
|
336
|
+
- test/dummy/config/application.rb
|
364
337
|
- test/dummy/config/initializers/secret_token.rb
|
338
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
339
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
365
340
|
- test/dummy/config/initializers/inflections.rb
|
366
341
|
- test/dummy/config/initializers/mime_types.rb
|
367
|
-
- test/dummy/config/initializers/
|
368
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
369
|
-
- test/dummy/config/application.rb
|
370
|
-
- test/dummy/config/boot.rb
|
371
|
-
- test/dummy/config/database.yml
|
372
|
-
- test/dummy/config/routes.rb
|
342
|
+
- test/dummy/config/initializers/session_store.rb
|
373
343
|
- test/dummy/config/locales/en.yml
|
344
|
+
- test/dummy/config/boot.rb
|
374
345
|
- test/dummy/config/environments/development.rb
|
375
|
-
- test/dummy/config/environments/test.rb
|
376
346
|
- test/dummy/config/environments/production.rb
|
347
|
+
- test/dummy/config/environments/test.rb
|
348
|
+
- test/dummy/Rakefile
|
349
|
+
- test/dummy/script/rails
|
350
|
+
- test/dummy/config.ru
|
351
|
+
- test/dummy/README.rdoc
|
352
|
+
- test/dummy/db/schema.rb
|
353
|
+
- test/dummy/db/development.sqlite3
|
354
|
+
- test/dummy/public/favicon.ico
|
355
|
+
- test/dummy/public/500.html
|
356
|
+
- test/dummy/public/404.html
|
357
|
+
- test/dummy/public/422.html
|
358
|
+
- test/dummy/app/helpers/application_helper.rb
|
377
359
|
- test/dummy/app/views/layouts/application.html.erb
|
378
|
-
- test/dummy/app/assets/stylesheets/application.css
|
379
360
|
- test/dummy/app/assets/javascripts/application.js
|
361
|
+
- test/dummy/app/assets/stylesheets/application.css
|
380
362
|
- test/dummy/app/controllers/application_controller.rb
|
381
|
-
- test/
|
382
|
-
- test/unit/blogg/post_test.rb
|
363
|
+
- test/blogg_test.rb
|
383
364
|
- test/unit/helpers/blogg/posts_helper_test.rb
|
365
|
+
- test/unit/blogg/post_test.rb
|
384
366
|
- test/functional/blogg/posts_controller_test.rb
|
385
367
|
- test/integration/navigation_test.rb
|
368
|
+
- test/test_helper.rb
|
369
|
+
- test/fixtures/blogg/posts.yml
|
@@ -1,5 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
3
|
-
[1m[35m (59.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
4
|
-
[1m[36m (58.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5
|
-
[1m[35m (2.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|