muck-raker 0.3.18 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/MIT-LICENSE +1 -1
- data/README.rdoc +3 -7
- data/Rakefile +2 -4
- data/VERSION +1 -1
- data/config/initializers/muck_raker.rb +1 -1
- data/lib/muck-raker.rb +2 -0
- data/lib/muck-raker/config.rb +22 -0
- data/lib/muck-raker/engine.rb +12 -0
- data/lib/tasks/muck_raker.rake +152 -0
- data/muck-raker.gemspec +207 -191
- data/test/rails_test/app/controllers/application_controller.rb +21 -0
- data/test/rails_test/app/controllers/default_controller.rb +7 -0
- data/test/rails_test/app/helpers/application_helper.rb +3 -0
- data/test/rails_test/app/models/comment.rb +3 -0
- data/test/rails_test/app/models/profile.rb +3 -0
- data/test/rails_test/app/models/user.rb +9 -0
- data/test/rails_test/app/models/user_session.rb +2 -0
- data/test/rails_test/config/application.rb +42 -0
- data/test/rails_test/config/boot.rb +13 -0
- data/test/rails_test/config/environment.rb +5 -0
- data/test/rails_test/config/environments/development.rb +26 -0
- data/test/rails_test/config/environments/production.rb +49 -0
- data/test/rails_test/config/environments/test.rb +35 -0
- data/test/rails_test/config/initializers/backtrace_silencers.rb +7 -0
- data/test/{rails_root → rails_test}/config/initializers/inflections.rb +2 -2
- data/test/{rails_root → rails_test}/config/initializers/mime_types.rb +0 -0
- data/test/rails_test/config/initializers/muck_raker.rb +13 -0
- data/test/rails_test/config/initializers/secret_token.rb +7 -0
- data/test/rails_test/config/initializers/session_store.rb +8 -0
- data/test/rails_test/config/routes.rb +5 -0
- data/test/{rails_root → rails_test}/db/migrate/20090320174818_create_muck_permissions_and_roles.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090402033319_add_muck_activities.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090402234137_create_languages.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090426041056_create_countries.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090426041103_create_states.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090602041838_create_users.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090602191243_create_muck_raker.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090613173314_create_comments.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090619211125_create_tag_clouds.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090623181458_add_grain_size_to_entries.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090623193525_add_grain_size_to_tag_clouds.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090703175825_denormalize_entries_subjects.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090704220055_create_slugs.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090704220120_acts_as_taggable_on_migration.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090716035935_change_tag_cloud_grain_sizes.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090717173900_add_contributor_to_feeds.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090717175825_normalize_entries_subjects.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090721043213_change_services_title_to_name.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090721054927_remove_services_not_null_from_feeds.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090723050510_create_feed_parents.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090728165716_add_etag_to_feeds.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090730044139_add_comment_cache.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090730045848_add_comment_cache_to_entries.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090730154102_allow_null_user.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090803185323_create_shares.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090804184247_add_comment_count_to_shares.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090804211240_add_entry_id_to_shares.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090804231857_add_shares_uri_index.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090818204527_add_activity_indexes.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090819030523_add_attachable_to_activities.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090826220530_change_services_sequence_to_sort.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090826225652_create_identity_feeds.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090827005105_add_identity_fields_to_services.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090827015308_create_service_categories.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090827221502_add_prompt_and_template_to_services.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090915041650_aggregations_to_polymorphic.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090922174200_update_oai_endpoints.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090922231552_add_dates_to_oai_endpoints.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090923150807_rename_name_in_aggregation.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20090924200750_add_uri_data_template_to_services.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20091006183742_add_feed_count_to_aggregation.rb +0 -0
- data/test/{rails_root → rails_test}/db/migrate/20091022150615_add_uri_key_to_services.rb +0 -0
- data/test/rails_test/features/step_definitions/comment_steps.rb +11 -0
- data/test/rails_test/features/step_definitions/common_steps.rb +93 -0
- data/test/rails_test/features/step_definitions/web_steps.rb +219 -0
- data/test/rails_test/features/step_definitions/webrat_steps.rb +128 -0
- data/test/rails_test/features/support/custom_env.rb +19 -0
- data/test/rails_test/features/support/env.rb +58 -0
- data/test/rails_test/features/support/paths.rb +33 -0
- data/test/rails_test/public/dispatch.rb +10 -0
- data/test/rails_test/spec/spec_helper.rb +5 -0
- metadata +151 -117
- data/install.rb +0 -1
- data/lib/muck_raker.rb +0 -0
- data/lib/muck_raker/tasks.rb +0 -167
- data/rails/init.rb +0 -2
- data/tasks/muck_raker_tasks.rake +0 -1
- data/test/rails_root/config/boot.rb +0 -109
- data/test/rails_root/config/environment.rb +0 -20
- data/test/rails_root/config/environments/development.rb +0 -21
- data/test/rails_root/config/environments/production.rb +0 -1
- data/test/rails_root/config/environments/test.rb +0 -24
- data/test/rails_root/config/initializers/requires.rb +0 -13
- data/test/rails_root/config/initializers/session_store.rb +0 -8
- data/test/rails_root/config/routes.rb +0 -3
- data/test/rails_root/script/create_project.rb +0 -52
- data/uninstall.rb +0 -1
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/opt/local/bin/ruby
|
2
|
+
|
3
|
+
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
|
4
|
+
|
5
|
+
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
|
6
|
+
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
|
7
|
+
require "dispatcher"
|
8
|
+
|
9
|
+
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
|
10
|
+
Dispatcher.dispatch
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-raker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
-
- 0
|
8
7
|
- 3
|
9
|
-
-
|
10
|
-
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 3.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joel Duffin Justin Ball
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-15 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -109,11 +109,11 @@ files:
|
|
109
109
|
- db/migrate/20090924200750_add_uri_data_template_to_services.rb
|
110
110
|
- db/migrate/20091006183742_add_feed_count_to_aggregation.rb
|
111
111
|
- db/migrate/20091022150615_add_uri_key_to_services.rb
|
112
|
-
-
|
113
|
-
- lib/
|
114
|
-
- lib/
|
112
|
+
- lib/muck-raker.rb
|
113
|
+
- lib/muck-raker/config.rb
|
114
|
+
- lib/muck-raker/engine.rb
|
115
|
+
- lib/tasks/muck_raker.rake
|
115
116
|
- muck-raker.gemspec
|
116
|
-
- rails/init.rb
|
117
117
|
- raker/lib/aggregatord.jar
|
118
118
|
- raker/lib/aggregatord.properties
|
119
119
|
- raker/lib/axis.jar
|
@@ -163,61 +163,77 @@ files:
|
|
163
163
|
- raker/lib/solr/stax-utils.jar
|
164
164
|
- raker/lib/solr/wstx-asl-3.2.7.jar
|
165
165
|
- raker/lib/wsdl4j-1.5.1.jar
|
166
|
-
-
|
167
|
-
-
|
168
|
-
- test/
|
169
|
-
- test/
|
170
|
-
- test/
|
171
|
-
- test/
|
172
|
-
- test/
|
173
|
-
- test/
|
174
|
-
- test/
|
175
|
-
- test/
|
176
|
-
- test/
|
177
|
-
- test/
|
178
|
-
- test/
|
179
|
-
- test/
|
180
|
-
- test/
|
181
|
-
- test/
|
182
|
-
- test/
|
183
|
-
- test/
|
184
|
-
- test/
|
185
|
-
- test/
|
186
|
-
- test/
|
187
|
-
- test/
|
188
|
-
- test/
|
189
|
-
- test/
|
190
|
-
- test/
|
191
|
-
- test/
|
192
|
-
- test/
|
193
|
-
- test/
|
194
|
-
- test/
|
195
|
-
- test/
|
196
|
-
- test/
|
197
|
-
- test/
|
198
|
-
- test/
|
199
|
-
- test/
|
200
|
-
- test/
|
201
|
-
- test/
|
202
|
-
- test/
|
203
|
-
- test/
|
204
|
-
- test/
|
205
|
-
- test/
|
206
|
-
- test/
|
207
|
-
- test/
|
208
|
-
- test/
|
209
|
-
- test/
|
210
|
-
- test/
|
211
|
-
- test/
|
212
|
-
- test/
|
213
|
-
- test/
|
214
|
-
- test/
|
215
|
-
- test/
|
216
|
-
- test/
|
217
|
-
- test/
|
218
|
-
- test/
|
219
|
-
- test/
|
220
|
-
- test/
|
166
|
+
- test/rails_test/app/controllers/application_controller.rb
|
167
|
+
- test/rails_test/app/controllers/default_controller.rb
|
168
|
+
- test/rails_test/app/helpers/application_helper.rb
|
169
|
+
- test/rails_test/app/models/comment.rb
|
170
|
+
- test/rails_test/app/models/profile.rb
|
171
|
+
- test/rails_test/app/models/user.rb
|
172
|
+
- test/rails_test/app/models/user_session.rb
|
173
|
+
- test/rails_test/config/application.rb
|
174
|
+
- test/rails_test/config/boot.rb
|
175
|
+
- test/rails_test/config/environment.rb
|
176
|
+
- test/rails_test/config/environments/development.rb
|
177
|
+
- test/rails_test/config/environments/production.rb
|
178
|
+
- test/rails_test/config/environments/test.rb
|
179
|
+
- test/rails_test/config/initializers/backtrace_silencers.rb
|
180
|
+
- test/rails_test/config/initializers/inflections.rb
|
181
|
+
- test/rails_test/config/initializers/mime_types.rb
|
182
|
+
- test/rails_test/config/initializers/muck_raker.rb
|
183
|
+
- test/rails_test/config/initializers/secret_token.rb
|
184
|
+
- test/rails_test/config/initializers/session_store.rb
|
185
|
+
- test/rails_test/config/routes.rb
|
186
|
+
- test/rails_test/db/migrate/20090320174818_create_muck_permissions_and_roles.rb
|
187
|
+
- test/rails_test/db/migrate/20090402033319_add_muck_activities.rb
|
188
|
+
- test/rails_test/db/migrate/20090402234137_create_languages.rb
|
189
|
+
- test/rails_test/db/migrate/20090426041056_create_countries.rb
|
190
|
+
- test/rails_test/db/migrate/20090426041103_create_states.rb
|
191
|
+
- test/rails_test/db/migrate/20090602041838_create_users.rb
|
192
|
+
- test/rails_test/db/migrate/20090602191243_create_muck_raker.rb
|
193
|
+
- test/rails_test/db/migrate/20090613173314_create_comments.rb
|
194
|
+
- test/rails_test/db/migrate/20090619211125_create_tag_clouds.rb
|
195
|
+
- test/rails_test/db/migrate/20090623181458_add_grain_size_to_entries.rb
|
196
|
+
- test/rails_test/db/migrate/20090623193525_add_grain_size_to_tag_clouds.rb
|
197
|
+
- test/rails_test/db/migrate/20090703175825_denormalize_entries_subjects.rb
|
198
|
+
- test/rails_test/db/migrate/20090704220055_create_slugs.rb
|
199
|
+
- test/rails_test/db/migrate/20090704220120_acts_as_taggable_on_migration.rb
|
200
|
+
- test/rails_test/db/migrate/20090716035935_change_tag_cloud_grain_sizes.rb
|
201
|
+
- test/rails_test/db/migrate/20090717173900_add_contributor_to_feeds.rb
|
202
|
+
- test/rails_test/db/migrate/20090717175825_normalize_entries_subjects.rb
|
203
|
+
- test/rails_test/db/migrate/20090721043213_change_services_title_to_name.rb
|
204
|
+
- test/rails_test/db/migrate/20090721054927_remove_services_not_null_from_feeds.rb
|
205
|
+
- test/rails_test/db/migrate/20090723050510_create_feed_parents.rb
|
206
|
+
- test/rails_test/db/migrate/20090728165716_add_etag_to_feeds.rb
|
207
|
+
- test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
|
208
|
+
- test/rails_test/db/migrate/20090730045848_add_comment_cache_to_entries.rb
|
209
|
+
- test/rails_test/db/migrate/20090730154102_allow_null_user.rb
|
210
|
+
- test/rails_test/db/migrate/20090803185323_create_shares.rb
|
211
|
+
- test/rails_test/db/migrate/20090804184247_add_comment_count_to_shares.rb
|
212
|
+
- test/rails_test/db/migrate/20090804211240_add_entry_id_to_shares.rb
|
213
|
+
- test/rails_test/db/migrate/20090804231857_add_shares_uri_index.rb
|
214
|
+
- test/rails_test/db/migrate/20090818204527_add_activity_indexes.rb
|
215
|
+
- test/rails_test/db/migrate/20090819030523_add_attachable_to_activities.rb
|
216
|
+
- test/rails_test/db/migrate/20090826220530_change_services_sequence_to_sort.rb
|
217
|
+
- test/rails_test/db/migrate/20090826225652_create_identity_feeds.rb
|
218
|
+
- test/rails_test/db/migrate/20090827005105_add_identity_fields_to_services.rb
|
219
|
+
- test/rails_test/db/migrate/20090827015308_create_service_categories.rb
|
220
|
+
- test/rails_test/db/migrate/20090827221502_add_prompt_and_template_to_services.rb
|
221
|
+
- test/rails_test/db/migrate/20090915041650_aggregations_to_polymorphic.rb
|
222
|
+
- test/rails_test/db/migrate/20090922174200_update_oai_endpoints.rb
|
223
|
+
- test/rails_test/db/migrate/20090922231552_add_dates_to_oai_endpoints.rb
|
224
|
+
- test/rails_test/db/migrate/20090923150807_rename_name_in_aggregation.rb
|
225
|
+
- test/rails_test/db/migrate/20090924200750_add_uri_data_template_to_services.rb
|
226
|
+
- test/rails_test/db/migrate/20091006183742_add_feed_count_to_aggregation.rb
|
227
|
+
- test/rails_test/db/migrate/20091022150615_add_uri_key_to_services.rb
|
228
|
+
- test/rails_test/features/step_definitions/comment_steps.rb
|
229
|
+
- test/rails_test/features/step_definitions/common_steps.rb
|
230
|
+
- test/rails_test/features/step_definitions/web_steps.rb
|
231
|
+
- test/rails_test/features/step_definitions/webrat_steps.rb
|
232
|
+
- test/rails_test/features/support/custom_env.rb
|
233
|
+
- test/rails_test/features/support/env.rb
|
234
|
+
- test/rails_test/features/support/paths.rb
|
235
|
+
- test/rails_test/public/dispatch.rb
|
236
|
+
- test/rails_test/spec/spec_helper.rb
|
221
237
|
has_rdoc: true
|
222
238
|
homepage: http://github.com/tatemae/muck-raker
|
223
239
|
licenses: []
|
@@ -253,56 +269,74 @@ signing_key:
|
|
253
269
|
specification_version: 3
|
254
270
|
summary: The aggregation and recommendation daemons for the muck system
|
255
271
|
test_files:
|
256
|
-
- test/
|
257
|
-
- test/
|
258
|
-
- test/
|
259
|
-
- test/
|
260
|
-
- test/
|
261
|
-
- test/
|
262
|
-
- test/
|
263
|
-
- test/
|
264
|
-
- test/
|
265
|
-
- test/
|
266
|
-
- test/
|
267
|
-
- test/
|
268
|
-
- test/
|
269
|
-
- test/
|
270
|
-
- test/
|
271
|
-
- test/
|
272
|
-
- test/
|
273
|
-
- test/
|
274
|
-
- test/
|
275
|
-
- test/
|
276
|
-
- test/
|
277
|
-
- test/
|
278
|
-
- test/
|
279
|
-
- test/
|
280
|
-
- test/
|
281
|
-
- test/
|
282
|
-
- test/
|
283
|
-
- test/
|
284
|
-
- test/
|
285
|
-
- test/
|
286
|
-
- test/
|
287
|
-
- test/
|
288
|
-
- test/
|
289
|
-
- test/
|
290
|
-
- test/
|
291
|
-
- test/
|
292
|
-
- test/
|
293
|
-
- test/
|
294
|
-
- test/
|
295
|
-
- test/
|
296
|
-
- test/
|
297
|
-
- test/
|
298
|
-
- test/
|
299
|
-
- test/
|
300
|
-
- test/
|
301
|
-
- test/
|
302
|
-
- test/
|
303
|
-
- test/
|
304
|
-
- test/
|
305
|
-
- test/
|
306
|
-
- test/
|
307
|
-
- test/
|
308
|
-
- test/
|
272
|
+
- test/rails_test/app/controllers/application_controller.rb
|
273
|
+
- test/rails_test/app/controllers/default_controller.rb
|
274
|
+
- test/rails_test/app/helpers/application_helper.rb
|
275
|
+
- test/rails_test/app/models/comment.rb
|
276
|
+
- test/rails_test/app/models/profile.rb
|
277
|
+
- test/rails_test/app/models/user.rb
|
278
|
+
- test/rails_test/app/models/user_session.rb
|
279
|
+
- test/rails_test/config/application.rb
|
280
|
+
- test/rails_test/config/boot.rb
|
281
|
+
- test/rails_test/config/environment.rb
|
282
|
+
- test/rails_test/config/environments/development.rb
|
283
|
+
- test/rails_test/config/environments/production.rb
|
284
|
+
- test/rails_test/config/environments/test.rb
|
285
|
+
- test/rails_test/config/initializers/backtrace_silencers.rb
|
286
|
+
- test/rails_test/config/initializers/inflections.rb
|
287
|
+
- test/rails_test/config/initializers/mime_types.rb
|
288
|
+
- test/rails_test/config/initializers/muck_raker.rb
|
289
|
+
- test/rails_test/config/initializers/secret_token.rb
|
290
|
+
- test/rails_test/config/initializers/session_store.rb
|
291
|
+
- test/rails_test/config/routes.rb
|
292
|
+
- test/rails_test/db/migrate/20090320174818_create_muck_permissions_and_roles.rb
|
293
|
+
- test/rails_test/db/migrate/20090402033319_add_muck_activities.rb
|
294
|
+
- test/rails_test/db/migrate/20090402234137_create_languages.rb
|
295
|
+
- test/rails_test/db/migrate/20090426041056_create_countries.rb
|
296
|
+
- test/rails_test/db/migrate/20090426041103_create_states.rb
|
297
|
+
- test/rails_test/db/migrate/20090602041838_create_users.rb
|
298
|
+
- test/rails_test/db/migrate/20090602191243_create_muck_raker.rb
|
299
|
+
- test/rails_test/db/migrate/20090613173314_create_comments.rb
|
300
|
+
- test/rails_test/db/migrate/20090619211125_create_tag_clouds.rb
|
301
|
+
- test/rails_test/db/migrate/20090623181458_add_grain_size_to_entries.rb
|
302
|
+
- test/rails_test/db/migrate/20090623193525_add_grain_size_to_tag_clouds.rb
|
303
|
+
- test/rails_test/db/migrate/20090703175825_denormalize_entries_subjects.rb
|
304
|
+
- test/rails_test/db/migrate/20090704220055_create_slugs.rb
|
305
|
+
- test/rails_test/db/migrate/20090704220120_acts_as_taggable_on_migration.rb
|
306
|
+
- test/rails_test/db/migrate/20090716035935_change_tag_cloud_grain_sizes.rb
|
307
|
+
- test/rails_test/db/migrate/20090717173900_add_contributor_to_feeds.rb
|
308
|
+
- test/rails_test/db/migrate/20090717175825_normalize_entries_subjects.rb
|
309
|
+
- test/rails_test/db/migrate/20090721043213_change_services_title_to_name.rb
|
310
|
+
- test/rails_test/db/migrate/20090721054927_remove_services_not_null_from_feeds.rb
|
311
|
+
- test/rails_test/db/migrate/20090723050510_create_feed_parents.rb
|
312
|
+
- test/rails_test/db/migrate/20090728165716_add_etag_to_feeds.rb
|
313
|
+
- test/rails_test/db/migrate/20090730044139_add_comment_cache.rb
|
314
|
+
- test/rails_test/db/migrate/20090730045848_add_comment_cache_to_entries.rb
|
315
|
+
- test/rails_test/db/migrate/20090730154102_allow_null_user.rb
|
316
|
+
- test/rails_test/db/migrate/20090803185323_create_shares.rb
|
317
|
+
- test/rails_test/db/migrate/20090804184247_add_comment_count_to_shares.rb
|
318
|
+
- test/rails_test/db/migrate/20090804211240_add_entry_id_to_shares.rb
|
319
|
+
- test/rails_test/db/migrate/20090804231857_add_shares_uri_index.rb
|
320
|
+
- test/rails_test/db/migrate/20090818204527_add_activity_indexes.rb
|
321
|
+
- test/rails_test/db/migrate/20090819030523_add_attachable_to_activities.rb
|
322
|
+
- test/rails_test/db/migrate/20090826220530_change_services_sequence_to_sort.rb
|
323
|
+
- test/rails_test/db/migrate/20090826225652_create_identity_feeds.rb
|
324
|
+
- test/rails_test/db/migrate/20090827005105_add_identity_fields_to_services.rb
|
325
|
+
- test/rails_test/db/migrate/20090827015308_create_service_categories.rb
|
326
|
+
- test/rails_test/db/migrate/20090827221502_add_prompt_and_template_to_services.rb
|
327
|
+
- test/rails_test/db/migrate/20090915041650_aggregations_to_polymorphic.rb
|
328
|
+
- test/rails_test/db/migrate/20090922174200_update_oai_endpoints.rb
|
329
|
+
- test/rails_test/db/migrate/20090922231552_add_dates_to_oai_endpoints.rb
|
330
|
+
- test/rails_test/db/migrate/20090923150807_rename_name_in_aggregation.rb
|
331
|
+
- test/rails_test/db/migrate/20090924200750_add_uri_data_template_to_services.rb
|
332
|
+
- test/rails_test/db/migrate/20091006183742_add_feed_count_to_aggregation.rb
|
333
|
+
- test/rails_test/db/migrate/20091022150615_add_uri_key_to_services.rb
|
334
|
+
- test/rails_test/features/step_definitions/comment_steps.rb
|
335
|
+
- test/rails_test/features/step_definitions/common_steps.rb
|
336
|
+
- test/rails_test/features/step_definitions/web_steps.rb
|
337
|
+
- test/rails_test/features/step_definitions/webrat_steps.rb
|
338
|
+
- test/rails_test/features/support/custom_env.rb
|
339
|
+
- test/rails_test/features/support/env.rb
|
340
|
+
- test/rails_test/features/support/paths.rb
|
341
|
+
- test/rails_test/public/dispatch.rb
|
342
|
+
- test/rails_test/spec/spec_helper.rb
|
data/install.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Install hook code here
|
data/lib/muck_raker.rb
DELETED
File without changes
|
data/lib/muck_raker/tasks.rb
DELETED
@@ -1,167 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/tasklib'
|
3
|
-
require 'fileutils'
|
4
|
-
|
5
|
-
module MuckRaker
|
6
|
-
class Tasks < ::Rake::TaskLib
|
7
|
-
def initialize
|
8
|
-
ENV['DEBUG'] = 'true' unless ENV['DEBUG'] == 'false'
|
9
|
-
ENV['RAILS_ENV'] = 'development' unless ENV['RAILS_ENV']
|
10
|
-
define
|
11
|
-
end
|
12
|
-
|
13
|
-
private
|
14
|
-
def define
|
15
|
-
|
16
|
-
namespace :muck do
|
17
|
-
|
18
|
-
namespace :sync do
|
19
|
-
desc "Sync files from muck raker."
|
20
|
-
task :raker do
|
21
|
-
path = File.join(File.dirname(__FILE__), *%w[.. ..])
|
22
|
-
system "rsync -ruv #{path}/db ."
|
23
|
-
system "rsync -ruv #{path}/config/solr ./config"
|
24
|
-
system "rsync -ruv #{path}/config/solr.yml ./config" if !File.exist?('.config/solr.yml')
|
25
|
-
system "rsync -ruv #{path}/config/initializers/muck_raker.rb ./config/initializers" if !File.exist?('.config/initializsers/muck_raker.rb')
|
26
|
-
puts "Copied muck-raker migrations, solr config files and initializer"
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
namespace :raker do
|
31
|
-
|
32
|
-
desc "Start muck-raker daemon running continuously."
|
33
|
-
task :start => :environment do
|
34
|
-
daemon_task 'daemon'
|
35
|
-
end
|
36
|
-
|
37
|
-
desc "Stop a raker daemon process."
|
38
|
-
task :stop => :environment do
|
39
|
-
file_path = "#{RAKER_PIDS_PATH}/#{ENV['RAILS_ENV']}_pid"
|
40
|
-
if File.exists?(file_path)
|
41
|
-
File.open(file_path, "r") do |f|
|
42
|
-
pid = f.readline
|
43
|
-
Process.kill('TERM', pid.to_i)
|
44
|
-
end
|
45
|
-
File.unlink(file_path)
|
46
|
-
puts "Raker shutdown successfully."
|
47
|
-
else
|
48
|
-
puts "PID file not found at #{file_path}. Either Raker is not running or no PID file was written."
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
desc "Redo everything and quit."
|
53
|
-
task :start_redo => :environment do
|
54
|
-
daemon_task 'daemon', 'redo'
|
55
|
-
end
|
56
|
-
|
57
|
-
desc "Harvest stale feeds."
|
58
|
-
task :harvest => :environment do
|
59
|
-
daemon_task 'harvest'
|
60
|
-
end
|
61
|
-
|
62
|
-
desc "Index new entries."
|
63
|
-
task :index => :environment do
|
64
|
-
daemon_task 'index'
|
65
|
-
end
|
66
|
-
|
67
|
-
desc "Re-index all entries."
|
68
|
-
task :index_redo => :environment do
|
69
|
-
daemon_task 'index', 'redo'
|
70
|
-
end
|
71
|
-
|
72
|
-
desc "Incrementally update recommendations (create recommendations for newly harvested records)."
|
73
|
-
task :recommend => :environment do
|
74
|
-
daemon_task 'recommend'
|
75
|
-
end
|
76
|
-
|
77
|
-
desc "Redo all recommendations."
|
78
|
-
task :recommend_redo => :environment do
|
79
|
-
daemon_task 'recommend', 'redo'
|
80
|
-
end
|
81
|
-
|
82
|
-
desc "Auto-generate tags for new entries that don't have at least 4."
|
83
|
-
task :subjects => :environment do
|
84
|
-
daemon_task 'subjects'
|
85
|
-
end
|
86
|
-
|
87
|
-
desc "Re-generate tag clouds."
|
88
|
-
task :tag_clouds => :environment do
|
89
|
-
daemon_task 'tag_clouds', 'redo'
|
90
|
-
end
|
91
|
-
|
92
|
-
def show_options
|
93
|
-
puts "RAILS_ENV=#{ENV['RAILS_ENV']} "
|
94
|
-
puts "solr.solr.home=\"#{SOLR_CONFIG_PATH}\" "
|
95
|
-
puts "solr.data.dir=\"#{SOLR_DATA_PATH}\""
|
96
|
-
puts "RAKER_PIDS_PATH=\"#{RAKER_PIDS_PATH}\" "
|
97
|
-
puts "recommender.database.config_file=\"#{RAKER_DATABASE_CONFIG_FILE}\" "
|
98
|
-
puts "recommender.log_file=\"#{RAKER_LOGS_PATH}/raker.log\" "
|
99
|
-
puts "recommender.log_to_console=\"#{ENV['DEBUG']}\" "
|
100
|
-
puts "aggregator.feed_archive_path=\"#{RAKER_FEED_ARCHIVE_PATH}\" "
|
101
|
-
end
|
102
|
-
|
103
|
-
def daemon_task task = 'all', task_param = nil
|
104
|
-
require File.expand_path("#{File.dirname(__FILE__)}/../../config/muck_raker_environment")
|
105
|
-
task_param ||= (ENV['redo'] == 'true') ? 'redo' : ''
|
106
|
-
FileUtils.mkdir_p(RAKER_PIDS_PATH)
|
107
|
-
FileUtils.mkdir_p(RAKER_LOGS_PATH)
|
108
|
-
FileUtils.mkdir_p(RAKER_FEED_ARCHIVE_PATH)
|
109
|
-
show_options
|
110
|
-
options = "-DRAILS_ENV=#{ENV['RAILS_ENV']} "
|
111
|
-
options << "-DDEBUG=#{ENV['DEBUG']} "
|
112
|
-
options << "-Dsolr.solr.home=\"#{SOLR_CONFIG_PATH}\" "
|
113
|
-
options << "-Dsolr.data.dir=\"#{SOLR_DATA_PATH}\" "
|
114
|
-
options << "-Drecommender.database.config_file=\"#{RAKER_DATABASE_CONFIG_FILE}\" "
|
115
|
-
options << "-Drecommender.log_file=\"#{RAKER_LOGS_PATH}/raker.log\" "
|
116
|
-
options << "-Drecommender.log_to_console=\"#{ENV['DEBUG']}\" "
|
117
|
-
options << "-Daggregator.feed_archive_path=\"#{RAKER_FEED_ARCHIVE_PATH}\" "
|
118
|
-
javaclass = "edu.usu.cosl.recommenderd.Recommenderd "
|
119
|
-
separator = (RUBY_PLATFORM =~ /(win|w)32$/ ? ';' : ':')
|
120
|
-
Dir.chdir(File.join(File.dirname(__FILE__), '../../', 'raker', 'lib')) do
|
121
|
-
jars = Dir['*.jar','solr/*.jar'].join(separator)
|
122
|
-
classpath = "-classpath #{jars}#{separator}. "
|
123
|
-
cmd = "nice -n 2 java " + options + classpath + javaclass + task + ' ' + task_param
|
124
|
-
puts ("Executing: " + cmd)
|
125
|
-
windows = RUBY_PLATFORM =~ /(win|w)32$/
|
126
|
-
if windows
|
127
|
-
exec cmd
|
128
|
-
else
|
129
|
-
pid = fork do
|
130
|
-
exec cmd
|
131
|
-
end
|
132
|
-
end
|
133
|
-
sleep(5)
|
134
|
-
File.open("#{RAKER_PIDS_PATH}/#{ENV['RAILS_ENV']}_pid", "w"){ |f| f << pid} unless windows
|
135
|
-
puts "#{ENV['RAILS_ENV']} Muck raker command started successfully, pid: #{pid}."
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
desc "Reload solr indexes."
|
140
|
-
task :reload_indexes do
|
141
|
-
require File.expand_path("#{File.dirname(__FILE__)}/../../config/muck_raker_environment")
|
142
|
-
reload_cores
|
143
|
-
puts "Reloaded solr indexes"
|
144
|
-
end
|
145
|
-
|
146
|
-
def reload_cores
|
147
|
-
['en', 'es', 'zh-CN', 'fr', 'ja', 'de', 'ru', 'nl'].each{|core|
|
148
|
-
Net::HTTP.new('127.0.0.1', SOLR_PORT).request_head('/solr/admin/cores?action=RELOAD&core=' + core).value
|
149
|
-
}
|
150
|
-
end
|
151
|
-
|
152
|
-
desc "Import attention data for use in testing."
|
153
|
-
task :import_attention => :environment do
|
154
|
-
require 'active_record/fixtures'
|
155
|
-
ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
|
156
|
-
yml = File.join(RAILS_ROOT, 'db', 'bootstrap', 'attention')
|
157
|
-
Fixtures.new(Attention.connection,"attention",Attention,yml).insert_fixtures
|
158
|
-
end
|
159
|
-
|
160
|
-
end
|
161
|
-
|
162
|
-
end
|
163
|
-
|
164
|
-
end
|
165
|
-
end
|
166
|
-
end
|
167
|
-
MuckRaker::Tasks.new
|