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/app/models/service.rb
DELETED
@@ -1,486 +0,0 @@
|
|
1
|
-
# == Schema Information
|
2
|
-
#
|
3
|
-
# Table name: services
|
4
|
-
#
|
5
|
-
# id :integer(4) not null, primary key
|
6
|
-
# uri :string(2083) default("")
|
7
|
-
# name :string(1000) default("")
|
8
|
-
# api_uri :string(2083) default("")
|
9
|
-
# uri_template :string(2083) default("")
|
10
|
-
# icon :string(2083) default("rss.gif")
|
11
|
-
# sort :integer(4)
|
12
|
-
# requires_password :boolean(1)
|
13
|
-
# use_for :string(255)
|
14
|
-
# service_category_id :integer(4)
|
15
|
-
# active :boolean(1) default(TRUE)
|
16
|
-
# prompt :string(255)
|
17
|
-
# template :string(255)
|
18
|
-
#
|
19
|
-
|
20
|
-
class Service < ActiveRecord::Base
|
21
|
-
|
22
|
-
belongs_to :service_category
|
23
|
-
named_scope :sorted_id, :order => "id ASC"
|
24
|
-
named_scope :sorted, :order => "sort ASC"
|
25
|
-
named_scope :identity_services, :conditions => ['use_for = ?', 'identity']
|
26
|
-
named_scope :tag_services, :conditions => ['use_for = ?', 'tags']
|
27
|
-
named_scope :photo_services, :conditions => ["service_categories.id = services.service_category_id AND service_categories.name = 'Photos'"], :include => ['service_category']
|
28
|
-
|
29
|
-
# Indicates whether service is primarily a photo service ie from flick, picasa, etc
|
30
|
-
#
|
31
|
-
# refresh_services: Optional parameter indicating whether or not to reload values from the database before checking service type
|
32
|
-
def photo?(refresh_services = false)
|
33
|
-
Service.get_photo_services(refresh_services).include?(self)
|
34
|
-
end
|
35
|
-
|
36
|
-
# Indicates whether service is primarily a video service ie from youtube, etc
|
37
|
-
#
|
38
|
-
# refresh_services: Optional parameter indicating whether or not to reload values from the database before checking service type
|
39
|
-
def video?(refresh_services = false)
|
40
|
-
Service.get_video_services(refresh_services).include?(self)
|
41
|
-
end
|
42
|
-
|
43
|
-
# Indicates whether service is primarily a bookmark service ie delicious, etc
|
44
|
-
#
|
45
|
-
# refresh_services: Optional parameter indicating whether or not to reload values from the database before checking service type
|
46
|
-
def bookmark?(refresh_services = false)
|
47
|
-
Service.get_bookmark_services(refresh_services).include?(self)
|
48
|
-
end
|
49
|
-
|
50
|
-
# Indicates whether service is primarily music
|
51
|
-
#
|
52
|
-
# refresh_services: Optional parameter indicating whether or not to reload values from the database before checking service type
|
53
|
-
def music?(refresh_services = false)
|
54
|
-
Service.get_music_services(refresh_services).include?(self)
|
55
|
-
end
|
56
|
-
|
57
|
-
# Indicates whether service is primarily news
|
58
|
-
#
|
59
|
-
# refresh_services: Optional parameter indicating whether or not to reload values from the database before checking service type
|
60
|
-
def news?(refresh_services = false)
|
61
|
-
Service.get_news_services(refresh_services).include?(self)
|
62
|
-
end
|
63
|
-
|
64
|
-
# Indicates whether service is primarily blog related
|
65
|
-
#
|
66
|
-
# refresh_services: Optional parameter indicating whether or not to reload values from the database before checking service type
|
67
|
-
def blog?(refresh_services = false)
|
68
|
-
Service.get_blog_services(refresh_services).include?(self)
|
69
|
-
end
|
70
|
-
|
71
|
-
# Indicates whether service is primarily search related
|
72
|
-
#
|
73
|
-
# refresh_services: Optional parameter indicating whether or not to reload values from the database before checking service type
|
74
|
-
def search?(refresh_services = false)
|
75
|
-
Service.get_search_services(refresh_services).include?(self)
|
76
|
-
end
|
77
|
-
|
78
|
-
# Indicates whether service is general (ie not video, photo, music or bookmark)
|
79
|
-
#
|
80
|
-
# refresh_services: Optional parameter indicating whether or not to reload values from the database before checking service type
|
81
|
-
def general?(refresh_services = false)
|
82
|
-
Service.get_general_services(refresh_services).include?(self)
|
83
|
-
end
|
84
|
-
|
85
|
-
def human_uri(tag)
|
86
|
-
generate_tag_template_uri(tag, self.uri_template)
|
87
|
-
end
|
88
|
-
|
89
|
-
# Generate a uri for the current service
|
90
|
-
def generate_tag_uri(tag)
|
91
|
-
generate_tag_template_uri(tag, self.uri_data_template)
|
92
|
-
end
|
93
|
-
|
94
|
-
def generate_tag_template_uri(tag, uri_template)
|
95
|
-
if self.name == 'Flickr'
|
96
|
-
uri_template.sub("{tag}", tag.gsub('+',',')) # flickr wants a comma deliminated list of tags
|
97
|
-
else
|
98
|
-
uri_template.sub("{tag}", tag)
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# Requires settings in global_config.yml
|
103
|
-
# For example:
|
104
|
-
# amazon_access_key_id: 'some key from your account'
|
105
|
-
# amazon_secret_access_key: 'the secret from your account'
|
106
|
-
# amazon_associate_tag: 'optional'
|
107
|
-
# ecs_to_rss_wishlist: "http://www.example.com/ecs_to_rss-wishlist.xslt"
|
108
|
-
def generate_uris(username = '', password = '', uri = '')
|
109
|
-
if self.name == 'Facebook'
|
110
|
-
# Facebook can't just use feeds like everyone else.
|
111
|
-
params = {}
|
112
|
-
pairs = uri.split('?')[1].split('&')
|
113
|
-
pairs.each do |pair|
|
114
|
-
p = pair.split('=')
|
115
|
-
params[p[0].to_sym] = p[1]
|
116
|
-
end
|
117
|
-
uris = []
|
118
|
-
uris << OpenStruct.new(:url => "http://www.facebook.com/feeds/notifications.php?id=#{params[:id]}&viewer=#{params[:id]}&key=#{params[:key]}&format=rss20", :title => I18n.t('muck.raker.facebook_notifications'))
|
119
|
-
uris << OpenStruct.new(:url => "http://www.facebook.com/feeds/share_posts.php?id=#{params[:id]}&viewer=#{params[:id]}&key=#{params[:key]}&format=rss20", :title => I18n.t('muck.raker.facebook_shares'))
|
120
|
-
uris << OpenStruct.new(:url => "http://www.facebook.com/feeds/notes.php?id=#{params[:id]}&viewer=#{params[:id]}&key=#{params[:key]}&format=rss20", :title => I18n.t('muck.raker.facebook_notes'))
|
121
|
-
uris
|
122
|
-
elsif self.name == 'Amazon'
|
123
|
-
return [] if username.blank?
|
124
|
-
# Have to build and sign Amazon wishlist rss feeds
|
125
|
-
am = AmazonRequest.new(GlobalConfig.amazon_access_key_id, GlobalConfig.amazon_secret_access_key, GlobalConfig.ecs_to_rss_wishlist, GlobalConfig.amazon_associate_tag)
|
126
|
-
results = am.get_amazon_feeds(username) # username needs to be the user's Amazon email
|
127
|
-
results.collect { |result| OpenStruct.new(:url => result, :title => 'Amazon Wishlist') }
|
128
|
-
elsif !self.uri_data_template.blank? && !username.blank?
|
129
|
-
return [] if username.blank?
|
130
|
-
uri = self.uri_data_template.sub("{username}", username)
|
131
|
-
Feed.discover_feeds(uri)
|
132
|
-
elsif !uri.blank?
|
133
|
-
return [] if uri.blank?
|
134
|
-
Feed.discover_feeds(uri)
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
# Generates uris for 'tag' using all services where 'use_for' is 'tags'
|
139
|
-
def self.generate_tag_uris(terms, selected_service_ids = nil)
|
140
|
-
split_terms(terms).collect { |tag|
|
141
|
-
get_tag_services(selected_service_ids).collect { |service| service.generate_tag_uri(tag) }
|
142
|
-
}.flatten!
|
143
|
-
end
|
144
|
-
|
145
|
-
# creates a feed for a service with a username and optional password
|
146
|
-
def self.create_tag_feeds_for_service(service, uri, username, password, contributor)
|
147
|
-
uris = service.generate_uris(username, password, uri)
|
148
|
-
uris.collect{ |u| Feed.find_or_create(u.url, u.title, username, password, service.id, contributor) } if uris
|
149
|
-
end
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
def self.build_photo_feeds(terms, user, service_ids = nil, refresh_services = false)
|
154
|
-
if service_ids.nil?
|
155
|
-
service_ids = get_photo_tag_services(refresh_services).map(&:id)
|
156
|
-
else
|
157
|
-
service_ids = make_int_array(service_ids) & get_photo_tag_services(refresh_services).map(&:id)
|
158
|
-
end
|
159
|
-
build_tag_feeds(terms, user, service_ids, refresh_services)
|
160
|
-
end
|
161
|
-
|
162
|
-
def self.build_video_feeds(terms, user, service_ids = nil, refresh_services = false)
|
163
|
-
if service_ids.nil?
|
164
|
-
service_ids = get_video_tag_services(refresh_services).map(&:id)
|
165
|
-
else
|
166
|
-
service_ids = make_int_array(service_ids) & get_video_tag_services(refresh_services).map(&:id)
|
167
|
-
end
|
168
|
-
build_tag_feeds(terms, user, service_ids, refresh_services)
|
169
|
-
end
|
170
|
-
|
171
|
-
def self.build_bookmark_feeds(terms, user, service_ids = nil, refresh_services = false)
|
172
|
-
if service_ids.nil?
|
173
|
-
service_ids = get_bookmark_tag_services(refresh_services).map(&:id)
|
174
|
-
else
|
175
|
-
service_ids = make_int_array(service_ids) & get_bookmark_tag_services(refresh_services).map(&:id)
|
176
|
-
end
|
177
|
-
build_tag_feeds(terms, user, service_ids, refresh_services)
|
178
|
-
end
|
179
|
-
|
180
|
-
def self.build_music_feeds(terms, user, service_ids = nil, refresh_services = false)
|
181
|
-
if service_ids.nil?
|
182
|
-
service_ids = get_music_tag_services(refresh_services).map(&:id)
|
183
|
-
else
|
184
|
-
service_ids = make_int_array(service_ids) & get_music_tag_services(refresh_services).map(&:id)
|
185
|
-
end
|
186
|
-
build_tag_feeds(terms, user, service_ids, refresh_services)
|
187
|
-
end
|
188
|
-
|
189
|
-
def self.build_news_feeds(terms, user, service_ids = nil, refresh_services = false)
|
190
|
-
if service_ids.nil?
|
191
|
-
service_ids = get_news_tag_services(refresh_services).map(&:id)
|
192
|
-
else
|
193
|
-
service_ids = make_int_array(service_ids) & get_news_tag_services(refresh_services).map(&:id)
|
194
|
-
end
|
195
|
-
build_tag_feeds(terms, user, service_ids, refresh_services)
|
196
|
-
end
|
197
|
-
|
198
|
-
def self.build_blog_feeds(terms, user, service_ids = nil, refresh_services = false)
|
199
|
-
if service_ids.nil?
|
200
|
-
service_ids = get_blog_tag_services(refresh_services).map(&:id)
|
201
|
-
else
|
202
|
-
service_ids = make_int_array(service_ids) & get_blog_tag_services(refresh_services).map(&:id)
|
203
|
-
end
|
204
|
-
build_tag_feeds(terms, user, service_ids, refresh_services)
|
205
|
-
end
|
206
|
-
|
207
|
-
def self.build_search_feeds(terms, user, service_ids = nil, refresh_services = false)
|
208
|
-
if service_ids.nil?
|
209
|
-
service_ids = get_search_tag_services(refresh_services).map(&:id)
|
210
|
-
else
|
211
|
-
service_ids = make_int_array(service_ids) & get_search_tag_services(refresh_services).map(&:id)
|
212
|
-
end
|
213
|
-
build_tag_feeds(terms, user, service_ids, refresh_services)
|
214
|
-
end
|
215
|
-
|
216
|
-
def self.build_general_feeds(terms, user, service_ids = nil, refresh_services = false)
|
217
|
-
if service_ids.nil?
|
218
|
-
service_ids = get_general_tag_services(refresh_services).map(&:id)
|
219
|
-
else
|
220
|
-
service_ids = make_int_array(service_ids) & get_general_tag_services(refresh_services).map(&:id)
|
221
|
-
end
|
222
|
-
build_tag_feeds(terms, user, service_ids, refresh_services)
|
223
|
-
end
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
# Get all photo services
|
228
|
-
#
|
229
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
230
|
-
# will result in the values being repopulated from the database
|
231
|
-
def self.get_photo_services(refresh_services = false)
|
232
|
-
@photo_services = nil if refresh_services
|
233
|
-
@photo_services ||= get_services(refresh_services).find_all{|service| service.service_category.name == 'Photos' }
|
234
|
-
end
|
235
|
-
|
236
|
-
# Get all video services
|
237
|
-
#
|
238
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
239
|
-
# will result in the values being repopulated from the database
|
240
|
-
def self.get_video_services(refresh_services = false)
|
241
|
-
@video_services = nil if refresh_services
|
242
|
-
@video_services ||= get_services(refresh_services).find_all{|service| service.service_category.name == 'Videos' }
|
243
|
-
end
|
244
|
-
|
245
|
-
# Get all bookmark services
|
246
|
-
#
|
247
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
248
|
-
# will result in the values being repopulated from the database
|
249
|
-
def self.get_bookmark_services(refresh_services = false)
|
250
|
-
@bookmark_services = nil if refresh_services
|
251
|
-
@bookmark_services ||= get_services(refresh_services).find_all{|service| service.service_category.name == 'Bookmarks' }
|
252
|
-
end
|
253
|
-
|
254
|
-
# Get all music services
|
255
|
-
#
|
256
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
257
|
-
# will result in the values being repopulated from the database
|
258
|
-
def self.get_music_services(refresh_services = false)
|
259
|
-
@music_services = nil if refresh_services
|
260
|
-
@music_services ||= get_services(refresh_services).find_all{|service| service.service_category.name == 'Music' }
|
261
|
-
end
|
262
|
-
|
263
|
-
# Get all news services
|
264
|
-
#
|
265
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
266
|
-
# will result in the values being repopulated from the database
|
267
|
-
def self.get_news_services(refresh_services = false)
|
268
|
-
@news_services = nil if refresh_services
|
269
|
-
@news_services ||= get_services(refresh_services).find_all{|service| service.service_category.name == 'News' }
|
270
|
-
end
|
271
|
-
|
272
|
-
# Get all blog services
|
273
|
-
#
|
274
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
275
|
-
# will result in the values being repopulated from the database
|
276
|
-
def self.get_blog_services(refresh_services = false)
|
277
|
-
@blog_services = nil if refresh_services
|
278
|
-
@blog_services ||= get_services(refresh_services).find_all{|service| service.service_category.name == 'Blogging' }
|
279
|
-
end
|
280
|
-
|
281
|
-
# Get all search services
|
282
|
-
#
|
283
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
284
|
-
# will result in the values being repopulated from the database
|
285
|
-
def self.get_search_services(refresh_services = false)
|
286
|
-
@search_services = nil if refresh_services
|
287
|
-
@search_services ||= get_services(refresh_services).find_all{|service| service.service_category.name == 'Search' }
|
288
|
-
end
|
289
|
-
|
290
|
-
# Get all general services. These are all services except photo, video, bookmark and music.
|
291
|
-
#
|
292
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
293
|
-
# will result in the values being repopulated from the database
|
294
|
-
def self.get_general_services(refresh_services = false)
|
295
|
-
@general_services = nil if refresh_services
|
296
|
-
@general_services ||= get_services(refresh_services).find_all{|service| !non_general_categories.include?(service.service_category.name) }
|
297
|
-
end
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
# Get all photo services that are used to generate tag feeds
|
302
|
-
#
|
303
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
304
|
-
# will result in the values being repopulated from the database
|
305
|
-
def self.get_photo_tag_services(refresh_services = false)
|
306
|
-
@photo_services = nil if refresh_services
|
307
|
-
@photo_services ||= get_tag_services(nil, refresh_services).find_all{|service| service.service_category.name == 'Photos' }
|
308
|
-
end
|
309
|
-
|
310
|
-
# Get all video services that are used to generate tag feeds
|
311
|
-
#
|
312
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
313
|
-
# will result in the values being repopulated from the database
|
314
|
-
def self.get_video_tag_services(refresh_services = false)
|
315
|
-
@video_services = nil if refresh_services
|
316
|
-
@video_services ||= get_tag_services(nil, refresh_services).find_all{|service| service.service_category.name == 'Videos' }
|
317
|
-
end
|
318
|
-
|
319
|
-
# Get all bookmark services that are used to generate tag feeds
|
320
|
-
#
|
321
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
322
|
-
# will result in the values being repopulated from the database
|
323
|
-
def self.get_bookmark_tag_services(refresh_services = false)
|
324
|
-
@bookmark_services = nil if refresh_services
|
325
|
-
@bookmark_services ||= get_tag_services(nil, refresh_services).find_all{|service| service.service_category.name == 'Bookmarks' }
|
326
|
-
end
|
327
|
-
|
328
|
-
# Get all music services that are used to generate tag feeds
|
329
|
-
#
|
330
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
331
|
-
# will result in the values being repopulated from the database
|
332
|
-
def self.get_music_tag_services(refresh_services = false)
|
333
|
-
@music_services = nil if refresh_services
|
334
|
-
@music_services ||= get_tag_services(nil, refresh_services).find_all{|service| service.service_category.name == 'Music' }
|
335
|
-
end
|
336
|
-
|
337
|
-
# Get all news services that are used to generate tag feeds
|
338
|
-
#
|
339
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
340
|
-
# will result in the values being repopulated from the database
|
341
|
-
def self.get_news_tag_services(refresh_services = false)
|
342
|
-
@news_services = nil if refresh_services
|
343
|
-
@news_services ||= get_tag_services(nil, refresh_services).find_all{|service| service.service_category.name == 'News' }
|
344
|
-
end
|
345
|
-
|
346
|
-
# Get all blog services that are used to generate tag feeds
|
347
|
-
#
|
348
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
349
|
-
# will result in the values being repopulated from the database
|
350
|
-
def self.get_blog_tag_services(refresh_services = false)
|
351
|
-
@blog_services = nil if refresh_services
|
352
|
-
@blog_services ||= get_tag_services(nil, refresh_services).find_all{|service| service.service_category.name == 'Blogging' }
|
353
|
-
end
|
354
|
-
|
355
|
-
# Get all search services that are used to generate tag feeds
|
356
|
-
#
|
357
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
358
|
-
# will result in the values being repopulated from the database
|
359
|
-
def self.get_search_tag_services(refresh_services = false)
|
360
|
-
@search_services = nil if refresh_services
|
361
|
-
@search_services ||= get_tag_services(nil, refresh_services).find_all{|service| service.service_category.name == 'Search' }
|
362
|
-
end
|
363
|
-
|
364
|
-
# Get all general services that are used to generate tag feeds
|
365
|
-
#
|
366
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
367
|
-
# will result in the values being repopulated from the database
|
368
|
-
def self.get_general_tag_services(refresh_services = false)
|
369
|
-
@general_services = nil if refresh_services
|
370
|
-
@general_services ||= get_tag_services(nil, refresh_services).find_all{|service| !non_general_categories.include?(service.service_category.name) }
|
371
|
-
end
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
# Builds tag based feeds for the given term. Feeds are not saved to the database.
|
377
|
-
#
|
378
|
-
# terms: Terms for which to generate feeds. This value can be an array, a single string,
|
379
|
-
# or a list of items seperated by a comma.
|
380
|
-
# user: User to attach the feed to. This is the feed 'contributor.
|
381
|
-
# selected_service_ids: ids for services to select.
|
382
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
383
|
-
# will result in the values being repopulated from the database
|
384
|
-
def self.build_tag_feeds(terms, user, selected_service_ids = nil, refresh_services = false)
|
385
|
-
services = get_tag_services(selected_service_ids, refresh_services)
|
386
|
-
split_terms(terms).collect { |tag|
|
387
|
-
services.collect { |service| Feed.new(:uri => service.generate_tag_uri(tag),
|
388
|
-
:display_uri => service.human_uri(tag),
|
389
|
-
:title => I18n.t('muck.raker.service_feed_name', :term => CGI.unescape(tag).humanize, :service => service.name),
|
390
|
-
:service_id => service.id,
|
391
|
-
:contributor_id => user) }
|
392
|
-
}.flatten!
|
393
|
-
end
|
394
|
-
|
395
|
-
# Builds feeds (does not save them to the db) for the given term. Note that this
|
396
|
-
# method calls the url for each feed created to attempt auto discovery and so it
|
397
|
-
# can take a while to run.
|
398
|
-
#
|
399
|
-
# terms: Terms for which to generate feeds. This value can be an array, a single string,
|
400
|
-
# or a list of items seperated by a comma.
|
401
|
-
# user: User to attach the feed to. This is the feed 'contributor.
|
402
|
-
# selected_service_ids: ids for services to select.
|
403
|
-
def self.build_live_tag_feeds(terms, user, selected_service_ids = nil)
|
404
|
-
uris = generate_tag_uris(terms, selected_service_ids)
|
405
|
-
feed_uris = uris.collect { |uri| Feed.discover_feeds(uri)}
|
406
|
-
feed_uris.collect { |feed| Feed.new(:uri => feed.url,
|
407
|
-
:title => feed.title,
|
408
|
-
:service_id => service.id,
|
409
|
-
:contributor_id => user) }
|
410
|
-
end
|
411
|
-
|
412
|
-
# Create feeds for the given terms and save them to the database.
|
413
|
-
# terms: Terms for which to generate feeds. This value can be an array, a single string,
|
414
|
-
# or a list of items seperated by a comma.
|
415
|
-
# user: User to attach the feed to. This is the feed 'contributor.
|
416
|
-
# selected_service_ids: ids for services to select.
|
417
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
418
|
-
# will result in the values being repopulated from the database
|
419
|
-
def self.create_tag_feeds(terms, user = nil, selected_service_ids = nil, refresh_services = false)
|
420
|
-
services = get_tag_services(selected_service_ids, refresh_services)
|
421
|
-
split_terms(terms).collect { |tag|
|
422
|
-
services.collect { |service| Feed.find_or_create(service.generate_tag_uri(tag), tag, '', '', service.id, user, service.human_uri(tag)) }
|
423
|
-
}.flatten!
|
424
|
-
end
|
425
|
-
|
426
|
-
# Splits terms using a comma. This method also URI encodes all resulting terms
|
427
|
-
# terms: A string, array or comma delimited string of terms (tags).
|
428
|
-
def self.split_terms(terms)
|
429
|
-
return '' if terms.blank?
|
430
|
-
terms = terms.split(',') unless terms.is_a?(Array)
|
431
|
-
terms.collect { |tag| CGI.escape(tag.strip) }
|
432
|
-
end
|
433
|
-
|
434
|
-
# Gets all services with the specified service ids. If selected_service_ids is not
|
435
|
-
# provided then this method will get all tag services
|
436
|
-
#
|
437
|
-
# selected_service_ids: ids for services to select.
|
438
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
439
|
-
# will result in the values being repopulated from the database
|
440
|
-
def self.get_tag_services(selected_service_ids = nil, refresh_services = false)
|
441
|
-
if selected_service_ids
|
442
|
-
selected_service_ids.collect! { |service_id| service_id.to_i } # make sure the ids are ints
|
443
|
-
Service.tag_services.find_all { |service| selected_service_ids.include?(service.id) }
|
444
|
-
else
|
445
|
-
if refresh_services
|
446
|
-
@tag_services = Service.tag_services
|
447
|
-
else
|
448
|
-
@tag_services ||= Service.tag_services
|
449
|
-
end
|
450
|
-
end
|
451
|
-
end
|
452
|
-
|
453
|
-
# Selects and caches all services from the database.
|
454
|
-
#
|
455
|
-
# refresh_services: By default all tag services are cached. Setting this value to true
|
456
|
-
# will result in the values being repopulated from the database
|
457
|
-
def self.get_services(refresh_services = false)
|
458
|
-
@all_services = nil if refresh_services
|
459
|
-
@all_services ||= Service.all
|
460
|
-
end
|
461
|
-
|
462
|
-
# Attempts to find a service object using a uri
|
463
|
-
#
|
464
|
-
# uri: Uri to search for. This method will attempt to all services for any part of the provided uri.
|
465
|
-
# refresh_services: Forces a refresh of the services. By default the services are cached for the duration of the request.
|
466
|
-
def self.find_service_by_uri(uri, refresh_services = false)
|
467
|
-
service = get_services(refresh_services).detect { |service| service.uri && service.uri.length > 0 && (uri.include?(service.uri) || service.uri.include?(uri)) }
|
468
|
-
service ||= default_service
|
469
|
-
service
|
470
|
-
end
|
471
|
-
|
472
|
-
# Turns all items in an array into integers.
|
473
|
-
def self.make_int_array(a)
|
474
|
-
a.collect{|i| i.to_i}
|
475
|
-
end
|
476
|
-
|
477
|
-
# Default service is RSS
|
478
|
-
def self.default_service
|
479
|
-
Service.find_by_name('rss') # this will return the default rss service
|
480
|
-
end
|
481
|
-
|
482
|
-
def self.non_general_categories
|
483
|
-
['Photos', 'Videos', 'Bookmarks', 'Music', 'News', 'Blogging', 'Search']
|
484
|
-
end
|
485
|
-
|
486
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# == Schema Information
|
2
|
-
#
|
3
|
-
# Table name: service_categories
|
4
|
-
#
|
5
|
-
# id :integer(4) not null, primary key
|
6
|
-
# name :string(255) not null
|
7
|
-
# sort :integer(4) default(0)
|
8
|
-
#
|
9
|
-
|
10
|
-
class ServiceCategory < ActiveRecord::Base
|
11
|
-
named_scope :sorted, :order => "sort ASC"
|
12
|
-
has_many :services, :order => 'sort ASC'
|
13
|
-
has_many :identity_services, :class_name => 'Service', :order => 'sort ASC', :conditions => ['use_for = ?', 'identity']
|
14
|
-
has_many :tag_services, :class_name => 'Service', :order => 'sort ASC', :conditions => ['use_for = ?', 'tags']
|
15
|
-
end
|
data/app/models/subject.rb
DELETED
data/app/models/tag_cloud.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# == Schema Information
|
2
|
-
#
|
3
|
-
# Table name: tag_clouds
|
4
|
-
#
|
5
|
-
# id :integer(4) not null, primary key
|
6
|
-
# language_id :integer(4)
|
7
|
-
# filter :string(255)
|
8
|
-
# tag_list :string(5000)
|
9
|
-
# grain_size :string(255) default("all")
|
10
|
-
#
|
11
|
-
|
12
|
-
class TagCloud < ActiveRecord::Base
|
13
|
-
|
14
|
-
# Get a tag cloud for the given language
|
15
|
-
# HACK language_id = 38 is english
|
16
|
-
def self.language_tags(language_id = 38, grain_size = 'all', filter = '')
|
17
|
-
cloud = TagCloud.find(:first, :conditions => ["language_id = ? AND grain_size = ? AND filter = ? ", language_id, grain_size, filter.sort.join('/')])
|
18
|
-
cloud.nil? ? '' : cloud.tag_list
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<% activity_for(activity, :activity_css_class => 'activity-entry-comment') do -%>
|
2
|
-
<% if limited -%>
|
3
|
-
<%= activity.item.body %>
|
4
|
-
<% else -%>
|
5
|
-
<%= t('muck.raker.entry_commment_contents', :resource => link_to(activity.item.commentable.title, visit_path(activity.item.commentable, :show_comments => true))) -%>
|
6
|
-
<p class="entry-comment-contents"><%= activity.item.body %></p>
|
7
|
-
<% end -%>
|
8
|
-
<% end -%>
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<% if activity.item.entry
|
2
|
-
link = link_to(activity.item.title, visit_path(activity.item.entry), :target => '_blank')
|
3
|
-
else
|
4
|
-
link = link_to(activity.item.title, activity.item.uri, :target => '_blank')
|
5
|
-
end -%>
|
6
|
-
<% activity_for(activity, :activity_css_class => 'activity-share') do -%>
|
7
|
-
<%= t('muck.shares.share_activity_content', :link => link, :message => activity.item.message) %>
|
8
|
-
<% end -%>
|
@@ -1,35 +0,0 @@
|
|
1
|
-
<h1><%= t('muck.raker.feeds_title') %></h1>
|
2
|
-
<div>
|
3
|
-
<p>
|
4
|
-
<%= link_to t('muck.raker.discover_feed'), new_feed_preview_path, :class => 'iframe lightbox' %>
|
5
|
-
<%= link_to t('muck.raker.add_feed'), new_feed_path, :class => 'iframe lightbox' %>
|
6
|
-
<%= link_to t('muck.raker.add_feed_advanced'), new_extended_feeds_path, :class => 'iframe lightbox' %>
|
7
|
-
</p>
|
8
|
-
<table class="feeds">
|
9
|
-
<tr>
|
10
|
-
<th><%= link_to t('muck.raker.approval_status'), sort_feeds_link(params[:order], params[:asc], 'status', true) %></th>
|
11
|
-
<th><%= link_to t('muck.raker.status'), sort_feeds_link(params[:order], params[:asc], 'status', true) %></th>
|
12
|
-
<th><%= link_to t('muck.raker.default_language'), sort_feeds_link(params[:order], params[:asc], 'languages.english_name', true) %></th>
|
13
|
-
<th><%= link_to t('muck.raker.entries_count'), sort_feeds_link(params[:order], params[:asc], 'entries_count', true) %></th>
|
14
|
-
<th><%= link_to t('muck.raker.repository'), sort_feeds_link(params[:order], params[:asc], 'harvested_from_title', true) %></th>
|
15
|
-
<th><%= link_to t('muck.raker.title'), sort_feeds_link(params[:order], params[:asc], 'title', true) %></th>
|
16
|
-
<th><%= link_to t('muck.raker.harvested_at'), sort_feeds_link(params[:order], params[:asc], 'last_harvested_at', true) %></th>
|
17
|
-
<th><%= link_to t('muck.raker.added_date'), sort_feeds_link(params[:order], params[:asc], 'created_at', true) %></th>
|
18
|
-
</tr>
|
19
|
-
<%= render :partial => 'feeds/feed_row', :collection => @feeds, :locals => { :show_admin => true } %>
|
20
|
-
</table>
|
21
|
-
<div class="clear">
|
22
|
-
<%= will_paginate @feeds %>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<% content_for :javascript do -%>
|
27
|
-
jQuery(document).ready(function() {
|
28
|
-
jQuery('a.lightbox').fancybox({
|
29
|
-
'hideOnContentClick': true,
|
30
|
-
'overlayShow': true,
|
31
|
-
'frameWidth': 700,
|
32
|
-
'frameHeight': 600
|
33
|
-
});
|
34
|
-
});
|
35
|
-
<% end -%>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<h1><%= t('muck.raker.feeds_title') %></h1>
|
2
|
-
<div>
|
3
|
-
<p>
|
4
|
-
<%= link_to t('muck.raker.discover_feed'), new_feed_preview_path, :class => 'iframe lightbox' %>
|
5
|
-
<%= link_to t('muck.raker.add_feed'), new_feed_path, :class => 'iframe lightbox' %>
|
6
|
-
<%= link_to t('muck.raker.add_feed_advanced'), new_extended_feeds_path, :class => 'iframe lightbox' %>
|
7
|
-
</p>
|
8
|
-
<table class="feeds">
|
9
|
-
<tr>
|
10
|
-
<th><%= link_to t('muck.raker.status'), sort_feeds_link(params[:order], params[:asc], 'status', true) %></th>
|
11
|
-
<th><%= link_to t('muck.raker.default_language'), sort_feeds_link(params[:order], params[:asc], 'languages.english_name', true) %></th>
|
12
|
-
<th><%= link_to t('muck.raker.title'), sort_feeds_link(params[:order], params[:asc], 'title', true) %></th>
|
13
|
-
<th><%= link_to t('muck.raker.added_date'), sort_feeds_link(params[:order], params[:asc], 'created_at', true) %></th>
|
14
|
-
</tr>
|
15
|
-
<%= render :partial => 'oai_endpoints/oai_endpoint_row', :collection => @oai_endpoints, :locals => { :show_admin => true } %>
|
16
|
-
</table>
|
17
|
-
<div class="clear">
|
18
|
-
<%= will_paginate @oai_endpoints %>
|
19
|
-
</div>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<% content_for :javascript do -%>
|
23
|
-
jQuery(document).ready(function() {
|
24
|
-
jQuery('a.lightbox').fancybox({
|
25
|
-
'hideOnContentClick': true,
|
26
|
-
'overlayShow': true,
|
27
|
-
'frameWidth': 700,
|
28
|
-
'frameHeight': 600
|
29
|
-
});
|
30
|
-
});
|
31
|
-
<% end -%>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= aggregation.title %><%= aggregation.feed_count %>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<div id="sources-list">
|
2
|
-
<% service_categories.each do |service_category| -%>
|
3
|
-
<% if service_category.tag_services.length > 0 -%>
|
4
|
-
<ul id="<%= service_category.dom_id %>-sources-list" class="services-list">
|
5
|
-
<li class="source-title"><%= service_category.name %></li>
|
6
|
-
<%= render :partial => 'aggregations/data_source', :collection => service_category.tag_services %>
|
7
|
-
</ul>
|
8
|
-
<% end -%>
|
9
|
-
<% end -%>
|
10
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= google_feeds(@feeds, @show_controls, @number_of_items, @number_of_images, @number_of_videos, false, true) %>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<h2><%= I18n.t('muck.raker.new_aggregation') %></h2>
|
2
|
-
<%= text_field_tag :terms, params[:terms] %>
|
3
|
-
<p><%= t('muck.raker.terms_instructions') %></p>
|
4
|
-
<div class="button form-row">
|
5
|
-
<%= f.submit t('muck.raker.search'), :id => 'search' %>
|
6
|
-
<span id="searching_message" style="display:none;">
|
7
|
-
<%= t('muck.raker.finding_topics') %><img src="/images/spinner.gif" alt="<%= t('muck.general.loading') %>" />
|
8
|
-
</span>
|
9
|
-
</div>
|
10
|
-
<% content_for :javascript do -%>
|
11
|
-
<%= show_hide_on_click('searching_message', 'search') %>
|
12
|
-
<% end -%>
|