camaleon_cms 2.4.6.2 → 2.4.6.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a667cbd7afc7303a7ffb87dee9762223d22e2736c4a831c09664a16225f1c237
4
- data.tar.gz: aeb9ba5b893218383606ac1c803e5aba2b1cdafaa18bc1c602c212d4f3ca291d
3
+ metadata.gz: 8ff7754f7dfc1793b4b8152ab93e98526903dbd6a345e45c0f044bcb15f5a763
4
+ data.tar.gz: 40a57b5e28b034bc78d76a9056af06439e394948f64371f1cb7c800c9ad35f98
5
5
  SHA512:
6
- metadata.gz: 263fb238bd0a5e90fe39cda19d62f1df4818f5854431746c8a4497bd9f0a388473a79f71a7fb3422575e7886a9a2e23cda0380943de0e915be5b87b2fd7c36db
7
- data.tar.gz: a694689511fea82e7b8651c5693f46a43bfc91aae4c96c6aab2f9db753f7654ce6d36e614c97c42d7707e733a0a0b73c763a54fd26455fe05235543278ce6485
6
+ metadata.gz: a31bc8ef4691ca290cbe179ef4def6802a3efddc25ea3cc83de3609bef8ae81e2d242cd90f332b95ea0f8e50125eba3427e704347082198d9164f7609271e776
7
+ data.tar.gz: aae547cf4164b788e371930226b75f5b0c5fbbdcc3e65c76893aae5220df72f8ca47ecce4770dce6b3aeb75274644753660a6374ba36af13c23e6ae9fd27cf24
data/README.md CHANGED
@@ -118,7 +118,7 @@ http://camaleon.tuzitio.com/store/plugins
118
118
  * Add the gem in your Gemfile
119
119
 
120
120
  ```
121
- gem "camaleon_cms", '>= 2.4.5' # (Current stable versions are 2.4.4.5, 2.4.3.10, 2.3.6, 2.2.1, 2.1.1)
121
+ gem "camaleon_cms", '>= 2.4.6' # (Current stable versions are 2.4.4.5, 2.4.3.10, 2.3.6, 2.2.1, 2.1.1)
122
122
  # OR
123
123
  # gem "camaleon_cms", github: 'owen2345/camaleon-cms' # latest development version
124
124
 
@@ -9,7 +9,7 @@ module Plugins::FrontCache::FrontCacheHelper
9
9
 
10
10
  return if signin? || Rails.env == "development" || Rails.env == "test" || !request.get? # avoid cache if current visitor is logged in or development environment
11
11
 
12
- cache_key = request.fullpath.parameterize
12
+ cache_key = front_cache_plugin_cache_key
13
13
  @caches = current_site.get_meta("front_cache_elements")
14
14
  if !flash.keys.present? && front_cache_exist?(cache_key) # recover cache item
15
15
  Rails.logger.info "Camaleon CMS - readed cache: #{front_cache_plugin_get_path(cache_key)}"
@@ -41,7 +41,7 @@ module Plugins::FrontCache::FrontCacheHelper
41
41
 
42
42
 
43
43
  def front_cache_front_after_load
44
- cache_key = request.fullpath.parameterize
44
+ cache_key = front_cache_plugin_cache_key
45
45
  if @_plugin_do_cache && !flash.keys.present?
46
46
  args = {data: response.body
47
47
  .gsub(/csrf-token" content="(.*?)"/, 'csrf-token" content="{{form_authenticity_token}}"')
@@ -129,4 +129,9 @@ module Plugins::FrontCache::FrontCacheHelper
129
129
  def front_cache_plugin_match_path_patterns?(key, key2)
130
130
  @caches[:paths].any?{|path_pattern| key =~ Regexp.new(path_pattern) || key2 =~ Regexp.new(path_pattern) }
131
131
  end
132
+
133
+ def front_cache_plugin_cache_key
134
+ uri = [request.protocol + request.host_with_port, request.fullpath].join('/')
135
+ uri.parameterize
136
+ end
132
137
  end
@@ -1,3 +1,3 @@
1
1
  module CamaleonCms
2
- VERSION = '2.4.6.2'
2
+ VERSION = '2.4.6.3'
3
3
  end
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.4.6.2
4
+ version: 2.4.6.3
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: 2019-05-02 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt