splash 0.0.1.alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/Rakefile +19 -0
  2. data/lib/splash/acts_as_collection.rb +55 -0
  3. data/lib/splash/acts_as_scope.rb +118 -0
  4. data/lib/splash/acts_as_scope_root.rb +10 -0
  5. data/lib/splash/annotated.rb +34 -0
  6. data/lib/splash/application.rb +36 -0
  7. data/lib/splash/attribute.rb +45 -0
  8. data/lib/splash/attributed_struct.rb +8 -0
  9. data/lib/splash/collection.rb +52 -0
  10. data/lib/splash/connection.rb +26 -0
  11. data/lib/splash/constraint/all.rb +24 -0
  12. data/lib/splash/constraint/any.rb +13 -0
  13. data/lib/splash/constraint/in.rb +13 -0
  14. data/lib/splash/constraint/not_nil.rb +9 -0
  15. data/lib/splash/constraint.rb +62 -0
  16. data/lib/splash/document.rb +38 -0
  17. data/lib/splash/embed.rb +37 -0
  18. data/lib/splash/has_attributes.rb +146 -0
  19. data/lib/splash/has_constraint.rb +9 -0
  20. data/lib/splash/namespace.rb +67 -0
  21. data/lib/splash/password.rb +31 -0
  22. data/lib/splash/persister.rb +66 -0
  23. data/lib/splash/query_interface.rb +84 -0
  24. data/lib/splash/saveable.rb +141 -0
  25. data/lib/splash/scope/options.rb +58 -0
  26. data/lib/splash/scope.rb +46 -0
  27. data/lib/splash/scope_delegator.rb +14 -0
  28. data/lib/splash/scope_options.rb +31 -0
  29. data/lib/splash/standart_extensions/hash.rb +45 -0
  30. data/lib/splash/standart_extensions/module.rb +73 -0
  31. data/lib/splash/standart_extensions/object.rb +11 -0
  32. data/lib/splash/standart_extensions/string.rb +5 -0
  33. data/lib/splash/validates.rb +75 -0
  34. data/lib/splash/validator.rb +24 -0
  35. data/lib/splash.rb +35 -0
  36. data/spec/helper.rb +15 -0
  37. data/spec/lib/annotated_spec.rb +87 -0
  38. data/spec/lib/collection_spec.rb +64 -0
  39. data/spec/lib/has_attributes_spec.rb +43 -0
  40. data/spec/lib/has_constraints_spec.rb +53 -0
  41. data/spec/lib/inheritance_spec.rb +69 -0
  42. metadata +139 -0
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: splash
3
+ version: !ruby/object:Gem::Version
4
+ hash: -1851332166
5
+ prerelease: true
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ - alpha
11
+ version: 0.0.1.alpha
12
+ platform: ruby
13
+ authors:
14
+ - HannesG
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-09-01 00:00:00 +02:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: mongo
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 15
31
+ segments:
32
+ - 1
33
+ - 0
34
+ version: "1.0"
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 9
46
+ segments:
47
+ - 1
48
+ - 3
49
+ version: "1.3"
50
+ type: :development
51
+ version_requirements: *id002
52
+ description: Splashes Mongo
53
+ email: hannes.georg@googlemail.com
54
+ executables: []
55
+
56
+ extensions: []
57
+
58
+ extra_rdoc_files: []
59
+
60
+ files:
61
+ - lib/splash.rb
62
+ - lib/splash/scope_options.rb
63
+ - lib/splash/connection.rb
64
+ - lib/splash/scope_delegator.rb
65
+ - lib/splash/persister.rb
66
+ - lib/splash/query_interface.rb
67
+ - lib/splash/annotated.rb
68
+ - lib/splash/validates.rb
69
+ - lib/splash/scope.rb
70
+ - lib/splash/saveable.rb
71
+ - lib/splash/attributed_struct.rb
72
+ - lib/splash/has_constraint.rb
73
+ - lib/splash/constraint.rb
74
+ - lib/splash/acts_as_scope_root.rb
75
+ - lib/splash/attribute.rb
76
+ - lib/splash/scope/options.rb
77
+ - lib/splash/standart_extensions/hash.rb
78
+ - lib/splash/standart_extensions/object.rb
79
+ - lib/splash/standart_extensions/module.rb
80
+ - lib/splash/standart_extensions/string.rb
81
+ - lib/splash/password.rb
82
+ - lib/splash/embed.rb
83
+ - lib/splash/validator.rb
84
+ - lib/splash/has_attributes.rb
85
+ - lib/splash/document.rb
86
+ - lib/splash/constraint/not_nil.rb
87
+ - lib/splash/constraint/in.rb
88
+ - lib/splash/constraint/all.rb
89
+ - lib/splash/constraint/any.rb
90
+ - lib/splash/namespace.rb
91
+ - lib/splash/acts_as_collection.rb
92
+ - lib/splash/acts_as_scope.rb
93
+ - lib/splash/collection.rb
94
+ - lib/splash/application.rb
95
+ - spec/lib/has_attributes_spec.rb
96
+ - spec/lib/inheritance_spec.rb
97
+ - spec/lib/annotated_spec.rb
98
+ - spec/lib/collection_spec.rb
99
+ - spec/lib/has_constraints_spec.rb
100
+ - spec/helper.rb
101
+ - Rakefile
102
+ has_rdoc: true
103
+ homepage: http://github.com/hannesg/splash
104
+ licenses: []
105
+
106
+ post_install_message:
107
+ rdoc_options: []
108
+
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ hash: 3
117
+ segments:
118
+ - 0
119
+ version: "0"
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ">"
124
+ - !ruby/object:Gem::Version
125
+ hash: 25
126
+ segments:
127
+ - 1
128
+ - 3
129
+ - 1
130
+ version: 1.3.1
131
+ requirements: []
132
+
133
+ rubyforge_project:
134
+ rubygems_version: 1.3.7
135
+ signing_key:
136
+ specification_version: 3
137
+ summary: Be Splashed!
138
+ test_files: []
139
+