trusty-cms 5.0.0 → 5.0.1

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: f0fc7adbc55517598d8eb365fe2518df17faab505fece52ec5dcb3374459b45c
4
- data.tar.gz: 9de9c0c248cbe41a2c4b55592c9a3412f5cc50279e680de125c7ced575c0a0ac
3
+ metadata.gz: 577c76f690910024bfc10d3fbbd14b47eb8bc50358bca3bc2faacf3da06fc2e1
4
+ data.tar.gz: 34ed2c1ec454af9df1cd6e0ef0eb1ef2421b1fd97efd5759a3353c3ea37f7677
5
5
  SHA512:
6
- metadata.gz: 737f21b157db73ad8763d0bcb2576e8f6ff9ddff69d3be98713aae5903c71432e48db36df8f16b4def7e226f18d2f8fe4d4905ef80623f5638a4b245f2ebbe26
7
- data.tar.gz: f472cff774a907272ac9a4a60a9a73ac9ef081fe4cd29411abf55238e1ef62640384f00a5be9c7f7fe68e968b05c9fa680438614378501e0cc7e7eebb50e4581
6
+ metadata.gz: 588a6a8325df522f2f2d58630f31d5652b41cadcf6a443e2210f6eac0fbea2bf53175052d4a3d4efa5afbd5fe668ec039e67853b771c604f8958bbbb734837ee
7
+ data.tar.gz: 9e6a1248a186b875c587973ee609e9257d62c0adc9e0f26ae612bd3a647558c53319583a1342c1f8230bfac63588459986088c7b64caa0b1150e88d923b76cbc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (5.0.0)
4
+ trusty-cms (5.0.1)
5
5
  RedCloth (= 4.3.2)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.1.0)
data/app/models/asset.rb CHANGED
@@ -49,14 +49,14 @@ class Asset < ActiveRecord::Base
49
49
  to: :asset_type
50
50
 
51
51
  def thumbnail(style_name = 'original')
52
- return asset.url if style_name == 'original'
52
+ return asset.url if style_name == :original
53
53
  return asset_variant(style_name).processed.url if asset.variable?
54
54
 
55
55
  asset_type.icon(style_name)
56
56
  end
57
57
 
58
58
  def asset_variant(style_name)
59
- case style_name
59
+ case style_name.to_s
60
60
  when 'thumbnail'
61
61
  asset.variant(gravity: 'Center', resize: '100x100^', crop: '100x100+0+0')
62
62
  when 'normal'
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '5.0.0'.freeze
5
+ VERSION = '5.0.1'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team