camaleon_cms 2.5.3 → 2.5.3.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of camaleon_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/config/camaleon-cms.js +0 -1
- data/app/assets/{fonts/camaleon_cms → stylesheets/camaleon_cms/fonts}/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/{fonts/camaleon_cms → stylesheets/camaleon_cms/fonts}/glyphicons-halflings-regular.svg +0 -0
- data/app/assets/{fonts/camaleon_cms → stylesheets/camaleon_cms/fonts}/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/{fonts/camaleon_cms → stylesheets/camaleon_cms/fonts}/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/{fonts/camaleon_cms → stylesheets/camaleon_cms/fonts}/glyphicons-halflings-regular.woff2 +0 -0
- data/app/controllers/camaleon_cms/frontend_controller.rb +4 -1
- data/app/helpers/camaleon_cms/frontend/site_helper.rb +1 -6
- data/app/helpers/camaleon_cms/uploader_helper.rb +2 -1
- data/config/initializers/non_digest_assets.rb +3 -0
- data/lib/camaleon_cms/version.rb +1 -1
- metadata +22 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30adea4169e0803e53034bc3b43fab98c94d1283b7a61bce52381d0bcbc18d3e
|
4
|
+
data.tar.gz: b8e7c5cf3f14f1d72fd9725ec1e6c4c15babe9a5ccd8d89e35ba79bac49fd5a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 676d4efcc885eb8eb35b2ed29f3adeef52aba1438924ce4f90e6eb1151a6b801008722dcec0a1f85b6f8f080ca99dde33c6f9210326e69edfffd854717b5b846
|
7
|
+
data.tar.gz: '0529c9a722fb77fcae4d00391749a5fe1804a39dd33fa422ff6c8783baa2d6113f1d1547c9eb7408243511f011cd36c65f7d49d00f336a81920c008210e8a8aa'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -21,7 +21,10 @@ class CamaleonCms::FrontendController < CamaleonCms::CamaleonController
|
|
21
21
|
# render category list
|
22
22
|
def category
|
23
23
|
begin
|
24
|
-
|
24
|
+
if params[:category_slug].present?
|
25
|
+
@category ||= current_site.the_full_categories.find_by_slug(params[:category_slug]).decorate
|
26
|
+
end
|
27
|
+
@category ||= current_site.the_full_categories.find(params[:category_id]).decorate
|
25
28
|
@post_type = @category.the_post_type
|
26
29
|
rescue
|
27
30
|
return page_not_found
|
@@ -21,11 +21,6 @@ module CamaleonCms::Frontend::SiteHelper
|
|
21
21
|
@cama_visited_post.present?
|
22
22
|
end
|
23
23
|
|
24
|
-
# check if current section visited is for post
|
25
|
-
def is_profile?
|
26
|
-
@cama_visited_profile.present?
|
27
|
-
end
|
28
|
-
|
29
24
|
# check if current section visited is for ajax
|
30
25
|
def is_ajax?
|
31
26
|
@cama_visited_ajax.present?
|
@@ -50,7 +45,7 @@ module CamaleonCms::Frontend::SiteHelper
|
|
50
45
|
def is_category?
|
51
46
|
@cama_visited_category.present?
|
52
47
|
end
|
53
|
-
|
48
|
+
|
54
49
|
# check if visited page is user profile (frontend)
|
55
50
|
def is_profile?
|
56
51
|
@cama_visited_profile == true
|
@@ -239,7 +239,8 @@ module CamaleonCms::UploaderHelper
|
|
239
239
|
uploaded_io = File.open(uploaded_io) if uploaded_io.is_a?(String)
|
240
240
|
return {error: "#{ct("file_format_error")} (#{args[:formats]})"} unless cama_uploader.class.validate_file_format(_tmp_name || uploaded_io.path, args[:formats])
|
241
241
|
return {error: "#{ct("file_size_exceeded", default: "File size exceeded")} (#{number_to_human_size(args[:maximum])})"} if args[:maximum].present? && args[:maximum] < (uploaded_io.size rescue File.size(uploaded_io))
|
242
|
-
name = args[:name] || uploaded_io
|
242
|
+
name = args[:name] || uploaded_io&.original_filename || uploaded_io.path.split("/").last
|
243
|
+
name = "#{File.basename(name, File.extname(name)).parameterize}#{File.extname(name)}"
|
243
244
|
path ||= uploader_verify_name(File.join(tmp_path, name))
|
244
245
|
File.open(path, "wb"){|f| f.write(uploaded_io.read) } unless saved
|
245
246
|
path = cama_resize_upload(path, args[:dimension]) if args[:dimension].present?
|
data/lib/camaleon_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: camaleon_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.3
|
4
|
+
version: 2.5.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo Diaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|
@@ -86,6 +86,20 @@ dependencies:
|
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: non-digest-assets
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: will_paginate
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -505,11 +519,6 @@ files:
|
|
505
519
|
- app/apps/themes/new/views/post_type.html.erb
|
506
520
|
- app/apps/themes/new/views/search.html.erb
|
507
521
|
- app/assets/config/camaleon-cms.js
|
508
|
-
- app/assets/fonts/camaleon_cms/glyphicons-halflings-regular.eot
|
509
|
-
- app/assets/fonts/camaleon_cms/glyphicons-halflings-regular.svg
|
510
|
-
- app/assets/fonts/camaleon_cms/glyphicons-halflings-regular.ttf
|
511
|
-
- app/assets/fonts/camaleon_cms/glyphicons-halflings-regular.woff
|
512
|
-
- app/assets/fonts/camaleon_cms/glyphicons-halflings-regular.woff2
|
513
522
|
- app/assets/images/camaleon.png
|
514
523
|
- app/assets/images/camaleon_cms/admin/admin_spinner.gif
|
515
524
|
- app/assets/images/camaleon_cms/admin/glyphicons-halflings.png
|
@@ -659,6 +668,11 @@ files:
|
|
659
668
|
- app/assets/stylesheets/camaleon_cms/admin/uploader/uploader_manifest.css
|
660
669
|
- app/assets/stylesheets/camaleon_cms/admin/widgets.css.scss
|
661
670
|
- app/assets/stylesheets/camaleon_cms/bootstrap.min.css
|
671
|
+
- app/assets/stylesheets/camaleon_cms/fonts/glyphicons-halflings-regular.eot
|
672
|
+
- app/assets/stylesheets/camaleon_cms/fonts/glyphicons-halflings-regular.svg
|
673
|
+
- app/assets/stylesheets/camaleon_cms/fonts/glyphicons-halflings-regular.ttf
|
674
|
+
- app/assets/stylesheets/camaleon_cms/fonts/glyphicons-halflings-regular.woff
|
675
|
+
- app/assets/stylesheets/camaleon_cms/fonts/glyphicons-halflings-regular.woff2
|
662
676
|
- app/controllers/camaleon_cms/admin/appearances/nav_menus_controller.rb
|
663
677
|
- app/controllers/camaleon_cms/admin/appearances/themes_controller.rb
|
664
678
|
- app/controllers/camaleon_cms/admin/appearances/widgets/assign_controller.rb
|
@@ -945,6 +959,7 @@ files:
|
|
945
959
|
- config/initializers/custom_initializers.rb
|
946
960
|
- config/initializers/mobu.rb
|
947
961
|
- config/initializers/model_alias.rb
|
962
|
+
- config/initializers/non_digest_assets.rb
|
948
963
|
- config/initializers/sass.rb
|
949
964
|
- config/locales/ar.yml
|
950
965
|
- config/locales/camaleon_cms/admin/ar.yml
|