trusty-cms 6.0.2 → 6.0.3

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: b9a506b6d8dcc10704d9af6b892ec31452d932ea55c6789c1600d1d1b1471801
4
- data.tar.gz: 3f2a502afc4eca30639dde053f62179f0079c06a391158b9000b5e648d349241
3
+ metadata.gz: fd070d2a1f939233a8e702c0bca79d3642bbc42968b0f8ec119cd7da09f443be
4
+ data.tar.gz: b2da94658488d9005dfa919f1be59296f691cd65143b7badb2878118909e351c
5
5
  SHA512:
6
- metadata.gz: b782bdebc44588ed1efed8d380b41c4e6044f9f3b9d24b0fbff467a43339086040f2b81abcf7e03b5bfe22a9435e1de452fc9d1b9890587061bf77dca2270a39
7
- data.tar.gz: 9bdaafe9f55890fcfa99e3966162a97440606a130bebbf9761cffb0631cd560a1a37e818b8254e09ce9e2ccd5243131b01225c37b3c42f0f565bc918e496d3cd
6
+ metadata.gz: 57aa2f3b55e1f1c45396ba0ad1d7d0fba25d0fa48a2bf9da705b90ee28bc4764174bc5ee977fe814cb8b4c33df50f13082f96e837b8ae8feba3bf4d1ce3f5f10
7
+ data.tar.gz: a2451eda0132fce61f848c770dd066c3b28451fc6d3336984221a19cc209504d591a7ba041aaccb3453743c00703e3c09be37eafa6f25dfce5a5fa5d9a67c22b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (6.0.2)
4
+ trusty-cms (6.0.3)
5
5
  RedCloth (= 4.3.2)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.2.0)
@@ -17,7 +17,7 @@ class Admin::PagesController < Admin::ResourceController
17
17
  @template_name = 'index'
18
18
  self.models = Page.find(params[:page_id]).children.all
19
19
  response.headers['Content-Type'] = 'text/html;charset=utf-8'
20
- render action: 'children.html.haml', layout: false
20
+ render action: 'children', layout: false
21
21
  end
22
22
  end
23
23
 
@@ -44,7 +44,7 @@ module TrustyCms
44
44
  def cache_files(dir, files, cache_file)
45
45
  cache_content = files.collect do |f|
46
46
  File.read(File.join(dir, f))
47
- end .join("\n\n")
47
+ end.join("\n\n")
48
48
 
49
49
  cache_path = File.join(dir, cache_file)
50
50
  File.delete(cache_path) if File.exists?(cache_path)
@@ -54,7 +54,7 @@ module TrustyCms
54
54
  # Reads through the layout file and returns an array of JS filenames
55
55
  #
56
56
  def find_admin_js
57
- layout = "#{TRUSTY_CMS_ROOT}/app/views/layouts/application.html.haml"
57
+ layout = "#{TRUSTY_CMS_ROOT}/app/views/layouts/application"
58
58
  js_regexp = /javascript_include_tag %w\((.*)\), :cache => 'admin\/all/
59
59
  files = File.open(layout) { |f| f.read.match(js_regexp)[1].split }
60
60
  files.collect { |f| f.split('/').last + '.js' }
data/lib/trusty_cms.rb CHANGED
@@ -2,7 +2,7 @@ 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 = '6.0.2'.freeze
5
+ VERSION = '6.0.3'.freeze
6
6
  end
7
7
  end
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.2
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-26 00:00:00.000000000 Z
11
+ date: 2023-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator