muck-raker 0.2.11 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -83
- data/Rakefile +7 -45
- data/VERSION +1 -1
- data/config/muck_raker_environment.rb +6 -2
- data/lib/muck_raker/tasks.rb +140 -30
- data/muck-raker.gemspec +36 -754
- data/rails/init.rb +0 -15
- data/raker/lib/aggregatord.jar +0 -0
- data/raker/lib/recommenderd.jar +0 -0
- data/raker/lib/recommenderd.properties +26 -19
- data/raker/lib/{apache-solr-common-1.3.0.jar → solr/apache-solr-common-1.3.0.jar} +0 -0
- data/raker/lib/{apache-solr-core-1.3.0.jar → solr/apache-solr-core-1.3.0.jar} +0 -0
- data/raker/lib/{apache-solr-dataimporthandler-1.3.0.jar → solr/apache-solr-dataimporthandler-1.3.0.jar} +0 -0
- data/raker/lib/{commons-codec-1.3.jar → solr/commons-codec-1.3.jar} +0 -0
- data/raker/lib/{commons-csv-1.0-SNAPSHOT-r609327.jar → solr/commons-csv-1.0-SNAPSHOT-r609327.jar} +0 -0
- data/raker/lib/{commons-fileupload-1.2.jar → solr/commons-fileupload-1.2.jar} +0 -0
- data/raker/lib/{commons-httpclient-3.1.jar → solr/commons-httpclient-3.1.jar} +0 -0
- data/raker/lib/{commons-io-1.3.1.jar → solr/commons-io-1.3.1.jar} +0 -0
- data/raker/lib/{commons-logging-1.0.4.jar → solr/commons-logging-1.0.4.jar} +0 -0
- data/raker/lib/{geronimo-stax-api_1.0_spec-1.0.1.jar → solr/geronimo-stax-api_1.0_spec-1.0.1.jar} +0 -0
- data/raker/lib/{junit-4.3.jar → solr/junit-4.3.jar} +0 -0
- data/raker/lib/{lucene-analyzers-2.4-dev.jar → solr/lucene-analyzers-2.4-dev.jar} +0 -0
- data/raker/lib/{lucene-core-2.4-dev.jar → solr/lucene-core-2.4-dev.jar} +0 -0
- data/raker/lib/{lucene-highlighter-2.4-dev.jar → solr/lucene-highlighter-2.4-dev.jar} +0 -0
- data/raker/lib/{lucene-memory-2.4-dev.jar → solr/lucene-memory-2.4-dev.jar} +0 -0
- data/raker/lib/{lucene-queries-2.4-dev.jar → solr/lucene-queries-2.4-dev.jar} +0 -0
- data/raker/lib/{lucene-snowball-2.4-dev.jar → solr/lucene-snowball-2.4-dev.jar} +0 -0
- data/raker/lib/{lucene-spellchecker-2.4-dev.jar → solr/lucene-spellchecker-2.4-dev.jar} +0 -0
- data/raker/lib/{solr-commons-csv-pom.xml.template → solr/solr-commons-csv-pom.xml.template} +0 -0
- data/raker/lib/{solr-lucene-analyzers-pom.xml.template → solr/solr-lucene-analyzers-pom.xml.template} +0 -0
- data/raker/lib/{solr-lucene-contrib-pom.xml.template → solr/solr-lucene-contrib-pom.xml.template} +0 -0
- data/raker/lib/{solr-lucene-core-pom.xml.template → solr/solr-lucene-core-pom.xml.template} +0 -0
- data/raker/lib/{solr-lucene-highlighter-pom.xml.template → solr/solr-lucene-highlighter-pom.xml.template} +0 -0
- data/raker/lib/{solr-lucene-queries-pom.xml.template → solr/solr-lucene-queries-pom.xml.template} +0 -0
- data/raker/lib/{solr-lucene-snowball-pom.xml.template → solr/solr-lucene-snowball-pom.xml.template} +0 -0
- data/raker/lib/{solr-lucene-spellchecker-pom.xml.template → solr/solr-lucene-spellchecker-pom.xml.template} +0 -0
- data/raker/lib/{stax-utils.jar → solr/stax-utils.jar} +0 -0
- data/raker/lib/{wstx-asl-3.2.7.jar → solr/wstx-asl-3.2.7.jar} +0 -0
- data/test/rails_root/config/environment.rb +0 -17
- data/test/rails_root/config/environments/development.rb +0 -15
- data/test/rails_root/config/environments/test.rb +0 -10
- data/test/rails_root/config/routes.rb +0 -8
- metadata +35 -836
- data/.gitignore +0 -30
- data/app/controllers/admin/muck/feeds_controller.rb +0 -40
- data/app/controllers/admin/muck/oai_endpoints_controller.rb +0 -13
- data/app/controllers/muck/aggregation_feeds_controller.rb +0 -43
- data/app/controllers/muck/aggregations_controller.rb +0 -234
- data/app/controllers/muck/entries_controller.rb +0 -102
- data/app/controllers/muck/feed_previews_controller.rb +0 -33
- data/app/controllers/muck/feeds_controller.rb +0 -157
- data/app/controllers/muck/identity_feeds_controller.rb +0 -155
- data/app/controllers/muck/oai_endpoints_controller.rb +0 -96
- data/app/controllers/muck/recommendations_controller.rb +0 -62
- data/app/controllers/muck/topics_controller.rb +0 -162
- data/app/controllers/muck/visits_controller.rb +0 -26
- data/app/helpers/muck_raker_aggregations_helper.rb +0 -32
- data/app/helpers/muck_raker_feeds_helper.rb +0 -32
- data/app/helpers/muck_raker_helper.rb +0 -95
- data/app/helpers/muck_raker_services_helper.rb +0 -117
- data/app/models/aggregation.rb +0 -92
- data/app/models/aggregation_feed.rb +0 -14
- data/app/models/attention.rb +0 -14
- data/app/models/click.rb +0 -14
- data/app/models/entry.rb +0 -341
- data/app/models/feed.rb +0 -224
- data/app/models/feed_parent.rb +0 -18
- data/app/models/identity_feed.rb +0 -26
- data/app/models/oai_endpoint.rb +0 -39
- data/app/models/raker_mailer.rb +0 -25
- data/app/models/recommendation.rb +0 -15
- data/app/models/service.rb +0 -486
- data/app/models/service_category.rb +0 -15
- data/app/models/subject.rb +0 -10
- data/app/models/tag_cloud.rb +0 -21
- data/app/views/activity_templates/_entry_comment.html.erb +0 -8
- data/app/views/activity_templates/_entry_share.html.erb +0 -8
- data/app/views/admin/feeds/index.html.erb +0 -35
- data/app/views/admin/oai_endpoints/index.html.erb +0 -31
- data/app/views/aggregations/_aggregation.html.erb +0 -1
- data/app/views/aggregations/_data_source.html.erb +0 -4
- data/app/views/aggregations/_data_sources.html.erb +0 -10
- data/app/views/aggregations/_feeds.html.erb +0 -1
- data/app/views/aggregations/_preview_form.html.erb +0 -12
- data/app/views/aggregations/edit.html.erb +0 -65
- data/app/views/aggregations/index.html.erb +0 -17
- data/app/views/aggregations/index.iphone.erb +0 -0
- data/app/views/aggregations/new.html.erb +0 -12
- data/app/views/aggregations/preview.html.erb +0 -46
- data/app/views/aggregations/preview.iphone.erb +0 -0
- data/app/views/aggregations/rss_discovery.html.erb +0 -3
- data/app/views/aggregations/show.html.erb +0 -0
- data/app/views/default/_language_list.html.erb +0 -5
- data/app/views/entries/_related_entry.html.erb +0 -4
- data/app/views/entries/_result.html.erb +0 -7
- data/app/views/entries/_result_status.html.erb +0 -16
- data/app/views/entries/_results.html.erb +0 -3
- data/app/views/entries/_tag_cloud.html.erb +0 -18
- data/app/views/entries/browse_by_tags.html.erb +0 -16
- data/app/views/entries/collections.html.erb +0 -28
- data/app/views/entries/details.html.erb +0 -25
- data/app/views/entries/index.html.erb +0 -3
- data/app/views/entries/search.html.erb +0 -10
- data/app/views/entries/show.html.erb +0 -7
- data/app/views/entries/track_clicks.html.erb +0 -0
- data/app/views/feed_previews/new.html.erb +0 -1
- data/app/views/feed_previews/select_feeds.html.erb +0 -6
- data/app/views/feeds/_entry.html.erb +0 -1
- data/app/views/feeds/_feed.html.erb +0 -28
- data/app/views/feeds/_feed_row.html.erb +0 -29
- data/app/views/feeds/_feed_selection.html.erb +0 -1
- data/app/views/feeds/_form.html.erb +0 -20
- data/app/views/feeds/edit.html.erb +0 -107
- data/app/views/feeds/harvest_now.html.erb +0 -3
- data/app/views/feeds/index.html.erb +0 -34
- data/app/views/feeds/new.html.erb +0 -21
- data/app/views/feeds/new_extended.html.erb +0 -32
- data/app/views/feeds/new_oai_rss.html.erb +0 -50
- data/app/views/feeds/show.html.erb +0 -1
- data/app/views/feeds/unban.html.erb +0 -3
- data/app/views/identity_feeds/_available_service_categories.html.erb +0 -13
- data/app/views/identity_feeds/_form.html.erb +0 -20
- data/app/views/identity_feeds/_services_for_user.html.erb +0 -25
- data/app/views/identity_feeds/edit.html.erb +0 -2
- data/app/views/identity_feeds/index.html.erb +0 -32
- data/app/views/identity_feeds/new.html.erb +0 -1
- data/app/views/oai_endpoints/_form.html.erb +0 -22
- data/app/views/oai_endpoints/_oai_endpoint_row.html.erb +0 -25
- data/app/views/oai_endpoints/new.html.erb +0 -2
- data/app/views/oai_endpoints/show.html.erb +0 -5
- data/app/views/parts/_add_feed.html.erb +0 -20
- data/app/views/parts/_select_feed.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.ar.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.ar.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.bg.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.bg.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.ca.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.ca.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.cs.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.cs.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.da.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.da.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.de.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.de.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.el.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.el.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.es.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.es.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.et.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.et.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.fa.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.fa.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.fi.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.fi.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.fr.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.fr.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.gl.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.gl.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.hi.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.hi.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.hr.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.hr.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.hu.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.hu.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.id.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.id.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.it.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.it.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.iw.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.iw.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.ja.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.ja.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.ko.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.ko.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.lt.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.lt.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.lv.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.lv.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.mt.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.mt.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.nl.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.nl.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.no.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.no.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.pl.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.pl.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.pt-PT.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.pt-PT.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.ro.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.ro.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.ru.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.ru.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.sk.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.sk.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.sl.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.sl.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.sq.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.sq.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.sr.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.sr.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.sv.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.sv.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.th.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.th.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.tl.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.tl.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.tr.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.tr.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.uk.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.uk.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.vi.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.vi.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.zh-CN.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.zh-CN.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.zh-TW.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.zh-TW.plain.erb +0 -7
- data/app/views/raker_mailer/notification_feed_added.text.zh.html.erb +0 -4
- data/app/views/raker_mailer/notification_feed_added.text.zh.plain.erb +0 -7
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ar.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ar.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.bg.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.bg.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ca.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ca.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.cs.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.cs.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.da.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.da.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.de.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.de.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.el.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.el.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.es.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.es.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.et.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.et.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fa.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fa.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fi.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fi.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fr.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fr.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.gl.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.gl.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hi.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hi.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hr.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hr.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hu.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hu.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.id.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.id.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.it.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.it.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.iw.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.iw.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ja.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ja.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ko.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ko.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.lt.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.lt.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.lv.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.lv.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.mt.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.mt.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.nl.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.nl.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.no.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.no.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.pl.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.pl.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.pt-PT.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.pt-PT.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ro.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ro.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ru.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ru.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sk.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sk.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sl.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sl.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sq.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sq.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sr.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sr.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sv.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sv.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.th.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.th.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.tl.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.tl.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.tr.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.tr.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.uk.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.uk.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.vi.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.vi.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh-CN.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh-CN.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh-TW.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh-TW.plain.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh.html.erb +0 -4
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh.plain.erb +0 -4
- data/app/views/recommendations/index.html.erb +0 -5
- data/app/views/recommendations/index.pjs.erb +0 -44
- data/app/views/recommendations/index.rss.builder +0 -37
- data/app/views/recommendations/index.xml.builder +0 -36
- data/app/views/recommendations/index_js.pjs.erb +0 -39
- data/app/views/recommendations/index_real_time.pjs.erb +0 -44
- data/app/views/recommendations/index_real_time.xml.builder +0 -25
- data/app/views/search/_languages.html.erb +0 -6
- data/app/views/search/_result.html.erb +0 -9
- data/app/views/search/_search_box.html.erb +0 -9
- data/app/views/search/index.html.erb +0 -5
- data/app/views/search/results.atom.builder +0 -27
- data/app/views/search/results.html.erb +0 -35
- data/app/views/search/results.pjs.erb +0 -13
- data/app/views/search/results.rdf.builder +0 -24
- data/app/views/search/results.rss.builder +0 -31
- data/app/views/search/results.xml.builder +0 -19
- data/app/views/service_templates/_facebook.html.erb +0 -4
- data/app/views/service_templates/_friendfeed.html.erb +0 -2
- data/app/views/service_templates/_goodreads.html.erb +0 -2
- data/app/views/service_templates/_linkedin.html.erb +0 -2
- data/app/views/service_templates/_netflix.html.erb +0 -2
- data/app/views/service_templates/_polyvore.html.erb +0 -2
- data/app/views/service_templates/_zotero_group.html.erb +0 -2
- data/app/views/services/_edit_service.html.erb +0 -1
- data/app/views/services/_new_service.html.erb +0 -1
- data/app/views/services/_summary.html.erb +0 -5
- data/app/views/services/_view_service.html.erb +0 -1
- data/app/views/topics/_entry.html.erb +0 -19
- data/app/views/topics/_feed.html.erb +0 -24
- data/app/views/topics/_feed_preview.html.erb +0 -18
- data/app/views/topics/_form.html.erb +0 -15
- data/app/views/topics/_rss_discover.html.erb +0 -1
- data/app/views/topics/_simple_entry.html.erb +0 -7
- data/app/views/topics/new.html.erb +0 -27
- data/app/views/topics/photos.html.erb +0 -14
- data/app/views/topics/show.html.erb +0 -80
- data/app/views/topics/show.opml.builder +0 -18
- data/app/views/topics/videos.html.erb +0 -14
- data/app/views/visits/_comments_tool.html.erb +0 -19
- data/app/views/visits/_frame_scripts.html.erb +0 -26
- data/app/views/visits/_share_tool.html.erb +0 -22
- data/app/views/visits/_toolbar.html.erb +0 -25
- data/app/views/visits/show.html.erb +0 -7
- data/config/muck_raker_routes.rb +0 -37
- data/lib/active_record/acts/muck_aggregation_owner.rb +0 -30
- data/lib/active_record/acts/muck_feed_owner.rb +0 -31
- data/lib/active_record/acts/muck_feed_parent.rb +0 -23
- data/lib/active_record/acts/muck_raker_comment.rb +0 -39
- data/lib/active_record/acts/muck_raker_share.rb +0 -32
- data/lib/muck_raker/exceptions.rb +0 -5
- data/lib/muck_raker/initialize_routes.rb +0 -8
- data/lib/muck_raker/languages.rb +0 -57
- data/lib/muck_raker/muck_custom_form_builder.rb +0 -22
- data/lib/muck_raker/services.rb +0 -12
- data/lib/muck_raker.rb +0 -21
- data/locales/ar.yml +0 -210
- data/locales/bg.yml +0 -210
- data/locales/ca.yml +0 -210
- data/locales/cs.yml +0 -210
- data/locales/da.yml +0 -210
- data/locales/de.yml +0 -210
- data/locales/el.yml +0 -210
- data/locales/en.yml +0 -213
- data/locales/es.yml +0 -210
- data/locales/et.yml +0 -210
- data/locales/fa.yml +0 -210
- data/locales/fi.yml +0 -210
- data/locales/fr.yml +0 -210
- data/locales/gl.yml +0 -210
- data/locales/hi.yml +0 -210
- data/locales/hr.yml +0 -210
- data/locales/hu.yml +0 -210
- data/locales/id.yml +0 -210
- data/locales/it.yml +0 -210
- data/locales/iw.yml +0 -210
- data/locales/ja.yml +0 -210
- data/locales/ko.yml +0 -210
- data/locales/lt.yml +0 -210
- data/locales/lv.yml +0 -210
- data/locales/mt.yml +0 -210
- data/locales/nl.yml +0 -210
- data/locales/no.yml +0 -211
- data/locales/pl.yml +0 -210
- data/locales/pt-PT.yml +0 -210
- data/locales/ro.yml +0 -210
- data/locales/ru.yml +0 -210
- data/locales/sk.yml +0 -210
- data/locales/sl.yml +0 -210
- data/locales/sq.yml +0 -210
- data/locales/sr.yml +0 -210
- data/locales/sv.yml +0 -210
- data/locales/th.yml +0 -210
- data/locales/tl.yml +0 -210
- data/locales/tr.yml +0 -210
- data/locales/uk.yml +0 -210
- data/locales/vi.yml +0 -210
- data/locales/zh-CN.yml +0 -210
- data/locales/zh-TW.yml +0 -210
- data/locales/zh.yml +0 -210
- data/public/images/service_icons/16/amazon.png +0 -0
- data/public/images/service_icons/16/ask.png +0 -0
- data/public/images/service_icons/16/bibsonomy.png +0 -0
- data/public/images/service_icons/16/bing.png +0 -0
- data/public/images/service_icons/16/blogger.png +0 -0
- data/public/images/service_icons/16/bloglines.png +0 -0
- data/public/images/service_icons/16/citeulike.png +0 -0
- data/public/images/service_icons/16/clipmarks.png +0 -0
- data/public/images/service_icons/16/connotea.png +0 -0
- data/public/images/service_icons/16/dailymotion.png +0 -0
- data/public/images/service_icons/16/delicious.png +0 -0
- data/public/images/service_icons/16/digg.png +0 -0
- data/public/images/service_icons/16/diigo.png +0 -0
- data/public/images/service_icons/16/facebook.png +0 -0
- data/public/images/service_icons/16/feed.png +0 -0
- data/public/images/service_icons/16/flickr.png +0 -0
- data/public/images/service_icons/16/fotolog.png +0 -0
- data/public/images/service_icons/16/friendfeed.png +0 -0
- data/public/images/service_icons/16/friendster.png +0 -0
- data/public/images/service_icons/16/furl.png +0 -0
- data/public/images/service_icons/16/goodreads.png +0 -0
- data/public/images/service_icons/16/google.png +0 -0
- data/public/images/service_icons/16/googleblog.png +0 -0
- data/public/images/service_icons/16/googlenews.png +0 -0
- data/public/images/service_icons/16/icerocket.png +0 -0
- data/public/images/service_icons/16/identica.png +0 -0
- data/public/images/service_icons/16/joost.png +0 -0
- data/public/images/service_icons/16/lastfm.png +0 -0
- data/public/images/service_icons/16/librarything.png +0 -0
- data/public/images/service_icons/16/linkedin.png +0 -0
- data/public/images/service_icons/16/livejournal.png +0 -0
- data/public/images/service_icons/16/magnolia.png +0 -0
- data/public/images/service_icons/16/mendeley.png +0 -0
- data/public/images/service_icons/16/metacafe.png +0 -0
- data/public/images/service_icons/16/mixx.png +0 -0
- data/public/images/service_icons/16/myspace.png +0 -0
- data/public/images/service_icons/16/netflix.png +0 -0
- data/public/images/service_icons/16/netvibes.png +0 -0
- data/public/images/service_icons/16/newsvine.png +0 -0
- data/public/images/service_icons/16/oai.png +0 -0
- data/public/images/service_icons/16/odeo.png +0 -0
- data/public/images/service_icons/16/opml.png +0 -0
- data/public/images/service_icons/16/pandora.png +0 -0
- data/public/images/service_icons/16/photobucket.png +0 -0
- data/public/images/service_icons/16/picasa.png +0 -0
- data/public/images/service_icons/16/polyvore.png +0 -0
- data/public/images/service_icons/16/pownce.png +0 -0
- data/public/images/service_icons/16/reddit.png +0 -0
- data/public/images/service_icons/16/simpy.png +0 -0
- data/public/images/service_icons/16/smugmug.png +0 -0
- data/public/images/service_icons/16/stumbleupon.png +0 -0
- data/public/images/service_icons/16/tag.png +0 -0
- data/public/images/service_icons/16/technorati.png +0 -0
- data/public/images/service_icons/16/tumblr.png +0 -0
- data/public/images/service_icons/16/twine.png +0 -0
- data/public/images/service_icons/16/twitter.png +0 -0
- data/public/images/service_icons/16/vimeo.png +0 -0
- data/public/images/service_icons/16/webshots.png +0 -0
- data/public/images/service_icons/16/wordpress.png +0 -0
- data/public/images/service_icons/16/xanga.png +0 -0
- data/public/images/service_icons/16/yahoo.png +0 -0
- data/public/images/service_icons/16/yelp.png +0 -0
- data/public/images/service_icons/16/youtube.png +0 -0
- data/public/images/service_icons/16/zooomr.png +0 -0
- data/public/images/service_icons/16/zotero.png +0 -0
- data/public/images/service_icons/24/amazon.png +0 -0
- data/public/images/service_icons/24/ask.png +0 -0
- data/public/images/service_icons/24/bibsonomy.png +0 -0
- data/public/images/service_icons/24/bing.png +0 -0
- data/public/images/service_icons/24/blogger.png +0 -0
- data/public/images/service_icons/24/bloglines.png +0 -0
- data/public/images/service_icons/24/citeulike.png +0 -0
- data/public/images/service_icons/24/clipmarks.png +0 -0
- data/public/images/service_icons/24/connotea.png +0 -0
- data/public/images/service_icons/24/dailymotion.png +0 -0
- data/public/images/service_icons/24/delicious.png +0 -0
- data/public/images/service_icons/24/digg.png +0 -0
- data/public/images/service_icons/24/diigo.png +0 -0
- data/public/images/service_icons/24/facebook.png +0 -0
- data/public/images/service_icons/24/feed.png +0 -0
- data/public/images/service_icons/24/flickr.png +0 -0
- data/public/images/service_icons/24/fotolog.png +0 -0
- data/public/images/service_icons/24/friendfeed.png +0 -0
- data/public/images/service_icons/24/friendster.png +0 -0
- data/public/images/service_icons/24/furl.png +0 -0
- data/public/images/service_icons/24/goodreads.png +0 -0
- data/public/images/service_icons/24/google.png +0 -0
- data/public/images/service_icons/24/googleblog.png +0 -0
- data/public/images/service_icons/24/googlenews.png +0 -0
- data/public/images/service_icons/24/icerocket.png +0 -0
- data/public/images/service_icons/24/identica.png +0 -0
- data/public/images/service_icons/24/joost.png +0 -0
- data/public/images/service_icons/24/lastfm.png +0 -0
- data/public/images/service_icons/24/librarything.png +0 -0
- data/public/images/service_icons/24/linkedin.png +0 -0
- data/public/images/service_icons/24/livejournal.png +0 -0
- data/public/images/service_icons/24/magnolia.png +0 -0
- data/public/images/service_icons/24/mendeley.png +0 -0
- data/public/images/service_icons/24/metacafe.png +0 -0
- data/public/images/service_icons/24/mixx.png +0 -0
- data/public/images/service_icons/24/myspace.png +0 -0
- data/public/images/service_icons/24/netflix.png +0 -0
- data/public/images/service_icons/24/netvibes.png +0 -0
- data/public/images/service_icons/24/newsvine.png +0 -0
- data/public/images/service_icons/24/oai.png +0 -0
- data/public/images/service_icons/24/odeo.png +0 -0
- data/public/images/service_icons/24/opml.png +0 -0
- data/public/images/service_icons/24/pandora.png +0 -0
- data/public/images/service_icons/24/photobucket.png +0 -0
- data/public/images/service_icons/24/picasa.png +0 -0
- data/public/images/service_icons/24/polyvore.png +0 -0
- data/public/images/service_icons/24/pownce.png +0 -0
- data/public/images/service_icons/24/reddit.png +0 -0
- data/public/images/service_icons/24/simpy.png +0 -0
- data/public/images/service_icons/24/smugmug.png +0 -0
- data/public/images/service_icons/24/stumbleupon.png +0 -0
- data/public/images/service_icons/24/tag.png +0 -0
- data/public/images/service_icons/24/technorati.png +0 -0
- data/public/images/service_icons/24/tumblr.png +0 -0
- data/public/images/service_icons/24/twine.png +0 -0
- data/public/images/service_icons/24/twitter.png +0 -0
- data/public/images/service_icons/24/vimeo.png +0 -0
- data/public/images/service_icons/24/webshots.png +0 -0
- data/public/images/service_icons/24/wordpress.png +0 -0
- data/public/images/service_icons/24/xanga.png +0 -0
- data/public/images/service_icons/24/yahoo.png +0 -0
- data/public/images/service_icons/24/yelp.png +0 -0
- data/public/images/service_icons/24/youtube.png +0 -0
- data/public/images/service_icons/24/zooomr.png +0 -0
- data/public/images/service_icons/24/zotero.png +0 -0
- data/public/images/service_icons/48/amazon.png +0 -0
- data/public/images/service_icons/48/ask.png +0 -0
- data/public/images/service_icons/48/bibsonomy.png +0 -0
- data/public/images/service_icons/48/bing.png +0 -0
- data/public/images/service_icons/48/blogger.png +0 -0
- data/public/images/service_icons/48/bloglines.png +0 -0
- data/public/images/service_icons/48/citeulike.png +0 -0
- data/public/images/service_icons/48/clipmarks.png +0 -0
- data/public/images/service_icons/48/connotea.png +0 -0
- data/public/images/service_icons/48/dailymotion.png +0 -0
- data/public/images/service_icons/48/delicious.png +0 -0
- data/public/images/service_icons/48/digg.png +0 -0
- data/public/images/service_icons/48/diigo.png +0 -0
- data/public/images/service_icons/48/facebook.png +0 -0
- data/public/images/service_icons/48/feed.png +0 -0
- data/public/images/service_icons/48/flickr.png +0 -0
- data/public/images/service_icons/48/fotolog.png +0 -0
- data/public/images/service_icons/48/friendfeed.png +0 -0
- data/public/images/service_icons/48/friendster.png +0 -0
- data/public/images/service_icons/48/furl.png +0 -0
- data/public/images/service_icons/48/goodreads.png +0 -0
- data/public/images/service_icons/48/google.png +0 -0
- data/public/images/service_icons/48/googleblog.png +0 -0
- data/public/images/service_icons/48/googlenews.png +0 -0
- data/public/images/service_icons/48/icerocket.png +0 -0
- data/public/images/service_icons/48/identica.png +0 -0
- data/public/images/service_icons/48/joost.png +0 -0
- data/public/images/service_icons/48/lastfm.png +0 -0
- data/public/images/service_icons/48/librarything.png +0 -0
- data/public/images/service_icons/48/linkedin.png +0 -0
- data/public/images/service_icons/48/livejournal.png +0 -0
- data/public/images/service_icons/48/magnolia.png +0 -0
- data/public/images/service_icons/48/mendeley.png +0 -0
- data/public/images/service_icons/48/metacafe.png +0 -0
- data/public/images/service_icons/48/mixx.png +0 -0
- data/public/images/service_icons/48/myspace.png +0 -0
- data/public/images/service_icons/48/netflix.png +0 -0
- data/public/images/service_icons/48/netvibes.png +0 -0
- data/public/images/service_icons/48/newsvine.png +0 -0
- data/public/images/service_icons/48/oai.png +0 -0
- data/public/images/service_icons/48/odeo.png +0 -0
- data/public/images/service_icons/48/opml.png +0 -0
- data/public/images/service_icons/48/pandora.png +0 -0
- data/public/images/service_icons/48/photobucket.png +0 -0
- data/public/images/service_icons/48/picasa.png +0 -0
- data/public/images/service_icons/48/polyvore.png +0 -0
- data/public/images/service_icons/48/pownce.png +0 -0
- data/public/images/service_icons/48/reddit.png +0 -0
- data/public/images/service_icons/48/simpy.png +0 -0
- data/public/images/service_icons/48/smugmug.png +0 -0
- data/public/images/service_icons/48/stumbleupon.png +0 -0
- data/public/images/service_icons/48/tag.png +0 -0
- data/public/images/service_icons/48/technorati.png +0 -0
- data/public/images/service_icons/48/tumblr.png +0 -0
- data/public/images/service_icons/48/twine.png +0 -0
- data/public/images/service_icons/48/twitter.png +0 -0
- data/public/images/service_icons/48/vimeo.png +0 -0
- data/public/images/service_icons/48/webshots.png +0 -0
- data/public/images/service_icons/48/wordpress.png +0 -0
- data/public/images/service_icons/48/xanga.png +0 -0
- data/public/images/service_icons/48/yahoo.png +0 -0
- data/public/images/service_icons/48/yelp.png +0 -0
- data/public/images/service_icons/48/youtube.png +0 -0
- data/public/images/service_icons/48/zooomr.png +0 -0
- data/public/images/service_icons/48/zotero.png +0 -0
- data/public/images/service_icons/60/amazon.png +0 -0
- data/public/images/service_icons/60/ask.png +0 -0
- data/public/images/service_icons/60/bibsonomy.png +0 -0
- data/public/images/service_icons/60/bing.png +0 -0
- data/public/images/service_icons/60/blogger.png +0 -0
- data/public/images/service_icons/60/bloglines.png +0 -0
- data/public/images/service_icons/60/citeulike.png +0 -0
- data/public/images/service_icons/60/clipmarks.png +0 -0
- data/public/images/service_icons/60/connotea.png +0 -0
- data/public/images/service_icons/60/dailymotion.png +0 -0
- data/public/images/service_icons/60/delicious.png +0 -0
- data/public/images/service_icons/60/digg.png +0 -0
- data/public/images/service_icons/60/diigo.png +0 -0
- data/public/images/service_icons/60/facebook.png +0 -0
- data/public/images/service_icons/60/feed.png +0 -0
- data/public/images/service_icons/60/flickr.png +0 -0
- data/public/images/service_icons/60/fotolog.png +0 -0
- data/public/images/service_icons/60/friendfeed.png +0 -0
- data/public/images/service_icons/60/friendster.png +0 -0
- data/public/images/service_icons/60/furl.png +0 -0
- data/public/images/service_icons/60/goodreads.png +0 -0
- data/public/images/service_icons/60/google.png +0 -0
- data/public/images/service_icons/60/googleblog.png +0 -0
- data/public/images/service_icons/60/googlenews.png +0 -0
- data/public/images/service_icons/60/icerocket.png +0 -0
- data/public/images/service_icons/60/identica.png +0 -0
- data/public/images/service_icons/60/joost.png +0 -0
- data/public/images/service_icons/60/lastfm.png +0 -0
- data/public/images/service_icons/60/librarything.png +0 -0
- data/public/images/service_icons/60/linkedin.png +0 -0
- data/public/images/service_icons/60/livejournal.png +0 -0
- data/public/images/service_icons/60/magnolia.png +0 -0
- data/public/images/service_icons/60/mendeley.png +0 -0
- data/public/images/service_icons/60/metacafe.png +0 -0
- data/public/images/service_icons/60/mixx.png +0 -0
- data/public/images/service_icons/60/myspace.png +0 -0
- data/public/images/service_icons/60/netflix.png +0 -0
- data/public/images/service_icons/60/netvibes.png +0 -0
- data/public/images/service_icons/60/newsvine.png +0 -0
- data/public/images/service_icons/60/oai.png +0 -0
- data/public/images/service_icons/60/odeo.png +0 -0
- data/public/images/service_icons/60/opml.png +0 -0
- data/public/images/service_icons/60/pandora.png +0 -0
- data/public/images/service_icons/60/photobucket.png +0 -0
- data/public/images/service_icons/60/picasa.png +0 -0
- data/public/images/service_icons/60/polyvore.png +0 -0
- data/public/images/service_icons/60/pownce.png +0 -0
- data/public/images/service_icons/60/reddit.png +0 -0
- data/public/images/service_icons/60/simpy.png +0 -0
- data/public/images/service_icons/60/smugmug.png +0 -0
- data/public/images/service_icons/60/stumbleupon.png +0 -0
- data/public/images/service_icons/60/tag.png +0 -0
- data/public/images/service_icons/60/technorati.png +0 -0
- data/public/images/service_icons/60/tumblr.png +0 -0
- data/public/images/service_icons/60/twine.png +0 -0
- data/public/images/service_icons/60/twitter.png +0 -0
- data/public/images/service_icons/60/vimeo.png +0 -0
- data/public/images/service_icons/60/webshots.png +0 -0
- data/public/images/service_icons/60/wordpress.png +0 -0
- data/public/images/service_icons/60/xanga.png +0 -0
- data/public/images/service_icons/60/yahoo.png +0 -0
- data/public/images/service_icons/60/yelp.png +0 -0
- data/public/images/service_icons/60/youtube.png +0 -0
- data/public/images/service_icons/60/zooomr.png +0 -0
- data/public/images/service_icons/60/zotero.png +0 -0
- data/public/images/service_icons/facebook_friend_links.jpg +0 -0
- data/public/images/service_icons/facebook_my_links.jpg +0 -0
- data/public/javascripts/muck_raker.js +0 -94
- data/public/stylesheets/frame.css +0 -56
- data/public/stylesheets/muck-raker.css +0 -90
- data/test/rails_root/app/controllers/application_controller.rb +0 -32
- data/test/rails_root/app/controllers/default_controller.rb +0 -7
- data/test/rails_root/app/helpers/application_helper.rb +0 -3
- data/test/rails_root/app/models/activity.rb +0 -24
- data/test/rails_root/app/models/comment.rb +0 -23
- data/test/rails_root/app/models/share.rb +0 -20
- data/test/rails_root/app/models/user.rb +0 -43
- data/test/rails_root/app/models/user_session.rb +0 -2
- data/test/rails_root/config/environments/cucumber.rb +0 -21
- data/test/rails_root/features/step_definitions/common_steps.rb +0 -93
- data/test/rails_root/features/step_definitions/visit_steps.rb +0 -6
- data/test/rails_root/features/step_definitions/webrat_steps.rb +0 -128
- data/test/rails_root/features/support/env.rb +0 -14
- data/test/rails_root/features/support/paths.rb +0 -36
- data/test/rails_root/public/dispatch.rb +0 -10
- data/test/rails_root/test/factories.rb +0 -151
- data/test/rails_root/test/functional/admin/feeds_controller_test.rb +0 -37
- data/test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb +0 -30
- data/test/rails_root/test/functional/aggregation_feeds_controller_test.rb +0 -67
- data/test/rails_root/test/functional/aggregations_controller_test.rb +0 -89
- data/test/rails_root/test/functional/feed_previews_controller_test.rb +0 -32
- data/test/rails_root/test/functional/feeds_controller_test.rb +0 -77
- data/test/rails_root/test/functional/identity_feeds_controller_test.rb +0 -110
- data/test/rails_root/test/functional/oai_endpoints_controller_test.rb +0 -42
- data/test/rails_root/test/functional/topics_controller_test.rb +0 -46
- data/test/rails_root/test/functional/visits_controller_test.rb +0 -21
- data/test/rails_root/test/shoulda_macros/controller.rb +0 -49
- data/test/rails_root/test/shoulda_macros/forms.rb +0 -32
- data/test/rails_root/test/shoulda_macros/models.rb +0 -50
- data/test/rails_root/test/shoulda_macros/pagination.rb +0 -53
- data/test/rails_root/test/shoulda_macros/plugins.rb +0 -34
- data/test/rails_root/test/test_helper.rb +0 -85
- data/test/rails_root/test/unit/aggregation_feed_test.rb +0 -25
- data/test/rails_root/test/unit/aggregation_test.rb +0 -120
- data/test/rails_root/test/unit/comment_test.rb +0 -38
- data/test/rails_root/test/unit/entry_test.rb +0 -65
- data/test/rails_root/test/unit/feed_parent_test.rb +0 -22
- data/test/rails_root/test/unit/feed_test.rb +0 -177
- data/test/rails_root/test/unit/identity_feed_test.rb +0 -18
- data/test/rails_root/test/unit/oai_endpoint_test.rb +0 -40
- data/test/rails_root/test/unit/raker_mailer_test.rb +0 -35
- data/test/rails_root/test/unit/service_category_test.rb +0 -19
- data/test/rails_root/test/unit/service_test.rb +0 -331
- data/test/rails_root/test/unit/share_test.rb +0 -30
- data/test/rails_root/test/unit/tag_cloud_test.rb +0 -23
- data/test/rails_root/test/unit/user_test.rb +0 -43
- data/test/rails_root/vendor/plugins/jrails/init.rb +0 -1
- data/test/rails_root/vendor/plugins/jrails/install.rb +0 -9
- data/test/rails_root/vendor/plugins/jrails/lib/jrails.rb +0 -421
- data/test/rails_root/vendor/plugins/jrails/rails/init.rb +0 -15
- data/test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +0 -62
- data/test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb +0 -132
data/.gitignore
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
**/*.pid
|
2
|
-
log/*.log
|
3
|
-
log/*.pid
|
4
|
-
tmp
|
5
|
-
.DS_Store
|
6
|
-
public/cache/**/*
|
7
|
-
public/system/**/*
|
8
|
-
doc/**/*
|
9
|
-
db/*.sqlite3
|
10
|
-
.project
|
11
|
-
.loadpath
|
12
|
-
nbproject/
|
13
|
-
.idea
|
14
|
-
testjour.log
|
15
|
-
*.so
|
16
|
-
*.o
|
17
|
-
Makefile
|
18
|
-
mkmf.log
|
19
|
-
*.bundle
|
20
|
-
conftest
|
21
|
-
content/
|
22
|
-
REVISION
|
23
|
-
deploy.rb
|
24
|
-
pkg/*
|
25
|
-
*.sw?
|
26
|
-
.DS_Store
|
27
|
-
coverage
|
28
|
-
rdoc
|
29
|
-
pkg
|
30
|
-
test/feed_archive
|
@@ -1,40 +0,0 @@
|
|
1
|
-
class Admin::Muck::FeedsController < Admin::Muck::BaseController
|
2
|
-
|
3
|
-
unloadable
|
4
|
-
|
5
|
-
def index
|
6
|
-
@feeds = Feed.find(:all, :order => (params[:order] || 'created_at') + (params[:asc] == 'false' ? ' DESC' : ' ASC') + ', title', :include => [:default_language]).paginate(:page => @page, :per_page => @per_page)
|
7
|
-
respond_to do |format|
|
8
|
-
format.html { render :template => 'admin/feeds/index' }
|
9
|
-
format.xml { render :xml => @feeds.to_xml }
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def update
|
14
|
-
feed = Feed.find(params[:id])
|
15
|
-
if params[:status] == 'approve'
|
16
|
-
approve(feed)
|
17
|
-
flash[:notice] = t('muck.raker.feed_validated_message')
|
18
|
-
elsif params[:status] == 'ban'
|
19
|
-
ban(feed)
|
20
|
-
flash[:notice] = t('muck.raker.feed_banned_message')
|
21
|
-
end
|
22
|
-
respond_to do |format|
|
23
|
-
format.html { redirect_to admin_feeds_path }
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
protected
|
28
|
-
|
29
|
-
def ban(feed)
|
30
|
-
feed.entries.destroy_all
|
31
|
-
feed.status = MuckRaker::Status::BANNED
|
32
|
-
feed.save!
|
33
|
-
end
|
34
|
-
|
35
|
-
def approve(feed)
|
36
|
-
feed.status = MuckRaker::Status::APPROVED
|
37
|
-
feed.save!
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class Admin::Muck::OaiEndpointsController < Admin::Muck::BaseController
|
2
|
-
|
3
|
-
unloadable
|
4
|
-
|
5
|
-
def index
|
6
|
-
@oai_endpoints = OaiEndpoint.by_newest.paginate(:page => @page, :per_page => @per_page)
|
7
|
-
respond_to do |format|
|
8
|
-
format.html { render :template => 'admin/oai_endpoints/index' }
|
9
|
-
format.xml { render :xml => @oai_endpoints.to_xml }
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
class Muck::AggregationFeedsController < ApplicationController
|
2
|
-
|
3
|
-
unloadable
|
4
|
-
|
5
|
-
before_filter :login_required
|
6
|
-
|
7
|
-
def destroy
|
8
|
-
@aggregation_feed = AggregationFeed.find(params[:id]) rescue nil if params[:id] && params[:id].to_i > 0
|
9
|
-
@aggregation_feed ||= AggregationFeed.find_by_feed_id_and_aggregation_id(params[:feed_id], params[:aggregation_id])
|
10
|
-
@aggregation = @aggregation_feed.aggregation
|
11
|
-
if has_aggregation_permission?
|
12
|
-
@aggregation_feed.destroy
|
13
|
-
respond_to do |format|
|
14
|
-
message = I18n.t('muck.raker.feed_remove')
|
15
|
-
format.html do
|
16
|
-
flash[:notice] = message
|
17
|
-
redirect_to polymorphic_url([@aggregation.ownable, @aggregation])
|
18
|
-
end
|
19
|
-
format.json { render :json => { :success => true, :message => message }.as_json }
|
20
|
-
format.xml { head :ok }
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
protected
|
26
|
-
|
27
|
-
def has_aggregation_permission?
|
28
|
-
if !@aggregation.can_edit?(current_user)
|
29
|
-
message = I18n.t('muck.raker.cant_modify_aggregation')
|
30
|
-
respond_to do |format|
|
31
|
-
format.html do
|
32
|
-
flash[:notice] = message
|
33
|
-
redirect_to polymorphic_url([@aggregation.ownable, @aggregation])
|
34
|
-
end
|
35
|
-
format.js { render(:update) {|page| page.alert message} }
|
36
|
-
format.json { render :json => { :success => false, :message => message }.as_json }
|
37
|
-
end
|
38
|
-
else
|
39
|
-
true
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
end
|
@@ -1,234 +0,0 @@
|
|
1
|
-
class Muck::AggregationsController < ApplicationController
|
2
|
-
|
3
|
-
unloadable
|
4
|
-
|
5
|
-
#before_filter :adjust_format_for_iphone
|
6
|
-
|
7
|
-
require 'cgi'
|
8
|
-
|
9
|
-
before_filter :login_required, :except => [:index, :show, :preview, :rss_discovery]
|
10
|
-
before_filter :get_owner, :only => [:index, :preview, :new, :create]
|
11
|
-
before_filter :check_user_permissions, :only => [:create]
|
12
|
-
before_filter :get_aggregation, :only => [:destroy, :edit, :update, :show, :rss_discovery]
|
13
|
-
before_filter :has_aggregation_permission?, :only => [:destroy, :edit, :update]
|
14
|
-
before_filter :setup_feed_display_variables, :only => [:preview, :update]
|
15
|
-
def index
|
16
|
-
if @parent
|
17
|
-
@aggregations = @parent.aggregations.by_title
|
18
|
-
else
|
19
|
-
@aggregations = Aggregation.newest
|
20
|
-
end
|
21
|
-
respond_to do |format|
|
22
|
-
format.html { render(:template => 'aggregations/index') }
|
23
|
-
format.iphone { render(:template => 'aggregations/index') }
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def rss_discovery
|
28
|
-
@feeds = @aggregation.feeds
|
29
|
-
render :template => 'aggregations/rss_discovery'
|
30
|
-
end
|
31
|
-
|
32
|
-
def show
|
33
|
-
@page_title = @aggregation.title
|
34
|
-
|
35
|
-
@photo_feeds = @aggregation.photo_feeds
|
36
|
-
@video_feeds = @aggregation.video_feeds
|
37
|
-
@bookmark_feeds = @aggregation.bookmark_feeds
|
38
|
-
@music_feeds = @aggregation.music_feeds
|
39
|
-
@general_feeds = @aggregation.general_feeds
|
40
|
-
|
41
|
-
if GlobalConfig.render_feeds_client_side
|
42
|
-
|
43
|
-
elsif GlobalConfig.render_feeds_server_side
|
44
|
-
@feeds = @aggregation.feeds
|
45
|
-
else
|
46
|
-
@entries = @aggregation.feeds.entries.paginate(:page => @page, :per_page => @per_page)
|
47
|
-
end
|
48
|
-
respond_to do |format|
|
49
|
-
format.html { render(:template => 'aggregations/show') }
|
50
|
-
format.opml { render(:layout => false) }
|
51
|
-
format.rss {}
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
def preview
|
56
|
-
if params[:terms].blank?
|
57
|
-
flash[:error] = I18n.t('muck.raker.no_terms_error')
|
58
|
-
redirect_to new_polymorphic_url([@parent, :aggregation])
|
59
|
-
else
|
60
|
-
terms = params[:terms]
|
61
|
-
terms = terms.join(' ') if terms.is_a?(Array)
|
62
|
-
|
63
|
-
#@feeds = Service.build_tag_feeds(terms, current_user, params[:service_ids])
|
64
|
-
|
65
|
-
@photo_feeds = Service.build_photo_feeds(terms, current_user)
|
66
|
-
@video_feeds = Service.build_video_feeds(terms, current_user)
|
67
|
-
@bookmark_feeds = Service.build_bookmark_feeds(terms, current_user)
|
68
|
-
@music_feeds = Service.build_music_feeds(terms, current_user)
|
69
|
-
@general_feeds = Service.build_general_feeds(terms, current_user)
|
70
|
-
|
71
|
-
@discovered_feeds = Overlord::GoogleFeedRequest.find_feeds(terms)
|
72
|
-
@title = terms.titleize
|
73
|
-
@terms = terms
|
74
|
-
|
75
|
-
@aggregation = Aggregation.new(:title => @title, :terms => @terms)
|
76
|
-
|
77
|
-
respond_to do |format|
|
78
|
-
format.html { render :template => 'aggregations/preview' }
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
def new
|
84
|
-
@page_title = I18n.t('muck.raker.new_aggregation')
|
85
|
-
@service_categories = ServiceCategory.sorted.find(:all, :include => [:tag_services])
|
86
|
-
respond_to do |format|
|
87
|
-
format.html { render :template => 'aggregations/new' }
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
def create
|
92
|
-
@aggregation = Aggregation.create(params[:aggregation])
|
93
|
-
@parent.aggregations << @aggregation if @parent # associate the parent if present
|
94
|
-
|
95
|
-
# build a list of feeds and associate them with the aggregation
|
96
|
-
@aggregation.add_feeds(current_user, params[:service_ids])
|
97
|
-
@aggregation.add_feeds_by_uri(current_user, params[:uris])
|
98
|
-
|
99
|
-
respond_to do |format|
|
100
|
-
flash[:notice] = I18n.t('muck.raker.add_feeds_to_aggregation', :title => @aggregation.title)
|
101
|
-
format.html { redirect_to(edit_aggregation_path(@aggregation)) }
|
102
|
-
format.xml { render :xml => @aggregation, :status => :created, :location => @aggregation }
|
103
|
-
end
|
104
|
-
|
105
|
-
rescue ActiveRecord::RecordInvalid => ex
|
106
|
-
respond_to do |format|
|
107
|
-
format.html { render :action => "aggregations/new" }
|
108
|
-
format.xml { render :xml => @aggregation.errors }
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
def edit
|
113
|
-
setup_edit
|
114
|
-
respond_to do |format|
|
115
|
-
format.html { render :template => 'aggregations/edit' }
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
def update
|
120
|
-
if params[:aggregation]
|
121
|
-
@aggregation.update_attributes!(params[:aggregation])
|
122
|
-
flash[:notice] = I18n.t('muck.raker.aggregation_updated')
|
123
|
-
end
|
124
|
-
@feeds = []
|
125
|
-
if params[:uri]
|
126
|
-
@feeds = Feed.feeds_from_uri(params[:uri], current_user)
|
127
|
-
@aggregation.safe_add_feeds(@feeds)
|
128
|
-
elsif params[:service_ids]
|
129
|
-
@aggregation.terms = @aggregation.terms + ",#{params[:terms]}"
|
130
|
-
@aggregation.save!
|
131
|
-
@feeds = @aggregation.add_feeds(current_user, params[:service_ids])
|
132
|
-
end
|
133
|
-
|
134
|
-
message = I18n.t('muck.raker.no_feeds_found') if @feeds.blank?
|
135
|
-
|
136
|
-
respond_to do |format|
|
137
|
-
format.html { redirect_to edit_polymorphic_url([@aggregation.ownable, @aggregation]) }
|
138
|
-
format.xml { head :ok }
|
139
|
-
format.json do
|
140
|
-
render :json => { :aggregation => @aggregation,
|
141
|
-
:feeds => @feeds,
|
142
|
-
:message => message,
|
143
|
-
:success => true,
|
144
|
-
:html => get_google_feed_html }.as_json
|
145
|
-
end
|
146
|
-
end
|
147
|
-
rescue ActiveRecord::RecordInvalid => ex
|
148
|
-
respond_to do |format|
|
149
|
-
format.html do
|
150
|
-
setup_edit
|
151
|
-
render :template => "aggregations/edit"
|
152
|
-
end
|
153
|
-
format.json { render :json => { :aggregation => @aggregation,
|
154
|
-
:feeds => @feeds,
|
155
|
-
:message => ex.to_s,
|
156
|
-
:success => false,
|
157
|
-
:html => '' }.as_json }
|
158
|
-
format.xml { render :xml => @aggregation.errors }
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
def destroy
|
163
|
-
@aggregation = Aggregation.find(params[:id])
|
164
|
-
@aggregation.destroy
|
165
|
-
respond_to do |format|
|
166
|
-
flash[:notice] = I18n.t('muck.raker.aggregation_deleted', :title => @aggregation.title)
|
167
|
-
format.html { redirect_to polymorphic_url([@aggregation.ownable, :aggregations]) }
|
168
|
-
format.xml { head :ok }
|
169
|
-
end
|
170
|
-
end
|
171
|
-
|
172
|
-
protected
|
173
|
-
|
174
|
-
def setup_edit
|
175
|
-
@feeds = @aggregation.all_feeds
|
176
|
-
setup_feed_display_variables
|
177
|
-
@service_categories = ServiceCategory.sorted.find(:all, :include => [:tag_services])
|
178
|
-
@page_title = I18n.t('muck.raker.edit_aggregation_title', :title => @aggregation.title)
|
179
|
-
end
|
180
|
-
|
181
|
-
def get_owner
|
182
|
-
@parent = get_parent
|
183
|
-
end
|
184
|
-
|
185
|
-
def check_user_permissions
|
186
|
-
unless has_permission?
|
187
|
-
permission_denied
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
def get_aggregation
|
192
|
-
@aggregation = Aggregation.find(params[:id])
|
193
|
-
end
|
194
|
-
|
195
|
-
def has_aggregation_permission?
|
196
|
-
if !@aggregation.can_edit?(current_user)
|
197
|
-
message = I18n.t('muck.raker.cant_modify_aggregation')
|
198
|
-
respond_to do |format|
|
199
|
-
format.html do
|
200
|
-
flash[:notice] = message
|
201
|
-
redirect_back_or_default current_user
|
202
|
-
end
|
203
|
-
format.js { render(:update) {|page| page.alert message} }
|
204
|
-
end
|
205
|
-
end
|
206
|
-
end
|
207
|
-
|
208
|
-
def has_permission?
|
209
|
-
if @parent.blank?
|
210
|
-
admin?
|
211
|
-
else
|
212
|
-
@parent.can_edit?(current_user)
|
213
|
-
end
|
214
|
-
end
|
215
|
-
|
216
|
-
def setup_feed_display_variables
|
217
|
-
@show_controls = show_controls?
|
218
|
-
@number_of_items = 4
|
219
|
-
@number_of_images = 6
|
220
|
-
@number_of_videos = 6
|
221
|
-
end
|
222
|
-
|
223
|
-
# determines whether or not to show admin controls (ie save aggregation)
|
224
|
-
def show_controls?
|
225
|
-
logged_in?
|
226
|
-
end
|
227
|
-
|
228
|
-
def get_google_feed_html
|
229
|
-
render_as_html do
|
230
|
-
render_to_string(:partial => 'aggregations/feeds')
|
231
|
-
end
|
232
|
-
end
|
233
|
-
|
234
|
-
end
|
@@ -1,102 +0,0 @@
|
|
1
|
-
class Muck::EntriesController < ApplicationController
|
2
|
-
|
3
|
-
unloadable
|
4
|
-
|
5
|
-
def initialize
|
6
|
-
@no_index = true
|
7
|
-
end
|
8
|
-
|
9
|
-
def index
|
10
|
-
@grain_size = params[:grain_size] || 'all'
|
11
|
-
@tag_cloud = TagCloud.language_tags(Language.locale_id, @grain_size) unless fragment_exist?({:controller => 'entries', :action => 'index', :language => Language.locale_id})
|
12
|
-
respond_to do |format|
|
13
|
-
format.html { render :template => 'entries/index' }
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
def browse_by_tags
|
18
|
-
@tag_filter = params[:tags]
|
19
|
-
@grain_size = params[:grain_size] || 'all'
|
20
|
-
if !fragment_exist?({:controller => 'entries', :action => 'index', :language => Language.locale_id, :filter => @tag_filter, :grain_size => @grain_size})
|
21
|
-
@search = @tag_filter.split('/').join(' AND ') if !@tag_filter.empty?
|
22
|
-
@tag_cloud = TagCloud.language_tags(Language.locale_id, @grain_size, @tag_filter)
|
23
|
-
_search(:and)
|
24
|
-
end
|
25
|
-
respond_to do |format|
|
26
|
-
format.html { render :template => 'entries/browse_by_tags' }
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def search
|
31
|
-
@search = params[:q]
|
32
|
-
@grain_size = params[:grain_size] || 'all'
|
33
|
-
_search
|
34
|
-
respond_to do |format|
|
35
|
-
format.html { render :template => 'entries/search' }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
def show
|
40
|
-
@entry = Entry.find(params[:id], :include => :feed)
|
41
|
-
if @entry.nil?
|
42
|
-
render_text "Unable to find the specified document"
|
43
|
-
return
|
44
|
-
end
|
45
|
-
@entry_title = @entry.title + ' (' + @entry.feed.short_title + ')'
|
46
|
-
@page_title = @entry_title + ' - ' + I18n.t('muck.raker.related_resources_title')
|
47
|
-
# I18n.locale = @entry.language[0..1]
|
48
|
-
@limit = params[:limit] ? params[:limit].to_i : 20
|
49
|
-
@limit = 40 if @limit > 40
|
50
|
-
|
51
|
-
respond_to do |format|
|
52
|
-
format.html do
|
53
|
-
@recommendations = @entry.recommendations(@limit, 'relevance', params[:details] == 'true')
|
54
|
-
if params[:details] == 'true'
|
55
|
-
render :template => "entries/details"
|
56
|
-
else
|
57
|
-
render :template => "entries/show"
|
58
|
-
end
|
59
|
-
end
|
60
|
-
format.xml { render :xml => @entry }
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
def track_clicks
|
65
|
-
user_agent = request.env['HTTP_USER_AGENT']
|
66
|
-
redirect_to Entry.track_click(session, params[:id], request.env['HTTP_REFERER'], params[:target], request.env['HTTP_X_FORWARDED_FOR'], user_agent) if !/Googlebot/.match(user_agent)
|
67
|
-
end
|
68
|
-
|
69
|
-
def collections
|
70
|
-
@feeds = Feed.find(:all, :order => "harvested_from_title, title")
|
71
|
-
@languages = Language.find(:all, :order => "name")
|
72
|
-
render :template => "documents/collections", :layout => "default"
|
73
|
-
end
|
74
|
-
|
75
|
-
protected
|
76
|
-
|
77
|
-
def _search operator = :or
|
78
|
-
@page = (params[:page] || 1).to_i
|
79
|
-
@per_page = (params[:per_page] || 10).to_i
|
80
|
-
@offset = (@page-1)*@per_page
|
81
|
-
if !@search.nil?
|
82
|
-
@term_list = URI.escape(@search)
|
83
|
-
results = Entry.search(@search, @grain_size, I18n.locale.to_s, @per_page, @offset, operator)
|
84
|
-
@hit_count = results.total
|
85
|
-
@results = results.results
|
86
|
-
@paginated_results = @results.paginate(:page => @page, :per_page => @per_page, :total_entries => @hit_count)
|
87
|
-
log_query(current_user.nil? ? request.remote_addr : current_user.id, Language.locale_id, @tag_filter.nil? ? 'search' : 'browse', @search, @grain_size, @hit_count)
|
88
|
-
end
|
89
|
-
rescue MuckRaker::Exceptions::LanguageNotSupported => ex
|
90
|
-
@hit_count = 0
|
91
|
-
@results = []
|
92
|
-
flash[:error] = ex.to_s
|
93
|
-
end
|
94
|
-
|
95
|
-
def query_logger
|
96
|
-
@@query_logger ||= Logger.new("#{RAILS_ROOT}/log/queries_#{Date.today}.log")
|
97
|
-
end
|
98
|
-
|
99
|
-
def log_query(user_id, locale, search_type, query, grain_size, hits)
|
100
|
-
query_logger.info "#{Time.new.to_i},#{user_id},#{locale},#{search_type},\"#{query.gsub(/"/, '\\\\"')}\",#{grain_size},#{hits}"
|
101
|
-
end
|
102
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
class Muck::FeedPreviewsController < ApplicationController
|
2
|
-
|
3
|
-
unloadable
|
4
|
-
|
5
|
-
def new
|
6
|
-
respond_to do |format|
|
7
|
-
format.pjs do
|
8
|
-
render_as_html do
|
9
|
-
render :template => 'feed_previews/new', :layout => false
|
10
|
-
end
|
11
|
-
end
|
12
|
-
format.html { render :template => 'feed_previews/new' }
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
def select_feeds
|
17
|
-
@feed = Feed.new(params[:feed])
|
18
|
-
@feeds = Feed.gather_information(@feed.uri).compact
|
19
|
-
respond_to do |format|
|
20
|
-
format.pjs do
|
21
|
-
render_as_html do
|
22
|
-
render :template => 'feed_previews/select_feeds', :layout => false
|
23
|
-
end
|
24
|
-
end
|
25
|
-
format.html { render :template => 'feed_previews/select_feeds' }
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def create
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
@@ -1,157 +0,0 @@
|
|
1
|
-
class Muck::FeedsController < ApplicationController
|
2
|
-
|
3
|
-
unloadable
|
4
|
-
|
5
|
-
before_filter :login_required, :except => ['index', 'show']
|
6
|
-
before_filter :get_owner, :except => ['index', 'show']
|
7
|
-
|
8
|
-
def index
|
9
|
-
@feeds = Feed.find(:all, :conditions => 'status >= 0', :order => (params[:order] || 'title') + (params[:asc] == 'false' ? ' DESC' : ' ASC') + ', title', :include => [:default_language]).paginate(:page => @page, :per_page => @per_page)
|
10
|
-
respond_to do |format|
|
11
|
-
format.html { render :template => 'feeds/index' }
|
12
|
-
format.xml { render :xml => @feeds.to_xml }
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
# pass layout=popup to remove most of the chrome
|
17
|
-
def show
|
18
|
-
@feed = Feed.find(params[:id])
|
19
|
-
@entries = @feed.entries.paginate(:page => @page, :per_page => @per_page)
|
20
|
-
respond_to do |format|
|
21
|
-
format.html { render :template => 'feeds/show', :layout => params[:layout] || true }
|
22
|
-
format.pjs do
|
23
|
-
render :update do |page|
|
24
|
-
page.replace_html('feed-container', :partial => 'feeds/feed', :object => @feed)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
format.json { render :json => @feed.as_json }
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
def new
|
32
|
-
respond_to do |format|
|
33
|
-
format.html { render :template => 'feeds/new', :layout => params[:layout] || true }
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
def new_oai_rss
|
38
|
-
@feed = Feed.new
|
39
|
-
@feed.default_language = Language.find_by_locale('en')
|
40
|
-
@feed.service_id = MuckRaker::Services::RSS
|
41
|
-
@oai_endpoint = OaiEndpoint.new
|
42
|
-
@oai_endpoint.default_language = @feed.default_language
|
43
|
-
respond_to do |format|
|
44
|
-
format.html { render :template => 'feeds/new_oai_rss', :layout => 'popup' }
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def new_extended
|
49
|
-
respond_to do |format|
|
50
|
-
format.html { render :template => 'feeds/new_extended', :layout => 'popup' }
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
def create
|
55
|
-
|
56
|
-
Feed.discover_feeds(params[:feed][:uri])
|
57
|
-
|
58
|
-
@feed = Feed.new(params[:feed])
|
59
|
-
@feed.contributor = current_user # record the user that submitted the feed for auditing purposes
|
60
|
-
@feed.harvested_from_display_uri = @feed.display_uri
|
61
|
-
|
62
|
-
# setup the feed to be harvested
|
63
|
-
@feed.entries_count = 0
|
64
|
-
@feed.last_requested_at = 4.weeks.ago
|
65
|
-
@feed.last_harvested_at = 4.weeks.ago
|
66
|
-
|
67
|
-
@feed.inform_admin # let an admin know that a global feed was added.
|
68
|
-
|
69
|
-
# associate the parent if present
|
70
|
-
@parent.feeds << @feed if @parent
|
71
|
-
|
72
|
-
after_create_response(@feed.save)
|
73
|
-
end
|
74
|
-
|
75
|
-
def edit
|
76
|
-
@feed = Feed.find(params[:id])
|
77
|
-
respond_to do |format|
|
78
|
-
format.html { render :template => 'feeds/edit', :layout => 'popup' }
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
def update
|
83
|
-
@feed = Feed.find(params[:id])
|
84
|
-
after_update_response(@feed.update_attributes(params[:feed]))
|
85
|
-
end
|
86
|
-
|
87
|
-
def destroy
|
88
|
-
@feed = Feed.find(params[:id])
|
89
|
-
@feed.destroy
|
90
|
-
after_destroy_response
|
91
|
-
end
|
92
|
-
|
93
|
-
protected
|
94
|
-
|
95
|
-
def get_owner
|
96
|
-
@parent = get_parent
|
97
|
-
unless has_permission_to_add_feed(current_user, @parent)
|
98
|
-
permission_denied
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
def has_permission_to_add_feed(user, parent)
|
103
|
-
return false if user.blank?
|
104
|
-
return true if user.admin?
|
105
|
-
return false if parent.blank?
|
106
|
-
user == parent || parent.can_add_feed?(user)
|
107
|
-
end
|
108
|
-
|
109
|
-
# Handles render and redirect after success or failure of the
|
110
|
-
# create action. Override to perform a different action
|
111
|
-
# fail_template determines which 'new' is rendered in the event that
|
112
|
-
# the create is not successful.
|
113
|
-
def after_create_response(success)
|
114
|
-
if success
|
115
|
-
flash[:notice] = t('muck.raker.feed_successfully_created')
|
116
|
-
respond_to do |format|
|
117
|
-
format.html { redirect_to feed_path(@feed) }
|
118
|
-
format.pjs { redirect_to feed_path(@feed, :layout => 'popup') }
|
119
|
-
format.json { render :json => @feed.as_json }
|
120
|
-
format.xml { head :created, :location => feed_url(@feed) }
|
121
|
-
end
|
122
|
-
else
|
123
|
-
fail_template = params[:new_template] || 'feeds/new'
|
124
|
-
respond_to do |format|
|
125
|
-
format.html { render :template => fail_template }
|
126
|
-
format.pjs { render :template => fail_template, :layout => false }
|
127
|
-
format.json { render :json => @feed.as_json }
|
128
|
-
format.xml { render :xml => @feed.errors.to_xml }
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
# Handles render and redirect after success or failure of the
|
134
|
-
# update action. Override to perform a different action
|
135
|
-
def after_update_response(success)
|
136
|
-
respond_to do |format|
|
137
|
-
if success
|
138
|
-
flash[:notice] = t('muck.raker.feed_successfully_updated')
|
139
|
-
format.html { redirect_to feed_path(@feed) }
|
140
|
-
format.xml { head :ok }
|
141
|
-
else
|
142
|
-
format.html { render :template => "feeds/edit" }
|
143
|
-
format.xml { render :xml => @feed.errors.to_xml }
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|
148
|
-
# Handles render and redirect after the delete action.
|
149
|
-
# Override to perform a different action
|
150
|
-
def after_destroy_response
|
151
|
-
respond_to do |format|
|
152
|
-
format.html { redirect_to feeds_path }
|
153
|
-
format.xml { head :ok }
|
154
|
-
end
|
155
|
-
end
|
156
|
-
|
157
|
-
end
|