noodall-core 0.7.3 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -4,7 +4,7 @@
4
4
  # development environment upon cd'ing into the directory
5
5
 
6
6
  # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-1.8.7-p334@g-noodall-core"
7
+ environment_id="ruby-1.9.2@noodall-core"
8
8
 
9
9
  #
10
10
  # First we attempt to load the desired environment directly from the environment
data/Gemfile CHANGED
@@ -8,7 +8,6 @@ group :development do
8
8
  gem "factory_girl", "~> 1.3.2"
9
9
  gem "faker", "~> 0.3.1"
10
10
  gem "rake"
11
- gem 'bson_ext', '~> 1.3.0'
12
- gem 'SystemTimer', '~> 1.2.0'
11
+ gem 'bson_ext'
13
12
  end
14
13
 
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module Core
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.5"
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@ module Noodall
14
14
  key :browser_title, String
15
15
  key :name, String
16
16
  key :description, String
17
- key :body, String
17
+ key :body, String, :default => ""
18
18
  key :position, Integer, :default => nil, :index => true
19
19
  key :_type, String
20
20
  key :published_at, Time, :index => true
@@ -163,7 +163,7 @@ module Noodall
163
163
  end
164
164
 
165
165
  def admin_title
166
- title
166
+ name
167
167
  end
168
168
 
169
169
  private
@@ -5,22 +5,22 @@ Gem::Specification.new do |s|
5
5
  s.name = "noodall-core"
6
6
  s.version = Noodall::Core::VERSION
7
7
  s.platform = Gem::Platform::RUBY
8
-
8
+
9
9
  s.authors = ["Steve England"]
10
10
  s.email = ['steve@wearebeef.co.uk']
11
11
  s.homepage = "http://github.com/beef/noodall-core"
12
12
  s.summary = "Core data objects for Noodall"
13
13
  s.description = "Core data objects for Noodall"
14
-
14
+
15
15
  s.required_rubygems_version = ">= 1.3.6"
16
-
16
+
17
17
  s.add_dependency(%q<mongo_mapper>, ["~> 0.9.0"])
18
18
  s.add_dependency(%q<ramdiv-mongo_mapper_acts_as_tree>, ["~> 0.1.1"])
19
19
  s.add_dependency(%q<mm-multi-parameter-attributes>, ["~> 0.2.1"])
20
- s.add_dependency(%q<canable>, ["= 0.1.1"])
21
- s.add_dependency(%q<mm-versionable>, ["= 0.2.4"])
20
+ s.add_dependency(%q<canable>, ["~> 0.1.1"])
21
+ s.add_dependency(%q<mm-versionable>, ["~> 0.2.5"])
22
22
  s.add_dependency(%q<ruby-stemmer>, [">= 0"])
23
-
23
+
24
24
  s.files = `git ls-files`.split("\n")
25
25
  s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
26
26
  s.require_path = 'lib'
@@ -415,14 +415,23 @@ describe Noodall::Node do
415
415
  end
416
416
 
417
417
  it "should fall back to title for link name if it is blank" do
418
- page = Factory(:page, :title => "My Long Title that is long")
418
+ title = "My Long Title that is long"
419
+ name = "Shorty"
420
+ page = Factory(:page, :title => title)
419
421
 
420
- page.name.should == "My Long Title that is long"
422
+ page.name.should == title
421
423
 
422
- page.name = "Shorty"
424
+ page.name = name
423
425
  page.save
424
426
 
425
- page.name.should == "Shorty"
427
+ page.name.should == name
428
+ end
429
+
430
+ it "Should have an admin_title that matches the name" do
431
+ title = "My title"
432
+ name = "Somthing else"
433
+ page = Factory(:page, :title => title, :name => name)
434
+ page.admin_title.should == name
426
435
  end
427
436
 
428
437
  it "should be indexed only when explicitly called" do
metadata CHANGED
@@ -1,127 +1,89 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: noodall-core
3
- version: !ruby/object:Gem::Version
4
- hash: 5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 7
9
- - 3
10
- version: 0.7.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Steve England
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-06-23 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
12
+ date: 2011-09-26 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: mongo_mapper
16
+ requirement: &14024980 !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 59
28
- segments:
29
- - 0
30
- - 9
31
- - 0
20
+ - !ruby/object:Gem::Version
32
21
  version: 0.9.0
33
- prerelease: false
34
- requirement: *id001
35
- name: mongo_mapper
36
22
  type: :runtime
37
- - !ruby/object:Gem::Dependency
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: *14024980
25
+ - !ruby/object:Gem::Dependency
26
+ name: ramdiv-mongo_mapper_acts_as_tree
27
+ requirement: &14023780 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
29
+ requirements:
41
30
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 25
44
- segments:
45
- - 0
46
- - 1
47
- - 1
31
+ - !ruby/object:Gem::Version
48
32
  version: 0.1.1
49
- prerelease: false
50
- requirement: *id002
51
- name: ramdiv-mongo_mapper_acts_as_tree
52
33
  type: :runtime
53
- - !ruby/object:Gem::Dependency
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ version_requirements: *14023780
36
+ - !ruby/object:Gem::Dependency
37
+ name: mm-multi-parameter-attributes
38
+ requirement: &14022840 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
40
+ requirements:
57
41
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 21
60
- segments:
61
- - 0
62
- - 2
63
- - 1
42
+ - !ruby/object:Gem::Version
64
43
  version: 0.2.1
65
- prerelease: false
66
- requirement: *id003
67
- name: mm-multi-parameter-attributes
68
44
  type: :runtime
69
- - !ruby/object:Gem::Dependency
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - "="
74
- - !ruby/object:Gem::Version
75
- hash: 25
76
- segments:
77
- - 0
78
- - 1
79
- - 1
80
- version: 0.1.1
81
45
  prerelease: false
82
- requirement: *id004
46
+ version_requirements: *14022840
47
+ - !ruby/object:Gem::Dependency
83
48
  name: canable
84
- type: :runtime
85
- - !ruby/object:Gem::Dependency
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
49
+ requirement: &14022000 !ruby/object:Gem::Requirement
87
50
  none: false
88
- requirements:
89
- - - "="
90
- - !ruby/object:Gem::Version
91
- hash: 31
92
- segments:
93
- - 0
94
- - 2
95
- - 4
96
- version: 0.2.4
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.1
55
+ type: :runtime
97
56
  prerelease: false
98
- requirement: *id005
57
+ version_requirements: *14022000
58
+ - !ruby/object:Gem::Dependency
99
59
  name: mm-versionable
100
- type: :runtime
101
- - !ruby/object:Gem::Dependency
102
- version_requirements: &id006 !ruby/object:Gem::Requirement
60
+ requirement: &14021120 !ruby/object:Gem::Requirement
103
61
  none: false
104
- requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- hash: 3
108
- segments:
109
- - 0
110
- version: "0"
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: 0.2.5
66
+ type: :runtime
111
67
  prerelease: false
112
- requirement: *id006
68
+ version_requirements: *14021120
69
+ - !ruby/object:Gem::Dependency
113
70
  name: ruby-stemmer
71
+ requirement: &14020320 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
114
77
  type: :runtime
78
+ prerelease: false
79
+ version_requirements: *14020320
115
80
  description: Core data objects for Noodall
116
- email:
81
+ email:
117
82
  - steve@wearebeef.co.uk
118
83
  executables: []
119
-
120
84
  extensions: []
121
-
122
85
  extra_rdoc_files: []
123
-
124
- files:
86
+ files:
125
87
  - .document
126
88
  - .gitignore
127
89
  - .rvmrc
@@ -139,50 +101,38 @@ files:
139
101
  - lib/noodall/search.rb
140
102
  - lib/noodall/site.rb
141
103
  - lib/noodall/tagging.rb
142
- - lib/versionable/models/version.rb
143
104
  - noodall-core.gemspec
144
- - noodall-core.gemspec.orig
145
105
  - spec/component_spec.rb
146
106
  - spec/factories/component.rb
147
107
  - spec/factories/node.rb
148
108
  - spec/node_spec.rb
149
109
  - spec/site_map_spec.rb
150
110
  - spec/spec_helper.rb
151
- has_rdoc: true
152
111
  homepage: http://github.com/beef/noodall-core
153
112
  licenses: []
154
-
155
113
  post_install_message:
156
114
  rdoc_options: []
157
-
158
- require_paths:
115
+ require_paths:
159
116
  - lib
160
- required_ruby_version: !ruby/object:Gem::Requirement
117
+ required_ruby_version: !ruby/object:Gem::Requirement
161
118
  none: false
162
- requirements:
163
- - - ">="
164
- - !ruby/object:Gem::Version
165
- hash: 3
166
- segments:
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ segments:
167
124
  - 0
168
- version: "0"
169
- required_rubygems_version: !ruby/object:Gem::Requirement
125
+ hash: -1321159501201934569
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
127
  none: false
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- hash: 23
175
- segments:
176
- - 1
177
- - 3
178
- - 6
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
179
131
  version: 1.3.6
180
132
  requirements: []
181
-
182
133
  rubyforge_project:
183
- rubygems_version: 1.5.1
134
+ rubygems_version: 1.8.6
184
135
  signing_key:
185
136
  specification_version: 3
186
137
  summary: Core data objects for Noodall
187
138
  test_files: []
188
-
@@ -1,22 +0,0 @@
1
- # This is a duplicate of mm-versionable lib/versionable/models/version.rb
2
- # with indexing turned off so it doesn't complian when included that there
3
- # is no db connection
4
- class Version
5
- include MongoMapper::Document
6
-
7
- key :data, Hash
8
- key :date, Time
9
- key :pos, Integer#, :index => true
10
- key :doc_id, String#, :index => true
11
- key :message, String
12
- key :updater_id, String
13
-
14
- def content(key)
15
- cdata = self.data[key]
16
- if cdata.respond_to?(:join)
17
- cdata.join(" ")
18
- else
19
- cdata
20
- end
21
- end
22
- end
@@ -1,106 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path("../lib/noodall/core/version", __FILE__)
3
-
4
- Gem::Specification.new do |s|
5
- <<<<<<< HEAD
6
- s.name = %q{noodall-core}
7
- s.version = "0.6.3"
8
-
9
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
- s.authors = ["Steve England"]
11
- s.date = %q{2011-06-03}
12
- s.description = %q{Core data objects for Noodall}
13
- s.email = %q{steve@wearebeef.co.uk}
14
- s.extra_rdoc_files = [
15
- "LICENSE",
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- ".document",
20
- ".gitignore",
21
- ".rvmrc",
22
- "Gemfile",
23
- "LICENSE",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
27
- "lib/noodall-core.rb",
28
- "lib/noodall/component.rb",
29
- "lib/noodall/global_update_time.rb",
30
- "lib/noodall/indexer.rb",
31
- "lib/noodall/node.rb",
32
- "lib/noodall/permalink.rb",
33
- "lib/noodall/search.rb",
34
- "lib/noodall/site.rb",
35
- "lib/noodall/tagging.rb",
36
- "noodall-core.gemspec",
37
- "spec/component_spec.rb",
38
- "spec/factories/component.rb",
39
- "spec/factories/node.rb",
40
- "spec/node_spec.rb",
41
- "spec/site_map_spec.rb",
42
- "spec/spec_helper.rb"
43
- ]
44
- s.homepage = %q{http://github.com/beef/noodall-core}
45
- s.rdoc_options = ["--charset=UTF-8"]
46
- s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.6.2}
48
- s.summary = %q{Core data objects for Noodall}
49
- s.test_files = [
50
- "spec/component_spec.rb",
51
- "spec/factories/component.rb",
52
- "spec/factories/node.rb",
53
- "spec/node_spec.rb",
54
- "spec/site_map_spec.rb",
55
- "spec/spec_helper.rb"
56
- ]
57
-
58
- if s.respond_to? :specification_version then
59
- s.specification_version = 3
60
-
61
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
62
- s.add_runtime_dependency(%q<mongo_mapper>, ["~> 0.8.6"])
63
- s.add_runtime_dependency(%q<ramdiv-mongo_mapper_acts_as_tree>, ["~> 0.1.1"])
64
- s.add_runtime_dependency(%q<mm-multi-parameter-attributes>, ["~> 0.1.1"])
65
- s.add_runtime_dependency(%q<canable>, ["= 0.1.1"])
66
- s.add_runtime_dependency(%q<ruby-stemmer>, [">= 0"])
67
- else
68
- s.add_dependency(%q<mongo_mapper>, ["~> 0.8.6"])
69
- s.add_dependency(%q<ramdiv-mongo_mapper_acts_as_tree>, ["~> 0.1.1"])
70
- s.add_dependency(%q<mm-multi-parameter-attributes>, ["~> 0.1.1"])
71
- s.add_dependency(%q<canable>, ["= 0.1.1"])
72
- s.add_dependency(%q<ruby-stemmer>, [">= 0"])
73
- end
74
- else
75
- s.add_dependency(%q<mongo_mapper>, ["~> 0.8.6"])
76
- s.add_dependency(%q<ramdiv-mongo_mapper_acts_as_tree>, ["~> 0.1.1"])
77
- s.add_dependency(%q<mm-multi-parameter-attributes>, ["~> 0.1.1"])
78
- s.add_dependency(%q<canable>, ["= 0.1.1"])
79
- s.add_dependency(%q<ruby-stemmer>, [">= 0"])
80
- end
81
- =======
82
- s.name = "noodall-core"
83
- s.version = Noodall::Core::VERSION
84
- s.platform = Gem::Platform::RUBY
85
-
86
- s.authors = ["Steve England"]
87
- s.email = ['steve@wearebeef.co.uk']
88
- s.homepage = "http://github.com/beef/noodall-core"
89
- s.summary = "Core data objects for Noodall"
90
- s.description = "Core data objects for Noodall"
91
-
92
- s.required_rubygems_version = ">= 1.3.6"
93
-
94
- s.add_dependency(%q<mongo_mapper>, ["~> 0.9.0"])
95
- s.add_dependency(%q<ramdiv-mongo_mapper_acts_as_tree>, ["~> 0.1.1"])
96
- s.add_dependency(%q<mm-multi-parameter-attributes>, ["~> 0.2.1"])
97
- s.add_dependency(%q<canable>, ["= 0.1.1"])
98
- s.add_dependency(%q<mm-versionable>, ["= 0.2.4"])
99
- s.add_dependency(%q<ruby-stemmer>, [">= 0"])
100
-
101
- s.files = `git ls-files`.split("\n")
102
- s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
103
- s.require_path = 'lib'
104
- >>>>>>> mm9
105
- end
106
-