noodall-core 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
data/lib/noodall/node.rb CHANGED
@@ -173,8 +173,8 @@ module Noodall
173
173
  # inherit the parents permalink and append the current node's .name or .title attribute
174
174
  # this code takes name over title for the current node's slug
175
175
  # this way enables children to inherit the parent's custom (user defined) permalink also
176
- permalink_args = self.parent.permalink unless self.parent.nil?
177
- self_slug = (self.name.blank? ? self.title : self.name).parameterize
176
+ permalink_args = self.parent.nil? ? [] : self.parent.permalink
177
+ self_slug = (self.name.blank? ? self.title : self.name).to_s.parameterize
178
178
  permalink_args << self_slug unless self_slug.blank?
179
179
  self.permalink = Permalink.new(*permalink_args)
180
180
  end
data/noodall-core.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{noodall-core}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
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"]
12
- s.date = %q{2010-11-24}
12
+ s.date = %q{2010-11-29}
13
13
  s.description = %q{Core data objects for Noodall}
14
14
  s.email = %q{steve@wearebeef.co.uk}
15
15
  s.extra_rdoc_files = [
@@ -47,10 +47,10 @@ Gem::Specification.new do |s|
47
47
  s.summary = %q{Core data objects for Noodall}
48
48
  s.test_files = [
49
49
  "spec/component_spec.rb",
50
- "spec/spec_helper.rb",
51
- "spec/node_spec.rb",
52
50
  "spec/factories/component.rb",
53
- "spec/factories/node.rb"
51
+ "spec/factories/node.rb",
52
+ "spec/node_spec.rb",
53
+ "spec/spec_helper.rb"
54
54
  ]
55
55
 
56
56
  if s.respond_to? :specification_version 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: 21
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve England
@@ -15,10 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-24 00:00:00 +00:00
18
+ date: 2010-11-29 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ type: :runtime
22
23
  prerelease: false
23
24
  name: mongo_mapper
24
25
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -33,8 +34,8 @@ dependencies:
33
34
  - 6
34
35
  version: 0.8.6
35
36
  requirement: *id001
36
- type: :runtime
37
37
  - !ruby/object:Gem::Dependency
38
+ type: :runtime
38
39
  prerelease: false
39
40
  name: ramdiv-mongo_mapper_acts_as_tree
40
41
  version_requirements: &id002 !ruby/object:Gem::Requirement
@@ -49,8 +50,8 @@ dependencies:
49
50
  - 1
50
51
  version: 0.1.1
51
52
  requirement: *id002
52
- type: :runtime
53
53
  - !ruby/object:Gem::Dependency
54
+ type: :runtime
54
55
  prerelease: false
55
56
  name: mm-multi-parameter-attributes
56
57
  version_requirements: &id003 !ruby/object:Gem::Requirement
@@ -65,8 +66,8 @@ dependencies:
65
66
  - 1
66
67
  version: 0.1.1
67
68
  requirement: *id003
68
- type: :runtime
69
69
  - !ruby/object:Gem::Dependency
70
+ type: :runtime
70
71
  prerelease: false
71
72
  name: canable
72
73
  version_requirements: &id004 !ruby/object:Gem::Requirement
@@ -81,8 +82,8 @@ dependencies:
81
82
  - 1
82
83
  version: 0.1.1
83
84
  requirement: *id004
84
- type: :runtime
85
85
  - !ruby/object:Gem::Dependency
86
+ type: :runtime
86
87
  prerelease: false
87
88
  name: ruby-stemmer
88
89
  version_requirements: &id005 !ruby/object:Gem::Requirement
@@ -95,7 +96,6 @@ dependencies:
95
96
  - 0
96
97
  version: "0"
97
98
  requirement: *id005
98
- type: :runtime
99
99
  description: Core data objects for Noodall
100
100
  email: steve@wearebeef.co.uk
101
101
  executables: []
@@ -164,7 +164,7 @@ specification_version: 3
164
164
  summary: Core data objects for Noodall
165
165
  test_files:
166
166
  - spec/component_spec.rb
167
- - spec/spec_helper.rb
168
- - spec/node_spec.rb
169
167
  - spec/factories/component.rb
170
168
  - spec/factories/node.rb
169
+ - spec/node_spec.rb
170
+ - spec/spec_helper.rb