comfortable_mexican_sofa 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.7
1
+ 1.3.8
@@ -1,8 +1,5 @@
1
1
  /* -- Containers --------------------------------------------------------- */
2
- html {
3
- height: 100%;
4
- }
5
- body#cms_body {
2
+ html, body#cms_body {
6
3
  height: 100%;
7
4
  background-color: #252525;
8
5
  }
@@ -41,11 +41,10 @@ class Cms::Layout < ActiveRecord::Base
41
41
 
42
42
  # List of available application layouts
43
43
  def self.app_layouts_for_select
44
- Dir.glob(File.expand_path('app/views/layouts/*.html.*', Rails.root)).collect do |filename|
45
- match = filename.match(/\w*.html.\w*$/)
46
- app_layout = match && match[0]
47
- app_layout.to_s[0...1] == '_' ? nil : app_layout
48
- end.compact
44
+ Dir.glob(File.expand_path('app/views/layouts/**/*.html.*', Rails.root)).collect do |filename|
45
+ filename.gsub!("#{File.expand_path('app/views/layouts', Rails.root)}/", '')
46
+ filename.split('/').last[0...1] == '_' ? nil : filename
47
+ end.compact.sort
49
48
  end
50
49
 
51
50
  # -- Instance Methods -----------------------------------------------------
@@ -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.7"
8
+ s.version = "1.3.8"
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-08-05}
12
+ s.date = %q{2011-08-12}
13
13
  s.description = %q{}
14
14
  s.email = %q{oleg@theworkinggroup.ca}
15
15
  s.extra_rdoc_files = [
@@ -47,7 +47,15 @@ class CmsLayoutTest < ActiveSupport::TestCase
47
47
  end
48
48
 
49
49
  def test_app_layouts_for_select
50
- assert_equal ['cms_admin.html.erb'], Cms::Layout.app_layouts_for_select
50
+ FileUtils.touch(File.expand_path('app/views/layouts/cms_admin/nested.html.erb', Rails.root))
51
+ FileUtils.touch(File.expand_path('app/views/layouts/_partial.html.erb', Rails.root))
52
+ FileUtils.touch(File.expand_path('app/views/layouts/not_a_layout.erb', Rails.root))
53
+
54
+ assert_equal ['cms_admin.html.erb', 'cms_admin/nested.html.erb'], Cms::Layout.app_layouts_for_select
55
+
56
+ FileUtils.rm(File.expand_path('app/views/layouts/cms_admin/nested.html.erb', Rails.root))
57
+ FileUtils.rm(File.expand_path('app/views/layouts/_partial.html.erb', Rails.root))
58
+ FileUtils.rm(File.expand_path('app/views/layouts/not_a_layout.erb', Rails.root))
51
59
  end
52
60
 
53
61
  def test_merged_content_with_same_child_content
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.7
4
+ version: 1.3.8
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-08-05 00:00:00.000000000 -04:00
13
+ date: 2011-08-12 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: &70175748607080 !ruby/object:Gem::Requirement
18
+ requirement: &70228698047440 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 3.0.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70175748607080
26
+ version_requirements: *70228698047440
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: active_link_to
29
- requirement: &70175748602620 !ruby/object:Gem::Requirement
29
+ requirement: &70228698046720 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.0.0
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70175748602620
37
+ version_requirements: *70228698046720
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: paperclip
40
- requirement: &70175748597980 !ruby/object:Gem::Requirement
40
+ requirement: &70228698045760 !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: *70175748597980
48
+ version_requirements: *70228698045760
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: 1037417411978385818
324
+ hash: 2059952711421247881
325
325
  required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  none: false
327
327
  requirements: