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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbb42b1861f2db7db2704b150934135fa51145c4
4
- data.tar.gz: 6ec23d6cbea4d1635c872100e0aeaaf0e1d48ae5
3
+ metadata.gz: 4f0d5cf95b43319edcfeb2bc6f1f5b24dcd099a7
4
+ data.tar.gz: 31b68c19f5d22a5fc68d4f1b55186b18ac622247
5
5
  SHA512:
6
- metadata.gz: 2bea586993f3de37aa8f9a86661a6c0ffeace09e7377d81a8644e64c61f8f5de778af287b89e237791e12c04948db33b2b36ee78299cf0f0e17da2eb03b0779f
7
- data.tar.gz: 7999134849b43caa223e14644b05afb4d9228ab1c12ecdc98f917f9d731f96305e7eee6dde46fc3af11c41067f0d599bf0823724bbeebc673ef3b4d71b99af38
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): [DONE]
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
- if File.expand_path(Management::CmsController.page_cache_directory) == File.expand_path("#{Rails.root}/public")
14
- # expire home page
15
- expire_page :controller => 'cms/content', :action => 'show', :content_path => nil
16
-
17
- # expire all other pages
18
- CmsPage.select([ :id, :path ]).find_each do |page|
19
- expire_page :controller => 'cms/content', :action => 'show', :content_path => page.path.split('/')
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
- else
22
- FileUtils.rm_r(Dir.glob("#{cache_dir}/*")) rescue Errno::ENOENT
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
 
@@ -1,3 +1,3 @@
1
1
  module ImagineCms
2
- VERSION = "4.1.0"
2
+ VERSION = "4.1.1"
3
3
  end
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.0
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: 2014-11-20 00:00:00.000000000 Z
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.3
615
+ rubygems_version: 2.4.5
616
616
  signing_key:
617
617
  specification_version: 4
618
618
  summary: Imagine Content Management System for Rails