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.
Files changed (125) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/.travis.yml +11 -0
  4. data/Gemfile +8 -6
  5. data/LICENSE +2 -2
  6. data/README.md +22 -56
  7. data/Rakefile +19 -16
  8. data/app/controllers/admin/blog/base_controller.rb +11 -2
  9. data/app/controllers/admin/blog/blogs_controller.rb +51 -0
  10. data/app/controllers/admin/blog/comments_controller.rb +16 -17
  11. data/app/controllers/admin/blog/posts_controller.rb +26 -26
  12. data/app/controllers/blog/base_controller.rb +31 -0
  13. data/app/controllers/blog/comments_controller.rb +25 -27
  14. data/app/controllers/blog/posts_controller.rb +36 -29
  15. data/app/models/blog/blog.rb +29 -0
  16. data/app/models/blog/comment.rb +7 -9
  17. data/app/models/blog/post.rb +17 -55
  18. data/app/views/admin/blog/blogs/_form.html.haml +11 -0
  19. data/app/views/admin/blog/blogs/edit.html.haml +5 -0
  20. data/app/views/admin/blog/blogs/index.html.haml +26 -0
  21. data/app/views/admin/blog/blogs/new.html.haml +5 -0
  22. data/app/views/admin/blog/comments/_comment.html.haml +17 -0
  23. data/app/views/admin/blog/comments/index.html.haml +17 -0
  24. data/app/views/admin/blog/comments/toggle_publish.js.erb +1 -0
  25. data/app/views/admin/blog/partials/_navigation.html.haml +6 -0
  26. data/app/views/admin/blog/posts/_form.html.haml +13 -0
  27. data/app/views/admin/blog/posts/edit.html.haml +5 -0
  28. data/app/views/admin/blog/posts/index.html.haml +32 -0
  29. data/app/views/admin/blog/posts/new.html.haml +5 -0
  30. data/app/views/blog/comments/_form.html.haml +10 -0
  31. data/app/views/blog/posts/index.html.haml +13 -0
  32. data/app/views/blog/posts/index.rss.builder +7 -5
  33. data/app/views/blog/posts/show.html.haml +18 -0
  34. data/app/views/layouts/blog/application.html.haml +7 -0
  35. data/comfy_blog.gemspec +16 -128
  36. data/config.ru +1 -1
  37. data/config/application.rb +6 -26
  38. data/config/blog_routes.rb +6 -0
  39. data/config/boot.rb +1 -2
  40. data/config/database.yml +2 -16
  41. data/config/environments/development.rb +10 -16
  42. data/config/environments/test.rb +14 -20
  43. data/config/initializers/comfy_blog.rb +1 -16
  44. data/config/initializers/secret_token.rb +14 -2
  45. data/db/migrate/00_create_cms.rb +137 -0
  46. data/db/migrate/01_create_blog.rb +52 -0
  47. data/lib/comfy_blog.rb +14 -17
  48. data/lib/comfy_blog/configuration.rb +1 -35
  49. data/lib/comfy_blog/engine.rb +17 -11
  50. data/lib/comfy_blog/routing.rb +38 -0
  51. data/lib/comfy_blog/version.rb +3 -0
  52. data/lib/generators/comfy/blog/README +7 -7
  53. data/lib/generators/comfy/blog/blog_generator.rb +24 -10
  54. data/script/rails +1 -1
  55. data/test/controllers/admin/blog/blogs_controller_test.rb +94 -0
  56. data/test/controllers/admin/blog/comments_controller_test.rb +57 -0
  57. data/test/{functional → controllers}/admin/blog/posts_controller_test.rb +31 -31
  58. data/test/controllers/blog/comments_controller_test.rb +36 -0
  59. data/test/controllers/blog/posts_controller_test.rb +80 -0
  60. data/test/fixtures/blog/blogs.yml +7 -0
  61. data/test/fixtures/blog/posts.yml +1 -0
  62. data/test/fixtures/cms/sites.yml +4 -0
  63. data/test/fixtures/generators/blog/routes.rb +6 -0
  64. data/test/generators/blog_generator_test.rb +19 -0
  65. data/test/lib/configuration_test.rb +16 -0
  66. data/test/models/blog/blog_test.rb +59 -0
  67. data/test/{unit/comment_test.rb → models/blog/comments_test.rb} +4 -5
  68. data/test/models/blog/posts_test.rb +88 -0
  69. data/test/test_helper.rb +80 -27
  70. metadata +53 -111
  71. data/VERSION +0 -1
  72. data/app/assets/images/rails.png +0 -0
  73. data/app/assets/javascripts/application.js +0 -8
  74. data/app/controllers/admin/blog/tags_controller.rb +0 -56
  75. data/app/controllers/application_controller.rb +0 -5
  76. data/app/helpers/blog/application_helper.rb +0 -23
  77. data/app/models/.gitkeep +0 -0
  78. data/app/models/blog/tag.rb +0 -25
  79. data/app/models/blog/tagging.rb +0 -22
  80. data/app/views/admin/blog/_navigation.html.erb +0 -1
  81. data/app/views/admin/blog/comments/_comment.html.erb +0 -22
  82. data/app/views/admin/blog/comments/destroy.js.erb +0 -3
  83. data/app/views/admin/blog/comments/index.html.erb +0 -12
  84. data/app/views/admin/blog/comments/publish.js.erb +0 -1
  85. data/app/views/admin/blog/posts/_form.html.erb +0 -37
  86. data/app/views/admin/blog/posts/_post.html.erb +0 -29
  87. data/app/views/admin/blog/posts/edit.html.erb +0 -5
  88. data/app/views/admin/blog/posts/index.html.erb +0 -15
  89. data/app/views/admin/blog/posts/new.html.erb +0 -5
  90. data/app/views/admin/blog/tags/_form.html.erb +0 -20
  91. data/app/views/admin/blog/tags/_tag.html.erb +0 -16
  92. data/app/views/admin/blog/tags/edit.html.erb +0 -5
  93. data/app/views/admin/blog/tags/index.html.erb +0 -9
  94. data/app/views/admin/blog/tags/new.html.erb +0 -5
  95. data/app/views/blog/comments/_comment.html.erb +0 -4
  96. data/app/views/blog/comments/_disqus.html.erb +0 -14
  97. data/app/views/blog/comments/_form.html.erb +0 -6
  98. data/app/views/blog/comments/create.js.erb +0 -6
  99. data/app/views/blog/posts/_post.html.erb +0 -8
  100. data/app/views/blog/posts/index.html.erb +0 -9
  101. data/app/views/blog/posts/show.html.erb +0 -13
  102. data/app/views/layouts/application.html.erb +0 -17
  103. data/config/locales/en.yml +0 -5
  104. data/config/routes.rb +0 -37
  105. data/db/migrate/01_create_comfy_blog.rb +0 -55
  106. data/db/schema.rb +0 -63
  107. data/db/seeds.rb +0 -7
  108. data/lib/comfy_blog/core_ext/string.rb +0 -8
  109. data/lib/comfy_blog/form_builder.rb +0 -50
  110. data/lib/tasks/comfy_blog.rake +0 -4
  111. data/test/fixtures/.gitkeep +0 -0
  112. data/test/fixtures/blog/taggings.yml +0 -7
  113. data/test/fixtures/blog/tags.yml +0 -14
  114. data/test/functional/.gitkeep +0 -0
  115. data/test/functional/admin/blog/comments_controller_test.rb +0 -38
  116. data/test/functional/admin/blog/tags_controller_test.rb +0 -88
  117. data/test/functional/blog/comments_controller_test.rb +0 -78
  118. data/test/functional/blog/posts_controller_test.rb +0 -110
  119. data/test/integration/routing_test.rb +0 -26
  120. data/test/unit/.gitkeep +0 -0
  121. data/test/unit/configuration_test.rb +0 -29
  122. data/test/unit/helpers/blog/application_helper_test.rb +0 -10
  123. data/test/unit/post_test.rb +0 -147
  124. data/test/unit/tag_test.rb +0 -45
  125. 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
- require File.expand_path('../test_helper', File.dirname(__FILE__))
1
+ require_relative '../../test_helper'
2
2
 
3
- class CommentTest < ActiveSupport::TestCase
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
- assert_has_errors_on comment, [:post_id, :content, :author, :email]
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
@@ -1,44 +1,97 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path('../../config/environment', __FILE__)
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
- def setup
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.title = 'ComfyBlog'
18
- config.description = 'A Simple Blog'
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( @record, [:field_1, :field_2] )
32
- # assert_has_errors_on( @record, {:field_1 => 'Message1', :field_2 => 'Message 2'} )
33
- def assert_has_errors_on(record, fields)
34
- fields = [fields].flatten unless fields.is_a?(Hash)
35
- fields.each do |field, message|
36
- assert record.errors.to_hash.has_key?(field.to_sym), "#{record.class.name} should error on invalid #{field}"
37
- if message && record.errors[field].is_a?(Array) && !message.is_a?(Array)
38
- assert_not_nil record.errors[field].index(message)
39
- elsif message
40
- assert_equal message, record.errors[field]
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.1.8
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: 2012-05-09 00:00:00.000000000 Z
12
+ date: 2013-10-22 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- name: rails
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: 3.1.0
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: 3.1.0
31
- - !ruby/object:Gem::Dependency
32
- name: rails_autolink
33
- requirement: !ruby/object:Gem::Requirement
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/admin/blog/tags_controller.rb
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/helpers/blog/application_helper.rb
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/models/blog/tag.rb
90
- - app/models/blog/tagging.rb
91
- - app/views/admin/blog/_navigation.html.erb
92
- - app/views/admin/blog/comments/_comment.html.erb
93
- - app/views/admin/blog/comments/destroy.js.erb
94
- - app/views/admin/blog/comments/index.html.erb
95
- - app/views/admin/blog/comments/publish.js.erb
96
- - app/views/admin/blog/posts/_form.html.erb
97
- - app/views/admin/blog/posts/_post.html.erb
98
- - app/views/admin/blog/posts/edit.html.erb
99
- - app/views/admin/blog/posts/index.html.erb
100
- - app/views/admin/blog/posts/new.html.erb
101
- - app/views/admin/blog/tags/_form.html.erb
102
- - app/views/admin/blog/tags/_tag.html.erb
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.erb
114
- - app/views/layouts/application.html.erb
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
- - config/locales/en.yml
126
- - config/routes.rb
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/form_builder.rb
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/fixtures/.gitkeep
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/blog/taggings.yml
143
- - test/fixtures/blog/tags.yml
144
- - test/functional/.gitkeep
145
- - test/functional/admin/blog/comments_controller_test.rb
146
- - test/functional/admin/blog/posts_controller_test.rb
147
- - test/functional/admin/blog/tags_controller_test.rb
148
- - test/functional/blog/comments_controller_test.rb
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: 1.8.21
125
+ rubygems_version: 2.0.3
184
126
  signing_key:
185
- specification_version: 3
186
- summary: ComfyBlog is a blog engine for Rails 3.1 apps (and ComfortableMexicanSofa)
127
+ specification_version: 4
128
+ summary: Simple Blog Engine for ComfortableMexicanSofa
187
129
  test_files: []