light_mongo 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ require File.dirname(__FILE__) + '/../lib/document'
2
+
3
+ describe LightMongo::Document do
4
+ before(:each) do
5
+ LightMongo.stub!(:database => mock(:database, :connection => nil))
6
+
7
+ class TestClass
8
+ include LightMongo::Document
9
+ end
10
+ end
11
+
12
+ it "loads the serialization module" do
13
+ TestClass.should include(LightMongo::Document::Serialization)
14
+ end
15
+
16
+ it "loads the persistence module" do
17
+ TestClass.should include(LightMongo::Document::Persistence)
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: light_mongo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Elliot Crosby-McCullough
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-03-21 00:00:00 +00:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.3.0
24
+ version:
25
+ description: LightMongo is a lightweight Mongo object persistence layer for Ruby which makes use of Mongo's features rather than trying to emulate ActiveRecord.
26
+ email: elliot.cm@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.md
34
+ files:
35
+ - .gitignore
36
+ - LICENSE
37
+ - README.md
38
+ - Rakefile
39
+ - VERSION
40
+ - integration/basic_storage_cycle_spec.rb
41
+ - integration/cross_collection_relationships_spec.rb
42
+ - integration/dynamic_finders_spec.rb
43
+ - integration/meta_spec.rb
44
+ - integration/object_embedding_spec.rb
45
+ - integration/support/integration_helper.rb
46
+ - lib/document.rb
47
+ - lib/document/persistence.rb
48
+ - lib/document/serialization.rb
49
+ - lib/document/serialization/hash_serializer.rb
50
+ - lib/document/serialization/serializer.rb
51
+ - lib/light_mongo.rb
52
+ - lib/util.rb
53
+ - spec/document/persistence_spec.rb
54
+ - spec/document/serialization/hash_serializer_spec.rb
55
+ - spec/document/serialization/serializer_spec.rb
56
+ - spec/document/serialization_spec.rb
57
+ - spec/document_spec.rb
58
+ has_rdoc: true
59
+ homepage: http://github.com/elliotcm/light_mongo
60
+ licenses: []
61
+
62
+ post_install_message:
63
+ rdoc_options:
64
+ - --charset=UTF-8
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0"
78
+ version:
79
+ requirements: []
80
+
81
+ rubyforge_project:
82
+ rubygems_version: 1.3.5
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: A lightweight Ruby object persistence library for Mongo DB
86
+ test_files:
87
+ - spec/document/persistence_spec.rb
88
+ - spec/document/serialization/hash_serializer_spec.rb
89
+ - spec/document/serialization/serializer_spec.rb
90
+ - spec/document/serialization_spec.rb
91
+ - spec/document_spec.rb