ricordami 0.0.1

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 (62) hide show
  1. data/CHANGELOG.md +13 -0
  2. data/ISSUES.md +0 -0
  3. data/MIT-LICENSE +21 -0
  4. data/README.md +454 -0
  5. data/TODO.md +21 -0
  6. data/examples/calls.rb +64 -0
  7. data/examples/singers.rb +42 -0
  8. data/lib/ricordami/attribute.rb +52 -0
  9. data/lib/ricordami/can_be_queried.rb +133 -0
  10. data/lib/ricordami/can_be_validated.rb +27 -0
  11. data/lib/ricordami/can_have_relationships.rb +152 -0
  12. data/lib/ricordami/configuration.rb +39 -0
  13. data/lib/ricordami/connection.rb +22 -0
  14. data/lib/ricordami/exceptions.rb +14 -0
  15. data/lib/ricordami/has_attributes.rb +159 -0
  16. data/lib/ricordami/has_indices.rb +105 -0
  17. data/lib/ricordami/is_lockable.rb +52 -0
  18. data/lib/ricordami/is_persisted.rb +123 -0
  19. data/lib/ricordami/is_retrievable.rb +35 -0
  20. data/lib/ricordami/key_namer.rb +63 -0
  21. data/lib/ricordami/model.rb +29 -0
  22. data/lib/ricordami/query.rb +68 -0
  23. data/lib/ricordami/relationship.rb +40 -0
  24. data/lib/ricordami/unique_index.rb +59 -0
  25. data/lib/ricordami/unique_validator.rb +21 -0
  26. data/lib/ricordami/value_index.rb +26 -0
  27. data/lib/ricordami/version.rb +3 -0
  28. data/lib/ricordami.rb +26 -0
  29. data/spec/acceptance/manage_relationships_spec.rb +42 -0
  30. data/spec/acceptance/model_with_validation_spec.rb +78 -0
  31. data/spec/acceptance/query_model_spec.rb +93 -0
  32. data/spec/acceptance_helper.rb +2 -0
  33. data/spec/ricordami/attribute_spec.rb +113 -0
  34. data/spec/ricordami/can_be_queried_spec.rb +254 -0
  35. data/spec/ricordami/can_be_validated_spec.rb +115 -0
  36. data/spec/ricordami/can_have_relationships_spec.rb +255 -0
  37. data/spec/ricordami/configuration_spec.rb +45 -0
  38. data/spec/ricordami/connection_spec.rb +25 -0
  39. data/spec/ricordami/exceptions_spec.rb +43 -0
  40. data/spec/ricordami/has_attributes_spec.rb +266 -0
  41. data/spec/ricordami/has_indices_spec.rb +73 -0
  42. data/spec/ricordami/is_lockable_spec.rb +45 -0
  43. data/spec/ricordami/is_persisted_spec.rb +186 -0
  44. data/spec/ricordami/is_retrievable_spec.rb +55 -0
  45. data/spec/ricordami/key_namer_spec.rb +56 -0
  46. data/spec/ricordami/model_spec.rb +65 -0
  47. data/spec/ricordami/query_spec.rb +156 -0
  48. data/spec/ricordami/relationship_spec.rb +123 -0
  49. data/spec/ricordami/unique_index_spec.rb +87 -0
  50. data/spec/ricordami/unique_validator_spec.rb +41 -0
  51. data/spec/ricordami/value_index_spec.rb +40 -0
  52. data/spec/spec_helper.rb +29 -0
  53. data/spec/support/constants.rb +43 -0
  54. data/spec/support/db_manager.rb +18 -0
  55. data/test/bin/data_loader.rb +107 -0
  56. data/test/data/domains.txt +462 -0
  57. data/test/data/first_names.txt +1220 -0
  58. data/test/data/last_names.txt +1028 -0
  59. data/test/data/people_100_000.csv.bz2 +0 -0
  60. data/test/data/people_10_000.csv.bz2 +0 -0
  61. data/test/data/people_1_000_000.csv.bz2 +0 -0
  62. metadata +258 -0
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,258 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ricordami
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Mathieu Lajugie
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-03-05 00:00:00 -08:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: redis
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "0"
36
+ type: :runtime
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: activemodel
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ type: :runtime
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: autotest
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ type: :development
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: infinity_test
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ type: :development
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: autotest-growl
73
+ prerelease: false
74
+ requirement: &id006 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: "0"
80
+ type: :development
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: rspec
84
+ prerelease: false
85
+ requirement: &id007 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
91
+ type: :development
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: steak
95
+ prerelease: false
96
+ requirement: &id008 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: "0"
102
+ type: :development
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
105
+ name: awesome_print
106
+ prerelease: false
107
+ requirement: &id009 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: "0"
113
+ type: :development
114
+ version_requirements: *id009
115
+ - !ruby/object:Gem::Dependency
116
+ name: thor
117
+ prerelease: false
118
+ requirement: &id010 !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: "0"
124
+ type: :development
125
+ version_requirements: *id010
126
+ description: Simple way to persist Ruby objects into the Redis data structure server.
127
+ email:
128
+ - mathieu.l AT gmail.com
129
+ executables: []
130
+
131
+ extensions: []
132
+
133
+ extra_rdoc_files: []
134
+
135
+ files:
136
+ - CHANGELOG.md
137
+ - ISSUES.md
138
+ - MIT-LICENSE
139
+ - README.md
140
+ - TODO.md
141
+ - examples/calls.rb
142
+ - examples/singers.rb
143
+ - lib/ricordami.rb
144
+ - lib/ricordami/attribute.rb
145
+ - lib/ricordami/can_be_queried.rb
146
+ - lib/ricordami/can_be_validated.rb
147
+ - lib/ricordami/can_have_relationships.rb
148
+ - lib/ricordami/configuration.rb
149
+ - lib/ricordami/connection.rb
150
+ - lib/ricordami/exceptions.rb
151
+ - lib/ricordami/has_attributes.rb
152
+ - lib/ricordami/has_indices.rb
153
+ - lib/ricordami/is_lockable.rb
154
+ - lib/ricordami/is_persisted.rb
155
+ - lib/ricordami/is_retrievable.rb
156
+ - lib/ricordami/key_namer.rb
157
+ - lib/ricordami/model.rb
158
+ - lib/ricordami/query.rb
159
+ - lib/ricordami/relationship.rb
160
+ - lib/ricordami/unique_index.rb
161
+ - lib/ricordami/unique_validator.rb
162
+ - lib/ricordami/value_index.rb
163
+ - lib/ricordami/version.rb
164
+ - spec/acceptance/manage_relationships_spec.rb
165
+ - spec/acceptance/model_with_validation_spec.rb
166
+ - spec/acceptance/query_model_spec.rb
167
+ - spec/acceptance_helper.rb
168
+ - spec/ricordami/attribute_spec.rb
169
+ - spec/ricordami/can_be_queried_spec.rb
170
+ - spec/ricordami/can_be_validated_spec.rb
171
+ - spec/ricordami/can_have_relationships_spec.rb
172
+ - spec/ricordami/configuration_spec.rb
173
+ - spec/ricordami/connection_spec.rb
174
+ - spec/ricordami/exceptions_spec.rb
175
+ - spec/ricordami/has_attributes_spec.rb
176
+ - spec/ricordami/has_indices_spec.rb
177
+ - spec/ricordami/is_lockable_spec.rb
178
+ - spec/ricordami/is_persisted_spec.rb
179
+ - spec/ricordami/is_retrievable_spec.rb
180
+ - spec/ricordami/key_namer_spec.rb
181
+ - spec/ricordami/model_spec.rb
182
+ - spec/ricordami/query_spec.rb
183
+ - spec/ricordami/relationship_spec.rb
184
+ - spec/ricordami/unique_index_spec.rb
185
+ - spec/ricordami/unique_validator_spec.rb
186
+ - spec/ricordami/value_index_spec.rb
187
+ - spec/spec_helper.rb
188
+ - spec/support/constants.rb
189
+ - spec/support/db_manager.rb
190
+ - test/bin/data_loader.rb
191
+ - test/data/domains.txt
192
+ - test/data/first_names.txt
193
+ - test/data/last_names.txt
194
+ - test/data/people_100_000.csv.bz2
195
+ - test/data/people_10_000.csv.bz2
196
+ - test/data/people_1_000_000.csv.bz2
197
+ has_rdoc: true
198
+ homepage: https://github.com/mathieul/ricordami
199
+ licenses: []
200
+
201
+ post_install_message:
202
+ rdoc_options: []
203
+
204
+ require_paths:
205
+ - lib
206
+ required_ruby_version: !ruby/object:Gem::Requirement
207
+ none: false
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: "0"
212
+ required_rubygems_version: !ruby/object:Gem::Requirement
213
+ none: false
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: "0"
218
+ requirements: []
219
+
220
+ rubyforge_project: ricordami
221
+ rubygems_version: 1.5.2
222
+ signing_key:
223
+ specification_version: 3
224
+ summary: Simple way to persist Ruby objects into the Redis data structure server.
225
+ test_files:
226
+ - spec/acceptance/manage_relationships_spec.rb
227
+ - spec/acceptance/model_with_validation_spec.rb
228
+ - spec/acceptance/query_model_spec.rb
229
+ - spec/acceptance_helper.rb
230
+ - spec/ricordami/attribute_spec.rb
231
+ - spec/ricordami/can_be_queried_spec.rb
232
+ - spec/ricordami/can_be_validated_spec.rb
233
+ - spec/ricordami/can_have_relationships_spec.rb
234
+ - spec/ricordami/configuration_spec.rb
235
+ - spec/ricordami/connection_spec.rb
236
+ - spec/ricordami/exceptions_spec.rb
237
+ - spec/ricordami/has_attributes_spec.rb
238
+ - spec/ricordami/has_indices_spec.rb
239
+ - spec/ricordami/is_lockable_spec.rb
240
+ - spec/ricordami/is_persisted_spec.rb
241
+ - spec/ricordami/is_retrievable_spec.rb
242
+ - spec/ricordami/key_namer_spec.rb
243
+ - spec/ricordami/model_spec.rb
244
+ - spec/ricordami/query_spec.rb
245
+ - spec/ricordami/relationship_spec.rb
246
+ - spec/ricordami/unique_index_spec.rb
247
+ - spec/ricordami/unique_validator_spec.rb
248
+ - spec/ricordami/value_index_spec.rb
249
+ - spec/spec_helper.rb
250
+ - spec/support/constants.rb
251
+ - spec/support/db_manager.rb
252
+ - test/bin/data_loader.rb
253
+ - test/data/domains.txt
254
+ - test/data/first_names.txt
255
+ - test/data/last_names.txt
256
+ - test/data/people_100_000.csv.bz2
257
+ - test/data/people_10_000.csv.bz2
258
+ - test/data/people_1_000_000.csv.bz2