radiant-children_config-extension 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,11 @@ module ChildrenConfig::PageExtensions
|
|
20
20
|
page.fields << PageField.new(field)
|
21
21
|
end
|
22
22
|
end
|
23
|
+
if config.select{|c| c.has_key? "layout"}.size > 0
|
24
|
+
config.select{|c| c.has_key? "layout"}.first["layout"].each do |field|
|
25
|
+
page.layout = Layout.find_by_name(field)
|
26
|
+
end
|
27
|
+
end
|
23
28
|
page
|
24
29
|
end
|
25
30
|
else
|
@@ -6,11 +6,11 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "radiant-children_config-extension"
|
7
7
|
s.version = RadiantChildrenConfigExtension::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ["
|
10
|
-
s.email = ["
|
11
|
-
s.homepage = "
|
12
|
-
s.summary = %q{Children Config for Radiant CMS}
|
13
|
-
s.description = %q{
|
9
|
+
s.authors = ["Benny Degezelle"]
|
10
|
+
s.email = ["rubygems@monkeypatch.be"]
|
11
|
+
s.homepage = "https://github.com/jomz/radiant-children_config-extension"
|
12
|
+
s.summary = %q{Children Config extension for Radiant CMS}
|
13
|
+
s.description = %q{Allows you to define new defaults on a page per page basis.}
|
14
14
|
|
15
15
|
ignores = if File.exist?('.gitignore')
|
16
16
|
File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.require_paths = ["lib"]
|
24
24
|
|
25
25
|
s.post_install_message = %{
|
26
|
-
Add this to your radiant project
|
27
|
-
|
26
|
+
Add this to your radiant project by putting this line in your Gemfile:
|
27
|
+
gem "radiant-children_config-extension", "~> #{RadiantChildrenConfigExtension::VERSION}"
|
28
28
|
}
|
29
29
|
end
|
@@ -11,7 +11,7 @@ describe Admin::PagesController do
|
|
11
11
|
get :new, :page_id => page_id(:services)
|
12
12
|
response.should be_success
|
13
13
|
page = assigns(:page)
|
14
|
-
page.parts.map(&:name).join(" ").should eql("location description
|
14
|
+
page.parts.map(&:name).join(" ").should eql("location description dat")
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|
metadata
CHANGED
@@ -1,27 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-children_config-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 1.1.0
|
5
|
+
version: 1.1.1
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
|
-
-
|
8
|
+
- Benny Degezelle
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2012-
|
19
|
-
default_executable:
|
13
|
+
date: 2012-10-12 00:00:00 Z
|
20
14
|
dependencies: []
|
21
15
|
|
22
|
-
description:
|
16
|
+
description: Allows you to define new defaults on a page per page basis.
|
23
17
|
email:
|
24
|
-
-
|
18
|
+
- rubygems@monkeypatch.be
|
25
19
|
executables: []
|
26
20
|
|
27
21
|
extensions: []
|
@@ -49,11 +43,10 @@ files:
|
|
49
43
|
- spec/datasets/children_config_dataset.rb
|
50
44
|
- spec/spec.opts
|
51
45
|
- spec/spec_helper.rb
|
52
|
-
|
53
|
-
homepage: http://yourwebsite.com/children_config
|
46
|
+
homepage: https://github.com/jomz/radiant-children_config-extension
|
54
47
|
licenses: []
|
55
48
|
|
56
|
-
post_install_message: "\n Add this to your radiant project
|
49
|
+
post_install_message: "\n Add this to your radiant project by putting this line in your Gemfile:\n gem \"radiant-children_config-extension\", \"~> 1.1.1\"\n "
|
57
50
|
rdoc_options: []
|
58
51
|
|
59
52
|
require_paths:
|
@@ -63,26 +56,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
56
|
requirements:
|
64
57
|
- - ">="
|
65
58
|
- !ruby/object:Gem::Version
|
66
|
-
hash: 3
|
67
|
-
segments:
|
68
|
-
- 0
|
69
59
|
version: "0"
|
70
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
61
|
none: false
|
72
62
|
requirements:
|
73
63
|
- - ">="
|
74
64
|
- !ruby/object:Gem::Version
|
75
|
-
hash: 3
|
76
|
-
segments:
|
77
|
-
- 0
|
78
65
|
version: "0"
|
79
66
|
requirements: []
|
80
67
|
|
81
68
|
rubyforge_project:
|
82
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 1.8.24
|
83
70
|
signing_key:
|
84
71
|
specification_version: 3
|
85
|
-
summary: Children Config for Radiant CMS
|
72
|
+
summary: Children Config extension for Radiant CMS
|
86
73
|
test_files:
|
87
74
|
- spec/controllers/admin/pages_controller_spec.rb
|
88
75
|
- spec/datasets/children_config_dataset.rb
|