couchrest_model-radiant 1.0.0

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 (73) hide show
  1. data/LICENSE +176 -0
  2. data/README.md +19 -0
  3. data/Rakefile +74 -0
  4. data/THANKS.md +21 -0
  5. data/history.txt +207 -0
  6. data/lib/couchrest/model.rb +10 -0
  7. data/lib/couchrest/model/associations.rb +223 -0
  8. data/lib/couchrest/model/base.rb +111 -0
  9. data/lib/couchrest/model/callbacks.rb +27 -0
  10. data/lib/couchrest/model/casted_array.rb +39 -0
  11. data/lib/couchrest/model/casted_model.rb +68 -0
  12. data/lib/couchrest/model/class_proxy.rb +122 -0
  13. data/lib/couchrest/model/collection.rb +263 -0
  14. data/lib/couchrest/model/configuration.rb +51 -0
  15. data/lib/couchrest/model/design_doc.rb +123 -0
  16. data/lib/couchrest/model/document_queries.rb +83 -0
  17. data/lib/couchrest/model/errors.rb +23 -0
  18. data/lib/couchrest/model/extended_attachments.rb +77 -0
  19. data/lib/couchrest/model/persistence.rb +155 -0
  20. data/lib/couchrest/model/properties.rb +208 -0
  21. data/lib/couchrest/model/property.rb +97 -0
  22. data/lib/couchrest/model/property_protection.rb +71 -0
  23. data/lib/couchrest/model/support/couchrest.rb +19 -0
  24. data/lib/couchrest/model/support/hash.rb +9 -0
  25. data/lib/couchrest/model/typecast.rb +175 -0
  26. data/lib/couchrest/model/validations.rb +68 -0
  27. data/lib/couchrest/model/validations/casted_model.rb +14 -0
  28. data/lib/couchrest/model/validations/locale/en.yml +5 -0
  29. data/lib/couchrest/model/validations/uniqueness.rb +44 -0
  30. data/lib/couchrest/model/views.rb +160 -0
  31. data/lib/couchrest/railtie.rb +12 -0
  32. data/lib/couchrest_model.rb +62 -0
  33. data/lib/rails/generators/couchrest_model.rb +16 -0
  34. data/lib/rails/generators/couchrest_model/model/model_generator.rb +27 -0
  35. data/lib/rails/generators/couchrest_model/model/templates/model.rb +2 -0
  36. data/spec/couchrest/assocations_spec.rb +196 -0
  37. data/spec/couchrest/attachment_spec.rb +176 -0
  38. data/spec/couchrest/base_spec.rb +463 -0
  39. data/spec/couchrest/casted_model_spec.rb +438 -0
  40. data/spec/couchrest/casted_spec.rb +75 -0
  41. data/spec/couchrest/class_proxy_spec.rb +132 -0
  42. data/spec/couchrest/configuration_spec.rb +78 -0
  43. data/spec/couchrest/inherited_spec.rb +40 -0
  44. data/spec/couchrest/persistence_spec.rb +415 -0
  45. data/spec/couchrest/property_protection_spec.rb +192 -0
  46. data/spec/couchrest/property_spec.rb +871 -0
  47. data/spec/couchrest/subclass_spec.rb +99 -0
  48. data/spec/couchrest/validations.rb +85 -0
  49. data/spec/couchrest/view_spec.rb +463 -0
  50. data/spec/fixtures/attachments/README +3 -0
  51. data/spec/fixtures/attachments/couchdb.png +0 -0
  52. data/spec/fixtures/attachments/test.html +11 -0
  53. data/spec/fixtures/base.rb +139 -0
  54. data/spec/fixtures/more/article.rb +35 -0
  55. data/spec/fixtures/more/card.rb +17 -0
  56. data/spec/fixtures/more/cat.rb +19 -0
  57. data/spec/fixtures/more/client.rb +6 -0
  58. data/spec/fixtures/more/course.rb +25 -0
  59. data/spec/fixtures/more/event.rb +8 -0
  60. data/spec/fixtures/more/invoice.rb +14 -0
  61. data/spec/fixtures/more/person.rb +9 -0
  62. data/spec/fixtures/more/question.rb +7 -0
  63. data/spec/fixtures/more/sale_entry.rb +9 -0
  64. data/spec/fixtures/more/sale_invoice.rb +13 -0
  65. data/spec/fixtures/more/service.rb +10 -0
  66. data/spec/fixtures/more/user.rb +22 -0
  67. data/spec/fixtures/views/lib.js +3 -0
  68. data/spec/fixtures/views/test_view/lib.js +3 -0
  69. data/spec/fixtures/views/test_view/only-map.js +4 -0
  70. data/spec/fixtures/views/test_view/test-map.js +3 -0
  71. data/spec/fixtures/views/test_view/test-reduce.js +3 -0
  72. data/spec/spec_helper.rb +48 -0
  73. metadata +263 -0
metadata ADDED
@@ -0,0 +1,263 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: couchrest_model-radiant
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
10
+ platform: ruby
11
+ authors:
12
+ - J. Chris Anderson
13
+ - Matt Aimonetti
14
+ - Marcos Tapajos
15
+ - Will Leinweber
16
+ - Sam Lown
17
+ autorequire:
18
+ bindir: bin
19
+ cert_chain: []
20
+
21
+ date: 2010-10-23 00:00:00 +02:00
22
+ default_executable:
23
+ dependencies:
24
+ - !ruby/object:Gem::Dependency
25
+ name: couchrest
26
+ prerelease: false
27
+ requirement: &id001 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ segments:
33
+ - 1
34
+ - 0
35
+ - 1
36
+ version: 1.0.1
37
+ type: :runtime
38
+ version_requirements: *id001
39
+ - !ruby/object:Gem::Dependency
40
+ name: mime-types
41
+ prerelease: false
42
+ requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ segments:
48
+ - 1
49
+ - 15
50
+ version: "1.15"
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: activemodel
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ segments:
62
+ - 3
63
+ - 0
64
+ - 0
65
+ - rc
66
+ version: 3.0.0.rc
67
+ type: :runtime
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: tzinfo
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ segments:
78
+ - 0
79
+ - 3
80
+ - 22
81
+ version: 0.3.22
82
+ type: :runtime
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
85
+ name: railties
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ~>
91
+ - !ruby/object:Gem::Version
92
+ segments:
93
+ - 3
94
+ - 0
95
+ - 0
96
+ - rc
97
+ version: 3.0.0.rc
98
+ type: :runtime
99
+ version_requirements: *id005
100
+ - !ruby/object:Gem::Dependency
101
+ name: rspec
102
+ prerelease: false
103
+ requirement: &id006 !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ~>
107
+ - !ruby/object:Gem::Version
108
+ segments:
109
+ - 2
110
+ - 0
111
+ - 0
112
+ - beta
113
+ - 19
114
+ version: 2.0.0.beta.19
115
+ type: :development
116
+ version_requirements: *id006
117
+ description: CouchRest Model for radiantcms-couchrest_model
118
+ email: jchris@apache.org
119
+ executables: []
120
+
121
+ extensions: []
122
+
123
+ extra_rdoc_files:
124
+ - LICENSE
125
+ - README.md
126
+ - THANKS.md
127
+ files:
128
+ - LICENSE
129
+ - README.md
130
+ - Rakefile
131
+ - THANKS.md
132
+ - history.txt
133
+ - lib/couchrest/model.rb
134
+ - lib/couchrest/model/associations.rb
135
+ - lib/couchrest/model/base.rb
136
+ - lib/couchrest/model/callbacks.rb
137
+ - lib/couchrest/model/casted_array.rb
138
+ - lib/couchrest/model/casted_model.rb
139
+ - lib/couchrest/model/class_proxy.rb
140
+ - lib/couchrest/model/collection.rb
141
+ - lib/couchrest/model/configuration.rb
142
+ - lib/couchrest/model/design_doc.rb
143
+ - lib/couchrest/model/document_queries.rb
144
+ - lib/couchrest/model/errors.rb
145
+ - lib/couchrest/model/extended_attachments.rb
146
+ - lib/couchrest/model/persistence.rb
147
+ - lib/couchrest/model/properties.rb
148
+ - lib/couchrest/model/property.rb
149
+ - lib/couchrest/model/property_protection.rb
150
+ - lib/couchrest/model/support/couchrest.rb
151
+ - lib/couchrest/model/support/hash.rb
152
+ - lib/couchrest/model/typecast.rb
153
+ - lib/couchrest/model/validations.rb
154
+ - lib/couchrest/model/validations/casted_model.rb
155
+ - lib/couchrest/model/validations/locale/en.yml
156
+ - lib/couchrest/model/validations/uniqueness.rb
157
+ - lib/couchrest/model/views.rb
158
+ - lib/couchrest/railtie.rb
159
+ - lib/couchrest_model.rb
160
+ - lib/rails/generators/couchrest_model.rb
161
+ - lib/rails/generators/couchrest_model/model/model_generator.rb
162
+ - lib/rails/generators/couchrest_model/model/templates/model.rb
163
+ - spec/couchrest/assocations_spec.rb
164
+ - spec/couchrest/attachment_spec.rb
165
+ - spec/couchrest/base_spec.rb
166
+ - spec/couchrest/casted_model_spec.rb
167
+ - spec/couchrest/casted_spec.rb
168
+ - spec/couchrest/class_proxy_spec.rb
169
+ - spec/couchrest/configuration_spec.rb
170
+ - spec/couchrest/inherited_spec.rb
171
+ - spec/couchrest/persistence_spec.rb
172
+ - spec/couchrest/property_protection_spec.rb
173
+ - spec/couchrest/property_spec.rb
174
+ - spec/couchrest/subclass_spec.rb
175
+ - spec/couchrest/validations.rb
176
+ - spec/couchrest/view_spec.rb
177
+ - spec/fixtures/attachments/README
178
+ - spec/fixtures/attachments/couchdb.png
179
+ - spec/fixtures/attachments/test.html
180
+ - spec/fixtures/base.rb
181
+ - spec/fixtures/more/article.rb
182
+ - spec/fixtures/more/card.rb
183
+ - spec/fixtures/more/cat.rb
184
+ - spec/fixtures/more/client.rb
185
+ - spec/fixtures/more/course.rb
186
+ - spec/fixtures/more/event.rb
187
+ - spec/fixtures/more/invoice.rb
188
+ - spec/fixtures/more/person.rb
189
+ - spec/fixtures/more/question.rb
190
+ - spec/fixtures/more/sale_entry.rb
191
+ - spec/fixtures/more/sale_invoice.rb
192
+ - spec/fixtures/more/service.rb
193
+ - spec/fixtures/more/user.rb
194
+ - spec/fixtures/views/lib.js
195
+ - spec/fixtures/views/test_view/lib.js
196
+ - spec/fixtures/views/test_view/only-map.js
197
+ - spec/fixtures/views/test_view/test-map.js
198
+ - spec/fixtures/views/test_view/test-reduce.js
199
+ - spec/spec_helper.rb
200
+ has_rdoc: true
201
+ homepage:
202
+ licenses: []
203
+
204
+ post_install_message:
205
+ rdoc_options:
206
+ - --charset=UTF-8
207
+ require_paths:
208
+ - lib
209
+ required_ruby_version: !ruby/object:Gem::Requirement
210
+ none: false
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ segments:
215
+ - 0
216
+ version: "0"
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ">"
221
+ - !ruby/object:Gem::Version
222
+ segments:
223
+ - 1
224
+ - 3
225
+ - 1
226
+ version: 1.3.1
227
+ requirements: []
228
+
229
+ rubyforge_project:
230
+ rubygems_version: 1.3.7
231
+ signing_key:
232
+ specification_version: 3
233
+ summary: Extends the CouchRest Document for advanced modelling.
234
+ test_files:
235
+ - spec/spec_helper.rb
236
+ - spec/couchrest/configuration_spec.rb
237
+ - spec/couchrest/property_spec.rb
238
+ - spec/couchrest/property_protection_spec.rb
239
+ - spec/couchrest/casted_spec.rb
240
+ - spec/couchrest/subclass_spec.rb
241
+ - spec/couchrest/persistence_spec.rb
242
+ - spec/couchrest/casted_model_spec.rb
243
+ - spec/couchrest/assocations_spec.rb
244
+ - spec/couchrest/validations.rb
245
+ - spec/couchrest/view_spec.rb
246
+ - spec/couchrest/inherited_spec.rb
247
+ - spec/couchrest/attachment_spec.rb
248
+ - spec/couchrest/class_proxy_spec.rb
249
+ - spec/couchrest/base_spec.rb
250
+ - spec/fixtures/base.rb
251
+ - spec/fixtures/more/card.rb
252
+ - spec/fixtures/more/event.rb
253
+ - spec/fixtures/more/user.rb
254
+ - spec/fixtures/more/sale_invoice.rb
255
+ - spec/fixtures/more/article.rb
256
+ - spec/fixtures/more/service.rb
257
+ - spec/fixtures/more/invoice.rb
258
+ - spec/fixtures/more/person.rb
259
+ - spec/fixtures/more/question.rb
260
+ - spec/fixtures/more/cat.rb
261
+ - spec/fixtures/more/client.rb
262
+ - spec/fixtures/more/sale_entry.rb
263
+ - spec/fixtures/more/course.rb