norr-couchrest 0.30
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +176 -0
- data/README.md +117 -0
- data/Rakefile +74 -0
- data/THANKS.md +18 -0
- data/examples/model/example.rb +144 -0
- data/examples/word_count/markov +38 -0
- data/examples/word_count/views/books/chunked-map.js +3 -0
- data/examples/word_count/views/books/united-map.js +1 -0
- data/examples/word_count/views/markov/chain-map.js +6 -0
- data/examples/word_count/views/markov/chain-reduce.js +7 -0
- data/examples/word_count/views/word_count/count-map.js +6 -0
- data/examples/word_count/views/word_count/count-reduce.js +3 -0
- data/examples/word_count/word_count.rb +46 -0
- data/examples/word_count/word_count_query.rb +40 -0
- data/examples/word_count/word_count_views.rb +26 -0
- data/history.txt +19 -0
- data/lib/couchrest.rb +198 -0
- data/lib/couchrest/commands/generate.rb +71 -0
- data/lib/couchrest/commands/push.rb +103 -0
- data/lib/couchrest/core/database.rb +320 -0
- data/lib/couchrest/core/design.rb +79 -0
- data/lib/couchrest/core/document.rb +87 -0
- data/lib/couchrest/core/response.rb +16 -0
- data/lib/couchrest/core/server.rb +88 -0
- data/lib/couchrest/core/view.rb +4 -0
- data/lib/couchrest/helper/pager.rb +103 -0
- data/lib/couchrest/helper/streamer.rb +44 -0
- data/lib/couchrest/helper/upgrade.rb +51 -0
- data/lib/couchrest/mixins.rb +4 -0
- data/lib/couchrest/mixins/attachments.rb +31 -0
- data/lib/couchrest/mixins/callbacks.rb +483 -0
- data/lib/couchrest/mixins/class_proxy.rb +112 -0
- data/lib/couchrest/mixins/collection.rb +220 -0
- data/lib/couchrest/mixins/design_doc.rb +101 -0
- data/lib/couchrest/mixins/document_queries.rb +53 -0
- data/lib/couchrest/mixins/extended_attachments.rb +74 -0
- data/lib/couchrest/mixins/extended_document_mixins.rb +8 -0
- data/lib/couchrest/mixins/properties.rb +147 -0
- data/lib/couchrest/mixins/validation.rb +257 -0
- data/lib/couchrest/mixins/views.rb +181 -0
- data/lib/couchrest/monkeypatches.rb +113 -0
- data/lib/couchrest/more/casted_model.rb +29 -0
- data/lib/couchrest/more/extended_document.rb +229 -0
- data/lib/couchrest/more/property.rb +40 -0
- data/lib/couchrest/support/blank.rb +42 -0
- data/lib/couchrest/support/class.rb +176 -0
- data/lib/couchrest/support/rails.rb +35 -0
- data/lib/couchrest/validation/auto_validate.rb +161 -0
- data/lib/couchrest/validation/contextual_validators.rb +78 -0
- data/lib/couchrest/validation/validation_errors.rb +118 -0
- data/lib/couchrest/validation/validators/absent_field_validator.rb +74 -0
- data/lib/couchrest/validation/validators/confirmation_validator.rb +99 -0
- data/lib/couchrest/validation/validators/format_validator.rb +117 -0
- data/lib/couchrest/validation/validators/formats/email.rb +66 -0
- data/lib/couchrest/validation/validators/formats/url.rb +43 -0
- data/lib/couchrest/validation/validators/generic_validator.rb +120 -0
- data/lib/couchrest/validation/validators/length_validator.rb +134 -0
- data/lib/couchrest/validation/validators/method_validator.rb +89 -0
- data/lib/couchrest/validation/validators/numeric_validator.rb +104 -0
- data/lib/couchrest/validation/validators/required_field_validator.rb +109 -0
- data/spec/couchrest/core/couchrest_spec.rb +201 -0
- data/spec/couchrest/core/database_spec.rb +700 -0
- data/spec/couchrest/core/design_spec.rb +138 -0
- data/spec/couchrest/core/document_spec.rb +267 -0
- data/spec/couchrest/core/server_spec.rb +35 -0
- data/spec/couchrest/helpers/pager_spec.rb +122 -0
- data/spec/couchrest/helpers/streamer_spec.rb +23 -0
- data/spec/couchrest/more/casted_extended_doc_spec.rb +75 -0
- data/spec/couchrest/more/casted_model_spec.rb +177 -0
- data/spec/couchrest/more/extended_doc_attachment_spec.rb +135 -0
- data/spec/couchrest/more/extended_doc_spec.rb +563 -0
- data/spec/couchrest/more/extended_doc_subclass_spec.rb +98 -0
- data/spec/couchrest/more/extended_doc_view_spec.rb +414 -0
- data/spec/couchrest/more/property_spec.rb +146 -0
- data/spec/fixtures/attachments/README +3 -0
- data/spec/fixtures/attachments/couchdb.png +0 -0
- data/spec/fixtures/attachments/test.html +11 -0
- data/spec/fixtures/more/article.rb +34 -0
- data/spec/fixtures/more/card.rb +22 -0
- data/spec/fixtures/more/cat.rb +18 -0
- data/spec/fixtures/more/course.rb +14 -0
- data/spec/fixtures/more/event.rb +6 -0
- data/spec/fixtures/more/invoice.rb +17 -0
- data/spec/fixtures/more/person.rb +8 -0
- data/spec/fixtures/more/question.rb +6 -0
- data/spec/fixtures/more/service.rb +12 -0
- data/spec/fixtures/views/lib.js +3 -0
- data/spec/fixtures/views/test_view/lib.js +3 -0
- data/spec/fixtures/views/test_view/only-map.js +4 -0
- data/spec/fixtures/views/test_view/test-map.js +3 -0
- data/spec/fixtures/views/test_view/test-reduce.js +3 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +37 -0
- data/utils/remap.rb +27 -0
- data/utils/subset.rb +30 -0
- metadata +194 -0
metadata
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: norr-couchrest
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: "0.30"
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- J. Chris Anderson
|
8
|
+
- Matt Aimonetti
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2008-11-22 00:00:00 -08:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rest-client
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0.5"
|
25
|
+
version:
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: mime-types
|
28
|
+
type: :runtime
|
29
|
+
version_requirement:
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "1.15"
|
35
|
+
version:
|
36
|
+
description: CouchRest provides a simple interface on top of CouchDB's RESTful HTTP API, as well as including some utility scripts for managing views and attachments.
|
37
|
+
email: jchris@apache.org
|
38
|
+
executables: []
|
39
|
+
|
40
|
+
extensions: []
|
41
|
+
|
42
|
+
extra_rdoc_files:
|
43
|
+
- README.md
|
44
|
+
- LICENSE
|
45
|
+
- THANKS.md
|
46
|
+
files:
|
47
|
+
- LICENSE
|
48
|
+
- README.md
|
49
|
+
- Rakefile
|
50
|
+
- THANKS.md
|
51
|
+
- history.txt
|
52
|
+
- examples/model
|
53
|
+
- examples/model/example.rb
|
54
|
+
- examples/word_count
|
55
|
+
- examples/word_count/markov
|
56
|
+
- examples/word_count/views
|
57
|
+
- examples/word_count/views/books
|
58
|
+
- examples/word_count/views/books/chunked-map.js
|
59
|
+
- examples/word_count/views/books/united-map.js
|
60
|
+
- examples/word_count/views/markov
|
61
|
+
- examples/word_count/views/markov/chain-map.js
|
62
|
+
- examples/word_count/views/markov/chain-reduce.js
|
63
|
+
- examples/word_count/views/word_count
|
64
|
+
- examples/word_count/views/word_count/count-map.js
|
65
|
+
- examples/word_count/views/word_count/count-reduce.js
|
66
|
+
- examples/word_count/word_count.rb
|
67
|
+
- examples/word_count/word_count_query.rb
|
68
|
+
- examples/word_count/word_count_views.rb
|
69
|
+
- lib/couchrest
|
70
|
+
- lib/couchrest/commands
|
71
|
+
- lib/couchrest/commands/generate.rb
|
72
|
+
- lib/couchrest/commands/push.rb
|
73
|
+
- lib/couchrest/core
|
74
|
+
- lib/couchrest/core/database.rb
|
75
|
+
- lib/couchrest/core/design.rb
|
76
|
+
- lib/couchrest/core/document.rb
|
77
|
+
- lib/couchrest/core/response.rb
|
78
|
+
- lib/couchrest/core/server.rb
|
79
|
+
- lib/couchrest/core/view.rb
|
80
|
+
- lib/couchrest/helper
|
81
|
+
- lib/couchrest/helper/pager.rb
|
82
|
+
- lib/couchrest/helper/streamer.rb
|
83
|
+
- lib/couchrest/helper/upgrade.rb
|
84
|
+
- lib/couchrest/mixins
|
85
|
+
- lib/couchrest/mixins/attachments.rb
|
86
|
+
- lib/couchrest/mixins/callbacks.rb
|
87
|
+
- lib/couchrest/mixins/class_proxy.rb
|
88
|
+
- lib/couchrest/mixins/collection.rb
|
89
|
+
- lib/couchrest/mixins/design_doc.rb
|
90
|
+
- lib/couchrest/mixins/document_queries.rb
|
91
|
+
- lib/couchrest/mixins/extended_attachments.rb
|
92
|
+
- lib/couchrest/mixins/extended_document_mixins.rb
|
93
|
+
- lib/couchrest/mixins/properties.rb
|
94
|
+
- lib/couchrest/mixins/validation.rb
|
95
|
+
- lib/couchrest/mixins/views.rb
|
96
|
+
- lib/couchrest/mixins.rb
|
97
|
+
- lib/couchrest/monkeypatches.rb
|
98
|
+
- lib/couchrest/more
|
99
|
+
- lib/couchrest/more/casted_model.rb
|
100
|
+
- lib/couchrest/more/extended_document.rb
|
101
|
+
- lib/couchrest/more/property.rb
|
102
|
+
- lib/couchrest/support
|
103
|
+
- lib/couchrest/support/blank.rb
|
104
|
+
- lib/couchrest/support/class.rb
|
105
|
+
- lib/couchrest/support/rails.rb
|
106
|
+
- lib/couchrest/validation
|
107
|
+
- lib/couchrest/validation/auto_validate.rb
|
108
|
+
- lib/couchrest/validation/contextual_validators.rb
|
109
|
+
- lib/couchrest/validation/validation_errors.rb
|
110
|
+
- lib/couchrest/validation/validators
|
111
|
+
- lib/couchrest/validation/validators/absent_field_validator.rb
|
112
|
+
- lib/couchrest/validation/validators/confirmation_validator.rb
|
113
|
+
- lib/couchrest/validation/validators/format_validator.rb
|
114
|
+
- lib/couchrest/validation/validators/formats
|
115
|
+
- lib/couchrest/validation/validators/formats/email.rb
|
116
|
+
- lib/couchrest/validation/validators/formats/url.rb
|
117
|
+
- lib/couchrest/validation/validators/generic_validator.rb
|
118
|
+
- lib/couchrest/validation/validators/length_validator.rb
|
119
|
+
- lib/couchrest/validation/validators/method_validator.rb
|
120
|
+
- lib/couchrest/validation/validators/numeric_validator.rb
|
121
|
+
- lib/couchrest/validation/validators/required_field_validator.rb
|
122
|
+
- lib/couchrest.rb
|
123
|
+
- spec/couchrest
|
124
|
+
- spec/couchrest/core
|
125
|
+
- spec/couchrest/core/couchrest_spec.rb
|
126
|
+
- spec/couchrest/core/database_spec.rb
|
127
|
+
- spec/couchrest/core/design_spec.rb
|
128
|
+
- spec/couchrest/core/document_spec.rb
|
129
|
+
- spec/couchrest/core/server_spec.rb
|
130
|
+
- spec/couchrest/helpers
|
131
|
+
- spec/couchrest/helpers/pager_spec.rb
|
132
|
+
- spec/couchrest/helpers/streamer_spec.rb
|
133
|
+
- spec/couchrest/more
|
134
|
+
- spec/couchrest/more/casted_extended_doc_spec.rb
|
135
|
+
- spec/couchrest/more/casted_model_spec.rb
|
136
|
+
- spec/couchrest/more/extended_doc_attachment_spec.rb
|
137
|
+
- spec/couchrest/more/extended_doc_spec.rb
|
138
|
+
- spec/couchrest/more/extended_doc_subclass_spec.rb
|
139
|
+
- spec/couchrest/more/extended_doc_view_spec.rb
|
140
|
+
- spec/couchrest/more/property_spec.rb
|
141
|
+
- spec/fixtures
|
142
|
+
- spec/fixtures/attachments
|
143
|
+
- spec/fixtures/attachments/couchdb.png
|
144
|
+
- spec/fixtures/attachments/README
|
145
|
+
- spec/fixtures/attachments/test.html
|
146
|
+
- spec/fixtures/more
|
147
|
+
- spec/fixtures/more/article.rb
|
148
|
+
- spec/fixtures/more/card.rb
|
149
|
+
- spec/fixtures/more/cat.rb
|
150
|
+
- spec/fixtures/more/course.rb
|
151
|
+
- spec/fixtures/more/event.rb
|
152
|
+
- spec/fixtures/more/invoice.rb
|
153
|
+
- spec/fixtures/more/person.rb
|
154
|
+
- spec/fixtures/more/question.rb
|
155
|
+
- spec/fixtures/more/service.rb
|
156
|
+
- spec/fixtures/views
|
157
|
+
- spec/fixtures/views/lib.js
|
158
|
+
- spec/fixtures/views/test_view
|
159
|
+
- spec/fixtures/views/test_view/lib.js
|
160
|
+
- spec/fixtures/views/test_view/only-map.js
|
161
|
+
- spec/fixtures/views/test_view/test-map.js
|
162
|
+
- spec/fixtures/views/test_view/test-reduce.js
|
163
|
+
- spec/spec.opts
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
- utils/remap.rb
|
166
|
+
- utils/subset.rb
|
167
|
+
has_rdoc: false
|
168
|
+
homepage: http://github.com/jchris/couchrest
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
|
172
|
+
require_paths:
|
173
|
+
- lib
|
174
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: "0"
|
179
|
+
version:
|
180
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: "0"
|
185
|
+
version:
|
186
|
+
requirements: []
|
187
|
+
|
188
|
+
rubyforge_project:
|
189
|
+
rubygems_version: 1.2.0
|
190
|
+
signing_key:
|
191
|
+
specification_version: 3
|
192
|
+
summary: Lean and RESTful interface to CouchDB.
|
193
|
+
test_files: []
|
194
|
+
|