ets_comfy_blog 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.github/issue_template.md +22 -0
  3. data/.github/pull_request_template.md +6 -0
  4. data/.gitignore +16 -0
  5. data/.rubocop.yml +96 -0
  6. data/.travis.yml +21 -0
  7. data/CONTRIBUTING.md +32 -0
  8. data/Gemfile +27 -0
  9. data/LICENSE +20 -0
  10. data/README.md +42 -0
  11. data/Rakefile +5 -0
  12. data/app/controllers/comfy/admin/blog/posts_controller.rb +84 -0
  13. data/app/controllers/comfy/admin/blog/revisions/post_controller.rb +30 -0
  14. data/app/controllers/comfy/blog/posts_controller.rb +50 -0
  15. data/app/models/comfy/blog/post.rb +55 -0
  16. data/app/views/comfy/admin/blog/partials/_navigation.html.haml +4 -0
  17. data/app/views/comfy/admin/blog/posts/_form.html.haml +22 -0
  18. data/app/views/comfy/admin/blog/posts/edit.html.haml +9 -0
  19. data/app/views/comfy/admin/blog/posts/index.html.haml +37 -0
  20. data/app/views/comfy/admin/blog/posts/new.html.haml +5 -0
  21. data/app/views/comfy/blog/posts/index.html.haml +28 -0
  22. data/app/views/comfy/blog/posts/index.rss.builder +22 -0
  23. data/app/views/comfy/blog/posts/show.html.haml +8 -0
  24. data/app/views/layouts/comfy/blog/application.html.erb +22 -0
  25. data/bin/bundle +3 -0
  26. data/bin/rails +4 -0
  27. data/bin/rake +4 -0
  28. data/bin/setup +36 -0
  29. data/bin/update +31 -0
  30. data/bin/yarn +11 -0
  31. data/comfy_blog.gemspec +28 -0
  32. data/config.ru +6 -0
  33. data/config/application.rb +39 -0
  34. data/config/blog_routes.rb +8 -0
  35. data/config/boot.rb +7 -0
  36. data/config/database.yml +11 -0
  37. data/config/environment.rb +7 -0
  38. data/config/environments/development.rb +64 -0
  39. data/config/environments/test.rb +51 -0
  40. data/config/initializers/comfy_blog.rb +9 -0
  41. data/config/locales/ca.yml +38 -0
  42. data/config/locales/cs.yml +38 -0
  43. data/config/locales/da.yml +38 -0
  44. data/config/locales/de.yml +38 -0
  45. data/config/locales/en.yml +38 -0
  46. data/config/locales/es.yml +38 -0
  47. data/config/locales/fi.yml +38 -0
  48. data/config/locales/fr.yml +38 -0
  49. data/config/locales/gr.yml +38 -0
  50. data/config/locales/it.yml +38 -0
  51. data/config/locales/ja.yml +38 -0
  52. data/config/locales/nb.yml +38 -0
  53. data/config/locales/nl.yml +38 -0
  54. data/config/locales/pl.yml +38 -0
  55. data/config/locales/pt-BR.yml +38 -0
  56. data/config/locales/ru.yml +38 -0
  57. data/config/locales/sv.yml +38 -0
  58. data/config/locales/tr.yml +38 -0
  59. data/config/locales/uk.yml +38 -0
  60. data/config/locales/zh-CN.yml +38 -0
  61. data/config/locales/zh-TW.yml +38 -0
  62. data/config/storage.yml +35 -0
  63. data/db/migrate/00_create_cms.rb +167 -0
  64. data/db/migrate/01_create_blog.rb +24 -0
  65. data/lib/comfy_blog.rb +29 -0
  66. data/lib/comfy_blog/configuration.rb +24 -0
  67. data/lib/comfy_blog/engine.rb +32 -0
  68. data/lib/comfy_blog/routes/blog.rb +21 -0
  69. data/lib/comfy_blog/routes/blog_admin.rb +23 -0
  70. data/lib/comfy_blog/routing.rb +4 -0
  71. data/lib/comfy_blog/version.rb +7 -0
  72. data/lib/generators/comfy/blog/README +10 -0
  73. data/lib/generators/comfy/blog/blog_generator.rb +53 -0
  74. metadata +129 -0
@@ -0,0 +1,38 @@
1
+ it:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Post
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Title
8
+ slug: Slug
9
+ published_at: Published at
10
+ is_published: Is Published
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Blog Posts
17
+ blog:
18
+ posts:
19
+ created: Blog Post created
20
+ create_failure: Failed to create Blog Post
21
+ updated: Blog Post updated
22
+ update_failure: Failed to update Blog Post
23
+ deleted: Blog Post removed
24
+ not_found: Blog Post not found
25
+ index:
26
+ title: Blog Posts
27
+ new_link: New Blog Post
28
+ edit: Edit
29
+ delete: Delete
30
+ are_you_sure: Are you sure?
31
+ new:
32
+ title: New Blog Post
33
+ edit:
34
+ title: Edit Blog Post
35
+ form:
36
+ create: Create Post
37
+ update: Update Post
38
+ cancel: Cancel
@@ -0,0 +1,38 @@
1
+ ja:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Post
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Title
8
+ slug: Slug
9
+ published_at: Published at
10
+ is_published: Is Published
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Blog Posts
17
+ blog:
18
+ posts:
19
+ created: Blog Post created
20
+ create_failure: Failed to create Blog Post
21
+ updated: Blog Post updated
22
+ update_failure: Failed to update Blog Post
23
+ deleted: Blog Post removed
24
+ not_found: Blog Post not found
25
+ index:
26
+ title: Blog Posts
27
+ new_link: New Blog Post
28
+ edit: Edit
29
+ delete: Delete
30
+ are_you_sure: Are you sure?
31
+ new:
32
+ title: New Blog Post
33
+ edit:
34
+ title: Edit Blog Post
35
+ form:
36
+ create: Create Post
37
+ update: Update Post
38
+ cancel: Cancel
@@ -0,0 +1,38 @@
1
+ nb:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Post
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Title
8
+ slug: Slug
9
+ published_at: Published at
10
+ is_published: Is Published
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Blog Posts
17
+ blog:
18
+ posts:
19
+ created: Blog Post created
20
+ create_failure: Failed to create Blog Post
21
+ updated: Blog Post updated
22
+ update_failure: Failed to update Blog Post
23
+ deleted: Blog Post removed
24
+ not_found: Blog Post not found
25
+ index:
26
+ title: Blog Posts
27
+ new_link: New Blog Post
28
+ edit: Edit
29
+ delete: Delete
30
+ are_you_sure: Are you sure?
31
+ new:
32
+ title: New Blog Post
33
+ edit:
34
+ title: Edit Blog Post
35
+ form:
36
+ create: Create Post
37
+ update: Update Post
38
+ cancel: Cancel
@@ -0,0 +1,38 @@
1
+ nl:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Post
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Title
8
+ slug: Slug
9
+ published_at: Published at
10
+ is_published: Is Published
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Blog Posts
17
+ blog:
18
+ posts:
19
+ created: Blog Post created
20
+ create_failure: Failed to create Blog Post
21
+ updated: Blog Post updated
22
+ update_failure: Failed to update Blog Post
23
+ deleted: Blog Post removed
24
+ not_found: Blog Post not found
25
+ index:
26
+ title: Blog Posts
27
+ new_link: New Blog Post
28
+ edit: Edit
29
+ delete: Delete
30
+ are_you_sure: Are you sure?
31
+ new:
32
+ title: New Blog Post
33
+ edit:
34
+ title: Edit Blog Post
35
+ form:
36
+ create: Create Post
37
+ update: Update Post
38
+ cancel: Cancel
@@ -0,0 +1,38 @@
1
+ pl:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Wpis
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Tytuł
8
+ slug: Przyjazna ścieżka
9
+ published_at: Data publikacji
10
+ is_published: Opublikowano
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Wpis
17
+ blog:
18
+ posts:
19
+ created: Wpis został utworzony
20
+ create_failure: Stworzenie wpisu się nie powiodło
21
+ updated: Wpis został zaktualizowany
22
+ update_failure: Aktualizacja wpisu się nie powiodła
23
+ deleted: Wpis został usunięty
24
+ not_found: Nie znaleziono wpisu
25
+ index:
26
+ title: Wpisy
27
+ new_link: Nowy wpis
28
+ edit: Edytuj
29
+ delete: Usuń
30
+ are_you_sure: Czy jesteś pewna/pewien?
31
+ new:
32
+ title: Nowy wpis
33
+ edit:
34
+ title: Edytuj wpis
35
+ form:
36
+ create: Stwórz wpis
37
+ update: Zaktualizuj wpis
38
+ cancel: Anuluj
@@ -0,0 +1,38 @@
1
+ pt-BR:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Post
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Title
8
+ slug: Slug
9
+ published_at: Published at
10
+ is_published: Is Published
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Blog Posts
17
+ blog:
18
+ posts:
19
+ created: Blog Post created
20
+ create_failure: Failed to create Blog Post
21
+ updated: Blog Post updated
22
+ update_failure: Failed to update Blog Post
23
+ deleted: Blog Post removed
24
+ not_found: Blog Post not found
25
+ index:
26
+ title: Blog Posts
27
+ new_link: New Blog Post
28
+ edit: Edit
29
+ delete: Delete
30
+ are_you_sure: Are you sure?
31
+ new:
32
+ title: New Blog Post
33
+ edit:
34
+ title: Edit Blog Post
35
+ form:
36
+ create: Create Post
37
+ update: Update Post
38
+ cancel: Cancel
@@ -0,0 +1,38 @@
1
+ ru:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Запись блога
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Название
8
+ slug: Slug
9
+ published_at: Опубликовано в
10
+ is_published: Опубликовано
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Записи блога
17
+ blog:
18
+ posts:
19
+ created: Запись блога создана
20
+ create_failure: Не удалось создать запись блога
21
+ updated: Запись блога обновлена
22
+ update_failure: Не удалось обновить запись блога
23
+ deleted: Запись блога удалена
24
+ not_found: Запись блога не найдена
25
+ index:
26
+ title: Записи блога
27
+ new_link: Создать запись блога
28
+ edit: Редактировать
29
+ delete: Удалить
30
+ are_you_sure: Вы уверены?
31
+ new:
32
+ title: Новая запись блога
33
+ edit:
34
+ title: Редактирование записи блога
35
+ form:
36
+ create: Create Post
37
+ update: Update Post
38
+ cancel: Cancel
@@ -0,0 +1,38 @@
1
+ sv:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Post
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Title
8
+ slug: Slug
9
+ published_at: Published at
10
+ is_published: Is Published
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Blog Posts
17
+ blog:
18
+ posts:
19
+ created: Blog Post created
20
+ create_failure: Failed to create Blog Post
21
+ updated: Blog Post updated
22
+ update_failure: Failed to update Blog Post
23
+ deleted: Blog Post removed
24
+ not_found: Blog Post not found
25
+ index:
26
+ title: Blog Posts
27
+ new_link: New Blog Post
28
+ edit: Edit
29
+ delete: Delete
30
+ are_you_sure: Are you sure?
31
+ new:
32
+ title: New Blog Post
33
+ edit:
34
+ title: Edit Blog Post
35
+ form:
36
+ create: Create Post
37
+ update: Update Post
38
+ cancel: Cancel
@@ -0,0 +1,38 @@
1
+ tr:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Yazı
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Başlık
8
+ slug: Slug
9
+ published_at: Yayınlanma tarihi
10
+ is_published: Yayında mı?
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Blog Yazıları
17
+ blog:
18
+ posts:
19
+ created: Blog Yazısı oluşturuldu
20
+ create_failure: Blog Yazıdı oluşturulamadı
21
+ updated: Blog Yazısı güncellendi
22
+ update_failure: Blog Yazısıp güncellenemedi
23
+ deleted: Blog Yazısı silindi
24
+ not_found: Blog Yazısı bulunamadı
25
+ index:
26
+ title: Blog Yazıları
27
+ new_link: Yeni Blog Yazısı
28
+ edit: Düzenle
29
+ delete: Sil
30
+ are_you_sure: Emin misin?
31
+ new:
32
+ title: Yeni Blog Yazısı
33
+ edit:
34
+ title: Blog Yazısını Düzenle
35
+ form:
36
+ create: Yazı Oluştur
37
+ update: Yazıyı Güncelle
38
+ cancel: İptal
@@ -0,0 +1,38 @@
1
+ uk:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: Post
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: Title
8
+ slug: Slug
9
+ published_at: Published at
10
+ is_published: Is Published
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: Blog Posts
17
+ blog:
18
+ posts:
19
+ created: Blog Post created
20
+ create_failure: Failed to create Blog Post
21
+ updated: Blog Post updated
22
+ update_failure: Failed to update Blog Post
23
+ deleted: Blog Post removed
24
+ not_found: Blog Post not found
25
+ index:
26
+ title: Blog Posts
27
+ new_link: New Blog Post
28
+ edit: Edit
29
+ delete: Delete
30
+ are_you_sure: Are you sure?
31
+ new:
32
+ title: New Blog Post
33
+ edit:
34
+ title: Edit Blog Post
35
+ form:
36
+ create: Create Post
37
+ update: Update Post
38
+ cancel: Cancel
@@ -0,0 +1,38 @@
1
+ zh-CN:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: 博客
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: 标题
8
+ slug: 缩略路径
9
+ published_at: 发布于
10
+ is_published: 发布
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: 博客
17
+ blog:
18
+ posts:
19
+ created: 博客创建成功
20
+ create_failure: 博客创建失败
21
+ updated: 博客更新成功
22
+ update_failure: 博客更新失败
23
+ deleted: 博客删除成功
24
+ not_found: 博客不存在
25
+ index:
26
+ title: 博客
27
+ new_link: 创建新博客
28
+ edit: 编辑
29
+ delete: 删除
30
+ are_you_sure: 确定删除该博客吗?
31
+ new:
32
+ title: 新博客
33
+ edit:
34
+ title: 编辑博客
35
+ form:
36
+ create: 创建博客
37
+ update: 更新博客
38
+ cancel: 取消
@@ -0,0 +1,38 @@
1
+ zh-TW:
2
+ activerecord:
3
+ models:
4
+ comfy/blog/post: 網誌
5
+ attributes:
6
+ comfy/blog/post:
7
+ title: 標題
8
+ slug: 路徑名
9
+ published_at: 發佈于
10
+ is_published: 發佈
11
+
12
+ comfy:
13
+ admin:
14
+ cms:
15
+ base:
16
+ posts: 網誌
17
+ blog:
18
+ posts:
19
+ created: 網誌創建成功
20
+ create_failure: 網誌創建失敗
21
+ updated: 網誌更新成功
22
+ update_failure: 網誌更新失敗
23
+ deleted: 網誌刪除成功
24
+ not_found: 網誌不存在
25
+ index:
26
+ title: 網誌
27
+ new_link: 創建新網誌
28
+ edit: 編輯
29
+ delete: 刪除
30
+ are_you_sure: 確定刪除該網誌嗎?
31
+ new:
32
+ title: 新網誌
33
+ edit:
34
+ title: 編輯網誌
35
+ form:
36
+ create: 創建網誌
37
+ update: 跟新網誌
38
+ cancel: 取消