comfy_blog 1.12.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -15
- data/Gemfile +7 -6
- data/LICENSE +1 -1
- data/README.md +14 -9
- data/Rakefile +1 -32
- data/app/controllers/comfy/admin/blog/posts_controller.rb +26 -22
- data/app/controllers/comfy/blog/posts_controller.rb +31 -38
- data/app/models/comfy/blog/post.rb +34 -36
- data/app/views/comfy/admin/blog/partials/_navigation.html.haml +4 -6
- data/app/views/comfy/admin/blog/posts/_form.html.haml +23 -11
- data/app/views/comfy/admin/blog/posts/edit.html.haml +2 -2
- data/app/views/comfy/admin/blog/posts/index.html.haml +29 -25
- data/app/views/comfy/admin/blog/posts/new.html.haml +2 -2
- data/app/views/comfy/blog/posts/index.html.haml +25 -10
- data/app/views/comfy/blog/posts/index.rss.builder +12 -12
- data/app/views/layouts/comfy/blog/application.html.erb +22 -0
- data/comfy_blog.gemspec +3 -1
- data/config/application.rb +13 -7
- data/config/blog_routes.rb +2 -2
- data/config/environments/development.rb +37 -4
- data/config/environments/test.rb +13 -4
- data/config/initializers/comfy_blog.rb +3 -7
- data/config/locales/cs.yml +38 -0
- data/config/locales/da.yml +38 -0
- data/config/locales/de.yml +38 -0
- data/config/locales/en.yml +38 -0
- data/config/locales/es.yml +38 -0
- data/config/locales/fr.yml +38 -0
- data/config/locales/it.yml +38 -0
- data/config/locales/ja.yml +38 -0
- data/config/locales/nb.yml +38 -0
- data/config/locales/nl.yml +38 -0
- data/config/locales/pl.yml +38 -0
- data/config/locales/pt-BR.yml +38 -0
- data/config/locales/ru.yml +38 -0
- data/config/locales/sv.yml +38 -0
- data/config/locales/tr.yml +38 -0
- data/config/locales/uk.yml +38 -0
- data/config/locales/zh-CN.yml +38 -0
- data/config/locales/zh-TW.yml +38 -0
- data/config/storage.yml +35 -0
- data/db/migrate/00_create_cms.rb +144 -116
- data/db/migrate/01_create_blog.rb +15 -43
- data/lib/comfy_blog/configuration.rb +9 -9
- data/lib/comfy_blog/engine.rb +7 -7
- data/lib/comfy_blog/routes/blog.rb +12 -13
- data/lib/comfy_blog/routes/blog_admin.rb +7 -12
- data/lib/comfy_blog/version.rb +1 -1
- data/lib/generators/comfy/blog/blog_generator.rb +16 -14
- data/test/controllers/comfy/admin/blog/posts_controller_test.rb +83 -59
- data/test/controllers/comfy/blog/posts_controller_test.rb +56 -42
- data/test/fixtures/comfy/blog/posts.yml +3 -4
- data/test/fixtures/comfy/cms/layouts.yml +10 -0
- data/test/fixtures/comfy/cms/sites.yml +1 -1
- data/test/fixtures/generators/blog/routes.rb +2 -3
- data/test/gemfiles/Gemfile.rails.5.2 +22 -0
- data/test/generators/blog_generator_test.rb +7 -7
- data/test/integration/i18n_test.rb +37 -0
- data/test/lib/configuration_test.rb +4 -5
- data/test/models/posts_test.rb +35 -30
- data/test/test_helper.rb +40 -29
- metadata +29 -35
- data/app/controllers/comfy/admin/blog/base_controller.rb +0 -12
- data/app/controllers/comfy/admin/blog/blogs_controller.rb +0 -51
- data/app/controllers/comfy/admin/blog/comments_controller.rb +0 -33
- data/app/controllers/comfy/blog/base_controller.rb +0 -33
- data/app/controllers/comfy/blog/comments_controller.rb +0 -33
- data/app/models/comfy/blog/blog.rb +0 -31
- data/app/models/comfy/blog/comment.rb +0 -29
- data/app/views/comfy/admin/blog/blogs/_form.html.haml +0 -11
- data/app/views/comfy/admin/blog/blogs/edit.html.haml +0 -5
- data/app/views/comfy/admin/blog/blogs/index.html.haml +0 -26
- data/app/views/comfy/admin/blog/blogs/new.html.haml +0 -5
- data/app/views/comfy/admin/blog/comments/_comment.html.haml +0 -17
- data/app/views/comfy/admin/blog/comments/index.html.haml +0 -17
- data/app/views/comfy/admin/blog/comments/toggle_publish.js.erb +0 -1
- data/app/views/comfy/blog/comments/_form.html.haml +0 -10
- data/app/views/comfy/blog/posts/show.html.haml +0 -18
- data/app/views/layouts/comfy/blog/application.html.haml +0 -7
- data/config/initializers/secret_token.rb +0 -15
- data/test/controllers/comfy/admin/blog/blogs_controller_test.rb +0 -94
- data/test/controllers/comfy/admin/blog/comments_controller_test.rb +0 -57
- data/test/controllers/comfy/blog/comments_controller_test.rb +0 -36
- data/test/fixtures/comfy/blog/blogs.yml +0 -7
- data/test/fixtures/comfy/blog/comments.yml +0 -6
- data/test/gemfiles/Gemfile.rails.4.0 +0 -10
- data/test/gemfiles/Gemfile.rails.4.1 +0 -10
- data/test/gemfiles/Gemfile.rails.4.2 +0 -10
- data/test/gemfiles/Gemfile.rails.master +0 -10
- data/test/models/blog_test.rb +0 -59
- data/test/models/comments_test.rb +0 -45
@@ -1,10 +1,9 @@
|
|
1
1
|
default:
|
2
|
-
|
2
|
+
site: default
|
3
3
|
title: Default Title
|
4
4
|
slug: default-title
|
5
|
-
content: Default Content
|
6
|
-
author: Default Author
|
7
5
|
is_published: true
|
8
6
|
year: 2012
|
9
7
|
month: 1
|
10
|
-
published_at: <%= 2.days.ago %>
|
8
|
+
published_at: <%= 2.days.ago %>
|
9
|
+
layout: default
|
@@ -0,0 +1,22 @@
|
|
1
|
+
source 'http://rubygems.org'
|
2
|
+
|
3
|
+
gem "rails",
|
4
|
+
github: "rails"
|
5
|
+
gem "arel",
|
6
|
+
github: "rails/arel"
|
7
|
+
|
8
|
+
gem "bootstrap_form",
|
9
|
+
github: "bootstrap-ruby/rails-bootstrap-forms",
|
10
|
+
branch: "bootstrap-v4"
|
11
|
+
|
12
|
+
gem "comfortable_mexican_sofa",
|
13
|
+
github: "comfy/comfortable-mexican-sofa"
|
14
|
+
|
15
|
+
gem 'kaminari', '>= 0.14.0'
|
16
|
+
|
17
|
+
group :test do
|
18
|
+
gem 'sqlite3'
|
19
|
+
gem 'coveralls', require: false
|
20
|
+
gem 'mocha', require: false
|
21
|
+
gem 'rails-controller-testing'
|
22
|
+
end
|
@@ -3,17 +3,17 @@ require_relative '../../lib/generators/comfy/blog/blog_generator'
|
|
3
3
|
|
4
4
|
class CmsGeneratorTest < Rails::Generators::TestCase
|
5
5
|
tests Comfy::Generators::BlogGenerator
|
6
|
-
|
6
|
+
|
7
7
|
def test_generator
|
8
8
|
run_generator
|
9
|
-
|
9
|
+
|
10
10
|
assert_migration 'db/migrate/create_blog.rb'
|
11
|
-
|
11
|
+
|
12
12
|
assert_file 'config/initializers/comfy_blog.rb'
|
13
|
-
|
13
|
+
|
14
14
|
assert_file 'config/routes.rb', read_file('blog/routes.rb')
|
15
|
-
|
15
|
+
|
16
16
|
assert_directory 'app/views/comfy/blog'
|
17
17
|
end
|
18
|
-
|
19
|
-
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require_relative '../test_helper'
|
2
|
+
|
3
|
+
class I18nIntegrationTest < ActionDispatch::IntegrationTest
|
4
|
+
|
5
|
+
def collect_combined_keys(hash, ns = nil)
|
6
|
+
hash.collect do |k, v|
|
7
|
+
keys = [ ]
|
8
|
+
keys << collect_combined_keys(v, "#{ns}.#{k}") if v.is_a?(Hash)
|
9
|
+
keys << "#{ns}.#{k}"
|
10
|
+
end.flatten
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_translations
|
14
|
+
locales_path = File.expand_path('../../../config/locales', __FILE__)
|
15
|
+
locales = Dir.glob("#{locales_path}/*.yml").collect do |file_path|
|
16
|
+
File.basename(file_path, '.yml')
|
17
|
+
end
|
18
|
+
|
19
|
+
# collecting all locales
|
20
|
+
locale_keys = { }
|
21
|
+
locales.each do |locale|
|
22
|
+
translations = YAML.load_file("#{locales_path}/#{locale}.yml")
|
23
|
+
locale_keys[locale] = collect_combined_keys(translations[locale])
|
24
|
+
end
|
25
|
+
|
26
|
+
# Using en as reference
|
27
|
+
reference = locale_keys[locales.delete('en')]
|
28
|
+
assert reference.present?
|
29
|
+
|
30
|
+
locale_keys.each do |locale, keys|
|
31
|
+
missing = reference - keys
|
32
|
+
assert missing.blank?, "#{locale} locale is missing: #{missing.join(', ')}"
|
33
|
+
extra = keys - reference
|
34
|
+
assert extra.blank?, "#{locale} locale has extra: #{extra.join(', ')}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -4,14 +4,13 @@ class ConfigurationTest < ActiveSupport::TestCase
|
|
4
4
|
|
5
5
|
def test_configuration
|
6
6
|
assert config = ComfyBlog.configuration
|
7
|
-
assert_equal
|
8
|
-
assert_equal
|
9
|
-
assert_equal
|
7
|
+
assert_equal 10, config.posts_per_page
|
8
|
+
assert_equal 'comfy/blog/application', config.app_layout
|
9
|
+
assert_equal 'blog', config.public_blog_path
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_initialization_overrides
|
13
13
|
ComfyBlog.config.posts_per_page = 5
|
14
14
|
assert_equal 5, ComfyBlog.config.posts_per_page
|
15
15
|
end
|
16
|
-
|
17
|
-
end
|
16
|
+
end
|
data/test/models/posts_test.rb
CHANGED
@@ -2,6 +2,12 @@ require_relative '../test_helper'
|
|
2
2
|
|
3
3
|
class BlogPostsTest < ActiveSupport::TestCase
|
4
4
|
|
5
|
+
setup do
|
6
|
+
@site = comfy_cms_sites(:default)
|
7
|
+
@layout = comfy_cms_layouts(:default)
|
8
|
+
@post = comfy_blog_posts(:default)
|
9
|
+
end
|
10
|
+
|
5
11
|
def test_fixtures_validity
|
6
12
|
Comfy::Blog::Post.all.each do |post|
|
7
13
|
assert post.valid?, post.errors.full_messages.to_s
|
@@ -11,46 +17,45 @@ class BlogPostsTest < ActiveSupport::TestCase
|
|
11
17
|
def test_validations
|
12
18
|
post = Comfy::Blog::Post.new
|
13
19
|
assert post.invalid?
|
14
|
-
assert_errors_on post, :
|
20
|
+
assert_errors_on post, :site, :title, :slug, :layout
|
15
21
|
end
|
16
22
|
|
17
23
|
def test_validation_of_slug_uniqueness
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
:
|
22
|
-
:content => 'Test Content'
|
24
|
+
@post.update_attributes!(published_at: Time.now)
|
25
|
+
post = @site.blog_posts.new(
|
26
|
+
title: @post.title,
|
27
|
+
layout: @layout
|
23
28
|
)
|
24
29
|
assert post.invalid?
|
25
30
|
assert_errors_on post, [:slug]
|
26
31
|
|
27
|
-
|
32
|
+
@post.update_attributes!(published_at: 1.year.ago)
|
28
33
|
assert post.valid?
|
29
34
|
end
|
30
35
|
|
31
36
|
def test_validation_of_slug_format
|
32
|
-
post =
|
33
|
-
:
|
34
|
-
:
|
35
|
-
:
|
37
|
+
post = @site.blog_posts.new(
|
38
|
+
title: 'Test Title',
|
39
|
+
slug: 'test%slug',
|
40
|
+
layout: @layout
|
36
41
|
)
|
37
42
|
assert post.valid?
|
38
43
|
end
|
39
44
|
|
40
45
|
def test_creation
|
41
|
-
assert_difference
|
42
|
-
post =
|
43
|
-
:
|
44
|
-
:
|
46
|
+
assert_difference -> {Comfy::Blog::Post.count} do
|
47
|
+
post = @site.blog_posts.create!(
|
48
|
+
title: 'Test Post',
|
49
|
+
layout: @layout
|
45
50
|
)
|
46
|
-
assert_equal 'test-post',
|
47
|
-
assert_equal Time.now.year,
|
48
|
-
assert_equal Time.now.month,
|
51
|
+
assert_equal 'test-post', post.slug
|
52
|
+
assert_equal Time.now.year, post.year
|
53
|
+
assert_equal Time.now.month, post.month
|
49
54
|
end
|
50
55
|
end
|
51
56
|
|
52
57
|
def test_set_slug
|
53
|
-
post = Comfy::Blog::Post.new(:
|
58
|
+
post = Comfy::Blog::Post.new(title: 'Test Title')
|
54
59
|
post.send(:set_slug)
|
55
60
|
assert_equal 'test-title', post.slug
|
56
61
|
end
|
@@ -59,7 +64,7 @@ class BlogPostsTest < ActiveSupport::TestCase
|
|
59
64
|
post = Comfy::Blog::Post.new
|
60
65
|
post.send(:set_published_at)
|
61
66
|
post.send(:set_date)
|
62
|
-
assert_equal post.published_at.year,
|
67
|
+
assert_equal post.published_at.year, post.year
|
63
68
|
assert_equal post.published_at.month, post.month
|
64
69
|
end
|
65
70
|
|
@@ -69,18 +74,11 @@ class BlogPostsTest < ActiveSupport::TestCase
|
|
69
74
|
assert post.published_at.present?
|
70
75
|
end
|
71
76
|
|
72
|
-
def test_destroy
|
73
|
-
assert_difference ['Comfy::Blog::Post.count', 'Comfy::Blog::Comment.count'], -1 do
|
74
|
-
comfy_blog_posts(:default).destroy
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
77
|
def test_scope_published
|
79
|
-
post
|
80
|
-
assert post.is_published?
|
78
|
+
assert @post.is_published?
|
81
79
|
assert_equal 1, Comfy::Blog::Post.published.count
|
82
80
|
|
83
|
-
post.update_attribute(:is_published, false)
|
81
|
+
@post.update_attribute(:is_published, false)
|
84
82
|
assert_equal 0, Comfy::Blog::Post.published.count
|
85
83
|
end
|
86
84
|
|
@@ -94,4 +92,11 @@ class BlogPostsTest < ActiveSupport::TestCase
|
|
94
92
|
assert_equal 0, Comfy::Blog::Post.for_month(2).count
|
95
93
|
end
|
96
94
|
|
97
|
-
|
95
|
+
def test_url
|
96
|
+
assert_equal '//test.host/blog/2012/1/default-title', @post.url
|
97
|
+
assert_equal '/blog/2012/1/default-title', @post.url(relative: true)
|
98
|
+
|
99
|
+
ComfyBlog.config.public_blog_path = "test-blog"
|
100
|
+
assert_equal '//test.host/test-blog/2012/1/default-title', @post.url
|
101
|
+
end
|
102
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,31 +1,33 @@
|
|
1
|
-
require 'coveralls'
|
2
|
-
Coveralls.wear!('rails')
|
3
|
-
|
4
1
|
ENV['RAILS_ENV'] = 'test'
|
5
2
|
|
3
|
+
require 'simplecov'
|
4
|
+
require 'coveralls'
|
5
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
6
|
+
SimpleCov.start do
|
7
|
+
add_filter 'lib/generators'
|
8
|
+
add_filter 'lib/comfy_blog/engine.rb '
|
9
|
+
end
|
6
10
|
require_relative '../config/environment'
|
11
|
+
|
7
12
|
require 'rails/test_help'
|
8
13
|
require 'rails/generators'
|
9
14
|
|
10
15
|
Rails.backtrace_cleaner.remove_silencers!
|
11
16
|
|
12
|
-
# Load fixtures from the engine
|
13
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
|
14
|
-
|
15
17
|
class ActiveSupport::TestCase
|
16
|
-
|
18
|
+
|
17
19
|
fixtures :all
|
18
|
-
|
20
|
+
|
19
21
|
setup :reset_config
|
20
|
-
|
22
|
+
|
21
23
|
def reset_config
|
22
24
|
ComfyBlog.configure do |config|
|
23
|
-
config.posts_per_page
|
24
|
-
config.
|
25
|
-
config.
|
25
|
+
config.posts_per_page = 10
|
26
|
+
config.app_layout = 'comfy/blog/application'
|
27
|
+
config.public_blog_path = 'blog'
|
26
28
|
end
|
27
29
|
end
|
28
|
-
|
30
|
+
|
29
31
|
# Example usage:
|
30
32
|
# assert_has_errors_on @record, :field_1, :field_2
|
31
33
|
def assert_errors_on(record, *fields)
|
@@ -34,7 +36,7 @@ class ActiveSupport::TestCase
|
|
34
36
|
unmatched = fields.flatten - record.errors.keys
|
35
37
|
assert unmatched.blank?, "#{record.class} doesn't have errors on '#{unmatched.join(', ')}'"
|
36
38
|
end
|
37
|
-
|
39
|
+
|
38
40
|
# Example usage:
|
39
41
|
# assert_exception_raised do ... end
|
40
42
|
# assert_exception_raised ActiveRecord::RecordInvalid do ... end
|
@@ -55,27 +57,37 @@ class ActiveSupport::TestCase
|
|
55
57
|
flunk 'Exception was not raised'
|
56
58
|
end
|
57
59
|
end
|
58
|
-
|
60
|
+
|
59
61
|
end
|
60
62
|
|
61
|
-
class
|
62
|
-
|
63
|
-
setup :
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
63
|
+
class ActionDispatch::IntegrationTest
|
64
|
+
|
65
|
+
setup :setup_host
|
66
|
+
|
67
|
+
def setup_host
|
68
|
+
host! 'test.host'
|
69
|
+
end
|
70
|
+
|
71
|
+
# Attaching http_auth stuff with request. Example use:
|
72
|
+
# r :get, '/cms-admin/pages'
|
73
|
+
def r(method, path, options = {})
|
74
|
+
headers = options[:headers] || {}
|
75
|
+
headers['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(
|
76
|
+
ComfortableMexicanSofa::AccessControl::AdminAuthentication.username,
|
77
|
+
ComfortableMexicanSofa::AccessControl::AdminAuthentication.password
|
78
|
+
)
|
79
|
+
options.merge!(headers: headers)
|
80
|
+
send(method, path, options)
|
68
81
|
end
|
69
|
-
|
70
82
|
end
|
71
83
|
|
72
84
|
class Rails::Generators::TestCase
|
73
|
-
|
85
|
+
|
74
86
|
destination File.expand_path('../tmp', File.dirname(__FILE__))
|
75
|
-
|
87
|
+
|
76
88
|
setup :prepare_destination,
|
77
89
|
:prepare_files
|
78
|
-
|
90
|
+
|
79
91
|
def prepare_files
|
80
92
|
config_path = File.join(self.destination_root, 'config')
|
81
93
|
routes_path = File.join(config_path, 'routes.rb')
|
@@ -85,7 +97,7 @@ class Rails::Generators::TestCase
|
|
85
97
|
f.write("Test::Application.routes.draw do\n\nend")
|
86
98
|
end
|
87
99
|
end
|
88
|
-
|
100
|
+
|
89
101
|
def read_file(filename)
|
90
102
|
File.read(
|
91
103
|
File.join(
|
@@ -94,5 +106,4 @@ class Rails::Generators::TestCase
|
|
94
106
|
)
|
95
107
|
)
|
96
108
|
end
|
97
|
-
|
98
|
-
end
|
109
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfy_blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Khabarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: comfortable_mexican_sofa
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.0
|
27
27
|
description: Simple Blog Engine for ComfortableMexicanSofa
|
28
28
|
email:
|
29
29
|
- oleg@khabarov.ca
|
@@ -37,33 +37,17 @@ files:
|
|
37
37
|
- LICENSE
|
38
38
|
- README.md
|
39
39
|
- Rakefile
|
40
|
-
- app/controllers/comfy/admin/blog/base_controller.rb
|
41
|
-
- app/controllers/comfy/admin/blog/blogs_controller.rb
|
42
|
-
- app/controllers/comfy/admin/blog/comments_controller.rb
|
43
40
|
- app/controllers/comfy/admin/blog/posts_controller.rb
|
44
|
-
- app/controllers/comfy/blog/base_controller.rb
|
45
|
-
- app/controllers/comfy/blog/comments_controller.rb
|
46
41
|
- app/controllers/comfy/blog/posts_controller.rb
|
47
|
-
- app/models/comfy/blog/blog.rb
|
48
|
-
- app/models/comfy/blog/comment.rb
|
49
42
|
- app/models/comfy/blog/post.rb
|
50
|
-
- app/views/comfy/admin/blog/blogs/_form.html.haml
|
51
|
-
- app/views/comfy/admin/blog/blogs/edit.html.haml
|
52
|
-
- app/views/comfy/admin/blog/blogs/index.html.haml
|
53
|
-
- app/views/comfy/admin/blog/blogs/new.html.haml
|
54
|
-
- app/views/comfy/admin/blog/comments/_comment.html.haml
|
55
|
-
- app/views/comfy/admin/blog/comments/index.html.haml
|
56
|
-
- app/views/comfy/admin/blog/comments/toggle_publish.js.erb
|
57
43
|
- app/views/comfy/admin/blog/partials/_navigation.html.haml
|
58
44
|
- app/views/comfy/admin/blog/posts/_form.html.haml
|
59
45
|
- app/views/comfy/admin/blog/posts/edit.html.haml
|
60
46
|
- app/views/comfy/admin/blog/posts/index.html.haml
|
61
47
|
- app/views/comfy/admin/blog/posts/new.html.haml
|
62
|
-
- app/views/comfy/blog/comments/_form.html.haml
|
63
48
|
- app/views/comfy/blog/posts/index.html.haml
|
64
49
|
- app/views/comfy/blog/posts/index.rss.builder
|
65
|
-
- app/views/comfy/blog/
|
66
|
-
- app/views/layouts/comfy/blog/application.html.haml
|
50
|
+
- app/views/layouts/comfy/blog/application.html.erb
|
67
51
|
- comfy_blog.gemspec
|
68
52
|
- config.ru
|
69
53
|
- config/application.rb
|
@@ -74,7 +58,25 @@ files:
|
|
74
58
|
- config/environments/development.rb
|
75
59
|
- config/environments/test.rb
|
76
60
|
- config/initializers/comfy_blog.rb
|
77
|
-
- config/
|
61
|
+
- config/locales/cs.yml
|
62
|
+
- config/locales/da.yml
|
63
|
+
- config/locales/de.yml
|
64
|
+
- config/locales/en.yml
|
65
|
+
- config/locales/es.yml
|
66
|
+
- config/locales/fr.yml
|
67
|
+
- config/locales/it.yml
|
68
|
+
- config/locales/ja.yml
|
69
|
+
- config/locales/nb.yml
|
70
|
+
- config/locales/nl.yml
|
71
|
+
- config/locales/pl.yml
|
72
|
+
- config/locales/pt-BR.yml
|
73
|
+
- config/locales/ru.yml
|
74
|
+
- config/locales/sv.yml
|
75
|
+
- config/locales/tr.yml
|
76
|
+
- config/locales/uk.yml
|
77
|
+
- config/locales/zh-CN.yml
|
78
|
+
- config/locales/zh-TW.yml
|
79
|
+
- config/storage.yml
|
78
80
|
- db/migrate/00_create_cms.rb
|
79
81
|
- db/migrate/01_create_blog.rb
|
80
82
|
- lib/comfy_blog.rb
|
@@ -87,24 +89,16 @@ files:
|
|
87
89
|
- lib/generators/comfy/blog/README
|
88
90
|
- lib/generators/comfy/blog/blog_generator.rb
|
89
91
|
- script/rails
|
90
|
-
- test/controllers/comfy/admin/blog/blogs_controller_test.rb
|
91
|
-
- test/controllers/comfy/admin/blog/comments_controller_test.rb
|
92
92
|
- test/controllers/comfy/admin/blog/posts_controller_test.rb
|
93
|
-
- test/controllers/comfy/blog/comments_controller_test.rb
|
94
93
|
- test/controllers/comfy/blog/posts_controller_test.rb
|
95
|
-
- test/fixtures/comfy/blog/blogs.yml
|
96
|
-
- test/fixtures/comfy/blog/comments.yml
|
97
94
|
- test/fixtures/comfy/blog/posts.yml
|
95
|
+
- test/fixtures/comfy/cms/layouts.yml
|
98
96
|
- test/fixtures/comfy/cms/sites.yml
|
99
97
|
- test/fixtures/generators/blog/routes.rb
|
100
|
-
- test/gemfiles/Gemfile.rails.
|
101
|
-
- test/gemfiles/Gemfile.rails.4.1
|
102
|
-
- test/gemfiles/Gemfile.rails.4.2
|
103
|
-
- test/gemfiles/Gemfile.rails.master
|
98
|
+
- test/gemfiles/Gemfile.rails.5.2
|
104
99
|
- test/generators/blog_generator_test.rb
|
100
|
+
- test/integration/i18n_test.rb
|
105
101
|
- test/lib/configuration_test.rb
|
106
|
-
- test/models/blog_test.rb
|
107
|
-
- test/models/comments_test.rb
|
108
102
|
- test/models/posts_test.rb
|
109
103
|
- test/test_helper.rb
|
110
104
|
homepage: http://github.com/comfy/comfy-blog
|
@@ -119,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
113
|
requirements:
|
120
114
|
- - ">="
|
121
115
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
116
|
+
version: 2.2.2
|
123
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
118
|
requirements:
|
125
119
|
- - ">="
|
@@ -127,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
121
|
version: '0'
|
128
122
|
requirements: []
|
129
123
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.6.11
|
131
125
|
signing_key:
|
132
126
|
specification_version: 4
|
133
127
|
summary: Simple Blog Engine for ComfortableMexicanSofa
|