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,421 +0,0 @@
|
|
1
|
-
module ActionView
|
2
|
-
module Helpers
|
3
|
-
|
4
|
-
module JavaScriptHelper
|
5
|
-
|
6
|
-
# This function can be used to render rjs inline
|
7
|
-
#
|
8
|
-
# <%= javascript_function do |page|
|
9
|
-
# page.replace_html :list, :partial => 'list', :object => @list
|
10
|
-
# end %>
|
11
|
-
#
|
12
|
-
def javascript_function(*args, &block)
|
13
|
-
html_options = args.extract_options!
|
14
|
-
function = args[0] || ''
|
15
|
-
|
16
|
-
html_options.symbolize_keys!
|
17
|
-
function = update_page(&block) if block_given?
|
18
|
-
javascript_tag(function)
|
19
|
-
end
|
20
|
-
|
21
|
-
def jquery_id(id)
|
22
|
-
id.to_s.count('#.*,>+~:[/ ') == 0 ? "##{id}" : id
|
23
|
-
end
|
24
|
-
|
25
|
-
def jquery_ids(ids)
|
26
|
-
Array(ids).map{|id| jquery_id(id)}.join(',')
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
module PrototypeHelper
|
32
|
-
|
33
|
-
USE_PROTECTION = const_defined?(:DISABLE_JQUERY_FORGERY_PROTECTION) ? !DISABLE_JQUERY_FORGERY_PROTECTION : true
|
34
|
-
|
35
|
-
unless const_defined? :JQUERY_VAR
|
36
|
-
JQUERY_VAR = 'jQuery'
|
37
|
-
end
|
38
|
-
|
39
|
-
unless const_defined? :JQCALLBACKS
|
40
|
-
JQCALLBACKS = Set.new([ :beforeSend, :complete, :error, :success ] + (100..599).to_a)
|
41
|
-
#instance_eval { remove_const :AJAX_OPTIONS }
|
42
|
-
remove_const(:AJAX_OPTIONS) if const_defined?(:AJAX_OPTIONS)
|
43
|
-
AJAX_OPTIONS = Set.new([ :before, :after, :condition, :url,
|
44
|
-
:asynchronous, :method, :insertion, :position,
|
45
|
-
:form, :with, :update, :script ]).merge(JQCALLBACKS)
|
46
|
-
end
|
47
|
-
|
48
|
-
def periodically_call_remote(options = {})
|
49
|
-
frequency = options[:frequency] || 10 # every ten seconds by default
|
50
|
-
code = "setInterval(function() {#{remote_function(options)}}, #{frequency} * 1000)"
|
51
|
-
javascript_tag(code)
|
52
|
-
end
|
53
|
-
|
54
|
-
def remote_function(options)
|
55
|
-
javascript_options = options_for_ajax(options)
|
56
|
-
|
57
|
-
update = ''
|
58
|
-
if options[:update] && options[:update].is_a?(Hash)
|
59
|
-
update = []
|
60
|
-
update << "success:'#{options[:update][:success]}'" if options[:update][:success]
|
61
|
-
update << "failure:'#{options[:update][:failure]}'" if options[:update][:failure]
|
62
|
-
update = '{' + update.join(',') + '}'
|
63
|
-
elsif options[:update]
|
64
|
-
update << "'#{options[:update]}'"
|
65
|
-
end
|
66
|
-
|
67
|
-
function = "#{JQUERY_VAR}.ajax(#{javascript_options})"
|
68
|
-
|
69
|
-
function = "#{options[:before]}; #{function}" if options[:before]
|
70
|
-
function = "#{function}; #{options[:after]}" if options[:after]
|
71
|
-
function = "if (#{options[:condition]}) { #{function}; }" if options[:condition]
|
72
|
-
function = "if (confirm('#{escape_javascript(options[:confirm])}')) { #{function}; }" if options[:confirm]
|
73
|
-
return function
|
74
|
-
end
|
75
|
-
|
76
|
-
class JavaScriptGenerator
|
77
|
-
module GeneratorMethods
|
78
|
-
|
79
|
-
def insert_html(position, id, *options_for_render)
|
80
|
-
insertion = position.to_s.downcase
|
81
|
-
insertion = 'append' if insertion == 'bottom'
|
82
|
-
insertion = 'prepend' if insertion == 'top'
|
83
|
-
call "#{JQUERY_VAR}(\"#{jquery_id(id)}\").#{insertion}", render(*options_for_render)
|
84
|
-
end
|
85
|
-
|
86
|
-
def replace_html(id, *options_for_render)
|
87
|
-
insert_html(:html, id, *options_for_render)
|
88
|
-
end
|
89
|
-
|
90
|
-
def replace(id, *options_for_render)
|
91
|
-
call "#{JQUERY_VAR}(\"#{jquery_id(id)}\").replaceWith", render(*options_for_render)
|
92
|
-
end
|
93
|
-
|
94
|
-
def remove(*ids)
|
95
|
-
call "#{JQUERY_VAR}(\"#{jquery_ids(ids)}\").remove"
|
96
|
-
end
|
97
|
-
|
98
|
-
def show(*ids)
|
99
|
-
call "#{JQUERY_VAR}(\"#{jquery_ids(ids)}\").show"
|
100
|
-
end
|
101
|
-
|
102
|
-
def hide(*ids)
|
103
|
-
call "#{JQUERY_VAR}(\"#{jquery_ids(ids)}\").hide"
|
104
|
-
end
|
105
|
-
|
106
|
-
def toggle(*ids)
|
107
|
-
call "#{JQUERY_VAR}(\"#{jquery_ids(ids)}\").toggle"
|
108
|
-
end
|
109
|
-
|
110
|
-
def jquery_id(id)
|
111
|
-
id.to_s.count('#.*,>+~:[/ ') == 0 ? "##{id}" : id
|
112
|
-
end
|
113
|
-
|
114
|
-
def jquery_ids(ids)
|
115
|
-
Array(ids).map{|id| jquery_id(id)}.join(',')
|
116
|
-
end
|
117
|
-
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
protected
|
122
|
-
def options_for_ajax(options)
|
123
|
-
js_options = build_callbacks(options)
|
124
|
-
|
125
|
-
url_options = options[:url]
|
126
|
-
url_options = url_options.merge(:escape => false) if url_options.is_a?(Hash)
|
127
|
-
js_options['url'] = "'#{url_for(url_options)}'"
|
128
|
-
js_options['async'] = false if options[:type] == :synchronous
|
129
|
-
js_options['type'] = options[:method] ? method_option_to_s(options[:method]) : ( options[:form] ? "'post'" : nil )
|
130
|
-
js_options['dataType'] = options[:datatype] ? "'#{options[:datatype]}'" : (options[:update] ? nil : "'script'")
|
131
|
-
|
132
|
-
if options[:form]
|
133
|
-
js_options['data'] = "#{JQUERY_VAR}.param(#{JQUERY_VAR}(this).serializeArray())"
|
134
|
-
elsif options[:submit]
|
135
|
-
js_options['data'] = "#{JQUERY_VAR}(\"##{options[:submit]} :input\").serialize()"
|
136
|
-
elsif options[:with]
|
137
|
-
js_options['data'] = options[:with].gsub("Form.serialize(this.form)","#{JQUERY_VAR}.param(#{JQUERY_VAR}(this.form).serializeArray())")
|
138
|
-
end
|
139
|
-
|
140
|
-
js_options['type'] ||= "'post'"
|
141
|
-
if options[:method]
|
142
|
-
if method_option_to_s(options[:method]) == "'put'" || method_option_to_s(options[:method]) == "'delete'"
|
143
|
-
js_options['type'] = "'post'"
|
144
|
-
if js_options['data']
|
145
|
-
js_options['data'] << " + '&"
|
146
|
-
else
|
147
|
-
js_options['data'] = "'"
|
148
|
-
end
|
149
|
-
js_options['data'] << "_method=#{options[:method]}'"
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
if USE_PROTECTION && respond_to?('protect_against_forgery?') && protect_against_forgery?
|
154
|
-
if js_options['data']
|
155
|
-
js_options['data'] << " + '&"
|
156
|
-
else
|
157
|
-
js_options['data'] = "'"
|
158
|
-
end
|
159
|
-
js_options['data'] << "#{request_forgery_protection_token}=' + encodeURIComponent('#{escape_javascript form_authenticity_token}')"
|
160
|
-
end
|
161
|
-
js_options['data'] = "''" if js_options['type'] == "'post'" && js_options['data'].nil?
|
162
|
-
options_for_javascript(js_options.reject {|key, value| value.nil?})
|
163
|
-
end
|
164
|
-
|
165
|
-
def build_update_for_success(html_id, insertion=nil)
|
166
|
-
insertion = build_insertion(insertion)
|
167
|
-
"#{JQUERY_VAR}('#{jquery_id(html_id)}').#{insertion}(request);"
|
168
|
-
end
|
169
|
-
|
170
|
-
def build_update_for_error(html_id, insertion=nil)
|
171
|
-
insertion = build_insertion(insertion)
|
172
|
-
"#{JQUERY_VAR}('#{jquery_id(html_id)}').#{insertion}(request.responseText);"
|
173
|
-
end
|
174
|
-
|
175
|
-
def build_insertion(insertion)
|
176
|
-
insertion = insertion ? insertion.to_s.downcase : 'html'
|
177
|
-
insertion = 'append' if insertion == 'bottom'
|
178
|
-
insertion = 'prepend' if insertion == 'top'
|
179
|
-
insertion
|
180
|
-
end
|
181
|
-
|
182
|
-
def build_observer(klass, name, options = {})
|
183
|
-
if options[:with] && (options[:with] !~ /[\{=(.]/)
|
184
|
-
options[:with] = "'#{options[:with]}=' + value"
|
185
|
-
else
|
186
|
-
options[:with] ||= 'value' unless options[:function]
|
187
|
-
end
|
188
|
-
|
189
|
-
callback = options[:function] || remote_function(options)
|
190
|
-
javascript = "#{JQUERY_VAR}('#{jquery_id(name)}').delayedObserver("
|
191
|
-
javascript << "#{options[:frequency] || 0}, "
|
192
|
-
javascript << "function(element, value) {"
|
193
|
-
javascript << "#{callback}}"
|
194
|
-
#javascript << ", '#{options[:on]}'" if options[:on]
|
195
|
-
javascript << ")"
|
196
|
-
javascript_tag(javascript)
|
197
|
-
end
|
198
|
-
|
199
|
-
def build_callbacks(options)
|
200
|
-
callbacks = {}
|
201
|
-
options[:beforeSend] = '';
|
202
|
-
[:uninitialized,:loading].each do |key|
|
203
|
-
options[:beforeSend] << (options[key].last == ';' ? options.delete(key) : options.delete(key) << ';') if options[key]
|
204
|
-
end
|
205
|
-
options.delete(:beforeSend) if options[:beforeSend].blank?
|
206
|
-
options[:complete] = options.delete(:loaded) if options[:loaded]
|
207
|
-
options[:error] = options.delete(:failure) if options[:failure]
|
208
|
-
if options[:update]
|
209
|
-
if options[:update].is_a?(Hash)
|
210
|
-
options[:update][:error] = options[:update].delete(:failure) if options[:update][:failure]
|
211
|
-
if options[:update][:success]
|
212
|
-
options[:success] = build_update_for_success(options[:update][:success], options[:position]) << (options[:success] ? options[:success] : '')
|
213
|
-
end
|
214
|
-
if options[:update][:error]
|
215
|
-
options[:error] = build_update_for_error(options[:update][:error], options[:position]) << (options[:error] ? options[:error] : '')
|
216
|
-
end
|
217
|
-
else
|
218
|
-
options[:success] = build_update_for_success(options[:update], options[:position]) << (options[:success] ? options[:success] : '')
|
219
|
-
end
|
220
|
-
end
|
221
|
-
options.each do |callback, code|
|
222
|
-
if JQCALLBACKS.include?(callback)
|
223
|
-
callbacks[callback] = "function(request){#{code}}"
|
224
|
-
end
|
225
|
-
end
|
226
|
-
callbacks
|
227
|
-
end
|
228
|
-
|
229
|
-
end
|
230
|
-
|
231
|
-
class JavaScriptElementProxy < JavaScriptProxy #:nodoc:
|
232
|
-
|
233
|
-
unless const_defined? :JQUERY_VAR
|
234
|
-
JQUERY_VAR = PrototypeHelper::JQUERY_VAR
|
235
|
-
end
|
236
|
-
|
237
|
-
def initialize(generator, id)
|
238
|
-
id = id.to_s.count('#.*,>+~:[/ ') == 0 ? "##{id}" : id
|
239
|
-
@id = id
|
240
|
-
super(generator, "#{JQUERY_VAR}(\"#{id}\")")
|
241
|
-
end
|
242
|
-
|
243
|
-
def replace_html(*options_for_render)
|
244
|
-
call 'html', @generator.send(:render, *options_for_render)
|
245
|
-
end
|
246
|
-
|
247
|
-
def replace(*options_for_render)
|
248
|
-
call 'replaceWith', @generator.send(:render, *options_for_render)
|
249
|
-
end
|
250
|
-
|
251
|
-
def reload(options_for_replace={})
|
252
|
-
replace(options_for_replace.merge({ :partial => @id.to_s.sub(/^#/,'') }))
|
253
|
-
end
|
254
|
-
|
255
|
-
def value()
|
256
|
-
call 'val()'
|
257
|
-
end
|
258
|
-
|
259
|
-
def value=(value)
|
260
|
-
call 'val', value
|
261
|
-
end
|
262
|
-
|
263
|
-
end
|
264
|
-
|
265
|
-
class JavaScriptElementCollectionProxy < JavaScriptCollectionProxy #:nodoc:\
|
266
|
-
|
267
|
-
unless const_defined? :JQUERY_VAR
|
268
|
-
JQUERY_VAR = PrototypeHelper::JQUERY_VAR
|
269
|
-
end
|
270
|
-
|
271
|
-
def initialize(generator, pattern)
|
272
|
-
super(generator, "#{JQUERY_VAR}(#{pattern.to_json})")
|
273
|
-
end
|
274
|
-
end
|
275
|
-
|
276
|
-
module ScriptaculousHelper
|
277
|
-
|
278
|
-
unless const_defined? :JQUERY_VAR
|
279
|
-
JQUERY_VAR = PrototypeHelper::JQUERY_VAR
|
280
|
-
end
|
281
|
-
|
282
|
-
unless const_defined? :SCRIPTACULOUS_EFFECTS
|
283
|
-
SCRIPTACULOUS_EFFECTS = {
|
284
|
-
:appear => {:method => 'fadeIn'},
|
285
|
-
:blind_down => {:method => 'blind', :mode => 'show', :options => {:direction => 'vertical'}},
|
286
|
-
:blind_up => {:method => 'blind', :mode => 'hide', :options => {:direction => 'vertical'}},
|
287
|
-
:blind_right => {:method => 'blind', :mode => 'show', :options => {:direction => 'horizontal'}},
|
288
|
-
:blind_left => {:method => 'blind', :mode => 'hide', :options => {:direction => 'horizontal'}},
|
289
|
-
:bounce_in => {:method => 'bounce', :mode => 'show', :options => {:direction => 'up'}},
|
290
|
-
:bounce_out => {:method => 'bounce', :mode => 'hide', :options => {:direction => 'up'}},
|
291
|
-
:drop_in => {:method => 'drop', :mode => 'show', :options => {:direction => 'up'}},
|
292
|
-
:drop_out => {:method => 'drop', :mode => 'hide', :options => {:direction => 'down'}},
|
293
|
-
:fade => {:method => 'fadeOut'},
|
294
|
-
:fold_in => {:method => 'fold', :mode => 'hide'},
|
295
|
-
:fold_out => {:method => 'fold', :mode => 'show'},
|
296
|
-
:grow => {:method => 'scale', :mode => 'show'},
|
297
|
-
:shrink => {:method => 'scale', :mode => 'hide'},
|
298
|
-
:slide_down => {:method => 'slide', :mode => 'show', :options => {:direction => 'up'}},
|
299
|
-
:slide_up => {:method => 'slide', :mode => 'hide', :options => {:direction => 'up'}},
|
300
|
-
:slide_right => {:method => 'slide', :mode => 'show', :options => {:direction => 'left'}},
|
301
|
-
:slide_left => {:method => 'slide', :mode => 'hide', :options => {:direction => 'left'}},
|
302
|
-
:squish => {:method => 'scale', :mode => 'hide', :options => {:origin => "['top','left']"}},
|
303
|
-
:switch_on => {:method => 'clip', :mode => 'show', :options => {:direction => 'vertical'}},
|
304
|
-
:switch_off => {:method => 'clip', :mode => 'hide', :options => {:direction => 'vertical'}},
|
305
|
-
:toggle_appear => {:method => 'fadeToggle'},
|
306
|
-
:toggle_slide => {:method => 'slide', :mode => 'toggle', :options => {:direction => 'up'}},
|
307
|
-
:toggle_blind => {:method => 'blind', :mode => 'toggle', :options => {:direction => 'vertical'}},
|
308
|
-
}
|
309
|
-
end
|
310
|
-
|
311
|
-
def visual_effect(name, element_id = false, js_options = {})
|
312
|
-
element = element_id ? element_id : "this"
|
313
|
-
|
314
|
-
if SCRIPTACULOUS_EFFECTS.has_key? name.to_sym
|
315
|
-
effect = SCRIPTACULOUS_EFFECTS[name.to_sym]
|
316
|
-
name = effect[:method]
|
317
|
-
mode = effect[:mode]
|
318
|
-
js_options = js_options.merge(effect[:options]) if effect[:options]
|
319
|
-
end
|
320
|
-
|
321
|
-
[:color, :direction, :startcolor, :endcolor].each do |option|
|
322
|
-
js_options[option] = "'#{js_options[option]}'" if js_options[option]
|
323
|
-
end
|
324
|
-
|
325
|
-
if js_options.has_key? :duration
|
326
|
-
speed = js_options.delete :duration
|
327
|
-
speed = (speed * 1000).to_i unless speed.nil?
|
328
|
-
else
|
329
|
-
speed = js_options.delete :speed
|
330
|
-
end
|
331
|
-
|
332
|
-
if ['fadeIn','fadeOut','fadeToggle'].include?(name)
|
333
|
-
javascript = "#{JQUERY_VAR}('#{jquery_id(element_id)}').#{name}("
|
334
|
-
javascript << "#{speed}" unless speed.nil?
|
335
|
-
javascript << ");"
|
336
|
-
else
|
337
|
-
javascript = "#{JQUERY_VAR}('#{jquery_id(element_id)}').#{mode || 'effect'}('#{name}'"
|
338
|
-
javascript << ",#{options_for_javascript(js_options)}" unless speed.nil? && js_options.empty?
|
339
|
-
javascript << ",#{speed}" unless speed.nil?
|
340
|
-
javascript << ");"
|
341
|
-
end
|
342
|
-
|
343
|
-
end
|
344
|
-
|
345
|
-
def sortable_element_js(element_id, options = {}) #:nodoc:
|
346
|
-
#convert similar attributes
|
347
|
-
options[:handle] = ".#{options[:handle]}" if options[:handle]
|
348
|
-
if options[:tag] || options[:only]
|
349
|
-
options[:items] = "> "
|
350
|
-
options[:items] << options.delete(:tag) if options[:tag]
|
351
|
-
options[:items] << ".#{options.delete(:only)}" if options[:only]
|
352
|
-
end
|
353
|
-
options[:connectWith] = options.delete(:containment).map {|x| "##{x}"} if options[:containment]
|
354
|
-
options[:containment] = options.delete(:container) if options[:container]
|
355
|
-
options[:dropOnEmpty] = false unless options[:dropOnEmpty]
|
356
|
-
options[:helper] = "'clone'" if options[:ghosting] == true
|
357
|
-
options[:axis] = case options.delete(:constraint)
|
358
|
-
when "vertical", :vertical
|
359
|
-
"y"
|
360
|
-
when "horizontal", :horizontal
|
361
|
-
"x"
|
362
|
-
when false
|
363
|
-
nil
|
364
|
-
when nil
|
365
|
-
"y"
|
366
|
-
end
|
367
|
-
options.delete(:axis) if options[:axis].nil?
|
368
|
-
options.delete(:overlap)
|
369
|
-
options.delete(:ghosting)
|
370
|
-
|
371
|
-
if options[:onUpdate] || options[:url]
|
372
|
-
if options[:format]
|
373
|
-
options[:with] ||= "#{JQUERY_VAR}(this).sortable('serialize',{key:'#{element_id}[]', expression:#{options[:format]}})"
|
374
|
-
options.delete(:format)
|
375
|
-
else
|
376
|
-
options[:with] ||= "#{JQUERY_VAR}(this).sortable('serialize',{key:'#{element_id}[]'})"
|
377
|
-
end
|
378
|
-
|
379
|
-
options[:onUpdate] ||= "function(){" + remote_function(options) + "}"
|
380
|
-
end
|
381
|
-
|
382
|
-
options.delete_if { |key, value| PrototypeHelper::AJAX_OPTIONS.include?(key) }
|
383
|
-
options[:update] = options.delete(:onUpdate) if options[:onUpdate]
|
384
|
-
|
385
|
-
[:axis, :cancel, :containment, :cursor, :handle, :tolerance, :items, :placeholder].each do |option|
|
386
|
-
options[option] = "'#{options[option]}'" if options[option]
|
387
|
-
end
|
388
|
-
|
389
|
-
options[:connectWith] = array_or_string_for_javascript(options[:connectWith]) if options[:connectWith]
|
390
|
-
|
391
|
-
%(#{JQUERY_VAR}('#{jquery_id(element_id)}').sortable(#{options_for_javascript(options)});)
|
392
|
-
end
|
393
|
-
|
394
|
-
def draggable_element_js(element_id, options = {})
|
395
|
-
%(#{JQUERY_VAR}("#{jquery_id(element_id)}").draggable(#{options_for_javascript(options)});)
|
396
|
-
end
|
397
|
-
|
398
|
-
def drop_receiving_element_js(element_id, options = {})
|
399
|
-
#convert similar options
|
400
|
-
options[:hoverClass] = options.delete(:hoverclass) if options[:hoverclass]
|
401
|
-
options[:drop] = options.delete(:onDrop) if options[:onDrop]
|
402
|
-
|
403
|
-
if options[:drop] || options[:url]
|
404
|
-
options[:with] ||= "'id=' + encodeURIComponent(#{JQUERY_VAR}(ui.draggable).attr('id'))"
|
405
|
-
options[:drop] ||= "function(ev, ui){" + remote_function(options) + "}"
|
406
|
-
end
|
407
|
-
|
408
|
-
options.delete_if { |key, value| PrototypeHelper::AJAX_OPTIONS.include?(key) }
|
409
|
-
|
410
|
-
options[:accept] = array_or_string_for_javascript(options[:accept]) if options[:accept]
|
411
|
-
[:activeClass, :hoverClass, :tolerance].each do |option|
|
412
|
-
options[option] = "'#{options[option]}'" if options[option]
|
413
|
-
end
|
414
|
-
|
415
|
-
%(#{JQUERY_VAR}('#{jquery_id(element_id)}').droppable(#{options_for_javascript(options)});)
|
416
|
-
end
|
417
|
-
|
418
|
-
end
|
419
|
-
|
420
|
-
end
|
421
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# The following options can be changed by creating an initializer in config/initializers/jrails.rb
|
2
|
-
|
3
|
-
# jRails uses jQuery.noConflict() by default
|
4
|
-
# to use the default jQuery varibale, use:
|
5
|
-
# ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$'
|
6
|
-
|
7
|
-
# ActionView::Helpers::PrototypeHelper:: DISABLE_JQUERY_FORGERY_PROTECTION
|
8
|
-
# Set this to disable forgery protection in ajax calls
|
9
|
-
# This is handy if you want to use caching with ajax by injecting the forgery token via another means
|
10
|
-
# for an example, see http://henrik.nyh.se/2008/05/rails-authenticity-token-with-jquery
|
11
|
-
# ActionView::Helpers::PrototypeHelper::DISABLE_JQUERY_FORGERY_PROTECTION = true
|
12
|
-
|
13
|
-
ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jrails']
|
14
|
-
ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
|
15
|
-
require 'jrails'
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# Copyright (c) 2005 David Heinemeier Hansson
|
2
|
-
#
|
3
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
# a copy of this software and associated documentation files (the
|
5
|
-
# "Software"), to deal in the Software without restriction, including
|
6
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
# the following conditions:
|
10
|
-
#
|
11
|
-
# The above copyright notice and this permission notice shall be
|
12
|
-
# included in all copies or substantial portions of the Software.
|
13
|
-
#
|
14
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
-
module SslRequirement
|
22
|
-
def self.included(controller)
|
23
|
-
controller.extend(ClassMethods)
|
24
|
-
controller.before_filter(:ensure_proper_protocol)
|
25
|
-
end
|
26
|
-
|
27
|
-
module ClassMethods
|
28
|
-
# Specifies that the named actions requires an SSL connection to be performed (which is enforced by ensure_proper_protocol).
|
29
|
-
def ssl_required(*actions)
|
30
|
-
write_inheritable_array(:ssl_required_actions, actions)
|
31
|
-
end
|
32
|
-
|
33
|
-
def ssl_allowed(*actions)
|
34
|
-
write_inheritable_array(:ssl_allowed_actions, actions)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
protected
|
39
|
-
# Returns true if the current action is supposed to run as SSL
|
40
|
-
def ssl_required?
|
41
|
-
(self.class.read_inheritable_attribute(:ssl_required_actions) || []).include?(action_name.to_sym)
|
42
|
-
end
|
43
|
-
|
44
|
-
def ssl_allowed?
|
45
|
-
(self.class.read_inheritable_attribute(:ssl_allowed_actions) || []).include?(action_name.to_sym)
|
46
|
-
end
|
47
|
-
|
48
|
-
private
|
49
|
-
def ensure_proper_protocol
|
50
|
-
return true if ssl_allowed?
|
51
|
-
|
52
|
-
if ssl_required? && !request.ssl?
|
53
|
-
redirect_to "https://" + request.host + request.request_uri
|
54
|
-
flash.keep
|
55
|
-
return false
|
56
|
-
elsif request.ssl? && !ssl_required?
|
57
|
-
redirect_to "http://" + request.host + request.request_uri
|
58
|
-
flash.keep
|
59
|
-
return false
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,132 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'action_controller'
|
3
|
-
rescue LoadError
|
4
|
-
if ENV['ACTIONCONTROLLER_PATH'].nil?
|
5
|
-
abort <<MSG
|
6
|
-
Please set the ACTIONCONTROLLER_PATH environment variable to the directory
|
7
|
-
containing the action_controller.rb file.
|
8
|
-
MSG
|
9
|
-
else
|
10
|
-
$LOAD_PATH.unshift << ENV['ACTIONCONTROLLER_PATH']
|
11
|
-
begin
|
12
|
-
require 'action_controller'
|
13
|
-
rescue LoadError
|
14
|
-
abort "ActionController could not be found."
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
require 'action_controller/test_process'
|
20
|
-
require 'test/unit'
|
21
|
-
require "#{File.dirname(__FILE__)}/../lib/ssl_requirement"
|
22
|
-
|
23
|
-
ActionController::Base.logger = nil
|
24
|
-
ActionController::Routing::Routes.reload rescue nil
|
25
|
-
|
26
|
-
class SslRequirementController < ActionController::Base
|
27
|
-
include SslRequirement
|
28
|
-
|
29
|
-
ssl_required :a, :b
|
30
|
-
ssl_allowed :c
|
31
|
-
|
32
|
-
def a
|
33
|
-
render :nothing => true
|
34
|
-
end
|
35
|
-
|
36
|
-
def b
|
37
|
-
render :nothing => true
|
38
|
-
end
|
39
|
-
|
40
|
-
def c
|
41
|
-
render :nothing => true
|
42
|
-
end
|
43
|
-
|
44
|
-
def d
|
45
|
-
render :nothing => true
|
46
|
-
end
|
47
|
-
|
48
|
-
def set_flash
|
49
|
-
flash[:foo] = "bar"
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
class SslRequirementTest < Test::Unit::TestCase
|
54
|
-
def setup
|
55
|
-
@controller = SslRequirementController.new
|
56
|
-
@request = ActionController::TestRequest.new
|
57
|
-
@response = ActionController::TestResponse.new
|
58
|
-
end
|
59
|
-
|
60
|
-
def test_redirect_to_https_preserves_flash
|
61
|
-
get :set_flash
|
62
|
-
get :b
|
63
|
-
assert_response :redirect
|
64
|
-
assert_equal "bar", flash[:foo]
|
65
|
-
end
|
66
|
-
|
67
|
-
def test_not_redirecting_to_https_does_not_preserve_the_flash
|
68
|
-
get :set_flash
|
69
|
-
get :d
|
70
|
-
assert_response :success
|
71
|
-
assert_nil flash[:foo]
|
72
|
-
end
|
73
|
-
|
74
|
-
def test_redirect_to_http_preserves_flash
|
75
|
-
get :set_flash
|
76
|
-
@request.env['HTTPS'] = "on"
|
77
|
-
get :d
|
78
|
-
assert_response :redirect
|
79
|
-
assert_equal "bar", flash[:foo]
|
80
|
-
end
|
81
|
-
|
82
|
-
def test_not_redirecting_to_http_does_not_preserve_the_flash
|
83
|
-
get :set_flash
|
84
|
-
@request.env['HTTPS'] = "on"
|
85
|
-
get :a
|
86
|
-
assert_response :success
|
87
|
-
assert_nil flash[:foo]
|
88
|
-
end
|
89
|
-
|
90
|
-
def test_required_without_ssl
|
91
|
-
assert_not_equal "on", @request.env["HTTPS"]
|
92
|
-
get :a
|
93
|
-
assert_response :redirect
|
94
|
-
assert_match %r{^https://}, @response.headers['Location']
|
95
|
-
get :b
|
96
|
-
assert_response :redirect
|
97
|
-
assert_match %r{^https://}, @response.headers['Location']
|
98
|
-
end
|
99
|
-
|
100
|
-
def test_required_with_ssl
|
101
|
-
@request.env['HTTPS'] = "on"
|
102
|
-
get :a
|
103
|
-
assert_response :success
|
104
|
-
get :b
|
105
|
-
assert_response :success
|
106
|
-
end
|
107
|
-
|
108
|
-
def test_disallowed_without_ssl
|
109
|
-
assert_not_equal "on", @request.env["HTTPS"]
|
110
|
-
get :d
|
111
|
-
assert_response :success
|
112
|
-
end
|
113
|
-
|
114
|
-
def test_disallowed_with_ssl
|
115
|
-
@request.env['HTTPS'] = "on"
|
116
|
-
get :d
|
117
|
-
assert_response :redirect
|
118
|
-
assert_match %r{^http://}, @response.headers['Location']
|
119
|
-
end
|
120
|
-
|
121
|
-
def test_allowed_without_ssl
|
122
|
-
assert_not_equal "on", @request.env["HTTPS"]
|
123
|
-
get :c
|
124
|
-
assert_response :success
|
125
|
-
end
|
126
|
-
|
127
|
-
def test_allowed_with_ssl
|
128
|
-
@request.env['HTTPS'] = "on"
|
129
|
-
get :c
|
130
|
-
assert_response :success
|
131
|
-
end
|
132
|
-
end
|