comfy_blog 0.1.8 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.travis.yml +11 -0
- data/Gemfile +8 -6
- data/LICENSE +2 -2
- data/README.md +22 -56
- data/Rakefile +19 -16
- data/app/controllers/admin/blog/base_controller.rb +11 -2
- data/app/controllers/admin/blog/blogs_controller.rb +51 -0
- data/app/controllers/admin/blog/comments_controller.rb +16 -17
- data/app/controllers/admin/blog/posts_controller.rb +26 -26
- data/app/controllers/blog/base_controller.rb +31 -0
- data/app/controllers/blog/comments_controller.rb +25 -27
- data/app/controllers/blog/posts_controller.rb +36 -29
- data/app/models/blog/blog.rb +29 -0
- data/app/models/blog/comment.rb +7 -9
- data/app/models/blog/post.rb +17 -55
- data/app/views/admin/blog/blogs/_form.html.haml +11 -0
- data/app/views/admin/blog/blogs/edit.html.haml +5 -0
- data/app/views/admin/blog/blogs/index.html.haml +26 -0
- data/app/views/admin/blog/blogs/new.html.haml +5 -0
- data/app/views/admin/blog/comments/_comment.html.haml +17 -0
- data/app/views/admin/blog/comments/index.html.haml +17 -0
- data/app/views/admin/blog/comments/toggle_publish.js.erb +1 -0
- data/app/views/admin/blog/partials/_navigation.html.haml +6 -0
- data/app/views/admin/blog/posts/_form.html.haml +13 -0
- data/app/views/admin/blog/posts/edit.html.haml +5 -0
- data/app/views/admin/blog/posts/index.html.haml +32 -0
- data/app/views/admin/blog/posts/new.html.haml +5 -0
- data/app/views/blog/comments/_form.html.haml +10 -0
- data/app/views/blog/posts/index.html.haml +13 -0
- data/app/views/blog/posts/index.rss.builder +7 -5
- data/app/views/blog/posts/show.html.haml +18 -0
- data/app/views/layouts/blog/application.html.haml +7 -0
- data/comfy_blog.gemspec +16 -128
- data/config.ru +1 -1
- data/config/application.rb +6 -26
- data/config/blog_routes.rb +6 -0
- data/config/boot.rb +1 -2
- data/config/database.yml +2 -16
- data/config/environments/development.rb +10 -16
- data/config/environments/test.rb +14 -20
- data/config/initializers/comfy_blog.rb +1 -16
- data/config/initializers/secret_token.rb +14 -2
- data/db/migrate/00_create_cms.rb +137 -0
- data/db/migrate/01_create_blog.rb +52 -0
- data/lib/comfy_blog.rb +14 -17
- data/lib/comfy_blog/configuration.rb +1 -35
- data/lib/comfy_blog/engine.rb +17 -11
- data/lib/comfy_blog/routing.rb +38 -0
- data/lib/comfy_blog/version.rb +3 -0
- data/lib/generators/comfy/blog/README +7 -7
- data/lib/generators/comfy/blog/blog_generator.rb +24 -10
- data/script/rails +1 -1
- data/test/controllers/admin/blog/blogs_controller_test.rb +94 -0
- data/test/controllers/admin/blog/comments_controller_test.rb +57 -0
- data/test/{functional → controllers}/admin/blog/posts_controller_test.rb +31 -31
- data/test/controllers/blog/comments_controller_test.rb +36 -0
- data/test/controllers/blog/posts_controller_test.rb +80 -0
- data/test/fixtures/blog/blogs.yml +7 -0
- data/test/fixtures/blog/posts.yml +1 -0
- data/test/fixtures/cms/sites.yml +4 -0
- data/test/fixtures/generators/blog/routes.rb +6 -0
- data/test/generators/blog_generator_test.rb +19 -0
- data/test/lib/configuration_test.rb +16 -0
- data/test/models/blog/blog_test.rb +59 -0
- data/test/{unit/comment_test.rb → models/blog/comments_test.rb} +4 -5
- data/test/models/blog/posts_test.rb +88 -0
- data/test/test_helper.rb +80 -27
- metadata +53 -111
- data/VERSION +0 -1
- data/app/assets/images/rails.png +0 -0
- data/app/assets/javascripts/application.js +0 -8
- data/app/controllers/admin/blog/tags_controller.rb +0 -56
- data/app/controllers/application_controller.rb +0 -5
- data/app/helpers/blog/application_helper.rb +0 -23
- data/app/models/.gitkeep +0 -0
- data/app/models/blog/tag.rb +0 -25
- data/app/models/blog/tagging.rb +0 -22
- data/app/views/admin/blog/_navigation.html.erb +0 -1
- data/app/views/admin/blog/comments/_comment.html.erb +0 -22
- data/app/views/admin/blog/comments/destroy.js.erb +0 -3
- data/app/views/admin/blog/comments/index.html.erb +0 -12
- data/app/views/admin/blog/comments/publish.js.erb +0 -1
- data/app/views/admin/blog/posts/_form.html.erb +0 -37
- data/app/views/admin/blog/posts/_post.html.erb +0 -29
- data/app/views/admin/blog/posts/edit.html.erb +0 -5
- data/app/views/admin/blog/posts/index.html.erb +0 -15
- data/app/views/admin/blog/posts/new.html.erb +0 -5
- data/app/views/admin/blog/tags/_form.html.erb +0 -20
- data/app/views/admin/blog/tags/_tag.html.erb +0 -16
- data/app/views/admin/blog/tags/edit.html.erb +0 -5
- data/app/views/admin/blog/tags/index.html.erb +0 -9
- data/app/views/admin/blog/tags/new.html.erb +0 -5
- data/app/views/blog/comments/_comment.html.erb +0 -4
- data/app/views/blog/comments/_disqus.html.erb +0 -14
- data/app/views/blog/comments/_form.html.erb +0 -6
- data/app/views/blog/comments/create.js.erb +0 -6
- data/app/views/blog/posts/_post.html.erb +0 -8
- data/app/views/blog/posts/index.html.erb +0 -9
- data/app/views/blog/posts/show.html.erb +0 -13
- data/app/views/layouts/application.html.erb +0 -17
- data/config/locales/en.yml +0 -5
- data/config/routes.rb +0 -37
- data/db/migrate/01_create_comfy_blog.rb +0 -55
- data/db/schema.rb +0 -63
- data/db/seeds.rb +0 -7
- data/lib/comfy_blog/core_ext/string.rb +0 -8
- data/lib/comfy_blog/form_builder.rb +0 -50
- data/lib/tasks/comfy_blog.rake +0 -4
- data/test/fixtures/.gitkeep +0 -0
- data/test/fixtures/blog/taggings.yml +0 -7
- data/test/fixtures/blog/tags.yml +0 -14
- data/test/functional/.gitkeep +0 -0
- data/test/functional/admin/blog/comments_controller_test.rb +0 -38
- data/test/functional/admin/blog/tags_controller_test.rb +0 -88
- data/test/functional/blog/comments_controller_test.rb +0 -78
- data/test/functional/blog/posts_controller_test.rb +0 -110
- data/test/integration/routing_test.rb +0 -26
- data/test/unit/.gitkeep +0 -0
- data/test/unit/configuration_test.rb +0 -29
- data/test/unit/helpers/blog/application_helper_test.rb +0 -10
- data/test/unit/post_test.rb +0 -147
- data/test/unit/tag_test.rb +0 -45
- data/test/unit/tagging_test.rb +0 -30
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative '../test_helper'
|
2
|
+
|
3
|
+
class ConfigurationTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
def test_configuration
|
6
|
+
assert config = ComfyBlog.configuration
|
7
|
+
assert_equal 10, config.posts_per_page
|
8
|
+
assert_equal false, config.auto_publish_comments
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_initialization_overrides
|
12
|
+
ComfyBlog.config.posts_per_page = 5
|
13
|
+
assert_equal 5, ComfyBlog.config.posts_per_page
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require_relative '../../test_helper'
|
2
|
+
|
3
|
+
class BlogTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
def test_site_association
|
6
|
+
assert_equal [blog_blogs(:default)], cms_sites(:default).blogs
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_fixtures_validity
|
10
|
+
Blog::Blog.all.each do |blog|
|
11
|
+
assert blog.valid?, blog.errors.inspect
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_validation
|
16
|
+
blog = Blog::Blog.new
|
17
|
+
assert blog.invalid?
|
18
|
+
assert_errors_on blog, :site_id, :label, :identifier, :path
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_validation_path_presence
|
22
|
+
blog_a = blog_blogs(:default)
|
23
|
+
refute blog_a.path.present?
|
24
|
+
|
25
|
+
blog_b = cms_sites(:default).blogs.new(
|
26
|
+
:label => 'Test Blog A',
|
27
|
+
:identifier => 'test-blog-a'
|
28
|
+
)
|
29
|
+
assert blog_b.invalid?
|
30
|
+
assert_errors_on blog_b, :path
|
31
|
+
|
32
|
+
blog_a.update_column(:path, 'blog-a')
|
33
|
+
assert blog_b.invalid?
|
34
|
+
assert_errors_on blog_b, :path
|
35
|
+
|
36
|
+
blog_b.path = 'blog-a'
|
37
|
+
assert blog_b.invalid?
|
38
|
+
assert_errors_on blog_b, :path
|
39
|
+
|
40
|
+
blog_b.path = 'blog-b'
|
41
|
+
assert blog_b.valid?
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_creation
|
45
|
+
assert_difference 'Blog::Blog.count' do
|
46
|
+
cms_sites(:default).blogs.create(
|
47
|
+
:label => 'Test Blog',
|
48
|
+
:identifier => 'test-blog',
|
49
|
+
:path => 'test-blog'
|
50
|
+
)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def test_destroy
|
55
|
+
assert_difference ['Blog::Blog.count', 'Blog::Post.count'], -1 do
|
56
|
+
blog_blogs(:default).destroy
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
require_relative '../../test_helper'
|
2
2
|
|
3
|
-
class
|
3
|
+
class BlogCommentsTest < ActiveSupport::TestCase
|
4
4
|
|
5
5
|
def test_fixtures_validity
|
6
6
|
Blog::Comment.all.each do |comment|
|
@@ -11,7 +11,7 @@ class CommentTest < ActiveSupport::TestCase
|
|
11
11
|
def test_validations
|
12
12
|
comment = Blog::Comment.new
|
13
13
|
assert comment.invalid?
|
14
|
-
|
14
|
+
assert_errors_on comment, [:post_id, :content, :author, :email]
|
15
15
|
end
|
16
16
|
|
17
17
|
def test_creation
|
@@ -38,9 +38,8 @@ class CommentTest < ActiveSupport::TestCase
|
|
38
38
|
|
39
39
|
def test_scope_published
|
40
40
|
assert_equal 1, Blog::Comment.published.count
|
41
|
-
|
42
41
|
blog_comments(:default).update_attribute(:is_published, false)
|
43
42
|
assert_equal 0, Blog::Comment.published.count
|
44
43
|
end
|
45
44
|
|
46
|
-
end
|
45
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
require_relative '../../test_helper'
|
2
|
+
|
3
|
+
class BlogPostsTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
def test_fixtures_validity
|
6
|
+
Blog::Post.all.each do |post|
|
7
|
+
assert post.valid?, post.errors.full_messages.to_s
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_validations
|
12
|
+
post = Blog::Post.new
|
13
|
+
assert post.invalid?
|
14
|
+
assert_errors_on post, :blog_id, :title, :slug, :content
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_validation_of_slug_uniqueness
|
18
|
+
old_post = blog_posts(:default)
|
19
|
+
old_post.update_attributes!(:published_at => Time.now)
|
20
|
+
post = blog_blogs(:default).posts.new(
|
21
|
+
:title => old_post.title,
|
22
|
+
:content => 'Test Content'
|
23
|
+
)
|
24
|
+
assert post.invalid?
|
25
|
+
assert_errors_on post, [:slug]
|
26
|
+
|
27
|
+
old_post.update_attributes!(:published_at => 1.year.ago)
|
28
|
+
assert post.valid?
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_creation
|
32
|
+
assert_difference 'Blog::Post.count' do
|
33
|
+
post = blog_blogs(:default).posts.create!(
|
34
|
+
:title => 'Test Post',
|
35
|
+
:content => 'Test Content'
|
36
|
+
)
|
37
|
+
assert_equal 'test-post', post.slug
|
38
|
+
assert_equal Time.now.year, post.year
|
39
|
+
assert_equal Time.now.month, post.month
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_set_slug
|
44
|
+
post = Blog::Post.new(:title => 'Test Title')
|
45
|
+
post.send(:set_slug)
|
46
|
+
assert_equal 'test-title', post.slug
|
47
|
+
end
|
48
|
+
|
49
|
+
def test_set_date
|
50
|
+
post = Blog::Post.new
|
51
|
+
post.send(:set_published_at)
|
52
|
+
post.send(:set_date)
|
53
|
+
assert_equal post.published_at.year, post.year
|
54
|
+
assert_equal post.published_at.month, post.month
|
55
|
+
end
|
56
|
+
|
57
|
+
def test_set_published_at
|
58
|
+
post = Blog::Post.new
|
59
|
+
post.send(:set_published_at)
|
60
|
+
assert post.published_at.present?
|
61
|
+
end
|
62
|
+
|
63
|
+
def test_destroy
|
64
|
+
assert_difference ['Blog::Post.count', 'Blog::Comment.count'], -1 do
|
65
|
+
blog_posts(:default).destroy
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def test_scope_published
|
70
|
+
post = blog_posts(:default)
|
71
|
+
assert post.is_published?
|
72
|
+
assert_equal 1, Blog::Post.published.count
|
73
|
+
|
74
|
+
post.update_attribute(:is_published, false)
|
75
|
+
assert_equal 0, Blog::Post.published.count
|
76
|
+
end
|
77
|
+
|
78
|
+
def test_scope_for_year
|
79
|
+
assert_equal 1, Blog::Post.for_year(2012).count
|
80
|
+
assert_equal 0, Blog::Post.for_year(2013).count
|
81
|
+
end
|
82
|
+
|
83
|
+
def test_scope_for_month
|
84
|
+
assert_equal 1, Blog::Post.for_month(1).count
|
85
|
+
assert_equal 0, Blog::Post.for_month(2).count
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,44 +1,97 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!('rails')
|
3
|
+
|
4
|
+
ENV['RAILS_ENV'] = 'test'
|
5
|
+
|
6
|
+
require_relative '../config/environment'
|
3
7
|
require 'rails/test_help'
|
8
|
+
require 'rails/generators'
|
9
|
+
|
10
|
+
Rails.backtrace_cleaner.remove_silencers!
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
|
4
14
|
|
5
15
|
class ActiveSupport::TestCase
|
6
16
|
|
7
17
|
fixtures :all
|
8
|
-
include ActionDispatch::TestProcess
|
9
18
|
|
10
|
-
|
11
|
-
reset_config
|
12
|
-
end
|
19
|
+
setup :reset_config
|
13
20
|
|
14
|
-
# resetting default configuration
|
15
21
|
def reset_config
|
16
22
|
ComfyBlog.configure do |config|
|
17
|
-
config.
|
18
|
-
config.
|
19
|
-
config.admin_route_prefix = 'admin'
|
20
|
-
config.public_route_prefix = ''
|
21
|
-
config.admin_controller = 'ApplicationController'
|
22
|
-
config.form_builder = 'ComfyBlog::FormBuilder'
|
23
|
-
config.public_layout = 'application'
|
24
|
-
config.posts_per_page = 10
|
25
|
-
config.auto_publish_comments = false
|
26
|
-
config.disqus_shortname = nil
|
23
|
+
config.posts_per_page = 10
|
24
|
+
config.auto_publish_comments = false
|
27
25
|
end
|
28
26
|
end
|
29
27
|
|
30
28
|
# Example usage:
|
31
|
-
# assert_has_errors_on
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
fields.
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
29
|
+
# assert_has_errors_on @record, :field_1, :field_2
|
30
|
+
def assert_errors_on(record, *fields)
|
31
|
+
unmatched = record.errors.keys - fields.flatten
|
32
|
+
assert unmatched.blank?, "#{record.class} has errors on '#{unmatched.join(', ')}'"
|
33
|
+
unmatched = fields.flatten - record.errors.keys
|
34
|
+
assert unmatched.blank?, "#{record.class} doesn't have errors on '#{unmatched.join(', ')}'"
|
35
|
+
end
|
36
|
+
|
37
|
+
# Example usage:
|
38
|
+
# assert_exception_raised do ... end
|
39
|
+
# assert_exception_raised ActiveRecord::RecordInvalid do ... end
|
40
|
+
# assert_exception_raised Plugin::Error, 'error_message' do ... end
|
41
|
+
def assert_exception_raised(exception_class = nil, error_message = nil, &block)
|
42
|
+
exception_raised = nil
|
43
|
+
yield
|
44
|
+
rescue => exception_raised
|
45
|
+
ensure
|
46
|
+
if exception_raised
|
47
|
+
if exception_class
|
48
|
+
assert_equal exception_class, exception_raised.class, exception_raised.to_s
|
49
|
+
else
|
50
|
+
assert true
|
41
51
|
end
|
52
|
+
assert_equal error_message, exception_raised.to_s if error_message
|
53
|
+
else
|
54
|
+
flunk 'Exception was not raised'
|
42
55
|
end
|
43
56
|
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
class ActionController::TestCase
|
61
|
+
|
62
|
+
setup :set_basic_auth
|
63
|
+
|
64
|
+
# CMS by default is going to prompt with basic auth request
|
65
|
+
def set_basic_auth
|
66
|
+
@request.env['HTTP_AUTHORIZATION'] = "Basic #{Base64.encode64('username:password')}"
|
67
|
+
end
|
68
|
+
|
44
69
|
end
|
70
|
+
|
71
|
+
class Rails::Generators::TestCase
|
72
|
+
|
73
|
+
destination File.expand_path('../tmp', File.dirname(__FILE__))
|
74
|
+
|
75
|
+
setup :prepare_destination,
|
76
|
+
:prepare_files
|
77
|
+
|
78
|
+
def prepare_files
|
79
|
+
config_path = File.join(self.destination_root, 'config')
|
80
|
+
routes_path = File.join(config_path, 'routes.rb')
|
81
|
+
FileUtils.mkdir_p(config_path)
|
82
|
+
FileUtils.touch(routes_path)
|
83
|
+
File.open(routes_path, 'w') do |f|
|
84
|
+
f.write("Test::Application.routes.draw do\n\nend")
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
def read_file(filename)
|
89
|
+
File.read(
|
90
|
+
File.join(
|
91
|
+
File.expand_path('fixtures/generators', File.dirname(__FILE__)),
|
92
|
+
filename
|
93
|
+
)
|
94
|
+
)
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
metadata
CHANGED
@@ -1,120 +1,74 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfy_blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Oleg Khabarov
|
9
|
-
- The Working Group Inc
|
8
|
+
- The Working Group Inc
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2013-10-22 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
15
|
+
name: comfortable_mexican_sofa
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ! '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
20
|
+
version: 1.10.0
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ! '>='
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
none: false
|
35
|
-
requirements:
|
36
|
-
- - ! '>='
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: 1.0.4
|
39
|
-
type: :runtime
|
40
|
-
prerelease: false
|
41
|
-
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ! '>='
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 1.0.4
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: jquery-rails
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.0
|
55
|
-
type: :runtime
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
|
-
requirements:
|
60
|
-
- - ! '>='
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 1.0.0
|
63
|
-
description: ''
|
64
|
-
email: oleg@twg.ca
|
27
|
+
version: 1.10.0
|
28
|
+
description: Simple Blog Engine for ComfortableMexicanSofa
|
29
|
+
email:
|
30
|
+
- oleg@khabarov.ca
|
65
31
|
executables: []
|
66
32
|
extensions: []
|
67
|
-
extra_rdoc_files:
|
68
|
-
- LICENSE
|
69
|
-
- README.md
|
33
|
+
extra_rdoc_files: []
|
70
34
|
files:
|
35
|
+
- .gitignore
|
36
|
+
- .travis.yml
|
71
37
|
- Gemfile
|
72
38
|
- LICENSE
|
73
39
|
- README.md
|
74
40
|
- Rakefile
|
75
|
-
- VERSION
|
76
|
-
- app/assets/images/rails.png
|
77
|
-
- app/assets/javascripts/application.js
|
78
41
|
- app/controllers/admin/blog/base_controller.rb
|
42
|
+
- app/controllers/admin/blog/blogs_controller.rb
|
79
43
|
- app/controllers/admin/blog/comments_controller.rb
|
80
44
|
- app/controllers/admin/blog/posts_controller.rb
|
81
|
-
- app/controllers/
|
82
|
-
- app/controllers/application_controller.rb
|
45
|
+
- app/controllers/blog/base_controller.rb
|
83
46
|
- app/controllers/blog/comments_controller.rb
|
84
47
|
- app/controllers/blog/posts_controller.rb
|
85
|
-
- app/
|
86
|
-
- app/models/.gitkeep
|
48
|
+
- app/models/blog/blog.rb
|
87
49
|
- app/models/blog/comment.rb
|
88
50
|
- app/models/blog/post.rb
|
89
|
-
- app/
|
90
|
-
- app/
|
91
|
-
- app/views/admin/blog/
|
92
|
-
- app/views/admin/blog/
|
93
|
-
- app/views/admin/blog/comments/
|
94
|
-
- app/views/admin/blog/comments/index.html.
|
95
|
-
- app/views/admin/blog/comments/
|
96
|
-
- app/views/admin/blog/
|
97
|
-
- app/views/admin/blog/posts/
|
98
|
-
- app/views/admin/blog/posts/edit.html.
|
99
|
-
- app/views/admin/blog/posts/index.html.
|
100
|
-
- app/views/admin/blog/posts/new.html.
|
101
|
-
- app/views/
|
102
|
-
- app/views/
|
103
|
-
- app/views/admin/blog/tags/edit.html.erb
|
104
|
-
- app/views/admin/blog/tags/index.html.erb
|
105
|
-
- app/views/admin/blog/tags/new.html.erb
|
106
|
-
- app/views/blog/comments/_comment.html.erb
|
107
|
-
- app/views/blog/comments/_disqus.html.erb
|
108
|
-
- app/views/blog/comments/_form.html.erb
|
109
|
-
- app/views/blog/comments/create.js.erb
|
110
|
-
- app/views/blog/posts/_post.html.erb
|
111
|
-
- app/views/blog/posts/index.html.erb
|
51
|
+
- app/views/admin/blog/blogs/_form.html.haml
|
52
|
+
- app/views/admin/blog/blogs/edit.html.haml
|
53
|
+
- app/views/admin/blog/blogs/index.html.haml
|
54
|
+
- app/views/admin/blog/blogs/new.html.haml
|
55
|
+
- app/views/admin/blog/comments/_comment.html.haml
|
56
|
+
- app/views/admin/blog/comments/index.html.haml
|
57
|
+
- app/views/admin/blog/comments/toggle_publish.js.erb
|
58
|
+
- app/views/admin/blog/partials/_navigation.html.haml
|
59
|
+
- app/views/admin/blog/posts/_form.html.haml
|
60
|
+
- app/views/admin/blog/posts/edit.html.haml
|
61
|
+
- app/views/admin/blog/posts/index.html.haml
|
62
|
+
- app/views/admin/blog/posts/new.html.haml
|
63
|
+
- app/views/blog/comments/_form.html.haml
|
64
|
+
- app/views/blog/posts/index.html.haml
|
112
65
|
- app/views/blog/posts/index.rss.builder
|
113
|
-
- app/views/blog/posts/show.html.
|
114
|
-
- app/views/layouts/application.html.
|
66
|
+
- app/views/blog/posts/show.html.haml
|
67
|
+
- app/views/layouts/blog/application.html.haml
|
115
68
|
- comfy_blog.gemspec
|
116
69
|
- config.ru
|
117
70
|
- config/application.rb
|
71
|
+
- config/blog_routes.rb
|
118
72
|
- config/boot.rb
|
119
73
|
- config/database.yml
|
120
74
|
- config/environment.rb
|
@@ -122,66 +76,54 @@ files:
|
|
122
76
|
- config/environments/test.rb
|
123
77
|
- config/initializers/comfy_blog.rb
|
124
78
|
- config/initializers/secret_token.rb
|
125
|
-
-
|
126
|
-
-
|
127
|
-
- db/migrate/01_create_comfy_blog.rb
|
128
|
-
- db/schema.rb
|
129
|
-
- db/seeds.rb
|
79
|
+
- db/migrate/00_create_cms.rb
|
80
|
+
- db/migrate/01_create_blog.rb
|
130
81
|
- lib/comfy_blog.rb
|
131
82
|
- lib/comfy_blog/configuration.rb
|
132
|
-
- lib/comfy_blog/core_ext/string.rb
|
133
83
|
- lib/comfy_blog/engine.rb
|
134
|
-
- lib/comfy_blog/
|
84
|
+
- lib/comfy_blog/routing.rb
|
85
|
+
- lib/comfy_blog/version.rb
|
135
86
|
- lib/generators/comfy/blog/README
|
136
87
|
- lib/generators/comfy/blog/blog_generator.rb
|
137
|
-
- lib/tasks/comfy_blog.rake
|
138
88
|
- script/rails
|
139
|
-
- test/
|
89
|
+
- test/controllers/admin/blog/blogs_controller_test.rb
|
90
|
+
- test/controllers/admin/blog/comments_controller_test.rb
|
91
|
+
- test/controllers/admin/blog/posts_controller_test.rb
|
92
|
+
- test/controllers/blog/comments_controller_test.rb
|
93
|
+
- test/controllers/blog/posts_controller_test.rb
|
94
|
+
- test/fixtures/blog/blogs.yml
|
140
95
|
- test/fixtures/blog/comments.yml
|
141
96
|
- test/fixtures/blog/posts.yml
|
142
|
-
- test/fixtures/
|
143
|
-
- test/fixtures/blog/
|
144
|
-
- test/
|
145
|
-
- test/
|
146
|
-
- test/
|
147
|
-
- test/
|
148
|
-
- test/
|
149
|
-
- test/functional/blog/posts_controller_test.rb
|
150
|
-
- test/integration/routing_test.rb
|
97
|
+
- test/fixtures/cms/sites.yml
|
98
|
+
- test/fixtures/generators/blog/routes.rb
|
99
|
+
- test/generators/blog_generator_test.rb
|
100
|
+
- test/lib/configuration_test.rb
|
101
|
+
- test/models/blog/blog_test.rb
|
102
|
+
- test/models/blog/comments_test.rb
|
103
|
+
- test/models/blog/posts_test.rb
|
151
104
|
- test/test_helper.rb
|
152
|
-
- test/unit/.gitkeep
|
153
|
-
- test/unit/comment_test.rb
|
154
|
-
- test/unit/configuration_test.rb
|
155
|
-
- test/unit/helpers/blog/application_helper_test.rb
|
156
|
-
- test/unit/post_test.rb
|
157
|
-
- test/unit/tag_test.rb
|
158
|
-
- test/unit/tagging_test.rb
|
159
105
|
homepage: http://github.com/comfy/comfy-blog
|
160
106
|
licenses:
|
161
107
|
- MIT
|
108
|
+
metadata: {}
|
162
109
|
post_install_message:
|
163
110
|
rdoc_options: []
|
164
111
|
require_paths:
|
165
112
|
- lib
|
166
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
167
|
-
none: false
|
168
114
|
requirements:
|
169
115
|
- - ! '>='
|
170
116
|
- !ruby/object:Gem::Version
|
171
117
|
version: '0'
|
172
|
-
segments:
|
173
|
-
- 0
|
174
|
-
hash: -3059080312658189013
|
175
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
|
-
none: false
|
177
119
|
requirements:
|
178
120
|
- - ! '>='
|
179
121
|
- !ruby/object:Gem::Version
|
180
122
|
version: '0'
|
181
123
|
requirements: []
|
182
124
|
rubyforge_project:
|
183
|
-
rubygems_version:
|
125
|
+
rubygems_version: 2.0.3
|
184
126
|
signing_key:
|
185
|
-
specification_version:
|
186
|
-
summary:
|
127
|
+
specification_version: 4
|
128
|
+
summary: Simple Blog Engine for ComfortableMexicanSofa
|
187
129
|
test_files: []
|