-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
722 lines (668 loc) · 64 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
Script started on Wed 30 Nov 2011 06:44:01 PM EST
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ ls
#%2Amerge%2A#2566j4P# [0m[01;34mapp[0m [01;34mdb[0m Gemfile.lock.orig [01;34mlib[0m Rakefile [01;34mspec[0m
#%2Amerge%2A#2617R5P# [01;34mconfig[0m Gemfile Gemfile.orig [01;34mlog[0m README [01;34mtmp[0m
acts_as_xapian config.ru Gemfile.lock install [01;34mpublic[0m [01;34mscript[0m [01;34mvendor[0m
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rails install [K
Error: Command not recognized
Usage: rails COMMAND [ARGS]
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
server Start the Rails server (short-cut alias: "s")
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
In addition to those, there are:
application Generate the Rails application code
destroy Undo code generated with "generate"
benchmarker See how fast a piece of code runs
profiler Get profile information from a piece of code
plugin Install a plugin
runner Run a piece of code in the application environment
All commands can be run with -h for more information.
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ plugin install git://github.com/frabcus/acts_as_xapian.git
plugin: command not found
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ script/plugin install git://github.com/frabcus/acts_as_xapian.git
bash: script/plugin: No such file or directory
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rails install git://github.com/frabcus/acts_as_xapian.git
Error: Command not recognized
Usage: rails COMMAND [ARGS]
The most common rails commands are:
generate Generate new code (short-cut alias: "g")
console Start the Rails console (short-cut alias: "c")
server Start the Rails server (short-cut alias: "s")
dbconsole Start a console for the database specified in config/database.yml
(short-cut alias: "db")
new Create a new Rails application. "rails new my_app" creates a
new application called MyApp in "./my_app"
In addition to those, there are:
application Generate the Rails application code
destroy Undo code generated with "generate"
benchmarker See how fast a piece of code runs
profiler Get profile information from a piece of code
plugin Install a plugin
runner Run a piece of code in the application environment
All commands can be run with -h for more information.
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ sudo install git://github.com/frabcus/acts_as_xapian.git
[sudo] password for eric:
install: missing destination file operand after `git://github.com/frabcus/acts_as_xapian.git'
Try `install --help' for more information.
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ sudo apt-get install git://github.com/frabcus/acts_as_xapian.git
Reading package lists... 0%Reading package lists... 0%Reading package lists... 7%Reading package lists... Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency tree... 50%Building dependency tree... 50%Building dependency tree
Reading state information... 0%Reading state information... 2%Reading state information... Done
E: Unable to locate package git://github.com/frabcus
E: Couldn't find any package by regex 'git://github.com/frabcus'
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ sudo apt-get acts_as [K_xapian
E: Invalid operation acts_as_xapian
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~T61p:~/Cheqit$ sudo install git://github.com/frabcus/acts_as_xapian.git
[sudo] password for eric:
install: missing destination file operand after `git://github.com/frabcus/acts_as_xapian.git'
Try `install --help' for more information.
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ sudo apt-get install git://github.com/frabcus/acts_as_xapian.git
Reading package lists... 0%Reading package lists... 0%Reading package lists... 7%Reading package lists... Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency tree... 50%Building dependency tree... 50%Building dependency tree
Reading state information... 0%Reading state information... 2%Reading state information... Done
E: Unable to locate package git://github.com/frabcus
E: Couldn't find any package by regex 'git://github.com/frabcus'
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ sudo apt-get acts_as [K_xapian
E: Invalid operation acts_as_xapian
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ scipr[Kt acts_as_xapian
No command 'scipt' found, did you mean:
Command 'script' from package 'bsdutils' (main)
Command 'scidt' from package 'scid' (universe)
scipt: command not found
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ scipt acts_as_xapian[C[1@r
Script started, file is acts_as_xapian
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ generate acts_as_xapian
generate: command not found
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ sudo install acts_as_xapian
[sudo] password for eric:
install: missing destination file operand after `acts_as_xapian'
Try `install --help' for more information.
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rake db:migrate
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rake xapian_rebuild_index models="po[K[KPost"
rake aborted!
Don't know how to build task 'xapian_rebuild_index'
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rake xapian_rebuild_index models="Post"[1P[1@:
rake aborted!
Don't know how to build task 'xapian:rebuild_index'
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ git cv[K[Kclone git://github.com/frabcus/acts_as_xapian.git vendor/plugins /acts_as_xapian
Cloning into vendor/plugins/acts_as_xapian...
remote: Counting objects: 275, done.[K
remote: Compressing objects: 1% (1/82) [Kremote: Compressing objects: 2% (2/82) [Kremote: Compressing objects: 3% (3/82) [Kremote: Compressing objects: 4% (4/82) [Kremote: Compressing objects: 6% (5/82) [Kremote: Compressing objects: 7% (6/82) [Kremote: Compressing objects: 8% (7/82) [Kremote: Compressing objects: 9% (8/82) [Kremote: Compressing objects: 10% (9/82) [Kremote: Compressing objects: 12% (10/82) [Kremote: Compressing objects: 13% (11/82) [Kremote: Compressing objects: 14% (12/82) [Kremote: Compressing objects: 15% (13/82) [Kremote: Compressing objects: 17% (14/82) [Kremote: Compressing objects: 18% (15/82) [Kremote: Compressing objects: 19% (16/82) [Kremote: Compressing objects: 20% (17/82) [Kremote: Compressing objects: 21% (18/82) [Kremote: Compressing objects: 23% (19/82) [Kremote: Compressing objects: 24% (20/82) [Kremote: Compressing objects: 25% (21/82) [Kremote: Compressing objects: 26% (22/82) [Kremote: Compressing objects: 28% (23/82) [Kremote: Compressing objects: 29% (24/82) [Kremote: Compressing objects: 30% (25/82) [Kremote: Compressing objects: 31% (26/82) [Kremote: Compressing objects: 32% (27/82) [Kremote: Compressing objects: 34% (28/82) [Kremote: Compressing objects: 35% (29/82) [Kremote: Compressing objects: 36% (30/82 64% (53/82) [Kremote: Compressing objects: 65% (54/82) [Kremote: Compressing objects: 67% (55/82) [Kremote: Compressing objects: 68% (56/82) [Kremote: Compressing objects: 69% (57/82) [Kremote: Compressing objects: 70% (58/82) [Kremote: Compressing objects: 71% (59/82) [Kremote: Compressing objects: 73% (60/82) [Kremote: Compressing objects: 74% (61/82) [Kremote: Compressing objects: 75% (62/82) [Kremote: Compressing objects: 76% (63/82) [Kremote: Compressing objects: 78% (64/82) [Kremote: Compressing objects: 79% (65/82) [Kremote: Compressing objects: 80% (66/82) [Kremote: Compressing objects: 81% (67/82) [Kremote: Compressing objects: 82% (68/82) [Kremote: Compressing objects: 84% (69/82) [Kremote: Compressing objects: 85% (70/82) [Kremote: Compressing objects: 86% (71/82) [Kremote: Compressing objects: 87% (72/82) [Kremote: Compressing objects: 89% (73/82) [Kremote: Compressing objects: 90% (74/82) [Kremote: Compressing objects: 91% (75/82) [Kremote: Compressing objects: 92% (76/82) [Kremote: Compressing objects: 93% (77/82) [Kremote: Compressing objects: 95% (78/82) [Kremote: Compressing objects: 96% (79/82) [Kremote: Compressing objects: 97% (80/82) [Kremote: Compressing objects: 98% (81/82) [Kremote: Compressing objects: 100% (82/82) [Kremote: Compressing objects: 100% (82/82), done.[K
Receiving objects: 0% (1/275) Receiving objects: 1% (3/275) Receiving objects: 2% (6/275) Receiving objects: 3% (9/275) Receiving objects: 4% (11/275) Receiving objects: 5% (14/275) Receiving objects: 6% (17/275) Receiving objects: 7% (20/275) Receiving objects: 8% (22/275) Receiving objects: 9% (25/275) Receiving objects: 10% (28/275) Receiving objects: 11% (31/275) Receiving objects: 12% (33/275) Receiving objects: 13% (36/275) Receiving objects: 14% (39/275) Receiving objects: 15% (42/275) Receiving objects: 16% (44/275) Receiving objects: 17% (47/275) Receiving objects: 18% (50/275) Receiving objects: 19% (53/275) Receiving objects: 20% (55/275) Receiving objects: 21% (58/275) Receiving objects: 22% (61/275) Receiving objects: 23% (64/275) Receiving objects: 24% (66/275) Receiving objects: 25% (69/275) Receiving objects: 26% (72/275) Receiving objects: 27% (75/275) Receiving objects: 28% (77/275) Receiving objects: 29% (80/275) Receiving objects: 30% (83/275) Receiving objects: 31% (86/275) Receiving objects: 32% (88/275) Receiving objects: 33% (91/275) Receiving objects: 34% (94/275) Receiving objects: 35% (97/275) Receiving objects: 36% (99/275) Receiving objects: 37% (102/275) Receiving objects: 38% (105/275) Receiving objects: 39% (108/275) Receiving objects: 40% (110/275) Receiving objects: 41% (113/275) Receiving objects: 42% (116/275) Receiving objects: 43% (119/275) Receiving objects: 44% (121/275) Receiving objects: 45% (124/275) Receiving objects: 46% (127/275) Receiving objects: 47% (130/275) Receiving objects: 48% (132/275) Receiving objects: 49% (135/275) Receiving objects: 50% (138/275) Receiving objects: 51% (141/275) Receiving objects: 52% (143/275) Receiving objects: 53% (146/275) Receiving objects: 54% (149/275) Receiving objects: 55% (152/275) Receiving objects: 56% (154/275) Receiving objects: 57% (157/275) Receiving objects: 58% (160/275) Receiving objects: 59% (163/275) Receiving objects: 60% (165/275) Receiving objects: 61% (168/275) Receiving objects: 62% (171/275) Receiving objects: 63% (174/275) Receiving objects: 64% (176/275) Receiving objects: 65% (179/275) Receiving objects: 66% (182/275) Receiving objects: 67% (185/275) Receiving objects: 68% (187/275) Receiving objects: 69% (190/275) Receiving objects: 70% (193/275) Receiving objects: 71% (196/275) Receiving objects: 72% (198/275) Receiving objects: 73% (201/275) Receiving objects: 74% (204/275) Receiving objects: 75% (207/275) Receiving objects: 76% (209/275) Receiving objects: 77% (212/275) Receiving objects: 78% (215/275) Receiving objects: 79% (218/275) Receiving objects: 80% (220/275) Receiving objects: 81% (223/275) Receiving objects: 82% (226/275) Receiving objects: 83% (229/275) Receiving objects: 84% (231/275) Receiving objects: 85% (234/275) remote: Total 275 (delta 139), reused 267 (delta 138)[K
Receiving objects: 86% (237/275) Receiving objects: 87% (240/275) Receiving objects: 88% (242/275) Receiving objects: 89% (245/275) Receiving objects: 90% (248/275) Receiving objects: 91% (251/275) Receiving objects: 92% (253/275) Receiving objects: 93% (256/275) Receiving objects: 94% (259/275) Receiving objects: 95% (262/275) Receiving objects: 96% (264/275) Receiving objects: 97% (267/275) Receiving objects: 98% (270/275) Receiving objects: 99% (273/275) Receiving objects: 100% (275/275) Receiving objects: 100% (275/275), 86.15 KiB, done.
Resolving deltas: 0% (0/139) Resolving deltas: 46% (64/139) Resolving deltas: 64% (89/139) Resolving deltas: 96% (134/139) Resolving deltas: 97% (136/139) Resolving deltas: 100% (139/139) Resolving deltas: 100% (139/139), done.
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rake db:[K:migrate
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rebuild[K[K[K[K[K[K[Krake xapian:rebuild_index models = "[K[K[K[K="Post"
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ ls
#%2Amerge%2A#2566j4P# [0m[01;34mapp[0m [01;34mdb[0m Gemfile.lock.orig [01;34mlib[0m Rakefile [01;34mspec[0m
#%2Amerge%2A#2617R5P# [01;34mconfig[0m Gemfile Gemfile.orig [01;34mlog[0m README [01;34mtmp[0m
acts_as_xapian config.ru Gemfile.lock install [01;34mpublic[0m [01;34mscript[0m [01;34mvendor[0m
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ cd app
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/apperic@eric-ThinkPad-T61p:~/Cheqit/app$ ls
[0m[01;34mcontrollers[0m [01;34mhelpers[0m [01;34mmodels[0m [01;34mviews[0m
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/apperic@eric-ThinkPad-T61p:~/Cheqit/app$ rake[K[K[K[Klscd app[4Plsrake xapian:rebuild_index models="Post"
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/apperic@eric-ThinkPad-T61p:~/Cheqit/app$ rake xapian:rebuild_index models="Post"ls[Kcd app[4Pls
[0m[01;34mcontrollers[0m [01;34mhelpers[0m [01;34mmodels[0m [01;34mviews[0m
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/apperic@eric-ThinkPad-T61p:~/Cheqit/app$ cd models[K[K[K[K[K[K[K[K[K[Kcd models
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/app/modelseric@eric-ThinkPad-T61p:~/Cheqit/app/models$ cd modelsls[Krake xapian:rebuild_index models="Post"
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/app/modelseric@eric-ThinkPad-T61p:~/Cheqit/app/models$ cd ..
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/apperic@eric-ThinkPad-T61p:~/Cheqit/app$ cd ..
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ pico Rakefile
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: Rakefile [3;1H(B[m# Add your own tasks in files placed in lib/tasks ending in .rake,[4d# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.[6drequire File.expand_path('../config/application', __FILE__)[7drequire 'rake'[9dCheqit::Application.load_tasks[53;44H(B[0;7m[ Read 7 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[A[A[A[A[A[A[A[53d[K[3d[54d[J[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ pico Rakefile[8Pcd ..rake xapian:rebuild_index models="Post"[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Ccd models[Krake xapian:rebuild_index models="Post"[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Ccd ..[Kpico Rakefile[Kcd vendor
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendoreric@eric-ThinkPad-T61p:~/Cheqit/vendor$ cd puligin[C[K[K[K[K[K[K[Kplugins
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/pluginseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins$ cd ac_[Ks[Kts_as_z[Kxapian
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapianeric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian$ cd tast[Kks
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ ls
xapian.rake
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rake
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters - specify "flush=true" to save changes to the Xapian database[11;5H# after each model that is updated. This is safer, but slower. Specify[12;5H# "verbose=true" to print model name as it is run.[13;5Hdesc 'Updates Xapian search index with changes to models since last call'[14;5Htask (:update_index => :environment) do[15;9HActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false)[16;5Hend[18;5H# Parameters - specify 'models="PublicBody User"' to say which models[19;5H# you index with Xapian.[20;5H# This totally rebuilds the database, so you will want to restart any[21;5H# web server afterwards to make sure it gets the changes, rather than[22;5H# still pointing to the old deleted database. Specify "verbose=true" to[23;5H# print model name as it is run.[24;5Hdesc 'Completely rebuilds Xapian search index (must specify all models)'[25;5Htask (:rebuild_index => :environment) do[26;9Hraise "specify ALL your models with models=\"ModelName1 ModelName2\" as parameter" if ENV['mo$[27;9HActsAsXapian.rebuild_index(ENV['models'].split(" ").map{|m| m.constantize}, ENV['verbose'] ? $[28;5Hend[30;5H# Parameters - are models, query, offset, limit, sort_by_prefix,[31;5H# collapse_by_prefix[32;5Hdesc 'Run a query, return YAML of results'[33;5Htask (:query => :environment) do[34;9Hraise "specify models=\"ModelName1 ModelName2\" as parameter" if ENV['models'].nil?[35;9Hraise "specify query=\"your terms\" as parameter" if ENV['query'].nil?[36;9Hs = ActsAsXapian::Search.new(ENV['models'].split(" ").map{|m| m.constantize},[37;13HENV['query'],[38;13H:offset => (ENV['offset'] || 0), :limit => (ENV['limit'] || 10),[39;13H:sort_by_prefix => (ENV['sort_by_prefix'] || nil),[40;13H:collapse_by_prefix => (ENV['collapse_by_prefix'] || nil)[41;9H)[42dSTDOUT.puts(s.results.to_yaml)[43;5Hend[44dend[53;43H(B[0;7m[ Read 43 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[13d[14d[15d[16d[17d[18d[19d[20d[21d[22d[23d[24d[25d[26d[27d[28d[53d[K[29d[30d[31d[32d[33d[34d[35d[36d[37d[38d[39d[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[11d[12d[13d[14d[15d[16d[17d[18d[19d[20d[21d[22d[23d[24d[25d[26d[27d[28d[29d[30d[31d[32d[33d[34d[35d[36d[37d[38d[39d[40d[41d[42d[43d[44d[45d[46d[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[54d[J[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rake
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters - specify "flush=true" to save changes to the Xapian database[11;5H# after each model that is updated. This is safer, but slower. Specify[12;5H# "verbose=true" tA[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[11d[12d[13d[14d[15d[16d[17d[18d[19d[20d[21d[22d[23d[24d[25d[26d[27d[28d[29d[30d[31d[32d[33d[34d[35d[36d[37d[38d[39d[40d[41d[42d[43d[44d[45d[46d[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[54d[J[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rake
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters - specify "flush=true" to save changes to the Xapian database[11;5H# after each model that is updated. This is safer, but slower. Specify[12;5H# "verbose=true" to print model name as it is run.[13;5Hdesc 'Updates Xapian search index with changes to models since last call'[14;5Htask (:update_index => :environment) do[15;9HActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false)[16;5Hend[18;5H# Parameters - specify 'models="PublicBody User"' to say which models[19;5H# you index with Xapian.[20;5H# This totally rebuilds the database, so you will want to restart any[21;5H# web server afterwards to make sure it gets the changes, rather than[22;5H# still pointing to the old deleted database. Specify "verbose=true" to[23;5H# print model name as it is run.[24;5Hdesc 'Completely rebuilds Xapian search index (must specify all models)'[25;5Htask (:rebuild_index => :environment) do[26;9Hraise "specify ALL your models with models=\"ModelName1 ModelName2\" as parameter" if ENV['mo$[27;9HActsAsXapian.rebuild_index(ENV['models'].split(" ").map{|m| m.constantize}, ENV['verbose'] ? $[28;5Hend[30;5H# Parameters - are models, query, offset, limit, sort_by_prefix,[31;5H# collapse_by_prefix[32;5Hdesc 'Run a query, return YAML of results'[33;5Htask (:query => :environment) do[34;9Hraise "specify models=\"ModelName1 ModelName2\" as parameter" if ENV['models'].nil?[35;9Hraise "specify query=\"your terms\" as parameter" if ENV['query'].nil?[36;9Hs = ActsAsXapian::Search.new(ENV['models'].split(" ").map{|m| m.constantize},[37;13HENV['query'],[38;13H:offset => (ENV['offset'] || 0), :limit => (ENV['limit'] || 10),[39;13H:sort_by_prefix => (ENV['sort_by_prefix'] || nil),[40;13H:collapse_by_prefix => (ENV['collapse_by_prefix'] || nil)[41;9H)[42dSTDOUT.puts(s.results.to_yaml)[43;5Hend[44dend[53;43H(B[0;7m[ Read 43 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[13d[14d[15d[16d[17d[53;23H(B[0;7m[ line 15/44 (34%), col 1/1 (100%), char 597/2056 (29%) ][17d(B[m[A[A[A[53;23H (B[0;7m[ line 12/44 (27%), col 1/44 (2[53;64H451[53;75H1[14d(B[m task (:updaate_index[53d[K[14;25H=> :e[54d[J[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rake
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters -m.constantize}, ENV['verbose'] ? $[28;5Hend[30;5H# Parameters - are models, query, offset, limit, sort_by_prefix,[31;5H# collapse_by_prefix[32;5Hdesc 'Run a query, return YAML of results'[33;5Htask (:query => :environment) do[34;9Hraise "specify models=\"ModelName1 ModelName2\" as parameter" if ENV['models'].nil?[35;9Hraise "specify query=\"your terms\" as parameter" if ENV['query'].nil?[36;9Hs = ActsAsXapian::Search.new(ENV['models'].split(" ").map{|m| m.constantize},[37;13HENV['query'],[38;13H:offset => (ENV['offset'] || 0), :limit => (ENV['limit'] || 10),[39;13H:sort_by_prefix => (ENV['sort_by_prefix'] || nil),[40;13H:collapse_by_prefix => (ENV['collapse_by_prefix'] || nil)[41;9H)[42dSTDOUT.puts(s.results.to_yaml)[43;5Hend[44dend[53;43H(B[0;7m[ Read 43 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[13d[14d[15d[16d[17d[18d[19d[20d[21d[22d[23d[24d[25d[26d[27d[28d[53d[K[27d[A[A task[A[A[A[A[A[A[A[A[16;8H[A [A (:[1;93H(B[0;7mModified[14;11H(B[m[1P[53d(B[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? [54;1H Y(B[m Yes[K[55d(B[0;7m N(B[m No [55;17H(B[0;7m^C(B[m Cancel[K[53;62H(B[0;7mFile Name to Write: xapian.rake [54d^G(B[m Get Help[54;26H(B[0;7mM-D(B[m DOS Format[54;51H(B[0;7mM-A(B[m Append[54;76H(B[0;7mM-B(B[m Backup File[55d(B[0;7m^C(B[m Cancel[17G (B[0;7mM-M(B[m Mac Format[55;51H(B[0;7mM-P(B[m Prepend[53;32H[54d[39;49m(B[m[J[1;93H(B[0;7m [53;42H(B[m[1K (B[0;7m[ Wrote 43 lines ](B[m[K[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rakels[Kcd tasksacts_as_xapian[7Pplugins[1Pvendorpico Rakefile[8Pcd ..rake xapian:rebuild_index models=="Post"
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ rake xapian:rebuild_index models=="Post"[A]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ [16Ppico xapian.rake
[K[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Cls[Kpico xapian.rake
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters - specify "flush=true" to save changes to the Xapian database[11;5H# after each model that is updated. This is safer, but slower. Specify[12;5H# "verbose=true" to print model name as it is run.[13;5Hdesc 'Updates Xapian search index with changes to models since last call'[14;5Htask (update_index => :environment) do[15;9HActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false)[16;5Hend[18;5H# Parameters - specify 'models="PublicBody User"' to say which models[19;5H# you index with Xapian.[20;5H# This totally rebuilds the database, so you will want to restart any[21;5H# web server afterwards to make sure it gets the changes, rather than[22;5H# still pointing to the old deleted database. Specify "verbose=true" to[23;5H# print model name as it is run.[24;5Hdesc 'Completely rebuilds Xapian search index (must specify all models)'[25;5Htask (:rebuild_index => :environment) do[26;9Hraise "specify ALL your models with models=\"ModelName1 ModelName2\" as parameter" if ENV['mo$[27;9HActsAsXapian.rebuild_index(ENV['models'].split(" ").map{|m| m.constantize}, ENV['verbose'] ? $[28;5Hend[30;5H# Parameters - are models, query, offset, limit, sort_by_prefix,[31;5H# collapse_by_prefix[32;5Hdesc 'Run a query, return YAML of results'[33;5Htask (:query => :environment) do[34;9Hraise "specify models=\"ModelName1 ModelName2\" as parameter" if ENV['models'].nil?[35;9Hraise "specify query=\"your terms\" as parameter" if ENV['query'].nil?[36;9Hs = ActsAsXapian::Search.new(ENV['models'].split(" ").map{|m| m.constantize},[37;13HENV['query'],[38;13H:offset => (ENV['offset'] || 0), :limit => (ENV['limit'] || 10),[39;13H:sort_by_prefix => (ENV['sort_by_prefix'] || nil),[40;13H:collapse_by_prefix => (ENV['collapse_by_prefix'] || nil)[41;9H)[42dSTDOUT.puts(s.results.to_yaml)[43;5Hend[44dend[53;43H(B[0;7m[ Read 43 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[13d[14d[15d[16d[17d[A[A[A task[53d[K[14;10H([1;93H(B[0;7mModified[14;11H(B[m:update_index => :environment) do[14;12Hupdate_index => :en[1P[53d(B[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? [54;1H Y(B[m Yes[K[55d(B[0;7m N(B[m No [55;17H(B[0;7m^C(B[m Cancel[K[53;62H(B[0;7mFile Name to Write: xapian.rake [54d^G(B[m Get Help[54;26H(B[0;7mM-D(B[m DOS Format[54;51H(B[0;7mM-A(B[m Append[54;76H(B[0;7mM-B(B[m Backup File[55d(B[0;7m^C(B[m Cancel[17G (B[0;7mM-M(B[m Mac Format[55;51H(B[0;7mM-P(B[m Prepend[53;32H[54d[39;49m(B[m[J[1;93H(B[0;7m [53;42H(B[m[1K (B[0;7m[ Wrote 43 lines ](B[m[K[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rakerake xapian:rebuild_index models=="Post"
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ rake xapian:rebuild_index models=="Post"[A]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ [16Ppico xapian.rake
[K[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters - specify "flush=true" to save changes to the Xapian database[11;5H# after each model that is updated. This is safer, but slower. Specify[12;5H# "verbose=true" to print model name as it is run.[13;5Hdesc 'Updates Xapian search index with changes to models since last call'[14;5Htask (:update_index => environment) do[15;9HActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false)[16;5Hend[18;5H# Parameters - specify 'models="PublicBody User"' to say which models[19;5H# you index with Xapian.[20;5H# This totally rebuilds the database, so you will want to restart any[21;5H# web server afterwards to make sure it gets the changes, rather than[22;5H# still pointing to the old deleted database. Specify "verbose=true" to[23;5H# print model name as it is run.[24;5Hdesc 'Completely rebuilds Xapian search index (must specify all models)'[25;5Htask (:rebuild_index => :environment) do[26;9Hraise "specify ALL your models with models=\"ModelName1 ModelName2\" as parameter" if ENV['mo$[27;9HActsAsXapian.rebuild_index(ENV['models'].split(" ").map{|m| m.constantize}, ENV['verbose'] ? $[28;5Hend[30;5H# Parameters - are models, query, offset, limit, sort_by_prefix,[31;5H# collapse_by_prefix[32;5Hdesc 'Run a query, return YAML of results'[33;5Htask (:query => :environment) do[34;9Hraise "specify models=\"ModelName1 ModelName2\" as parameter" if ENV['models'].nil?[35;9Hraise "specify query=\"your terms\" as parameter" if ENV['query'].nil?[36;9Hs = ActsAsXapian::Search.new(ENV['models'].split(" ").map{|m| m.constantize},[37;13HENV['query'],[38;13H:offset => (ENV['offset'] || 0), :limit => (ENV['limit'] || 10),[39;13H:sort_by_prefix => (ENV['sort_by_prefix'] || nil),[40;13H:collapse_by_prefix => (ENV['collapse_by_prefix'] || nil)[41;9H)[42dSTDOUT.puts(s.results.to_yaml)[43;5Hend[44dend[53;43H(B[0;7m[ Read 43 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[13d[14d[15d[16d[A[A[13;78H[14;43H[53d[K[14;34H[1;93H(B[0;7mModified[14;28H(B[m:environment) do[14;29H :[1P[1P[1P?environment) do[14;27H environment) do[14;28H[1P[1P>environment) do[14;27H environment) do[14;28H:environment) do[14;29H[53d(B[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? [54;1H Y(B[m Yes[K[55d(B[0;7m N(B[m No [55;17H(B[0;7m^C(B[m Cancel[K[53;62H(B[0;7mFile Name to Write: xapian.rake [54d^G(B[m Get Help[54;26H(B[0;7mM-D(B[m DOS Format[54;51H(B[0;7mM-A(B[m Append[54;76H(B[0;7mM-B(B[m Backup File[55d(B[0;7m^C(B[m Cancel[17G (B[0;7mM-M(B[m Mac Format[55;51H(B[m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[13d[14d[15d[16d[A[A[13;78H[14;43H[53d[K[14;34H[1;93H(B[0;7mModified[14;28H(B[m:environment) do[14;29H :[1P[1P[1P?environment) do[14;27H environment) do[14;28H[1P[1P>environment) do[14;27H environment) do[14;28H:environment) do[14;29H[53d(B[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? [54;1H Y(B[m Yes[K[55d(B[0;7m N(B[m No [55;17H(B[0;7m^C(B[m Cancel[K[53;62H(B[0;7mFile Name to Write: xapian.rake [54d^G(B[m Get Help[54;26H(B[0;7mM-D(B[m DOS Format[54;51H(B[0;7mM-A(B[m Append[54;76H(B[0;7mM-B(B[m Backup File[55d(B[0;7m^C(B[m Cancel[17G (B[0;7mM-M(B[m Mac Format[55;51H(B[0;7mM-P(B[m Prepend[53;32H[54d[39;49m(B[m[J[1;93H(B[0;7m [53;42H(B[m[1K (B[0;7m[ Wrote 43 lines ](B[m[K[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rakerake xapian:rebuild_index models=="Post"[A]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ [16Ppico xapian.rake
[K[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Crake xapian:rebuild_index models=="Post"
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ --trace
--trace: command not found
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ --tracerake xapian:rebuild_index models=="Post" --trace
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:51:in `load'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:51:in `block in load_deprecated_tasks'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:51:in `each'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:51:in `load_deprecated_tasks'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/eric/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load'
/home/eric/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `<main>'
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ cd ..
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapianeric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian$ cd ..
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/pluginseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins$ cd ..
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendoreric@eric-ThinkPad-T61p:~/Cheqit/vendor$ cd ..
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rake db:migrate
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqiteric@eric-ThinkPad-T61p:~/Cheqit$ rake db:migrate[10Pcd ..rake xapian:rebuild_index models="Post" --trace[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C--trace[Krake xapian:rebuild_index models="Post"[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C--trace[Krake xapian:rebuild_index models="Post" --trace[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Ccd ..[Krake db:migrate[Kcd[K[Kcd vendor
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendoreric@eric-ThinkPad-T61p:~/Cheqit/vendor$ cd plugins
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/pluginseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins$ cd acs[Kts_as_xapian/
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapianeric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian$ cd tasks
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ cd [K[K[Kpico xapian.rake
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters - specify "flush=true" to save changes to the Xapian database[11;5H# after each model that is updated. This is safer, but slower. Specify[12;5H# "verbose=true" to print model name as it is run.[13;5Hdesc 'Updates Xapian search index with changes to models since last call'[14;5Htask (:update_index => :environment) do[15;9HActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false)[16;5Hend[18;5H# Parameters - specify 'models="PublicBody User"' to say which models[19;5H# you index with Xapian.[20;5H# This totally rebuilds the database, so you will want to restart any[21;5H# web server afterwards to make sure it gets the changes, rather than[22;5H# still pointing to the old deleted database. Specify "verbose=true" to[23;5H# print model name as it is run.[24;5Hdesc 'Completely rebuilds Xapian search index (must specify all models)'[25;5Htask (:rebuild_index => :environment) do[26;9Hraise "specify ALL your models with models=\"ModelName1 ModelName2\" as parameter" if ENV['mo$[27;9HActsAsXapian.rebuild_index(ENV['models'].split(" ").map{|m| m.constantize}, ENV['verbose'] ? $[28;5Hend[30;5H# Parameters - are models, query, offset, limit, sort_by_prefix,[31;5H# collapse_by_prefix[32;5Hdesc 'Run a query, return YAML of results'[33;5Htask (:query => :environment) do[34;9Hraise "specify models=\"ModelName1 ModelName2\" as parameter" if ENV['models'].nil?[35;9Hraise "specify query=\"your terms\" as parameter" if ENV['query'].nil?[36;9Hs = ActsAsXapian::Search.new(ENV['models'].split(" ").map{|m| m.constantize},[37;13HENV['query'],[38;13H:offset => (ENV['offset'] || 0), :limit => (ENV['limit'] || 10),[39;13H:sort_by_prefix => (ENV['sort_by_prefix'] || nil),[40;13H:collapse_by_prefix => (ENV['collapse_by_prefix'] || nil)[41;9H)[42dSTDOUT.puts(s.results.to_yaml)[43;5Hend[44dend[53;43H(B[0;7m[ Read 43 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[13d[14d[15d[16d[17d[18d[19d[20d[21d[22d[23d[24d[25d[26d[27d[A[53d[K[25d[A desc 'Comp[25d[26d[A[A[25d[1;93H(B[0;7mModified[25;12H(B[m rebuild_index => :environment) do[25;13H[26d[A[A[A[A[A[A[A[A[A[16;8H[15;13H[A[A[A[13d[14d update_index => :environment) do[14;13H[53d(B[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? [54;1H Y(B[m Yes[K[55d(B[0;7m N(B[m No [55;17H(B[0;7m^C(B[m Cancel[K[53;62H(B[0;7mFile Name to Write: xapian.rake [54d^G(B[m Get Help[54;26H(B[0;7mM-D(B[m DOS Format[54;51H(B[0;7mM-A(B[m Append[54;76H(B[0;7mM-B(B[m Backup File[55d(B[0;7m^C(B[m Cancel[17G (B[0;7mM-M(B[m Mac Format[55;51H(B[0;7mM-P(B[m Prepend[53;32H[54d[39;49m(B[m[J[1;93H(B[0;7m [53;42H(B[m[1K (B[0;7m[ Wrote 43 lines ](B[m[K[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rake[8Pcd tasksacts_as_xapian/[8Pplugins[1Pvendorrake db:migrate[10Pcd ..rake xapian:rebuild_index models=="Post" --trace
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected ':'
task (: update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected ':'
task (: rebuild_index => :environment) do
^
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:51:in `load'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:51:in `block in load_deprecated_tasks'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:51:in `each'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:51:in `load_deprecated_tasks'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/plugin.rb:44:in `load_tasks'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/application.rb:140:in `block in load_tasks'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/application/railties.rb:11:in `each'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/application/railties.rb:11:in `all'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/application.rb:140:in `load_tasks'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
/home/eric/Cheqit/Rakefile:7:in `<top (required)>'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/eric/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/eric/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load'
/home/eric/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `<main>'
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ rake xapian:rebuild_index models=="Post" --trace[K[K[K[K[K[K[K[K
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected ':'
task (: update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected ':'
task (: rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ rake xapian:rebuild_index models=="Post" --trace[A]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ [16Ppico xapian.rake
[K[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters - specify "flush=true" to save changes to the Xapian database[11;5H# after each model that is updated. This is safer, but slower. Specify[12;5H# "verbose=true" to print model name as it is run.[13;5Hdesc 'Updates Xapian search index with changes to models since last call'[14;5Htask (: update_index => :environment) do[15;9HActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false)[16;5Hend[18;5H# Parameters - specify 'models="PublicBody User"' to say which models[19;5H# you index with Xapian.[20;5H# This totally rebuilds the database, so you will want to restart any[21;5H# web server afterwards to make sure it gets the changes, rather than[22;5H# still pointing to the old deleted database. Specify "verbose=true" to[23;5H# print model name as it is run.[24;5Hdesc 'Completely rebuilds Xapian search index (must specify all models)'[25;5Htask (: rebuild_index => :environment) do[26;9Hraise "specify ALL your models with models=\"ModelName1 ModelName2\" as parameter" if ENV['mo$[27;9HActsAsXapian.rebuild_index(ENV['models'].split(" ").map{|m| m.constantize}, ENV['verbose'] ? $[28;5Hend[30;5H# Parameters - are models, query, offset, limit, sort_by_prefix,[31;5H# collapse_by_prefix[32;5Hdesc 'Run a query, return YAML of results'[33;5Htask (:query => :environment) do[34;9Hraise "specify models=\"ModelName1 ModelName2\" as parameter" if ENV['models'].nil?[35;9Hraise "specify query=\"your terms\" as parameter" if ENV['query'].nil?[36;9Hs = ActsAsXapian::Search.new(ENV['models'].split(" ").map{|m| m.constantize},[37;13HENV['query'],[38;13H:offset => (ENV['offset'] || 0), :limit => (ENV['limit'] || 10),[39;13H:sort_by_prefix => (ENV['sort_by_prefix'] || nil),[40;13H:collapse_by_prefix => (ENV['collapse_by_prefix'] || nil)[41;9H)[42dSTDOUT.puts(s.results.to_yaml)[43;5Hend[44dend[53;43H(B[0;7m[ Read 43 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[13d[14d[15d[16d[17d[18d[19d[20d[21d[22d[23d[24d[25d[26d[27d[28d[53d[K[29d[30d[31d[32d[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[A[13d[14d task (: [1;93H(B[0;7mModified[14;12H(B[m[1P[15d[16;8H[17d[18;12H[19d[20d[21d[22d[23d[24d[25d[26d[27d[28;8H[29d[30;12H[31d[32d[33d[34d[Aquery [A[A[A[A[28;8H[27;15H[A[A[1P[53d(B[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? [54;1H Y(B[m Yes[K[55d(B[0;7m N(B[m No [55;17H(B[0;7m^C(B[m Cancel[K[53;62H(B[0;7mFile Name to Write: xapian.rake [54d^G(B[m Get Help[54;26H(B[0;7mM-D(B[m DOS Format[54;51H(B[0;7mM-A(B[m Append[54;76H(B[0;7mM-B(B[m Backup File[55d(B[0;7m^C(B[m Cancel[17G (B[0;7mM-M(B[m Mac Format[55;51H(B[0;7mM-P(B[m Prepend[53;32H[54d[39;49m(B[m[J[1;93H(B[0;7m [53;42H(B[m[1K (B[0;7m[ Wrote 43 lines ](B[m[K[55;102H[55;1H[?1049l[?1l>]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ pico xapian.rakerake xapian:rebuild_index models=="Post"
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected tASSOC, expecting ')'
task (:update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected tASSOC, expecting ')'
task (:rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ cd ..
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ rake xapian:rebuild_index models=="Post" --trace[K[K[K[K[K[K[K[K
(in /home/eric/Cheqit)
DEPRECATION WARNING: Rake tasks in /home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/eric/Cheqit/Rakefile:7)
rake aborted!
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:12: syntax error, unexpected ':'
task (: update_index => :environment) do
^
/home/eric/Cheqit/vendor/plugins/acts_as_xapian/tasks/xapian.rake:23: syntax error, unexpected ':'
task (: rebuild_index => :environment) do
^
(See full trace by running task with --trace)
]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ rake xapian:rebuild_index models=="Post" --trace[A]0;eric@eric-ThinkPad-T61p: ~/Cheqit/vendor/plugins/acts_as_xapian/taskseric@eric-ThinkPad-T61p:~/Cheqit/vendor/plugins/acts_as_xapian/tasks$ [16Ppico xapian.rake
[K[A[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C
[?1049h[1;55r(B[m[4l[?7h[?12l[?25h[?1h=[?1h=[?1h=[39;49m[39;49m(B[m[H[2J(B[0;7m GNU nano 2.2.6 File: xapian.rake [3;1H(B[mrequire 'rubygems'[4drequire 'rake'[5drequire 'rake/testtask'[6drequire 'activerecord'[7drequire File.dirname(__FILE__) + '/../lib/acts_as_xapian.rb'[9dnamespace :xapian do[10;5H# Parameters - specify "flush=true" to save changes to the Xapian database[11;5H# after each model that is updated. This is safer, but slower. Specify[12;5H# "verbose=true" to print model name as it is run.[13;5Hdesc 'Updates Xapian search index with changes to models since last call'[14;5Htask (: update_index => :environment) do[15;9HActsAsXapian.update_index(ENV['flush'] ? true : false, ENV['verbose'] ? true : false)[16;5Hend[18;5H# Parameters - specify 'models="PublicBody User"' to say which models[19;5H# you index with Xapian.[20;5H# This totally rebuilds the database, so you will want to restart any[21;5H# web server afterwards to make sure it gets the changes, rather than[22;5H# still pointing to the old deleted database. Specify "verbose=true" to[23;5H# print model name as it is run.[24;5Hdesc 'Completely rebuilds Xapian search index (must specify all models)'[25;5Htask (: rebuild_index => :environment) do[26;9Hraise "specify ALL your models with models=\"ModelName1 ModelName2\" as parameter" if ENV['mo$[27;9HActsAsXapian.rebuild_index(ENV['models'].split(" ").map{|m| m.constantize}, ENV['verbose'] ? $[28;5Hend[30;5H# Parameters - are models, query, offset, limit, sort_by_prefix,[31;5H# collapse_by_prefix[32;5Hdesc 'Run a query, return YAML of results'[33;5Htask (:query => :environment) do[34;9Hraise "specify models=\"ModelName1 ModelName2\" as parameter" if ENV['models'].nil?[35;9Hraise "specify query=\"your terms\" as parameter" if ENV['query'].nil?[36;9Hs = ActsAsXapian::Search.new(ENV['models'].split(" ").map{|m| m.constantize},[37;13HENV['query'],[38;13H:offset => (ENV['offset'] || 0), :limit => (ENV['limit'] || 10),[39;13H:sort_by_prefix => (ENV['sort_by_prefix'] || nil),[40;13H:collapse_by_prefix => (ENV['collapse_by_prefix'] || nil)[41;9H)[42dSTDOUT.puts(s.results.to_yaml)[43;5Hend[44dend[53;43H(B[0;7m[ Read 43 lines ][54d^G(B[m Get Help[18G(B[0;7m^O(B[m WriteOut[35G(B[0;7m^R(B[m Read File (B[0;7m^Y(B[m Prev Page (B[0;7m^K(B[m Cut Text[86G(B[0;7m^C(B[m Cur Pos[55d(B[0;7m^X(B[m Exit[55;18H(B[0;7m^J(B[m Justify[35G(B[0;7m^W(B[m Where Is[52G(B[0;7m^V(B[m Next Page (B[0;7m^U(B[m UnCut Text (B[0;7m^T(B[m To Spell[3d[4d[5d[6d[7d[8d[9d[10d[11d[12d[1