comfy_blog 2.0.6 → 2.0.7
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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +0 -2
- data/app/controllers/comfy/blog/posts_controller.rb +2 -3
- data/app/views/comfy/blog/posts/show.html.haml +8 -0
- data/comfy_blog.gemspec +1 -1
- data/config/boot.rb +1 -1
- data/config/environment.rb +1 -1
- data/config/locales/es.yml +21 -21
- data/config/locales/fi.yml +38 -0
- data/lib/comfy_blog/version.rb +1 -1
- data/lib/generators/comfy/blog/blog_generator.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fac491ebccff2eef13f34264bf62d876719afd0925366080863fe00eba486b9a
|
4
|
+
data.tar.gz: fadbac8cae2ef59b6dd28343af5ea715dc4f61eed32c975119d9ec67f693bff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce386c58e3f59f1b2b0ed62558d0bf9180576c9dcf1661396312e8f946039cc8cc649ca92b65450190046c71f360a072422ca44d17ea6f6c07596f5f8ade3c75
|
7
|
+
data.tar.gz: 06ca8cc67e5dbaa5d7b8184ae5654eabc09412e4e031c9b921489d0f7ee05cff275ffad9ba67dd1c9e7bcda4e33ff05c37a34d15fc86350337c6a94e4dcae041
|
data/Gemfile
CHANGED
@@ -11,7 +11,7 @@ group :development, :test do
|
|
11
11
|
gem "byebug", "~> 10.0.0", platforms: %i[mri mingw x64_mingw]
|
12
12
|
gem "kaminari", "~> 1.1.1"
|
13
13
|
gem "puma", "~> 3.11.2"
|
14
|
-
gem "rubocop", "~> 0.
|
14
|
+
gem "rubocop", "~> 0.55.0", require: false
|
15
15
|
gem "sqlite3", "~> 1.3.13"
|
16
16
|
end
|
17
17
|
|
data/README.md
CHANGED
@@ -5,8 +5,6 @@ ComfyBlog is a simple blog management engine for [ComfortableMexicanSofa](https:
|
|
5
5
|
[](http://rubygems.org/gems/comfy_blog)
|
6
6
|
[](http://rubygems.org/gems/comfy_blog)
|
7
7
|
[](https://travis-ci.org/comfy/comfy-blog)
|
8
|
-
[](https://gemnasium.com/comfy/comfy-blog)
|
9
|
-
[](https://codeclimate.com/github/comfy/comfy-blog)
|
10
8
|
[](https://coveralls.io/r/comfy/comfy-blog?branch=master)
|
11
9
|
[](https://gitter.im/comfy/comfortable-mexican-sofa)
|
12
10
|
|
@@ -14,6 +14,7 @@ class Comfy::Blog::PostsController < Comfy::Cms::BaseController
|
|
14
14
|
end
|
15
15
|
|
16
16
|
scope = scope.for_category(params[:category]) if params[:category]
|
17
|
+
scope = scope.order(:published_at).reverse_order
|
17
18
|
|
18
19
|
@blog_posts = comfy_paginate(scope, per_page: ComfyBlog.config.posts_per_page)
|
19
20
|
render layout: ComfyBlog.config.app_layout
|
@@ -22,9 +23,7 @@ class Comfy::Blog::PostsController < Comfy::Cms::BaseController
|
|
22
23
|
def show
|
23
24
|
load_post
|
24
25
|
|
25
|
-
render
|
26
|
-
layout: app_layout,
|
27
|
-
content_type: "text/html"
|
26
|
+
render layout: app_layout
|
28
27
|
|
29
28
|
rescue ActiveRecord::RecordNotFound
|
30
29
|
render cms_page: "/404", status: 404
|
data/comfy_blog.gemspec
CHANGED
data/config/boot.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Set up gems listed in the Gemfile.
|
4
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("
|
4
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
5
5
|
|
6
6
|
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
|
7
7
|
File.exist?(ENV["BUNDLE_GEMFILE"])
|
data/config/environment.rb
CHANGED
data/config/locales/es.yml
CHANGED
@@ -1,38 +1,38 @@
|
|
1
1
|
es:
|
2
2
|
activerecord:
|
3
3
|
models:
|
4
|
-
comfy/blog/post:
|
4
|
+
comfy/blog/post: Entrada
|
5
5
|
attributes:
|
6
6
|
comfy/blog/post:
|
7
|
-
title:
|
7
|
+
title: Título
|
8
8
|
slug: Slug
|
9
|
-
published_at:
|
10
|
-
is_published:
|
9
|
+
published_at: Publicada en
|
10
|
+
is_published: Publicada
|
11
11
|
|
12
12
|
comfy:
|
13
13
|
admin:
|
14
14
|
cms:
|
15
15
|
base:
|
16
|
-
posts:
|
16
|
+
posts: Entradas
|
17
17
|
blog:
|
18
18
|
posts:
|
19
|
-
created:
|
20
|
-
create_failure:
|
21
|
-
updated:
|
22
|
-
update_failure:
|
23
|
-
deleted:
|
24
|
-
not_found:
|
19
|
+
created: Entrada creada
|
20
|
+
create_failure: La Entrada no ha podido ser creada
|
21
|
+
updated: Entrada actualizada
|
22
|
+
update_failure: La Entrada no ha podido ser actualizada
|
23
|
+
deleted: Entrada borrada
|
24
|
+
not_found: Entrada no encontrada
|
25
25
|
index:
|
26
|
-
title:
|
27
|
-
new_link:
|
28
|
-
edit:
|
29
|
-
delete:
|
30
|
-
are_you_sure:
|
26
|
+
title: Entradas
|
27
|
+
new_link: Nueva Entrada
|
28
|
+
edit: Editar
|
29
|
+
delete: Borrar
|
30
|
+
are_you_sure: ¿Está seguro?
|
31
31
|
new:
|
32
|
-
title:
|
32
|
+
title: Nueva Entrada
|
33
33
|
edit:
|
34
|
-
title:
|
34
|
+
title: Editar Entrada
|
35
35
|
form:
|
36
|
-
create:
|
37
|
-
update:
|
38
|
-
cancel:
|
36
|
+
create: Crear Entrada
|
37
|
+
update: Actualizar Entrada
|
38
|
+
cancel: Cancelar
|
@@ -0,0 +1,38 @@
|
|
1
|
+
fi:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
comfy/blog/post: Artikkeli
|
5
|
+
attributes:
|
6
|
+
comfy/blog/post:
|
7
|
+
title: Otsikko
|
8
|
+
slug: URL-osa
|
9
|
+
published_at: Julkaistu
|
10
|
+
is_published: On julkaistu
|
11
|
+
|
12
|
+
comfy:
|
13
|
+
admin:
|
14
|
+
cms:
|
15
|
+
base:
|
16
|
+
posts: Artikkelit
|
17
|
+
blog:
|
18
|
+
posts:
|
19
|
+
created: Blogiartikkeli luotu
|
20
|
+
create_failure: Blogiartikkelia ei voitu luoda
|
21
|
+
updated: Blogiartikkeli päivitetty
|
22
|
+
update_failure: Blogiartikkelia ei voitu päivittää
|
23
|
+
deleted: Blogiartikkeli poistettu
|
24
|
+
not_found: Blogiartikkelia ei löydy
|
25
|
+
index:
|
26
|
+
title: Blogiartikkelit
|
27
|
+
new_link: Uusi blogiartikkeli
|
28
|
+
edit: Muokkaa
|
29
|
+
delete: Poista
|
30
|
+
are_you_sure: Oletko varma?
|
31
|
+
new:
|
32
|
+
title: Uusi blogiartikkeli
|
33
|
+
edit:
|
34
|
+
title: Muokkaa blogiartikkelia
|
35
|
+
form:
|
36
|
+
create: Luo artikkeli
|
37
|
+
update: Päivitä artikkeli
|
38
|
+
cancel: Peru
|
data/lib/comfy_blog/version.rb
CHANGED
@@ -9,7 +9,7 @@ module Comfy
|
|
9
9
|
include Rails::Generators::Migration
|
10
10
|
include Thor::Actions
|
11
11
|
|
12
|
-
source_root File.expand_path("
|
12
|
+
source_root File.expand_path("../../../..", __dir__)
|
13
13
|
|
14
14
|
def self.next_migration_number(dirname)
|
15
15
|
ActiveRecord::Generators::Base.next_migration_number(dirname)
|
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: 2.0.
|
4
|
+
version: 2.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Khabarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: comfortable_mexican_sofa
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- app/views/comfy/admin/blog/posts/new.html.haml
|
53
53
|
- app/views/comfy/blog/posts/index.html.haml
|
54
54
|
- app/views/comfy/blog/posts/index.rss.builder
|
55
|
+
- app/views/comfy/blog/posts/show.html.haml
|
55
56
|
- app/views/layouts/comfy/blog/application.html.erb
|
56
57
|
- bin/bundle
|
57
58
|
- bin/rails
|
@@ -75,6 +76,7 @@ files:
|
|
75
76
|
- config/locales/de.yml
|
76
77
|
- config/locales/en.yml
|
77
78
|
- config/locales/es.yml
|
79
|
+
- config/locales/fi.yml
|
78
80
|
- config/locales/fr.yml
|
79
81
|
- config/locales/gr.yml
|
80
82
|
- config/locales/it.yml
|