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
@@ -1,89 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::AggregationsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
tests Muck::AggregationsController
|
6
|
-
|
7
|
-
context "aggregations controller" do
|
8
|
-
setup do
|
9
|
-
@admin = Factory(:user)
|
10
|
-
@admin_role = Factory(:role, :rolename => 'administrator')
|
11
|
-
@admin.roles << @admin_role
|
12
|
-
activate_authlogic
|
13
|
-
login_as @admin
|
14
|
-
end
|
15
|
-
|
16
|
-
context "GET index" do
|
17
|
-
setup do
|
18
|
-
get :index
|
19
|
-
end
|
20
|
-
should_not_set_the_flash
|
21
|
-
should_respond_with :success
|
22
|
-
should_render_template :index
|
23
|
-
end
|
24
|
-
|
25
|
-
context "GET new" do
|
26
|
-
setup do
|
27
|
-
get :new
|
28
|
-
end
|
29
|
-
should_not_set_the_flash
|
30
|
-
should_respond_with :success
|
31
|
-
should_render_template :new
|
32
|
-
end
|
33
|
-
|
34
|
-
context "GET show" do
|
35
|
-
setup do
|
36
|
-
@aggregation = Factory(:aggregation)
|
37
|
-
get :show, :id => @aggregation.to_param
|
38
|
-
end
|
39
|
-
should_not_set_the_flash
|
40
|
-
should_respond_with :success
|
41
|
-
should_render_template :show
|
42
|
-
end
|
43
|
-
|
44
|
-
context "GET edit" do
|
45
|
-
setup do
|
46
|
-
@aggregation = Factory(:aggregation)
|
47
|
-
get :edit, :id => @aggregation.to_param
|
48
|
-
end
|
49
|
-
should_not_set_the_flash
|
50
|
-
should_respond_with :success
|
51
|
-
should_render_template :edit
|
52
|
-
end
|
53
|
-
|
54
|
-
context "POST create" do
|
55
|
-
setup do
|
56
|
-
@term = 'example'
|
57
|
-
post :create, :aggregation => { :terms => @term }
|
58
|
-
end
|
59
|
-
should_redirect_to("aggregation") { edit_aggregation_path(assigns(:aggregation)) }
|
60
|
-
should "set the flash to add feeds" do
|
61
|
-
ensure_flash_contains(I18n.t('muck.raker.add_feeds_to_aggregation', :title => @term))
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
context "PUT update" do
|
66
|
-
setup do
|
67
|
-
@aggregation = Factory(:aggregation)
|
68
|
-
put :update, :id => @aggregation.to_param, :aggregation => { :terms => 'fish' }
|
69
|
-
end
|
70
|
-
should_redirect_to("aggregation") { edit_user_aggregation_path(@aggregation.ownable, assigns(:aggregation)) }
|
71
|
-
should "set the flash to updated aggregation" do
|
72
|
-
ensure_flash_contains(I18n.t('muck.raker.aggregation_updated'))
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
context "DELETE destroy" do
|
77
|
-
setup do
|
78
|
-
@aggregation = Factory(:aggregation)
|
79
|
-
delete :destroy, :id => @aggregation.to_param
|
80
|
-
end
|
81
|
-
should_redirect_to("aggregations") { user_aggregations_path(@aggregation.ownable) }
|
82
|
-
should "set the flash to deleted" do
|
83
|
-
ensure_flash_contains(I18n.t('muck.raker.aggregation_deleted', :title => ''))
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
end
|
88
|
-
|
89
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::FeedPreviewsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
tests Muck::FeedPreviewsController
|
6
|
-
|
7
|
-
context "feed previews controller" do
|
8
|
-
|
9
|
-
context "GET new" do
|
10
|
-
setup do
|
11
|
-
get :new
|
12
|
-
end
|
13
|
-
should_not_set_the_flash
|
14
|
-
should_respond_with :success
|
15
|
-
should_render_template :new
|
16
|
-
end
|
17
|
-
|
18
|
-
context "POST to select_feeds" do
|
19
|
-
setup do
|
20
|
-
post :select_feeds, :feed => { :uri => TEST_URI }
|
21
|
-
end
|
22
|
-
should_not_set_the_flash
|
23
|
-
should_respond_with :success
|
24
|
-
should_render_template :select_feeds
|
25
|
-
should "return feeds for the given uri" do
|
26
|
-
assert assigns(:feeds).length > 0
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::FeedsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
tests Muck::FeedsController
|
6
|
-
|
7
|
-
context "feeds controller" do
|
8
|
-
|
9
|
-
context "GET index" do
|
10
|
-
setup do
|
11
|
-
get :index
|
12
|
-
end
|
13
|
-
should_not_set_the_flash
|
14
|
-
should_respond_with :success
|
15
|
-
should_render_template :index
|
16
|
-
end
|
17
|
-
|
18
|
-
context "GET show" do
|
19
|
-
setup do
|
20
|
-
@feed = Factory(:feed)
|
21
|
-
get :show, :id => @feed.to_param, :format => 'html'
|
22
|
-
end
|
23
|
-
should_not_set_the_flash
|
24
|
-
should_respond_with :success
|
25
|
-
should_render_template :show
|
26
|
-
end
|
27
|
-
|
28
|
-
context "logged in" do
|
29
|
-
setup do
|
30
|
-
@admin = Factory(:user)
|
31
|
-
@admin_role = Factory(:role, :rolename => 'administrator')
|
32
|
-
@admin.roles << @admin_role
|
33
|
-
activate_authlogic
|
34
|
-
login_as @admin
|
35
|
-
end
|
36
|
-
|
37
|
-
context "GET new" do
|
38
|
-
setup do
|
39
|
-
get :new
|
40
|
-
end
|
41
|
-
should_not_set_the_flash
|
42
|
-
should_respond_with :success
|
43
|
-
should_render_template :new
|
44
|
-
end
|
45
|
-
|
46
|
-
context "GET new_extended" do
|
47
|
-
setup do
|
48
|
-
get :new_extended
|
49
|
-
end
|
50
|
-
should_not_set_the_flash
|
51
|
-
should_respond_with :success
|
52
|
-
should_render_template :new_extended
|
53
|
-
end
|
54
|
-
|
55
|
-
context "POST create (simple)" do
|
56
|
-
setup do
|
57
|
-
post :create, :feed => { :uri => TEST_RSS_URI }
|
58
|
-
end
|
59
|
-
should_set_the_flash_to(I18n.t('muck.raker.feed_successfully_created', :uri => TEST_RSS_URI))
|
60
|
-
end
|
61
|
-
|
62
|
-
context "POST create (advanced)" do
|
63
|
-
setup do
|
64
|
-
post :create, :feed => { :uri => TEST_RSS_URI,
|
65
|
-
:display_uri => 'http://www.example.com',
|
66
|
-
:title => 'test feed long',
|
67
|
-
:short_title => 'test feed',
|
68
|
-
:description => 'foo bar' }
|
69
|
-
end
|
70
|
-
should_set_the_flash_to(I18n.t('muck.raker.feed_successfully_created', :uri => TEST_RSS_URI))
|
71
|
-
end
|
72
|
-
|
73
|
-
end
|
74
|
-
|
75
|
-
end
|
76
|
-
|
77
|
-
end
|
@@ -1,110 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::IdentityFeedsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
tests Muck::IdentityFeedsController
|
6
|
-
|
7
|
-
context "identity feeds controller" do
|
8
|
-
|
9
|
-
setup do
|
10
|
-
@user = Factory(:user)
|
11
|
-
@service = Factory(:service)
|
12
|
-
activate_authlogic
|
13
|
-
login_as @user
|
14
|
-
end
|
15
|
-
|
16
|
-
context "GET index" do
|
17
|
-
setup do
|
18
|
-
get :index, :user_id => @user.to_param
|
19
|
-
end
|
20
|
-
should_not_set_the_flash
|
21
|
-
should_respond_with :success
|
22
|
-
should_render_template :index
|
23
|
-
end
|
24
|
-
|
25
|
-
context "GET new" do
|
26
|
-
setup do
|
27
|
-
get :new, :user_id => @user.to_param, :service_id => @service.to_param
|
28
|
-
end
|
29
|
-
should_not_set_the_flash
|
30
|
-
should_respond_with :success
|
31
|
-
should_render_template :new
|
32
|
-
end
|
33
|
-
|
34
|
-
context "POST create using bogus service and bogus uri" do
|
35
|
-
setup do
|
36
|
-
@service = Factory(:service)
|
37
|
-
@uri = 'http://www.example.com'
|
38
|
-
post :create, :service_id => @service.to_param, :uri => @uri, :user_id => @user
|
39
|
-
end
|
40
|
-
should_set_the_flash_to(I18n.t('muck.raker.no_feeds_at_uri'))
|
41
|
-
should_redirect_to("parent") { user_identity_feeds_url(@user.id) }
|
42
|
-
end
|
43
|
-
|
44
|
-
context "POST create using bogus service and username" do
|
45
|
-
setup do
|
46
|
-
@service = Factory(:service)
|
47
|
-
post :create, :service_id => @service.to_param, :username => 'test', :user_id => @user
|
48
|
-
end
|
49
|
-
should_set_the_flash_to(I18n.t('muck.raker.no_feeds_from_username'))
|
50
|
-
should_redirect_to("parent") { user_identity_feeds_url(@user.id) }
|
51
|
-
end
|
52
|
-
|
53
|
-
context "POST create using uri" do
|
54
|
-
setup do
|
55
|
-
@service = Factory(:service)
|
56
|
-
@uri = TEST_URI
|
57
|
-
post :create, :service_id => @service.to_param, :uri => @uri, :user_id => @user
|
58
|
-
end
|
59
|
-
should "set success in the flash" do
|
60
|
-
ensure_flash_contains(I18n.t('muck.raker.successfully_added_uri_feed'))
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
context "POST create using valid service username" do
|
65
|
-
setup do
|
66
|
-
@service = Factory(:service, :uri_data_template => TEST_USERNAME_TEMPLATE)
|
67
|
-
@username = 'jbasdf'
|
68
|
-
end
|
69
|
-
context "html" do
|
70
|
-
setup do
|
71
|
-
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user
|
72
|
-
end
|
73
|
-
should_set_the_flash_to(I18n.t('muck.raker.successfully_added_username_feed', :service => ''))
|
74
|
-
should_redirect_to("parent") { user_identity_feeds_url(@user.id) }
|
75
|
-
end
|
76
|
-
context "json" do
|
77
|
-
setup do
|
78
|
-
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user, :format => 'json'
|
79
|
-
end
|
80
|
-
should_respond_with :success
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
context "POST create using valid service username - duplicate" do
|
85
|
-
setup do
|
86
|
-
@service = Factory(:service, :uri_data_template => TEST_USERNAME_TEMPLATE)
|
87
|
-
@username = 'jbasdf'
|
88
|
-
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user
|
89
|
-
post :create, :service_id => @service.to_param, :username => @username, :user_id => @user
|
90
|
-
end
|
91
|
-
should_set_the_flash_to(I18n.t('muck.raker.already_added_username_feed', :service => '', :username => 'jbasdf')) # really do have to hard code the string here. @username is nil
|
92
|
-
should_redirect_to("parent") { user_identity_feeds_url(@user.id) }
|
93
|
-
end
|
94
|
-
|
95
|
-
context "POST create using uri - duplicate" do
|
96
|
-
setup do
|
97
|
-
@service = Factory(:service)
|
98
|
-
@uri = TEST_URI
|
99
|
-
post :create, :service_id => @service.to_param, :uri => @uri, :user_id => @user
|
100
|
-
post :create, :service_id => @service.to_param, :uri => @uri, :user_id => @user
|
101
|
-
end
|
102
|
-
should "set already added in the flash" do
|
103
|
-
ensure_flash_contains(I18n.t('muck.raker.already_added_uri_feed', :uri => @uri))
|
104
|
-
end
|
105
|
-
should_redirect_to("parent") { user_identity_feeds_url(@user.id) }
|
106
|
-
end
|
107
|
-
|
108
|
-
end
|
109
|
-
|
110
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::OaiEndpointsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
tests Muck::OaiEndpointsController
|
6
|
-
|
7
|
-
context "oai endpoints controller" do
|
8
|
-
|
9
|
-
context "logged in as admin" do
|
10
|
-
setup do
|
11
|
-
@user = Factory(:user)
|
12
|
-
activate_authlogic
|
13
|
-
login_as @user
|
14
|
-
end
|
15
|
-
context "GET new" do
|
16
|
-
setup do
|
17
|
-
get :new
|
18
|
-
end
|
19
|
-
should_not_set_the_flash
|
20
|
-
should_respond_with :success
|
21
|
-
should_render_template :new
|
22
|
-
end
|
23
|
-
context "POST create" do
|
24
|
-
setup do
|
25
|
-
post :create, :oai_endpoint => { :uri => 'http://www.example.com', :title => 'example' }
|
26
|
-
end
|
27
|
-
should_set_the_flash_to(I18n.t('muck.raker.oai_endpoint_successfully_created'))
|
28
|
-
should_redirect_to("show oai endpoint") { oai_endpoint_url(assigns(:oai_endpoint)) }
|
29
|
-
end
|
30
|
-
context "GET show" do
|
31
|
-
setup do
|
32
|
-
@oai_endpoint = Factory(:oai_endpoint)
|
33
|
-
get :show, :id => @oai_endpoint.to_param
|
34
|
-
end
|
35
|
-
should_not_set_the_flash
|
36
|
-
should_respond_with :success
|
37
|
-
should_render_template :show
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::TopicsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
tests Muck::TopicsController
|
6
|
-
|
7
|
-
context "topics controller" do
|
8
|
-
|
9
|
-
context "GET new" do
|
10
|
-
setup do
|
11
|
-
get :new
|
12
|
-
end
|
13
|
-
should_not_set_the_flash
|
14
|
-
should_respond_with :success
|
15
|
-
should_render_template :new
|
16
|
-
end
|
17
|
-
|
18
|
-
context "GET rss_discovery with term defined" do
|
19
|
-
setup do
|
20
|
-
get :rss_discovery, :id => 'ruby,rails'
|
21
|
-
end
|
22
|
-
should_not_set_the_flash
|
23
|
-
should_respond_with :success
|
24
|
-
should_render_template :rss_discovery
|
25
|
-
end
|
26
|
-
|
27
|
-
context "GET show with term defined" do
|
28
|
-
setup do
|
29
|
-
get :show, :id => 'ruby,rails'
|
30
|
-
end
|
31
|
-
should_not_set_the_flash
|
32
|
-
should_respond_with :success
|
33
|
-
should_render_template :show
|
34
|
-
end
|
35
|
-
|
36
|
-
context "GET show without terms" do
|
37
|
-
setup do
|
38
|
-
get :show, :id => ' '
|
39
|
-
end
|
40
|
-
should_set_the_flash_to(I18n.t('muck.raker.no_terms_error'))
|
41
|
-
should_redirect_to("new topic") { new_topic_path }
|
42
|
-
end
|
43
|
-
|
44
|
-
end
|
45
|
-
|
46
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::VisitsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
tests Muck::VisitsController
|
6
|
-
|
7
|
-
context "visits controller" do
|
8
|
-
|
9
|
-
context "GET show" do
|
10
|
-
setup do
|
11
|
-
@entry = Factory(:entry)
|
12
|
-
get :show, :id => @entry.to_param, :format => 'html'
|
13
|
-
end
|
14
|
-
should_not_set_the_flash
|
15
|
-
should_respond_with :success
|
16
|
-
should_render_template :show
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
module MuckControllerMacros
|
2
|
-
|
3
|
-
def should_require_login(*args)
|
4
|
-
args = Hash[*args]
|
5
|
-
login_url = args.delete :login_url
|
6
|
-
args.each do |action, verb|
|
7
|
-
should "Require login for '#{action}' action" do
|
8
|
-
if [:put, :delete].include?(verb) # put and delete require an id even if it is a bogus one
|
9
|
-
send(verb, action, :id => 1)
|
10
|
-
else
|
11
|
-
send(verb, action)
|
12
|
-
end
|
13
|
-
assert_redirected_to(login_url)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def should_require_role(role, redirect_url, *actions)
|
19
|
-
actions.each do |action|
|
20
|
-
should "require role for '#{action}' action" do
|
21
|
-
get(action)
|
22
|
-
ensure_flash(/permission/i)
|
23
|
-
assert_response :redirect
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
#from: http://blog.internautdesign.com/2008/9/11/more-on-custom-shoulda-macros-scoping-of-instance-variables
|
29
|
-
def should_not_allow action, object, url= "/login", msg=nil
|
30
|
-
msg ||= "a #{object.class.to_s.downcase}"
|
31
|
-
should "not be able to #{action} #{msg}" do
|
32
|
-
object = eval(object, self.send(:binding), __FILE__, __LINE__)
|
33
|
-
get action, :id => object.id
|
34
|
-
assert_redirected_to url
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
def should_allow action, object, msg=nil
|
39
|
-
msg ||= "a #{object.class.to_s.downcase}"
|
40
|
-
should "be able to #{action} #{msg}" do
|
41
|
-
object = eval(object, self.send(:binding), __FILE__, __LINE__)
|
42
|
-
get action, :id => object.id
|
43
|
-
assert_response :success
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|
48
|
-
|
49
|
-
ActionController::TestCase.extend(MuckControllerMacros)
|
@@ -1,32 +0,0 @@
|
|
1
|
-
module ShouldaFormMacros
|
2
|
-
def self.should_have_form(opts)
|
3
|
-
model = self.name.gsub(/ControllerTest$/, '').singularize.downcase
|
4
|
-
model = model[model.rindex('::')+2..model.size] if model.include?('::')
|
5
|
-
http_method, hidden_http_method = form_http_method opts[:method]
|
6
|
-
should "have a #{model} form" do
|
7
|
-
assert_select "form[action=?][method=#{http_method}]", eval(opts[:action]) do
|
8
|
-
if hidden_http_method
|
9
|
-
assert_select "input[type=hidden][name=_method][value=#{hidden_http_method}]"
|
10
|
-
end
|
11
|
-
opts[:fields].each do |attribute, type|
|
12
|
-
attribute = attribute.is_a?(Symbol) ? "#{model}[#{attribute.to_s}]" : attribute
|
13
|
-
assert_select "input[type=#{type.to_s}][name=?]", attribute
|
14
|
-
end
|
15
|
-
assert_select "input[type=submit]"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.form_http_method(http_method)
|
21
|
-
http_method = http_method.nil? ? 'post' : http_method.to_s
|
22
|
-
if http_method == "post" || http_method == "get"
|
23
|
-
return http_method, nil
|
24
|
-
else
|
25
|
-
return "post", http_method
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
class ActiveSupport::TestCase
|
31
|
-
extend ShouldaFormMacros
|
32
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
module ShouldaModelMacros
|
2
|
-
|
3
|
-
def should_sanitize(*attributes)
|
4
|
-
bad_scripts = [
|
5
|
-
%|';alert(String.fromCharCode(88,83,83))//\';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//\";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>|,
|
6
|
-
%|'';!--"<XSS>=&{()}|,
|
7
|
-
%|<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>|,
|
8
|
-
%|<IMG SRC="javascript:alert('XSS');">|,
|
9
|
-
%|<IMG SRC=javascript:alert('XSS')>|,
|
10
|
-
%|<IMG SRC=JaVaScRiPt:alert('XSS')>|,
|
11
|
-
%|<IMG SRC=JaVaScRiPt:alert('XSS')>|,
|
12
|
-
%|<IMG SRC=`javascript:alert("RSnake says, 'XSS'")`>|,
|
13
|
-
%|<IMG """><SCRIPT>alert("XSS")</SCRIPT>">|,
|
14
|
-
%|<IMG SRC=javascript:alert(String.fromCharCode(88,83,83))>|,
|
15
|
-
%|<A HREF="h
|
16
|
-
tt p://6	6.000146.0x7.147/">XSS</A>|,
|
17
|
-
%|<script>alert('message');</script>| ]
|
18
|
-
|
19
|
-
klass = model_class
|
20
|
-
attributes.each do |attribute|
|
21
|
-
attribute = attribute.to_sym
|
22
|
-
should "white list #{attribute}" do
|
23
|
-
assert object = klass.find(:first), "Can't find first #{klass}"
|
24
|
-
bad_scripts.each do |bad_value|
|
25
|
-
object.send("#{attribute}=", bad_value)
|
26
|
-
object.save
|
27
|
-
clean_value = object.send("#{attribute}")
|
28
|
-
assert !clean_value.include?(bad_value), "#{attribute} is not white listed. #{bad_value} made it through"
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def should_accept_nested_attributes_for(*attr_names)
|
35
|
-
klass = self.name.gsub(/Test$/, '').constantize
|
36
|
-
|
37
|
-
context "#{klass}" do
|
38
|
-
attr_names.each do |association_name|
|
39
|
-
should "accept nested attrs for #{association_name}" do
|
40
|
-
assert klass.instance_methods.include?("#{association_name}_attributes="),
|
41
|
-
"#{klass} does not accept nested attributes for #{association_name}"
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
class ActiveSupport::TestCase
|
49
|
-
extend ShouldaModelMacros
|
50
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
module ShouldaPaginationMacros
|
2
|
-
# Example:
|
3
|
-
# context "a GET to index logged in as admin" do
|
4
|
-
# setup do
|
5
|
-
# login_as_admin
|
6
|
-
# get :index
|
7
|
-
# end
|
8
|
-
# should_paginate_collection :users
|
9
|
-
# should_display_pagination
|
10
|
-
# end
|
11
|
-
def self.should_paginate_collection(collection_name)
|
12
|
-
should "paginate #{collection_name}" do
|
13
|
-
assert collection = assigns(collection_name),
|
14
|
-
"Controller isn't assigning to @#{collection_name.to_s}."
|
15
|
-
assert_kind_of WillPaginate::Collection, collection,
|
16
|
-
"@#{collection_name.to_s} isn't a WillPaginate collection."
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.should_display_pagination
|
21
|
-
should "display pagination" do
|
22
|
-
assert_select "div.pagination", { :minimum => 1 },
|
23
|
-
"View isn't displaying pagination. Add <%= will_paginate @collection %>."
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
# Example:
|
28
|
-
# context "a GET to index not logged in as admin" do
|
29
|
-
# setup { get :index }
|
30
|
-
# should_not_paginate_collection :users
|
31
|
-
# should_not_display_pagination
|
32
|
-
# end
|
33
|
-
def self.should_not_paginate_collection(collection_name)
|
34
|
-
should "not paginate #{collection_name}" do
|
35
|
-
assert collection = assigns(collection_name),
|
36
|
-
"Controller isn't assigning to @#{collection_name.to_s}."
|
37
|
-
assert_not_equal WillPaginate::Collection, collection.class,
|
38
|
-
"@#{collection_name.to_s} is a WillPaginate collection."
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def self.should_not_display_pagination
|
43
|
-
should "not display pagination" do
|
44
|
-
assert_select "div.pagination", { :count => 0 },
|
45
|
-
"View is displaying pagination. Check your logic."
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
|
51
|
-
class ActiveSupport::TestCase
|
52
|
-
extend ShouldaPaginationMacros
|
53
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module ShouldaPluginMacros
|
2
|
-
|
3
|
-
def self.should_act_as_taggable_on_steroids
|
4
|
-
klass = self.name.gsub(/Test$/, '').constantize
|
5
|
-
|
6
|
-
should "include ActsAsTaggableOnSteroids methods" do
|
7
|
-
assert klass.extended_by.include?(ActiveRecord::Acts::Taggable::ClassMethods)
|
8
|
-
assert klass.extended_by.include?(ActiveRecord::Acts::Taggable::SingletonMethods)
|
9
|
-
assert klass.include?(ActiveRecord::Acts::Taggable::InstanceMethods)
|
10
|
-
end
|
11
|
-
|
12
|
-
should_have_many :taggings, :tags
|
13
|
-
end
|
14
|
-
|
15
|
-
|
16
|
-
def self.should_act_as_list
|
17
|
-
klass = self.name.gsub(/Test$/, '').constantize
|
18
|
-
|
19
|
-
context "To support acts_as_list" do
|
20
|
-
should_have_db_column('position', :type => :integer)
|
21
|
-
end
|
22
|
-
|
23
|
-
should "include ActsAsList methods" do
|
24
|
-
assert klass.include?(ActiveRecord::Acts::List::InstanceMethods)
|
25
|
-
end
|
26
|
-
|
27
|
-
should_have_instance_methods :acts_as_list_class, :position_column, :scope_condition
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
31
|
-
|
32
|
-
ActiveSupport::TestCase.extend(ShouldaPluginMacros)
|
33
|
-
Test::Unit::TestCase.extend(ShouldaPluginMacros)
|
34
|
-
ActionController::TestCase.extend(ShouldaPluginMacros)
|