makura 2011.01.21 → 2012.01

Sign up to get free protection for your applications and to get access to all the features.
data/.gems ADDED
@@ -0,0 +1 @@
1
+ rest-client -v1.6.1
data/.rvmrc ADDED
@@ -0,0 +1,2 @@
1
+ rvm use --install --create 1.9.3@makura
2
+ [[ -s .gems ]] && rvm gemset import .gems
data/MANIFEST CHANGED
@@ -1,3 +1,5 @@
1
+ .gems
2
+ .rvmrc
1
3
  AUTHORS
2
4
  CHANGELOG
3
5
  COPYING
@@ -43,5 +45,3 @@ tasks/reversion.rake
43
45
  tasks/setup.rake
44
46
  tasks/todo.rake
45
47
  tasks/traits.rake
46
- tasks/yard.rake
47
- tasks/ycov.rake
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rake'
2
2
  require 'rake/clean'
3
- require 'rake/gempackagetask'
3
+ require 'rubygems/package_task'
4
4
  require 'time'
5
5
  require 'date'
6
6
 
@@ -1,6 +1,6 @@
1
1
  Following persons have contributed to makura.
2
2
  (Sorted by number of submitted patches, then alphabetically)
3
3
 
4
- 88 Michael Fellinger <m.fellinger@gmail.com>
4
+ 104 Michael Fellinger <m.fellinger@gmail.com>
5
5
  8 Tadahiko Uehara <kikofx@gmail.com>
6
6
  2 Preston Marshall <preston@synergy-solutions.biz>
@@ -1,414 +1,478 @@
1
- [f605cce | Thu Jan 20 16:12:17 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
1
+ [b7a5ab6 | Tue Jan 31 21:12:50 UTC 2012] Michael Fellinger <m.fellinger@gmail.com>
2
+
3
+ * Version 2012.01
4
+
5
+ [ea015a0 | Sun Oct 16 21:28:54 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
6
+
7
+ * Remove Sofa constant for good
8
+
9
+ [94f583f | Fri Mar 25 12:27:42 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
10
+
11
+ * Update document _rev when attaching files via Model#attach
12
+
13
+ [08ae147 | Tue Mar 15 00:00:14 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
14
+
15
+ * Adding Server#log and Server#stats
16
+
17
+ [b7ea52e | Tue Mar 15 00:00:04 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
18
+
19
+ * Adding Server#membership for bigcouch
20
+
21
+ [f7e7895 | Sat Mar 05 18:46:12 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
22
+
23
+ * Add Server#all_dbs for consistency
24
+
25
+ [31d221a | Sat Mar 05 18:45:34 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
26
+
27
+ * Improve docs, restart now tries to ensure full commits
28
+
29
+ [2d58a53 | Sat Mar 05 13:32:15 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
30
+
31
+ * Default POST Content-Type to application/json
32
+
33
+ [c818add | Sat Mar 05 13:31:52 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
34
+
35
+ * Adding Server#active_tasks and Server#replicate
36
+
37
+ [a8c0318 | Sat Mar 05 13:31:23 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
38
+
39
+ * Simplify dispatching of requests
40
+
41
+ [f58339d | Sat Mar 05 13:30:53 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
42
+
43
+ * Add Database#design_docs
44
+
45
+ [895ac2b | Sat Mar 05 13:30:28 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
46
+
47
+ * Add Database#ensure_full_commit
48
+
49
+ [30953f8 | Sat Mar 05 13:30:13 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
50
+
51
+ * Fix typo
52
+
53
+ [564f8cd | Thu Feb 03 05:55:05 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
54
+
55
+ * Adding Database#compact and Database#view_cleanup
56
+
57
+ [e704e45 | Thu Feb 03 05:54:43 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
58
+
59
+ * Database#all_docs now passes the params on
60
+
61
+ [978aafc | Fri Jan 21 00:25:35 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
62
+
63
+ * Version 2011.01.21
64
+
65
+ [f605cce | Fri Jan 21 00:12:17 UTC 2011] Michael Fellinger <m.fellinger@gmail.com>
2
66
 
3
67
  * Move Makura::Server#paramify to Makura::paramify to allow reuse
4
68
 
5
- [c136984 | Tue Oct 12 11:20:18 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
69
+ [c136984 | Tue Oct 12 18:20:18 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
6
70
 
7
71
  * Fix validation in Model#save, it checked for the wrong method name.
8
72
 
9
- [b236bcb | Mon Oct 04 13:18:39 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
73
+ [b236bcb | Mon Oct 04 20:18:39 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
10
74
 
11
75
  * design is not an optional argument
12
76
 
13
- [ea03df7 | Thu Sep 30 01:02:39 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
77
+ [ea03df7 | Thu Sep 30 08:02:39 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
14
78
 
15
79
  * Make escape compatible with unicode
16
80
 
17
- [37c2281 | Tue Sep 28 11:15:21 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
81
+ [37c2281 | Tue Sep 28 18:15:21 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
18
82
 
19
83
  * Allow for _sum _count and _stats as builtin functions
20
84
 
21
- [afd5ba8 | Tue Sep 28 11:15:08 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
85
+ [afd5ba8 | Tue Sep 28 18:15:08 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
22
86
 
23
87
  * Add ServerBrokeConnection to exceptions
24
88
 
25
- [b7479a6 | Wed Aug 25 16:26:05 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
89
+ [b7479a6 | Wed Aug 25 23:26:05 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
26
90
 
27
91
  * Version 2010.08.26
28
92
 
29
- [1ad92e6 | Tue Aug 24 14:39:51 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
93
+ [1ad92e6 | Tue Aug 24 21:39:51 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
30
94
 
31
95
  * pass on arguments for to_json
32
96
 
33
- [29b1c12 | Tue Aug 24 14:39:39 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
97
+ [29b1c12 | Tue Aug 24 21:39:39 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
34
98
 
35
99
  * Fix bulk_docs for CouchDB 1.0
36
100
 
37
- [1f2647f | Tue Aug 03 05:32:53 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
101
+ [1f2647f | Tue Aug 03 12:32:53 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
38
102
 
39
103
  * Version 2010.08
40
104
 
41
- [2f92913 | Tue Aug 03 05:32:36 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
105
+ [2f92913 | Tue Aug 03 12:32:36 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
42
106
 
43
107
  * Remove last jquery reference
44
108
 
45
- [3e9ccc2 | Tue Aug 03 05:26:53 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
109
+ [3e9ccc2 | Tue Aug 03 12:26:53 UTC 2010] Michael Fellinger <m.fellinger@gmail.com>
46
110
 
47
111
  * Update tasks
48
112
 
49
- [8a3f06f | Fri Jul 16 04:55:40 UTC 2010] Tadahiko Uehara <kikofx@gmail.com>
113
+ [8a3f06f | Fri Jul 16 11:55:40 UTC 2010] Tadahiko Uehara <kikofx@gmail.com>
50
114
 
51
115
  * Remove reduce parameter to prevent 'Invalid URL parameter' error.
52
116
 
53
117
  See https://issues.apache.org/jira/browse/COUCHDB-383#action_12722350
54
118
 
55
- [a5c7b82 | Wed May 27 06:25:54 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
119
+ [a5c7b82 | Wed May 27 13:25:54 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
56
120
 
57
121
  * Fix url for Model#multi_fetch
58
122
 
59
- [9c9f8b3 | Wed May 27 06:25:40 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
123
+ [9c9f8b3 | Wed May 27 13:25:40 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
60
124
 
61
125
  * The model namespace now directly translates into the couch/ structure, Foo::Bar#duh becomes couch/map/foo/bar/duh.js
62
126
 
63
- [3dc3e54 | Wed May 27 06:24:38 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
127
+ [3dc3e54 | Wed May 27 13:24:38 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
64
128
 
65
129
  * Fix issue with layout on 1.9
66
130
 
67
- [14cf088 | Wed May 27 02:29:08 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
131
+ [14cf088 | Wed May 27 09:29:08 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
68
132
 
69
133
  * forgot AUTHORS
70
134
 
71
- [752081e | Wed May 27 02:28:46 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
135
+ [752081e | Wed May 27 09:28:46 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
72
136
 
73
137
  * Version 2009.05.27
74
138
 
75
- [d4565ac | Wed May 27 02:23:09 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
139
+ [d4565ac | Wed May 27 09:23:09 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
76
140
 
77
141
  * Fix rakefile
78
142
 
79
- [33f27af | Wed May 27 02:21:44 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
143
+ [33f27af | Wed May 27 09:21:44 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
80
144
 
81
145
  * Update tasks
82
146
 
83
- [4fd7977 | Mon May 11 03:52:51 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
147
+ [4fd7977 | Mon May 11 10:52:51 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
84
148
 
85
149
  * Revert changes to get going on 0.9.0
86
150
 
87
- [255e65c | Tue Apr 21 17:14:06 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
151
+ [255e65c | Wed Apr 22 00:14:06 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
88
152
 
89
153
  * Version 2009.04.22
90
154
 
91
- [307642a | Tue Apr 21 17:12:55 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
155
+ [307642a | Wed Apr 22 00:12:55 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
92
156
 
93
157
  * Add Makura::constant and use it in convert_raw
94
158
 
95
- [e6370eb | Tue Apr 21 17:10:12 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
159
+ [e6370eb | Wed Apr 22 00:10:12 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
96
160
 
97
161
  * Make Makura run on 1.8 again
98
162
 
99
- [4f8cc31 | Tue Apr 21 17:09:59 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
163
+ [4f8cc31 | Wed Apr 22 00:09:59 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
100
164
 
101
165
  * Fix references to _view
102
166
 
103
- [513495b | Tue Apr 21 06:15:47 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
167
+ [513495b | Tue Apr 21 13:15:47 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
104
168
 
105
169
  * Make convert_raw work with namespaced model.
106
170
 
107
- [e2eee79 | Sun Apr 19 04:58:12 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
171
+ [e2eee79 | Sun Apr 19 11:58:12 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
108
172
 
109
173
  * Support for namespaced models by using namespace as layout's dir name.
110
174
 
111
175
  MyApp::Admin::Foo #=> .couch/my_app/admin/map/foo_xxx.js
112
176
 
113
- [8c9aa24 | Sat Mar 28 08:01:56 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
177
+ [8c9aa24 | Sat Mar 28 16:01:56 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
114
178
 
115
179
  * Version 2009.03.28
116
180
 
117
- [da5cebc | Sat Mar 28 08:00:13 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
181
+ [da5cebc | Sat Mar 28 16:00:13 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
118
182
 
119
183
  * Put version in another file for easier management
120
184
 
121
- [534a2bc | Sat Mar 28 07:59:15 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
185
+ [534a2bc | Sat Mar 28 15:59:15 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
122
186
 
123
187
  * Add Rakefile and some tasks
124
188
 
125
- [643fa64 | Sun Mar 01 13:23:15 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
189
+ [643fa64 | Sun Mar 01 21:23:15 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
126
190
 
127
191
  * Use Array() instead of to_a for Ruby 1.9 compatibility.
128
192
 
129
193
  Signed-off-by: Michael Fellinger <m.fellinger@gmail.com>
130
194
 
131
- [3d77ce6 | Sat Mar 21 05:07:04 UTC 2009] Preston Marshall <preston@synergy-solutions.biz>
195
+ [3d77ce6 | Sat Mar 21 13:07:04 UTC 2009] Preston Marshall <preston@synergy-solutions.biz>
132
196
 
133
197
  * new gem
134
198
 
135
199
  Signed-off-by: Michael Fellinger <m.fellinger@gmail.com>
136
200
 
137
- [9eb26bb | Sat Mar 21 05:00:38 UTC 2009] Preston Marshall <preston@synergy-solutions.biz>
201
+ [9eb26bb | Sat Mar 21 13:00:38 UTC 2009] Preston Marshall <preston@synergy-solutions.biz>
138
202
 
139
203
  * Updated view path for latest svn (not sure when it was added, but it works with this) temp views may be affected too, but have not tried them yet
140
204
 
141
205
  Signed-off-by: Michael Fellinger <m.fellinger@gmail.com>
142
206
 
143
- [6b23e9c | Sat Mar 21 17:00:04 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
207
+ [6b23e9c | Sun Mar 22 01:00:04 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
144
208
 
145
209
  * remove Model#saved?, that makes Model#save work as expected
146
210
 
147
- [c83c392 | Sat Mar 21 16:55:57 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
211
+ [c83c392 | Sun Mar 22 00:55:57 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
148
212
 
149
213
  * Remove last traces of NotNaughty from example
150
214
 
151
- [19a63b5 | Mon Mar 02 01:08:08 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
215
+ [19a63b5 | Mon Mar 02 09:08:08 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
152
216
 
153
217
  * Fix inspect for Database
154
218
 
155
- [5ae5345 | Sun Mar 01 14:23:15 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
219
+ [5ae5345 | Sun Mar 01 22:23:15 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
156
220
 
157
221
  * Use Array() instead of to_a for Ruby 1.9 compatibility.
158
222
 
159
- [1ff34ab | Sat Feb 28 14:24:53 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
223
+ [1ff34ab | Sat Feb 28 22:24:53 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
160
224
 
161
225
  * Shame on me, forgot to add that change... will push new version tomorrow
162
226
 
163
227
  Signed-off-by: Tadahiko Uehara <kikofX@gmail.com>
164
228
 
165
- [dfc353a | Sat Feb 28 14:23:39 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
229
+ [dfc353a | Sat Feb 28 22:23:39 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
166
230
 
167
231
  * Version 2009.03.01, removed json gem dependency as ruby 1.9.1 has it in stdlib
168
232
 
169
233
  Signed-off-by: Tadahiko Uehara <kikofX@gmail.com>
170
234
 
171
- [29fe7ec | Sat Feb 28 15:24:53 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
235
+ [29fe7ec | Sat Feb 28 23:24:53 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
172
236
 
173
237
  * Shame on me, forgot to add that change... will push new version tomorrow
174
238
 
175
- [349be0a | Sat Feb 28 15:23:39 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
239
+ [349be0a | Sat Feb 28 23:23:39 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
176
240
 
177
241
  * Version 2009.03.01, removed json gem dependency as ruby 1.9.1 has it in stdlib
178
242
 
179
- [ad1a97d | Mon Feb 23 00:51:19 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
243
+ [ad1a97d | Mon Feb 23 08:51:19 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
180
244
 
181
245
  * Proper fallback to default_language
182
246
 
183
247
  Signed-off-by: Tadahiko Uehara <kikofX@gmail.com>
184
248
 
185
- [4b89942 | Mon Feb 16 07:32:02 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
249
+ [4b89942 | Mon Feb 16 15:32:02 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
186
250
 
187
251
  * Some docs for localize plugin
188
252
 
189
253
  Signed-off-by: Tadahiko Uehara <kikofX@gmail.com>
190
254
 
191
- [b79a538 | Mon Feb 16 07:31:55 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
255
+ [b79a538 | Mon Feb 16 15:31:55 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
192
256
 
193
257
  * Support for default language in localize plugin
194
258
 
195
259
  Signed-off-by: Tadahiko Uehara <kikofX@gmail.com>
196
260
 
197
- [de84c8b | Wed Feb 18 01:45:30 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
261
+ [de84c8b | Wed Feb 18 09:45:30 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
198
262
 
199
263
  * Update version
200
264
 
201
265
  Signed-off-by: Tadahiko Uehara <kikofX@gmail.com>
202
266
 
203
- [4d4a4c1 | Mon Feb 16 07:24:51 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
267
+ [4d4a4c1 | Mon Feb 16 15:24:51 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
204
268
 
205
269
  * Add plugin/localize
206
270
 
207
271
  Signed-off-by: Tadahiko Uehara <kikofX@gmail.com>
208
272
 
209
- [83e9177 | Mon Feb 23 01:51:19 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
273
+ [83e9177 | Mon Feb 23 09:51:19 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
210
274
 
211
275
  * Proper fallback to default_language
212
276
 
213
- [a72c2c6 | Wed Feb 18 02:45:30 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
277
+ [a72c2c6 | Wed Feb 18 10:45:30 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
214
278
 
215
279
  * Update version
216
280
 
217
- [1feac5a | Mon Feb 16 08:32:02 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
281
+ [1feac5a | Mon Feb 16 16:32:02 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
218
282
 
219
283
  * Some docs for localize plugin
220
284
 
221
- [4ab5df7 | Mon Feb 16 08:31:55 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
285
+ [4ab5df7 | Mon Feb 16 16:31:55 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
222
286
 
223
287
  * Support for default language in localize plugin
224
288
 
225
- [cd045a1 | Mon Feb 16 08:24:51 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
289
+ [cd045a1 | Mon Feb 16 16:24:51 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
226
290
 
227
291
  * Add plugin/localize
228
292
 
229
- [fddd7aa | Fri Feb 13 05:41:25 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
293
+ [fddd7aa | Fri Feb 13 13:41:25 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
230
294
 
231
295
  * fix typo.
232
296
 
233
297
  Signed-off-by: Michael Fellinger <m.fellinger@gmail.com>
234
298
 
235
- [5469f31 | Fri Feb 13 06:41:25 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
299
+ [5469f31 | Fri Feb 13 14:41:25 UTC 2009] Tadahiko Uehara <kikofx@gmail.com>
236
300
 
237
301
  * fix typo.
238
302
 
239
- [025964f | Thu Jan 15 02:35:37 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
303
+ [025964f | Thu Jan 15 10:35:37 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
240
304
 
241
305
  * Sofa is now called Makura
242
306
 
243
- [e8bfaf9 | Mon Dec 29 17:09:46 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
307
+ [e8bfaf9 | Tue Dec 30 01:09:46 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
244
308
 
245
309
  * Don't rely on NotNaughty!
246
310
 
247
- [fb10169 | Wed Dec 24 04:56:55 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
311
+ [fb10169 | Wed Dec 24 12:56:55 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
248
312
 
249
313
  * Release 2008.12.24
250
314
 
251
- [e4b2a88 | Wed Dec 24 04:56:29 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
315
+ [e4b2a88 | Wed Dec 24 12:56:29 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
252
316
 
253
317
  * Layout::PATH
254
318
 
255
- [2156ed1 | Wed Dec 24 04:55:37 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
319
+ [2156ed1 | Wed Dec 24 12:55:37 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
256
320
 
257
321
  * Remove Rack as dependency
258
322
 
259
- [b9a9724 | Sun Dec 21 08:51:18 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
323
+ [b9a9724 | Sun Dec 21 16:51:18 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
260
324
 
261
325
  * Support for map/reduce templating
262
326
 
263
- [411786e | Fri Dec 19 12:08:11 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
327
+ [411786e | Fri Dec 19 20:08:11 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
264
328
 
265
329
  * Better error message if resource not found
266
330
 
267
- [6579ae3 | Tue Dec 16 02:57:40 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
331
+ [6579ae3 | Tue Dec 16 10:57:40 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
268
332
 
269
333
  * Fix usage of pretty_from_md5
270
334
 
271
- [514c7d6 | Mon Dec 15 07:03:43 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
335
+ [514c7d6 | Mon Dec 15 15:03:43 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
272
336
 
273
337
  * Update gemspec
274
338
 
275
- [05640a9 | Mon Dec 15 07:03:02 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
339
+ [05640a9 | Mon Dec 15 15:03:02 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
276
340
 
277
341
  * Remove dependency on not_naughty
278
342
 
279
- [c72821d | Mon Dec 15 07:02:44 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
343
+ [c72821d | Mon Dec 15 15:02:44 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
280
344
 
281
345
  * Convert MD5 from CouchDB uuid generator into base 62
282
346
 
283
- [405d360 | Sun Dec 14 06:40:52 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
347
+ [405d360 | Sun Dec 14 14:40:52 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
284
348
 
285
349
  * Implement Model#hash and Model#eql?
286
350
 
287
- [87c709e | Sat Dec 13 04:18:14 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
351
+ [87c709e | Sat Dec 13 12:18:14 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
288
352
 
289
353
  * Model::multi_fetch and Model::multi_fetch_with_docs
290
354
 
291
- [7e369ed | Fri Dec 12 06:27:34 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
355
+ [7e369ed | Fri Dec 12 14:27:34 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
292
356
 
293
357
  * Ignore nil value parameters for the uri
294
358
 
295
- [5decf5c | Fri Dec 12 06:03:28 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
359
+ [5decf5c | Fri Dec 12 14:03:28 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
296
360
 
297
361
  * Rescue correct error on Model::[]
298
362
 
299
- [bc28450 | Thu Dec 11 10:11:57 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
363
+ [bc28450 | Thu Dec 11 18:11:57 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
300
364
 
301
365
  * Disable caching automatically if memcached isn't available
302
366
 
303
- [aea3dd7 | Wed Dec 10 14:45:16 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
367
+ [aea3dd7 | Wed Dec 10 22:45:16 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
304
368
 
305
369
  * Add Model#detach to get rid of attachments
306
370
 
307
- [1705ad2 | Mon Dec 08 05:31:11 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
371
+ [1705ad2 | Mon Dec 08 13:31:11 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
308
372
 
309
373
  * CACHE_TTL is now 5 by default
310
374
 
311
- [e6aa3f9 | Thu Dec 04 08:31:07 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
375
+ [e6aa3f9 | Thu Dec 04 16:31:07 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
312
376
 
313
377
  * Make only one request per relation
314
378
 
315
- [c47cea0 | Thu Dec 04 08:30:39 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
379
+ [c47cea0 | Thu Dec 04 16:30:39 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
316
380
 
317
381
  * Add Model#to_json
318
382
 
319
- [aceb7e7 | Thu Dec 04 08:30:18 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
383
+ [aceb7e7 | Thu Dec 04 16:30:18 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
320
384
 
321
385
  * Add support for caching GET requests in memcached
322
386
 
323
- [c055759 | Thu Dec 04 05:36:15 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
387
+ [c055759 | Thu Dec 04 13:36:15 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
324
388
 
325
389
  * a little bit better error handling
326
390
 
327
- [204f003 | Wed Dec 03 02:49:13 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
391
+ [204f003 | Wed Dec 03 10:49:13 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
328
392
 
329
393
  * Version 2008.12.03
330
394
 
331
- [2eec148 | Mon Dec 01 15:58:20 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
395
+ [2eec148 | Mon Dec 01 23:58:20 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
332
396
 
333
397
  * Avoid storing empty maps, bad bad mojo
334
398
 
335
- [617b9f6 | Sat Nov 29 06:53:53 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
399
+ [617b9f6 | Sat Nov 29 14:53:53 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
336
400
 
337
401
  * Version 2008.11.29
338
402
 
339
- [cbe43fa | Sat Nov 29 06:53:14 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
403
+ [cbe43fa | Sat Nov 29 14:53:14 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
340
404
 
341
405
  * Remove debugging output
342
406
 
343
- [67f811e | Fri Nov 28 07:52:46 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
407
+ [67f811e | Fri Nov 28 15:52:46 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
344
408
 
345
409
  * Compensate for a bug in couch_httpd_view.erl
346
410
 
347
- [ba95c06 | Fri Nov 28 07:51:56 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
411
+ [ba95c06 | Fri Nov 28 15:51:56 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
348
412
 
349
413
  * Automatic conversion of Time, new :type parameter for property
350
414
 
351
- [2b2cffd | Fri Nov 28 07:51:19 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
415
+ [2b2cffd | Fri Nov 28 15:51:19 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
352
416
 
353
417
  * Allow Database#[]= to save docs
354
418
 
355
- [9b2ab26 | Thu Nov 27 13:57:39 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
419
+ [9b2ab26 | Thu Nov 27 21:57:39 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
356
420
 
357
421
  * Update gemspec, correct files
358
422
 
359
- [3c0541b | Thu Nov 27 13:11:22 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
423
+ [3c0541b | Thu Nov 27 21:11:22 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
360
424
 
361
425
  * Plugin functionality and pager plugin
362
426
 
363
- [22840cb | Thu Nov 27 13:10:57 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
427
+ [22840cb | Thu Nov 27 21:10:57 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
364
428
 
365
429
  * Allow layout :map => source, :reduce => source
366
430
 
367
- [ae9aeb5 | Thu Nov 27 13:10:08 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
431
+ [ae9aeb5 | Thu Nov 27 21:10:08 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
368
432
 
369
433
  * Model::view_with_docs to take advantage of include_docs
370
434
 
371
- [8a5e7ca | Thu Nov 27 10:30:48 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
435
+ [8a5e7ca | Thu Nov 27 18:30:48 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
372
436
 
373
437
  * Version 2008.11.27
374
438
 
375
- [753cfa7 | Thu Nov 27 10:26:28 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
439
+ [753cfa7 | Thu Nov 27 18:26:28 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
376
440
 
377
441
  * add bin/sofa for quick debugging sessions
378
442
 
379
- [d2a0886 | Thu Nov 27 10:26:07 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
443
+ [d2a0886 | Thu Nov 27 18:26:07 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
380
444
 
381
445
  * Small refactor
382
446
 
383
- [b1bdaf0 | Tue Nov 25 10:44:05 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
447
+ [b1bdaf0 | Tue Nov 25 18:44:05 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
384
448
 
385
449
  * Enable cloning
386
450
 
387
- [09dea66 | Tue Nov 25 09:57:15 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
451
+ [09dea66 | Tue Nov 25 17:57:15 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
388
452
 
389
453
  * add encode_attachments
390
454
 
391
- [3277f11 | Tue Nov 25 09:31:04 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
455
+ [3277f11 | Tue Nov 25 17:31:04 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
392
456
 
393
457
  * Adding MIT license
394
458
 
395
- [f6dd8ef | Tue Nov 25 09:30:35 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
459
+ [f6dd8ef | Tue Nov 25 17:30:35 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
396
460
 
397
461
  * Document some of Sofa::Server
398
462
 
399
- [3f0bc71 | Tue Nov 25 09:30:22 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
463
+ [3f0bc71 | Tue Nov 25 17:30:22 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
400
464
 
401
465
  * Make relations sane
402
466
 
403
- [041dfd1 | Tue Nov 25 09:29:57 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
467
+ [041dfd1 | Tue Nov 25 17:29:57 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
404
468
 
405
469
  * Expand and document Sofa::Database
406
470
 
407
- [032b958 | Tue Nov 25 09:29:01 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
471
+ [032b958 | Tue Nov 25 17:29:01 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
408
472
 
409
473
  * Better errors
410
474
 
411
- [0bd7246 | Fri Nov 21 12:07:47 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
475
+ [0bd7246 | Fri Nov 21 20:07:47 UTC 2008] Michael Fellinger <m.fellinger@gmail.com>
412
476
 
413
477
  * Inaugral commit
414
478
 
@@ -81,5 +81,3 @@ module Makura
81
81
  name.split('::').inject(root){|s,v| s.const_get(v) }
82
82
  end
83
83
  end
84
-
85
- Sofa = Makura # be backwards compatible
@@ -115,11 +115,37 @@ module Makura
115
115
  get('/')
116
116
  end
117
117
 
118
+ def compact(design_name = nil)
119
+ if design_name
120
+ post("/_compact/#{design_name}")
121
+ else
122
+ post("/_compact")
123
+ end
124
+ end
125
+
126
+ def view_cleanup
127
+ post("/_view_cleanup")
128
+ end
129
+
130
+ def ensure_full_commit
131
+ post('/_ensure_full_commit')
132
+ end
133
+
118
134
  def all_docs(params = {})
119
- get('_all_docs')
135
+ get('_all_docs', params)
120
136
  end
121
137
  alias documents all_docs
122
138
 
139
+ def design_docs(params = {})
140
+ pass = {
141
+ startkey: '_design0',
142
+ endkey: '_design',
143
+ descending: true,
144
+ }.merge(params)
145
+
146
+ all_docs(pass)
147
+ end
148
+
123
149
  def [](id, rev = nil)
124
150
  id = Makura.escape(id)
125
151
  if rev
@@ -194,7 +220,7 @@ module Makura
194
220
  end
195
221
 
196
222
  def request(method, path, params = {})
197
- @server.send(:request, method, "/#{name}/#{path}", params)
223
+ @server.request(method, "/#{name}/#{path}", params)
198
224
  end
199
225
 
200
226
  def encode_attachments(attachments)
@@ -107,7 +107,9 @@ module Makura
107
107
 
108
108
  # path, file, args = {})
109
109
  def attach(*args)
110
- self.class.database.put_attachment(self, *args)
110
+ response = self.class.database.put_attachment(self, *args)
111
+ self._rev = response['rev']
112
+ response
111
113
  end
112
114
 
113
115
  # delete attachment by name.
@@ -12,7 +12,6 @@ module Makura
12
12
  # #<URI::HTTP:0xb778ce38 URL:http://localhost:5984>
13
13
  # server.info
14
14
  # {"couchdb"=>"Welcome", "version"=>"0.9.0a718650-incubating"}
15
-
16
15
  def initialize(uri = COUCHDB_URI, cache_ttl = CACHE_TTL, cache_tries = CACHE_TRIES)
17
16
  @uri = URI(uri.to_s)
18
17
  @cache_ttl = cache_ttl
@@ -35,6 +34,11 @@ module Makura
35
34
  get('/')
36
35
  end
37
36
 
37
+ # BigCouch query
38
+ def membership
39
+ get('/_membership')
40
+ end
41
+
38
42
  # Answers with configuration info.
39
43
  #
40
44
  # Usage:
@@ -45,22 +49,102 @@ module Makura
45
49
  end
46
50
 
47
51
  # Issue restart of the CouchDB daemon.
52
+ # This will ensure that everything was committed before restarting, if you
53
+ # want to restart immediately, use the #restart! method.
48
54
  #
49
55
  # Usage:
50
56
  # server.restart
51
57
  # # {'ok' => true}
52
58
  def restart
59
+ databases.each do |name|
60
+ db = Database.new(self, name, auto_create = false)
61
+ db.ensure_full_commit
62
+ end
63
+
64
+ restart!
65
+ end
66
+
67
+ # Issue restart of the CouchDB daemon.
68
+ #
69
+ # Usage:
70
+ # server.restart
71
+ # # {'ok' => true}
72
+ def restart!
53
73
  post('/_restart')
54
74
  end
55
75
 
76
+ # Returns an array with the active tasks on the server.
77
+ #
78
+ # Reference:
79
+ # http://wiki.apache.org/couchdb/HttpGetActiveTasks
80
+ #
81
+ # Usage:
82
+ # server.active_tasks
83
+ # # [{"type" => "Replication",
84
+ # # "task" => "e22ef0: http://fox:5984/example/ -> example",
85
+ # # "status" => "W Processed source update #2130297",
86
+ # # "pid" => "<0.8704.97>"}]
87
+ def active_tasks
88
+ get('/_active_tasks')
89
+ end
90
+
91
+ # The replication is an incremental one way process involving two databases
92
+ # (a source and a destination).
93
+ #
94
+ # The aim of the replication is that at the end of the process, all active
95
+ # documents on the source database are also in the destination database and
96
+ # all documents that were deleted in the source databases are also deleted
97
+ # (if exists) on the destination database.
98
+ #
99
+ # The replication process only copies the last revision of a document, so
100
+ # all previous revisions that were only on the source database are not
101
+ # copied to the destination database.
102
+ #
103
+ # Reference:
104
+ # http://wiki.apache.org/couchdb/Replication
105
+ #
106
+ # Usage:
107
+ # server.replicate(source: "foodb", target: "http://example.org/foodb")
108
+ #
109
+ # Optional Arguments:
110
+ # # Start continuous replication
111
+ # continuous: (default is false)
112
+ #
113
+ # # Create the target database
114
+ # create_target: (default is false)
115
+ #
116
+ # # Cancel existing replication
117
+ # cancel: (default is false)
118
+ #
119
+ # # Use a filter function
120
+ # filter: (default is none)
121
+ #
122
+ # # Pass query parameters to filter function
123
+ # query_params: {key: value} (default is none)
124
+ #
125
+ # Please note that when you want to cancel a replication, you have to pass
126
+ # the exact same arguments that it was created with plus the :cancel argument.
127
+ def replicate(args)
128
+ post('/_replicate', :payload => args)
129
+ end
130
+
131
+ def log
132
+ get('/_log')
133
+ end
134
+
135
+ def stats
136
+ get('/_stats')
137
+ end
138
+
56
139
  # Array of names of databases on the server
57
140
  #
58
141
  # Usage:
59
142
  # server.databases
60
143
  # # ["another", "blog", "makura-spec"]
61
- def databases
144
+ def all_dbs
62
145
  get('/_all_dbs')
63
146
  end
147
+ alias databases all_dbs
64
148
 
65
149
  # Return new database instance using this server instance.
66
150
  #
@@ -69,7 +153,6 @@ module Makura
69
153
  # # #<Makura::Database 'http://localhost:5984/foo'>
70
154
  # server.databases
71
155
  # # ["another", "blog", "foo", "makura-spec"]
72
-
73
156
  def database(name)
74
157
  Database.new(self, name)
75
158
  end
@@ -79,7 +162,6 @@ module Makura
79
162
  # Usage:
80
163
  # server.next_uuid
81
164
  # # "55fdca746fa5a5b56f5270875477a2cc"
82
-
83
165
  def next_uuid
84
166
  @uuids.next
85
167
  end
@@ -122,6 +204,8 @@ module Makura
122
204
 
123
205
  if content_type = params.delete('Content-Type')
124
206
  headers['Content-Type'] = content_type
207
+ elsif method == :post
208
+ headers['Content-Type'] = 'application/json'
125
209
  end
126
210
 
127
211
  params.delete_if{|k,v| v.nil? }
@@ -1,3 +1,3 @@
1
1
  module Makura
2
- VERSION = "2011.01.21"
2
+ VERSION = "2012.01"
3
3
  end
@@ -1,23 +1,21 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{makura}
5
- s.version = "2011.01.21"
4
+ s.name = "makura"
5
+ s.version = "2012.01"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Michael 'manveru' Fellinger"]
9
- s.date = %q{2011-01-21}
10
- s.default_executable = %q{makura}
11
- s.email = %q{m.fellinger@gmail.com}
9
+ s.date = "2012-01-31"
10
+ s.email = "m.fellinger@gmail.com"
12
11
  s.executables = ["makura"]
13
- s.files = ["AUTHORS", "CHANGELOG", "COPYING", "MANIFEST", "README.md", "Rakefile", "bin/makura", "doc/AUTHORS", "doc/CHANGELOG", "example/blog.rb", "example/couch/map/author_all.js", "example/couch/map/author_posts.js", "example/couch/map/post_all.js", "example/couch/map/post_comments.js", "example/couch/reduce/sum_length.js", "lib/makura.rb", "lib/makura/database.rb", "lib/makura/design.rb", "lib/makura/error.rb", "lib/makura/http_methods.rb", "lib/makura/layout.rb", "lib/makura/model.rb", "lib/makura/plugin/localize.rb", "lib/makura/plugin/pager.rb", "lib/makura/server.rb", "lib/makura/uuid_cache.rb", "lib/makura/version.rb", "makura.gemspec", "tasks/authors.rake", "tasks/bacon.rake", "tasks/changelog.rake", "tasks/copyright.rake", "tasks/gem.rake", "tasks/gem_installer.rake", "tasks/gem_setup.rake", "tasks/git.rake", "tasks/grancher.rake", "tasks/manifest.rake", "tasks/metric_changes.rake", "tasks/rcov.rake", "tasks/release.rake", "tasks/reversion.rake", "tasks/setup.rake", "tasks/todo.rake", "tasks/traits.rake", "tasks/yard.rake", "tasks/ycov.rake"]
14
- s.homepage = %q{http://github.com/manveru/makura}
12
+ s.files = [".gems", ".rvmrc", "AUTHORS", "CHANGELOG", "COPYING", "MANIFEST", "README.md", "Rakefile", "bin/makura", "doc/AUTHORS", "doc/CHANGELOG", "example/blog.rb", "example/couch/map/author_all.js", "example/couch/map/author_posts.js", "example/couch/map/post_all.js", "example/couch/map/post_comments.js", "example/couch/reduce/sum_length.js", "lib/makura.rb", "lib/makura/database.rb", "lib/makura/design.rb", "lib/makura/error.rb", "lib/makura/http_methods.rb", "lib/makura/layout.rb", "lib/makura/model.rb", "lib/makura/plugin/localize.rb", "lib/makura/plugin/pager.rb", "lib/makura/server.rb", "lib/makura/uuid_cache.rb", "lib/makura/version.rb", "makura.gemspec", "tasks/authors.rake", "tasks/bacon.rake", "tasks/changelog.rake", "tasks/copyright.rake", "tasks/gem.rake", "tasks/gem_installer.rake", "tasks/gem_setup.rake", "tasks/git.rake", "tasks/grancher.rake", "tasks/manifest.rake", "tasks/metric_changes.rake", "tasks/rcov.rake", "tasks/release.rake", "tasks/reversion.rake", "tasks/setup.rake", "tasks/todo.rake", "tasks/traits.rake"]
13
+ s.homepage = "http://github.com/manveru/makura"
15
14
  s.require_paths = ["lib"]
16
- s.rubygems_version = %q{1.3.7}
17
- s.summary = %q{Ruby wrapper around the CouchDB REST API.}
15
+ s.rubygems_version = "1.8.10"
16
+ s.summary = "Ruby wrapper around the CouchDB REST API."
18
17
 
19
18
  if s.respond_to? :specification_version then
20
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
21
19
  s.specification_version = 3
22
20
 
23
21
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -1,5 +1,3 @@
1
- require 'rake/gempackagetask'
2
-
3
1
  task :gemspec => [:manifest, :changelog] do
4
2
  gemspec_file = "#{GEMSPEC.name}.gemspec"
5
3
  File.open(gemspec_file, 'w+'){|gs| gs.puts(GEMSPEC.to_ruby) }
@@ -16,7 +14,6 @@ task :uninstall => [:clean] do
16
14
  sh %{gem uninstall -x #{GEMSPEC.name}}
17
15
  end
18
16
 
19
- Rake::GemPackageTask.new(GEMSPEC) do |p|
20
- p.need_tar = true
21
- p.need_zip = true
17
+ Gem::PackageTask.new(GEMSPEC) do |pkg|
18
+ pkg.need_tar = true
22
19
  end
metadata CHANGED
@@ -1,46 +1,36 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: makura
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 2011
7
- - 1
8
- - 21
9
- version: 2011.01.21
3
+ version: !ruby/object:Gem::Version
4
+ version: '2012.01'
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Michael 'manveru' Fellinger
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-01-21 00:00:00 +09:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-31 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rest-client
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &10336540 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 8
31
- - 1
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
32
21
  version: 0.8.1
33
22
  type: :runtime
34
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *10336540
35
25
  description:
36
26
  email: m.fellinger@gmail.com
37
- executables:
27
+ executables:
38
28
  - makura
39
29
  extensions: []
40
-
41
30
  extra_rdoc_files: []
42
-
43
- files:
31
+ files:
32
+ - .gems
33
+ - .rvmrc
44
34
  - AUTHORS
45
35
  - CHANGELOG
46
36
  - COPYING
@@ -86,39 +76,28 @@ files:
86
76
  - tasks/setup.rake
87
77
  - tasks/todo.rake
88
78
  - tasks/traits.rake
89
- - tasks/yard.rake
90
- - tasks/ycov.rake
91
- has_rdoc: true
92
79
  homepage: http://github.com/manveru/makura
93
80
  licenses: []
94
-
95
81
  post_install_message:
96
82
  rdoc_options: []
97
-
98
- require_paths:
83
+ require_paths:
99
84
  - lib
100
- required_ruby_version: !ruby/object:Gem::Requirement
85
+ required_ruby_version: !ruby/object:Gem::Requirement
101
86
  none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- segments:
106
- - 0
107
- version: "0"
108
- required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
92
  none: false
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- segments:
114
- - 0
115
- version: "0"
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
116
97
  requirements: []
117
-
118
98
  rubyforge_project:
119
- rubygems_version: 1.3.7
99
+ rubygems_version: 1.8.10
120
100
  signing_key:
121
101
  specification_version: 3
122
102
  summary: Ruby wrapper around the CouchDB REST API.
123
103
  test_files: []
124
-
@@ -1,4 +0,0 @@
1
- desc 'Generate YARD documentation'
2
- task :yard => :clean do
3
- sh("yardoc -o ydoc -r #{PROJECT_README}")
4
- end
@@ -1,22 +0,0 @@
1
- begin
2
- require 'yard'
3
-
4
- task :ycov => ['.yardoc'] do
5
- YARD::Registry.load_yardoc
6
- code_objects = YARD::Registry.paths.map{|path| YARD::Registry.at(path) }
7
- without_doc, with_doc = code_objects.partition{|obj| obj.docstring.empty? }
8
-
9
- documented = with_doc.size
10
- undocumented = without_doc.size
11
- total = documented + undocumented
12
- percentage = (documented / 0.01) / total
13
-
14
- puts "Documentation coverage is %d/%d (%3.1f%%)" % [documented, total, percentage]
15
- end
16
-
17
- file '.yardoc' => FileList['lib/**/*.rb'] do
18
- files = ['lib/**/*.rb']
19
- options = ['--no-output', '--private']
20
- YARD::CLI::Yardoc.run(*(options + files))
21
- end
22
- end