imagine_cms 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +1 -2
- data/app/sweepers/cms_content_sweeper.rb +13 -9
- data/lib/imagine_cms/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f0d5cf95b43319edcfeb2bc6f1f5b24dcd099a7
|
|
4
|
+
data.tar.gz: 31b68c19f5d22a5fc68d4f1b55186b18ac622247
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea47210e4226ac55d7857770942202c4b6b502bbf876246e71e89f06d7df767c1e11649fc7a315a59bf9cbd9f8f7439ed15daabe2bd55a9b046ddc0104512f14
|
|
7
|
+
data.tar.gz: 0563088dc9ec65791dbae76d6a54bf2050f9d80c065f506defeed969532e4297c90181a8cfa7e4e67c8141ab90dd5652ed10cb579a9f6d71763a89509f7dd0dc
|
data/README.rdoc
CHANGED
|
@@ -15,8 +15,7 @@ All that is now firmly in the past. By extracting Imagine functionality into a g
|
|
|
15
15
|
* Imagine 3.0 (Rails 3.2, Ruby 1.9): [DONE] 90% restored functionality, no database changes.
|
|
16
16
|
* Imagine 3.1 (Rails 3.2, Ruby 1.9/2.0): [DONE, but released as 3.0.x] 100% restored functionality, plus a few extras and fixes.
|
|
17
17
|
* Imagine 4.0 (Rails 4.0, Ruby 2.1): [DONE] Compatibility with Rails 4.0
|
|
18
|
-
* Imagine 4.1 (Rails 4.1, Ruby 2.1): [
|
|
19
|
-
* Imagine 4.2 (Rails 4.2, Ruby 2.1): [in progress on master]
|
|
18
|
+
* Imagine 4.1 (Rails 4.1, Ruby 2.1): [IN PROGRESS]
|
|
20
19
|
* Imagine 5.0 (Rails 5.0, Ruby 2.2): [PLANNED, Mid 2015] Compatibility with Rails 5.0, switch to a cross-browser editor
|
|
21
20
|
|
|
22
21
|
In the future, there are plans to:
|
|
@@ -10,16 +10,20 @@ class CmsContentSweeper < ActionController::Caching::Sweeper
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def delete_all_cached_pages
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
begin
|
|
14
|
+
if File.expand_path(Management::CmsController.page_cache_directory) == File.expand_path("#{Rails.root}/public")
|
|
15
|
+
# expire home page
|
|
16
|
+
expire_page :controller => 'cms/content', :action => 'show', :content_path => nil
|
|
17
|
+
|
|
18
|
+
# expire all other pages
|
|
19
|
+
CmsPage.select([ :id, :path ]).find_each do |page|
|
|
20
|
+
expire_page :controller => 'cms/content', :action => 'show', :content_path => page.path.split('/')
|
|
21
|
+
end
|
|
22
|
+
else
|
|
23
|
+
FileUtils.rm_r(Dir.glob("#{cache_dir}/*")) rescue Errno::ENOENT
|
|
20
24
|
end
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
rescue Exception => e
|
|
26
|
+
Rails.logger.error "Error while clearing cache: #{e.message}" unless e.is_a?(NoMethodError)
|
|
23
27
|
end
|
|
24
28
|
end
|
|
25
29
|
|
data/lib/imagine_cms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: imagine_cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aaron Namba
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -612,7 +612,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
612
612
|
version: 1.8.11
|
|
613
613
|
requirements: []
|
|
614
614
|
rubyforge_project: imagine_cms
|
|
615
|
-
rubygems_version: 2.4.
|
|
615
|
+
rubygems_version: 2.4.5
|
|
616
616
|
signing_key:
|
|
617
617
|
specification_version: 4
|
|
618
618
|
summary: Imagine Content Management System for Rails
|