comfortable_mexican_sofa 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gem 'rails', '>=3.0.0'
4
- gem 'active_link_to', '>=0.0.10'
4
+ gem 'active_link_to', '>=1.0.0'
5
5
  gem 'paperclip', '>=2.3.14'
6
6
 
7
7
  group :development do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.5
1
+ 1.3.6
@@ -7,7 +7,7 @@ class CmsContentController < ApplicationController
7
7
 
8
8
  def render_html(status = 200)
9
9
  if layout = @cms_page.layout
10
- app_layout = layout.app_layout.blank?? false : layout.app_layout
10
+ app_layout = (layout.app_layout.blank? || request.xhr?) ? false : layout.app_layout
11
11
  render :inline => @cms_page.content, :layout => app_layout, :status => status
12
12
  else
13
13
  render :text => I18n.t('cms.content.layout_not_found'), :status => 404
@@ -1,5 +1,5 @@
1
1
  <ul class='nav'>
2
- <li><%= active_link_to t('cms_admin.base.sites'), cms_admin_sites_path, :active => {:when => :self_only} %></li>
2
+ <li><%= active_link_to t('cms_admin.base.sites'), cms_admin_sites_path, :active => :exclusive %></li>
3
3
  <% if @site && params[:controller] != 'cms_admin/sites' %>
4
4
  <li><%= active_link_to t('cms_admin.base.layouts'), cms_admin_site_layouts_path(@site) %></li>
5
5
  <li><%= active_link_to t('cms_admin.base.pages'), cms_admin_site_pages_path(@site) %></li>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{comfortable_mexican_sofa}
8
- s.version = "1.3.5"
8
+ s.version = "1.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov", "The Working Group Inc"]
12
- s.date = %q{2011-07-21}
12
+ s.date = %q{2011-08-05}
13
13
  s.description = %q{}
14
14
  s.email = %q{oleg@theworkinggroup.ca}
15
15
  s.extra_rdoc_files = [
@@ -280,16 +280,16 @@ Gem::Specification.new do |s|
280
280
 
281
281
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
282
282
  s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
283
- s.add_runtime_dependency(%q<active_link_to>, [">= 0.0.10"])
283
+ s.add_runtime_dependency(%q<active_link_to>, [">= 1.0.0"])
284
284
  s.add_runtime_dependency(%q<paperclip>, [">= 2.3.14"])
285
285
  else
286
286
  s.add_dependency(%q<rails>, [">= 3.0.0"])
287
- s.add_dependency(%q<active_link_to>, [">= 0.0.10"])
287
+ s.add_dependency(%q<active_link_to>, [">= 1.0.0"])
288
288
  s.add_dependency(%q<paperclip>, [">= 2.3.14"])
289
289
  end
290
290
  else
291
291
  s.add_dependency(%q<rails>, [">= 3.0.0"])
292
- s.add_dependency(%q<active_link_to>, [">= 0.0.10"])
292
+ s.add_dependency(%q<active_link_to>, [">= 1.0.0"])
293
293
  s.add_dependency(%q<paperclip>, [">= 2.3.14"])
294
294
  end
295
295
  end
@@ -22,9 +22,18 @@ class CmsContentControllerTest < ActionController::TestCase
22
22
  cms_layouts(:default).update_attribute(:app_layout, 'cms_admin.html.erb')
23
23
  get :render_html, :cms_path => ''
24
24
  assert_response :success
25
+ assert assigns(:cms_page)
25
26
  assert_select "body[class='c_cms_content a_render_html']"
26
27
  end
27
28
 
29
+ def test_render_page_with_xhr
30
+ cms_layouts(:default).update_attribute(:app_layout, 'cms_admin.html.erb')
31
+ xhr :get, :render_html, :cms_path => ''
32
+ assert_response :success
33
+ assert assigns(:cms_page)
34
+ assert_no_select "body[class='c_cms_content a_render_html']"
35
+ end
36
+
28
37
  def test_render_page_not_found
29
38
  get :render_html, :cms_path => 'doesnotexist'
30
39
  assert_response 404
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfortable_mexican_sofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,12 +10,12 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-07-21 00:00:00.000000000 -04:00
13
+ date: 2011-08-05 00:00:00.000000000 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
- requirement: &70187511396100 !ruby/object:Gem::Requirement
18
+ requirement: &70307288569600 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,21 +23,21 @@ dependencies:
23
23
  version: 3.0.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70187511396100
26
+ version_requirements: *70307288569600
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: active_link_to
29
- requirement: &70187511394840 !ruby/object:Gem::Requirement
29
+ requirement: &70307288568860 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
- version: 0.0.10
34
+ version: 1.0.0
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70187511394840
37
+ version_requirements: *70307288568860
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: paperclip
40
- requirement: &70187511394080 !ruby/object:Gem::Requirement
40
+ requirement: &70307288567840 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: 2.3.14
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70187511394080
48
+ version_requirements: *70307288567840
49
49
  description: ''
50
50
  email: oleg@theworkinggroup.ca
51
51
  executables: []
@@ -321,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
321
321
  version: '0'
322
322
  segments:
323
323
  - 0
324
- hash: 1451043806041481492
324
+ hash: 3829226531073007590
325
325
  required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  none: false
327
327
  requirements: