noodall-core 0.4.3 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/noodall/node.rb +2 -1
- data/noodall-core.gemspec +5 -4
- metadata +21 -21
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.5
|
data/lib/noodall/node.rb
CHANGED
@@ -34,9 +34,10 @@ module Noodall
|
|
34
34
|
|
35
35
|
acts_as_tree :order => "position", :search_class => Noodall::Node
|
36
36
|
|
37
|
+
# if there are any children that are not of an allowed template, error
|
37
38
|
validates_true_for :template,
|
38
39
|
:message => "cannot be changed as sub content is not allowed in this template",
|
39
|
-
:logic => lambda { children.
|
40
|
+
:logic => lambda { children.empty? || children.select{|c| !self._type.constantize.template_classes.include?(c.class)}.empty? }
|
40
41
|
|
41
42
|
scope :published, lambda { where(:published_at => { :$lte => current_time }, :published_to => { :$gte => current_time }) }
|
42
43
|
|
data/noodall-core.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{noodall-core}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Steve England"]
|
@@ -45,18 +45,19 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.homepage = %q{http://github.com/beef/noodall-core}
|
46
46
|
s.rdoc_options = ["--charset=UTF-8"]
|
47
47
|
s.require_paths = ["lib"]
|
48
|
-
s.rubygems_version = %q{1.
|
48
|
+
s.rubygems_version = %q{1.3.7}
|
49
49
|
s.summary = %q{Core data objects for Noodall}
|
50
50
|
s.test_files = [
|
51
51
|
"spec/node_spec.rb",
|
52
|
-
"spec/site_map_spec.rb",
|
53
52
|
"spec/component_spec.rb",
|
54
53
|
"spec/spec_helper.rb",
|
55
54
|
"spec/factories/node.rb",
|
56
|
-
"spec/factories/component.rb"
|
55
|
+
"spec/factories/component.rb",
|
56
|
+
"spec/site_map_spec.rb"
|
57
57
|
]
|
58
58
|
|
59
59
|
if s.respond_to? :specification_version then
|
60
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
60
61
|
s.specification_version = 3
|
61
62
|
|
62
63
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 5
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 5
|
10
|
+
version: 0.4.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve England
|
@@ -19,6 +19,9 @@ date: 2011-01-21 00:00:00 +00:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
name: mongo_mapper
|
22
25
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
26
|
none: false
|
24
27
|
requirements:
|
@@ -31,10 +34,10 @@ dependencies:
|
|
31
34
|
- 6
|
32
35
|
version: 0.8.6
|
33
36
|
requirement: *id001
|
34
|
-
prerelease: false
|
35
|
-
name: mongo_mapper
|
36
|
-
type: :runtime
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
name: ramdiv-mongo_mapper_acts_as_tree
|
38
41
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
42
|
none: false
|
40
43
|
requirements:
|
@@ -47,10 +50,10 @@ dependencies:
|
|
47
50
|
- 1
|
48
51
|
version: 0.1.1
|
49
52
|
requirement: *id002
|
50
|
-
prerelease: false
|
51
|
-
name: ramdiv-mongo_mapper_acts_as_tree
|
52
|
-
type: :runtime
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
name: mm-multi-parameter-attributes
|
54
57
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
58
|
none: false
|
56
59
|
requirements:
|
@@ -63,10 +66,10 @@ dependencies:
|
|
63
66
|
- 1
|
64
67
|
version: 0.1.1
|
65
68
|
requirement: *id003
|
66
|
-
prerelease: false
|
67
|
-
name: mm-multi-parameter-attributes
|
68
|
-
type: :runtime
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
name: canable
|
70
73
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
71
74
|
none: false
|
72
75
|
requirements:
|
@@ -79,10 +82,10 @@ dependencies:
|
|
79
82
|
- 1
|
80
83
|
version: 0.1.1
|
81
84
|
requirement: *id004
|
82
|
-
prerelease: false
|
83
|
-
name: canable
|
84
|
-
type: :runtime
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
name: ruby-stemmer
|
86
89
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
87
90
|
none: false
|
88
91
|
requirements:
|
@@ -93,9 +96,6 @@ dependencies:
|
|
93
96
|
- 0
|
94
97
|
version: "0"
|
95
98
|
requirement: *id005
|
96
|
-
prerelease: false
|
97
|
-
name: ruby-stemmer
|
98
|
-
type: :runtime
|
99
99
|
description: Core data objects for Noodall
|
100
100
|
email: steve@wearebeef.co.uk
|
101
101
|
executables: []
|
@@ -160,14 +160,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
requirements: []
|
161
161
|
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 1.
|
163
|
+
rubygems_version: 1.3.7
|
164
164
|
signing_key:
|
165
165
|
specification_version: 3
|
166
166
|
summary: Core data objects for Noodall
|
167
167
|
test_files:
|
168
168
|
- spec/node_spec.rb
|
169
|
-
- spec/site_map_spec.rb
|
170
169
|
- spec/component_spec.rb
|
171
170
|
- spec/spec_helper.rb
|
172
171
|
- spec/factories/node.rb
|
173
172
|
- spec/factories/component.rb
|
173
|
+
- spec/site_map_spec.rb
|