blogg 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -5
  3. data/app/controllers/blogg/application_controller.rb +3 -3
  4. data/app/controllers/blogg/posts_controller.rb +7 -7
  5. data/app/helpers/blogg/application_helper.rb +3 -5
  6. data/app/models/blogg/post.rb +6 -19
  7. data/app/models/user_ability.rb +3 -4
  8. data/app/uploaders/blogg/image_uploader.rb +3 -5
  9. data/app/views/blogg/posts/index.html.haml +2 -2
  10. data/app/views/blogg/posts/show.html.haml +1 -1
  11. data/app/views/blogg/shared/_flash_messages.html.haml +6 -5
  12. data/app/views/blogg/shared/_footer.html.haml +2 -1
  13. data/app/views/blogg/shared/_header.html.haml +4 -3
  14. data/app/views/blogg/shared/_nav.html.haml +2 -1
  15. data/app/views/blogg/shared/_posted_by.html.haml +5 -1
  16. data/app/views/layouts/blogg/application.haml +3 -1
  17. data/config/locales/blogg.en.yml +1 -1
  18. data/config/locales/blogg.ru.yml +5 -0
  19. data/config/locales/blogg.uk.yml +5 -0
  20. data/config/routes.rb +1 -1
  21. data/db/migrate/20151204181631_add_slug_to_blogg_post.rb +1 -1
  22. data/lib/blogg.rb +10 -6
  23. data/lib/blogg/engine.rb +2 -1
  24. data/lib/blogg/version.rb +1 -1
  25. data/test/blogg_test.rb +1 -1
  26. data/test/dummy/Rakefile +0 -0
  27. data/test/dummy/config.ru +1 -1
  28. data/test/dummy/config/application.rb +2 -3
  29. data/test/dummy/config/boot.rb +1 -1
  30. data/test/dummy/config/environments/test.rb +2 -2
  31. data/test/dummy/config/routes.rb +1 -2
  32. data/test/dummy/db/development.sqlite3 +0 -0
  33. data/test/dummy/db/schema.rb +2 -3
  34. data/test/dummy/script/rails +2 -2
  35. data/test/functional/blogg/posts_controller_test.rb +16 -16
  36. data/test/integration/navigation_test.rb +0 -1
  37. data/test/test_helper.rb +4 -4
  38. metadata +49 -65
  39. data/test/dummy/log/development.log +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bd72dd9f00ed7137160a1f2112efc1881ebbcb8
4
- data.tar.gz: d339b6c7fd125861ca0600828deac09db44c466a
3
+ metadata.gz: c4692a6404c780325060f433391535209d8c161c
4
+ data.tar.gz: da40afc23abf1a045df5c3e982cff3e75d75ac0b
5
5
  SHA512:
6
- metadata.gz: 6cb43bd8481c1533103ac2fcbb3fa4a7320d962265b632b64d93e758b71c017aca4c7bebefc624bd960ce39b320e0d3c7690ccff4427feb0630c262ae40951b5
7
- data.tar.gz: d0db0b46d373a2dca142e67669f420d68a63b93d03c0f393019998ba5247882ea2b78ee6d96579e579d674009ecb913d15a884c78228900403a64be677d81f41
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("../test/dummy/Rakefile", __FILE__)
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, :alert => exception.message }
6
+ format.html { redirect_to root_url, alert: exception.message }
7
7
  end
8
8
  end
9
9
 
10
- # layout Blogg.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 "blogg/application_controller"
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 :only => [:index, :show]
11
+ skip_authorize_resource only: %i[index show]
11
12
 
12
13
  def destroy
13
- destroy!(:notice => "Blog post was successfully deleted.")
14
+ destroy!(notice: 'Blog post was successfully deleted.')
14
15
  end
15
16
 
16
17
  def update
17
- update!(:notice => "Blog post was successfully updated.")
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!(:notice => "Blog post was successfully created.")
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
@@ -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, :class_name => Blogg.user_class
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
- # Override FriendlyId method to transliterate slug with Babosa gem
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 is_article?
21
+ def article?
34
22
  !static
35
23
  end
36
24
 
37
25
  def next
38
- self.class.articles.where("id > ?", id).first
26
+ self.class.articles.where('id > ?', id).first
39
27
  end
40
28
 
41
29
  def prev
42
- self.class.articles.where("id < ?", id).last
30
+ self.class.articles.where('id < ?', id).last
43
31
  end
44
-
45
32
  end
46
33
  end
@@ -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
- unless user.new_record?
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(jpg jpeg png)
16
+ %w[jpg jpeg png]
18
17
  end
19
18
 
20
19
  def default_url
21
- ActionController::Base.helpers.asset_path("blogg/fallback/" + [version_name, "default-image-header.jpg"].compact.join('_'))
20
+ ActionController::Base.helpers.asset_path('blogg/fallback/' + [version_name, 'default-image-header.jpg'].compact.join('_'))
22
21
  end
23
22
 
24
- process :resize_to_fit => [1000, 600]
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": "post_#{post.created_at.to_i}"
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
@@ -16,7 +16,7 @@
16
16
  = link_to edit_post_path(resource) do
17
17
  %i.fa.fa-edit
18
18
  = t('blogg.posts.actions.edit')
19
- - if resource.is_article?
19
+ - if resource.article?
20
20
  %ul.pager
21
21
  - if resource.prev
22
22
  %li.prev
@@ -1,5 +1,6 @@
1
- - flash.each do |key, value|
2
- - if key == :notice
3
- = content_tag(:div, value, :class => "alert alert-success")
4
- - else
5
- = content_tag(:div, value, :class => "alert alert-danger")
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= Blogg.footer_text.html_safe
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= post ? post.subtitle : Blogg.blog_description
10
- - if post && !post.is_static?
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}= Blogg.brand_text
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
@@ -1 +1,5 @@
1
- #{t('blogg.posts.posted_by')} #{post.author} | #{l(post.author.created_at.to_date, format: :long)}
1
+ - if Blogg.show_author
2
+ = t('blogg.posts.posted_by')
3
+ = post.author
4
+ |
5
+ = l(post.created_at.to_date, format: :long)
@@ -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: Blogg.blog_title, description: Blogg.blog_description, reverse: true
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?
@@ -8,7 +8,7 @@ en:
8
8
  edit: "Edit"
9
9
  new: "New Post"
10
10
  delete: "Delete"
11
- back: "Back"
11
+ back: "Back"
12
12
  unauthorized:
13
13
  manage:
14
14
  all: "Not authorized to %{action} %{subject}."
@@ -1,5 +1,10 @@
1
1
  ru:
2
2
  blogg:
3
+ settings:
4
+ brand_text: "Блог"
5
+ blog_title: "Блог"
6
+ blog_description: "Простой блог в этом сложном мире"
7
+ footer_text: "Copyright © Блог %{year}"
3
8
  navigation:
4
9
  home: "Главная"
5
10
  posts:
@@ -1,5 +1,10 @@
1
1
  uk:
2
2
  blogg:
3
+ settings:
4
+ brand_text: "Блог"
5
+ blog_title: "Блог"
6
+ blog_description: "Простий блог в цьому непростому світі"
7
+ footer_text: "Copyright © Блог %{year}"
3
8
  navigation:
4
9
  home: "Головна"
5
10
  posts:
data/config/routes.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  Blogg::Engine.routes.draw do
2
2
  resources :posts
3
- root :to => "posts#index"
3
+ root to: 'posts#index'
4
4
  end
@@ -1,6 +1,6 @@
1
1
  class AddSlugToBloggPost < ActiveRecord::Migration
2
2
  def change
3
3
  add_column :blogg_posts, :slug, :string
4
- add_index :blogg_posts, :slug, :unique => true
4
+ add_index :blogg_posts, :slug, unique: true
5
5
  end
6
6
  end
data/lib/blogg.rb CHANGED
@@ -1,24 +1,28 @@
1
- require "blogg/engine"
1
+ require 'blogg/engine'
2
2
 
3
+ # The blogg engine
3
4
  module Blogg
4
5
  mattr_accessor :user_class
5
- @@user_class = "User"
6
+ @@user_class = 'User'
6
7
 
7
8
  mattr_accessor :brand_text
8
- @@brand_text = "Blogg"
9
+ @@brand_text = 'Blogg'
9
10
 
10
11
  mattr_accessor :brand_url
11
- @brand_url = ''
12
+ @@brand_url = ''
12
13
 
13
14
  mattr_accessor :blog_title
14
- @@blog_title = "The Blogg"
15
+ @@blog_title = 'The Blogg'
15
16
 
16
17
  mattr_accessor :blog_description
17
- @@blog_description = "Simple blog in complicated world"
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
@@ -1,6 +1,7 @@
1
1
  module Blogg
2
+ #
2
3
  class Engine < ::Rails::Engine
3
4
  isolate_namespace Blogg
4
- require "friendly_id"
5
+ require 'friendly_id'
5
6
  end
6
7
  end
data/lib/blogg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Blogg
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'.freeze
3
3
  end
data/test/blogg_test.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class BloggTest < ActiveSupport::TestCase
4
- test "truth" do
4
+ test 'truth' do
5
5
  assert_kind_of Module, Blogg
6
6
  end
7
7
  end
data/test/dummy/Rakefile CHANGED
File without changes
data/test/dummy/config.ru CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require ::File.expand_path('../config/environment', __FILE__)
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
4
  run Dummy::Application
@@ -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 "blogg"
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 = "utf-8"
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
-
@@ -7,4 +7,4 @@ if File.exist?(gemfile)
7
7
  Bundler.setup
8
8
  end
9
9
 
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
10
+ $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -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 = "public, max-age=3600"
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 = false
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
@@ -1,4 +1,3 @@
1
1
  Rails.application.routes.draw do
2
-
3
- mount Blogg::Engine => "/blogg"
2
+ mount Blogg::Engine => '/blogg'
4
3
  end
File without changes
@@ -1,4 +1,4 @@
1
- # encoding: UTF-8
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(:version => 0) do
15
-
14
+ ActiveRecord::Schema.define(version: 0) do
16
15
  end
@@ -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', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
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 "should get index" do
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 "should get new" do
14
+
15
+ test 'should get new' do
16
16
  get :new
17
17
  assert_response :success
18
18
  end
19
-
20
- test "should create post" do
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 "should show post" do
27
+
28
+ test 'should show post' do
29
29
  get :show, id: @post
30
30
  assert_response :success
31
31
  end
32
-
33
- test "should get edit" do
32
+
33
+ test 'should get edit' do
34
34
  get :edit, id: @post
35
35
  assert_response :success
36
36
  end
37
-
38
- test "should update post" do
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 "should destroy post" do
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
@@ -7,4 +7,3 @@ class NavigationTest < ActionDispatch::IntegrationTest
7
7
  # assert true
8
8
  # end
9
9
  end
10
-
data/test/test_helper.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
2
+ ENV['RAILS_ENV'] = 'test'
3
3
 
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
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("../fixtures", __FILE__)
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.0
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: 2015-12-06 00:00:00.000000000 Z
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: jquery-rails
34
+ name: cancancan
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
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: '0'
46
+ version: '1.10'
47
47
  - !ruby/object:Gem::Dependency
48
- name: devise
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: cancancan
62
+ name: devise
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: '1.10'
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: '1.10'
74
+ version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: inherited_resources
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: responders
90
+ name: friendly_id
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '0'
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: '0'
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: font-awesome-rails
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: carrierwave
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: 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
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: rouge
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: meta-tags
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.4.6
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/initializers/session_store.rb
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/backtrace_silencers.rb
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/dummy/app/helpers/application_helper.rb
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
-  (0.2ms) select sqlite_version(*)
3
-  (59.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4
-  (58.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"