comfy_blog 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17f8e86969065a0b1d7dc9e810b01be4fca6adc991fd992a2aec729375440f62
4
- data.tar.gz: f41cba1159e1a0cda6d4f7d6389e7b273718bcf163f07b7ed9491bb352b9391d
3
+ metadata.gz: fac491ebccff2eef13f34264bf62d876719afd0925366080863fe00eba486b9a
4
+ data.tar.gz: fadbac8cae2ef59b6dd28343af5ea715dc4f61eed32c975119d9ec67f693bff1
5
5
  SHA512:
6
- metadata.gz: 5d5d32c1f928835fbfd0c3c140a45e0b69df795a367240451c37bb27622eb00a04b7bb0bb8356c32d0fc2ebc1603180b2638eb8a6c7094a08d07e3c83820c690
7
- data.tar.gz: 63d747aae5e8a869c91eee5e62f58f9682b10256ee5f1d330e415fac7d63c17d689f7d85e1dac368dd1d398649358f82d93f33b223f926045764bda00b8123e0
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.52.1", require: false
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
  [![Gem Version](https://img.shields.io/gem/v/comfy_blog.svg?style=flat)](http://rubygems.org/gems/comfy_blog)
6
6
  [![Gem Downloads](https://img.shields.io/gem/dt/comfy_blog.svg?style=flat)](http://rubygems.org/gems/comfy_blog)
7
7
  [![Build Status](https://img.shields.io/travis/comfy/comfy-blog.svg?style=flat)](https://travis-ci.org/comfy/comfy-blog)
8
- [![Dependency Status](https://img.shields.io/gemnasium/comfy/comfy-blog.svg?style=flat)](https://gemnasium.com/comfy/comfy-blog)
9
- [![Code Climate](https://img.shields.io/codeclimate/maintainability/comfy/comfy-blog.svg?style=flat)](https://codeclimate.com/github/comfy/comfy-blog)
10
8
  [![Coverage Status](https://img.shields.io/coveralls/comfy/comfy-blog.svg?style=flat)](https://coveralls.io/r/comfy/comfy-blog?branch=master)
11
9
  [![Gitter](https://badges.gitter.im/comfy/comfortable-mexican-sofa.svg)](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 inline: @cms_post.content_cache,
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
@@ -0,0 +1,8 @@
1
+ %h1= @cms_post.title
2
+
3
+ %p
4
+ - label = Comfy::Blog::Post.human_attribute_name(:published_on)
5
+ - time = @cms_post.published_at.to_formatted_s(:short)
6
+ = "#{label}: #{time}"
7
+
8
+ = @cms_post.content_cache.html_safe
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- $LOAD_PATH.push File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.push File.expand_path("lib", __dir__)
4
4
 
5
5
  require "comfy_blog/version"
6
6
 
@@ -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("../../Gemfile", __FILE__)
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"])
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Load the rails application
4
- require File.expand_path("../application", __FILE__)
4
+ require File.expand_path("application", __dir__)
5
5
 
6
6
  # Initialize the rails application
7
7
  ComfyBlog::Application.initialize!
@@ -1,38 +1,38 @@
1
1
  es:
2
2
  activerecord:
3
3
  models:
4
- comfy/blog/post: Post
4
+ comfy/blog/post: Entrada
5
5
  attributes:
6
6
  comfy/blog/post:
7
- title: Title
7
+ title: Título
8
8
  slug: Slug
9
- published_at: Published at
10
- is_published: 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: Blog Posts
16
+ posts: Entradas
17
17
  blog:
18
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
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: Blog Posts
27
- new_link: New Blog Post
28
- edit: Edit
29
- delete: Delete
30
- are_you_sure: 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: New Blog Post
32
+ title: Nueva Entrada
33
33
  edit:
34
- title: Edit Blog Post
34
+ title: Editar Entrada
35
35
  form:
36
- create: Create Post
37
- update: Update Post
38
- cancel: 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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ComfyBlog
4
4
 
5
- VERSION = "2.0.6"
5
+ VERSION = "2.0.7"
6
6
 
7
7
  end
@@ -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("../../../../..", __FILE__)
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.6
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-04-10 00:00:00.000000000 Z
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