mongo_nested_set 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +55 -0
- data/VERSION +1 -0
- data/init.rb +1 -0
- data/lib/mongo_nested_set.rb +606 -0
- data/rails/init.rb +3 -0
- data/test/fixtures/category.rb +19 -0
- data/test/nested_set_test.rb +795 -0
- data/test/test_helper.rb +17 -0
- metadata +78 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
2
|
+
plugin_test_dir = File.dirname(__FILE__)
|
3
|
+
RAILS_ROOT = plugin_test_dir
|
4
|
+
|
5
|
+
require 'rubygems'
|
6
|
+
require 'mongo_mapper'
|
7
|
+
require 'test/unit'
|
8
|
+
require 'multi_rails_init'
|
9
|
+
require 'test_help'
|
10
|
+
|
11
|
+
require plugin_test_dir + '/../init.rb'
|
12
|
+
|
13
|
+
TestCaseClass = ActiveSupport::TestCase rescue Test::Unit::TestCase
|
14
|
+
|
15
|
+
MongoMapper.database = "mongo_nested_set_test"
|
16
|
+
|
17
|
+
Dir["#{plugin_test_dir}/fixtures/*.rb"].each {|file| require file }
|
metadata
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mongo_nested_set
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matt Powell
|
8
|
+
- Brandon Keepers
|
9
|
+
- Daniel Morrison
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
|
14
|
+
date: 2010-01-12 00:00:00 +13:00
|
15
|
+
default_executable:
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: mongo_mapper
|
19
|
+
type: :runtime
|
20
|
+
version_requirement:
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 0.6.10
|
26
|
+
version:
|
27
|
+
description: Port of awesome_nested_set for MongoMapper
|
28
|
+
email: fauxparse@gmail.com
|
29
|
+
executables: []
|
30
|
+
|
31
|
+
extensions: []
|
32
|
+
|
33
|
+
extra_rdoc_files: []
|
34
|
+
|
35
|
+
files:
|
36
|
+
- Rakefile
|
37
|
+
- VERSION
|
38
|
+
- init.rb
|
39
|
+
- lib/mongo_nested_set.rb
|
40
|
+
- rails/init.rb
|
41
|
+
- test/fixtures/category.rb
|
42
|
+
- test/nested_set_test.rb
|
43
|
+
- test/test_helper.rb
|
44
|
+
has_rdoc: true
|
45
|
+
homepage: http://github.com/fauxparse/mongo_nested_set
|
46
|
+
licenses: []
|
47
|
+
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options:
|
50
|
+
- --main
|
51
|
+
- README.rdoc
|
52
|
+
- --inline-source
|
53
|
+
- --line-numbers
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: "0"
|
61
|
+
version:
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: "0"
|
67
|
+
version:
|
68
|
+
requirements: []
|
69
|
+
|
70
|
+
rubyforge_project:
|
71
|
+
rubygems_version: 1.3.5
|
72
|
+
signing_key:
|
73
|
+
specification_version: 3
|
74
|
+
summary: Port of awesome_nested_set for MongoMapper
|
75
|
+
test_files:
|
76
|
+
- test/fixtures/category.rb
|
77
|
+
- test/nested_set_test.rb
|
78
|
+
- test/test_helper.rb
|