noodall-core 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +22 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +62 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +36 -0
- data/VERSION +1 -0
- data/lib/noodall-core.rb +24 -0
- data/lib/noodall/component.rb +45 -0
- data/lib/noodall/global_update_time.rb +27 -0
- data/lib/noodall/indexer.rb +11 -0
- data/lib/noodall/multi_parameter_attributes.rb +83 -0
- data/lib/noodall/node.rb +350 -0
- data/lib/noodall/permalink.rb +27 -0
- data/lib/noodall/search.rb +123 -0
- data/lib/noodall/tagging.rb +68 -0
- data/noodall-core.gemspec +79 -0
- data/spec/component_spec.rb +51 -0
- data/spec/factories/component.rb +16 -0
- data/spec/factories/node.rb +15 -0
- data/spec/node_spec.rb +330 -0
- data/spec/spec_helper.rb +32 -0
- metadata +155 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'noodall-core'
|
2
|
+
require 'rspec'
|
3
|
+
require 'database_cleaner'
|
4
|
+
require 'factory_girl'
|
5
|
+
require 'faker'
|
6
|
+
|
7
|
+
$KCODE = 'UTF8' # For parameterize in Ruby1.8
|
8
|
+
|
9
|
+
MongoMapper.connection = Mongo::Connection.new
|
10
|
+
MongoMapper.database = 'noodal-core-test'
|
11
|
+
|
12
|
+
DatabaseCleaner.strategy = :truncation
|
13
|
+
DatabaseCleaner.clean_with(:truncation)
|
14
|
+
|
15
|
+
|
16
|
+
Noodall::Node.slots :main, :wide, :small
|
17
|
+
|
18
|
+
require 'factories/node'
|
19
|
+
require 'factories/component'
|
20
|
+
|
21
|
+
Rspec.configure do |config|
|
22
|
+
config.mock_with :rspec
|
23
|
+
|
24
|
+
config.before(:each) do
|
25
|
+
DatabaseCleaner.start
|
26
|
+
end
|
27
|
+
|
28
|
+
config.after(:each) do
|
29
|
+
DatabaseCleaner.clean
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: noodall-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Steve England
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-10-10 00:00:00 +01:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
name: mongo_mapper
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - "="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 55
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
- 8
|
34
|
+
- 4
|
35
|
+
version: 0.8.4
|
36
|
+
requirement: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
name: ramdiv-mongo_mapper_acts_as_tree
|
41
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - "="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 25
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
- 1
|
50
|
+
- 1
|
51
|
+
version: 0.1.1
|
52
|
+
requirement: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
name: canable
|
57
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - "="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 25
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
- 1
|
66
|
+
- 1
|
67
|
+
version: 0.1.1
|
68
|
+
requirement: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
name: ruby-stemmer
|
73
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
hash: 3
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
version: "0"
|
82
|
+
requirement: *id004
|
83
|
+
description: Core data objects for Noodall
|
84
|
+
email: steve@wearebeef.co.uk
|
85
|
+
executables: []
|
86
|
+
|
87
|
+
extensions: []
|
88
|
+
|
89
|
+
extra_rdoc_files:
|
90
|
+
- LICENSE
|
91
|
+
- README.rdoc
|
92
|
+
files:
|
93
|
+
- .document
|
94
|
+
- .gitignore
|
95
|
+
- Gemfile
|
96
|
+
- Gemfile.lock
|
97
|
+
- LICENSE
|
98
|
+
- README.rdoc
|
99
|
+
- Rakefile
|
100
|
+
- VERSION
|
101
|
+
- lib/noodall-core.rb
|
102
|
+
- lib/noodall/component.rb
|
103
|
+
- lib/noodall/global_update_time.rb
|
104
|
+
- lib/noodall/indexer.rb
|
105
|
+
- lib/noodall/multi_parameter_attributes.rb
|
106
|
+
- lib/noodall/node.rb
|
107
|
+
- lib/noodall/permalink.rb
|
108
|
+
- lib/noodall/search.rb
|
109
|
+
- lib/noodall/tagging.rb
|
110
|
+
- noodall-core.gemspec
|
111
|
+
- spec/component_spec.rb
|
112
|
+
- spec/factories/component.rb
|
113
|
+
- spec/factories/node.rb
|
114
|
+
- spec/node_spec.rb
|
115
|
+
- spec/spec_helper.rb
|
116
|
+
has_rdoc: true
|
117
|
+
homepage: http://github.com/beef/noodall-core
|
118
|
+
licenses: []
|
119
|
+
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options:
|
122
|
+
- --charset=UTF-8
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
hash: 3
|
131
|
+
segments:
|
132
|
+
- 0
|
133
|
+
version: "0"
|
134
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
hash: 3
|
140
|
+
segments:
|
141
|
+
- 0
|
142
|
+
version: "0"
|
143
|
+
requirements: []
|
144
|
+
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 1.3.7
|
147
|
+
signing_key:
|
148
|
+
specification_version: 3
|
149
|
+
summary: Core data objects for Noodall
|
150
|
+
test_files:
|
151
|
+
- spec/component_spec.rb
|
152
|
+
- spec/factories/component.rb
|
153
|
+
- spec/factories/node.rb
|
154
|
+
- spec/node_spec.rb
|
155
|
+
- spec/spec_helper.rb
|