muck-raker 0.1.37 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -2
- data/VERSION +1 -1
- data/app/controllers/muck/aggregation_feeds_controller.rb +43 -0
- data/app/controllers/muck/aggregations_controller.rb +150 -260
- data/app/controllers/muck/topics_controller.rb +93 -0
- data/app/helpers/muck_raker_aggregations_helper.rb +21 -0
- data/app/helpers/muck_raker_feeds_helper.rb +0 -12
- data/app/helpers/muck_raker_google_helper.rb +70 -80
- data/app/models/aggregation.rb +63 -17
- data/app/models/aggregation_feed.rb +2 -1
- data/app/models/feed.rb +29 -2
- data/app/models/google_feed_request.rb +7 -1
- data/app/models/identity_feed.rb +2 -2
- data/app/models/service.rb +125 -31
- data/app/views/aggregations/_aggregation.html.erb +1 -0
- data/app/views/aggregations/_data_source.html.erb +2 -2
- data/app/views/aggregations/_feeds.html.erb +1 -0
- data/app/views/aggregations/_preview_form.html.erb +12 -0
- data/app/views/aggregations/edit.html.erb +60 -14
- data/app/views/aggregations/index.html.erb +17 -0
- data/app/views/aggregations/index.iphone.erb +0 -0
- data/app/views/aggregations/new.html.erb +3 -4
- data/app/views/aggregations/preview.html.erb +46 -0
- data/app/views/aggregations/preview.iphone.erb +0 -0
- data/app/views/aggregations/rss_discovery.html.erb +3 -0
- data/app/views/feeds/_form.html.erb +1 -1
- data/app/views/feeds/new.html.erb +1 -1
- data/app/views/feeds/new_extended.html.erb +1 -1
- data/app/views/feeds/new_oai_rss.html.erb +1 -1
- data/app/views/google/_feed.html.erb +33 -1
- data/app/views/google/_feeds_scripts.html.erb +19 -0
- data/app/views/raker_mailer/notification_feed_added.text.ar.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.ar.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.bg.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.bg.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.ca.html.erb +1 -0
- data/app/views/raker_mailer/notification_feed_added.text.ca.plain.erb +2 -0
- data/app/views/raker_mailer/notification_feed_added.text.cs.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.cs.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.da.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.da.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.de.html.erb +1 -0
- data/app/views/raker_mailer/notification_feed_added.text.de.plain.erb +2 -0
- data/app/views/raker_mailer/notification_feed_added.text.el.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.el.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.es.html.erb +1 -0
- data/app/views/raker_mailer/notification_feed_added.text.es.plain.erb +2 -0
- data/app/views/raker_mailer/notification_feed_added.text.et.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.et.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.fa.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.fa.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.fi.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.fi.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.fr.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.fr.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.gl.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.gl.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.hi.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.hi.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.hr.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.hr.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.hu.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.hu.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.id.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.id.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.it.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.it.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.iw.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.iw.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.ja.html.erb +4 -3
- data/app/views/raker_mailer/notification_feed_added.text.ja.plain.erb +5 -3
- data/app/views/raker_mailer/notification_feed_added.text.ko.html.erb +1 -0
- data/app/views/raker_mailer/notification_feed_added.text.ko.plain.erb +2 -0
- data/app/views/raker_mailer/notification_feed_added.text.lt.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.lt.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.lv.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.lv.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.mt.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.mt.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.nl.html.erb +1 -0
- data/app/views/raker_mailer/notification_feed_added.text.nl.plain.erb +2 -0
- data/app/views/raker_mailer/notification_feed_added.text.no.html.erb +1 -0
- data/app/views/raker_mailer/notification_feed_added.text.no.plain.erb +2 -0
- data/app/views/raker_mailer/notification_feed_added.text.pl.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.pl.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.pt-PT.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.pt-PT.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.ro.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.ro.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.ru.html.erb +1 -0
- data/app/views/raker_mailer/notification_feed_added.text.ru.plain.erb +2 -0
- data/app/views/raker_mailer/notification_feed_added.text.sk.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.sk.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.sl.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.sl.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.sq.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.sq.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.sr.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.sr.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.sv.html.erb +1 -0
- data/app/views/raker_mailer/notification_feed_added.text.sv.plain.erb +2 -0
- data/app/views/raker_mailer/notification_feed_added.text.th.html.erb +4 -3
- data/app/views/raker_mailer/notification_feed_added.text.th.plain.erb +5 -3
- data/app/views/raker_mailer/notification_feed_added.text.tl.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.tl.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.tr.html.erb +3 -2
- data/app/views/raker_mailer/notification_feed_added.text.tr.plain.erb +4 -2
- data/app/views/raker_mailer/notification_feed_added.text.uk.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.uk.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.vi.html.erb +2 -1
- data/app/views/raker_mailer/notification_feed_added.text.vi.plain.erb +3 -1
- data/app/views/raker_mailer/notification_feed_added.text.zh-CN.html.erb +4 -3
- data/app/views/raker_mailer/notification_feed_added.text.zh-CN.plain.erb +5 -3
- data/app/views/raker_mailer/notification_feed_added.text.zh-TW.html.erb +4 -3
- data/app/views/raker_mailer/notification_feed_added.text.zh-TW.plain.erb +5 -3
- data/app/views/raker_mailer/notification_feed_added.text.zh.html.erb +4 -3
- data/app/views/raker_mailer/notification_feed_added.text.zh.plain.erb +5 -3
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ar.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ar.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.bg.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.bg.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ca.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ca.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.cs.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.cs.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.da.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.da.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.de.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.de.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.el.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.el.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.es.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.es.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.et.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.et.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fa.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fa.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fi.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fi.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fr.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.fr.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.gl.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.gl.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hi.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hi.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hr.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hr.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hu.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.hu.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.id.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.id.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.it.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.it.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.iw.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.iw.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ja.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ja.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ko.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ko.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.lt.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.lt.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.lv.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.lv.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.mt.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.mt.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.nl.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.nl.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.no.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.no.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.pl.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.pl.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.pt-PT.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.pt-PT.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ro.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ro.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ru.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.ru.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sk.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sk.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sl.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sl.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sq.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sq.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sr.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sr.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sv.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.sv.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.th.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.th.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.tl.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.tl.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.tr.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.tr.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.uk.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.uk.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.vi.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.vi.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh-CN.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh-CN.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh-TW.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh-TW.plain.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh.html.erb +4 -0
- data/app/views/raker_mailer/notification_oai_endpoint_added.text.zh.plain.erb +4 -0
- data/app/views/topics/_feed_preview.html.erb +18 -0
- data/app/views/topics/_form.html.erb +15 -0
- data/app/views/{opmls → topics}/_rss_discover.html.erb +0 -0
- data/app/views/{opmls → topics}/new.html.erb +7 -7
- data/app/views/topics/photos.html.erb +14 -0
- data/app/views/topics/show.html.erb +47 -0
- data/app/views/{opmls/index.opml.builder → topics/show.opml.builder} +0 -0
- data/app/views/topics/videos.html.erb +14 -0
- data/config/muck_raker_routes.rb +4 -3
- data/db/bootstrap/service_categories.yml +1 -1
- data/db/bootstrap/services.yml +15 -1
- data/db/migrate/20091006183742_add_feed_count_to_aggregation.rb +9 -0
- data/lib/muck_raker.rb +0 -4
- data/locales/ar.yml +27 -6
- data/locales/bg.yml +28 -7
- data/locales/ca.yml +30 -9
- data/locales/cs.yml +27 -6
- data/locales/da.yml +27 -6
- data/locales/de.yml +28 -7
- data/locales/el.yml +27 -6
- data/locales/en.yml +27 -6
- data/locales/es.yml +28 -7
- data/locales/et.yml +28 -7
- data/locales/fa.yml +27 -6
- data/locales/fi.yml +27 -6
- data/locales/fr.yml +27 -6
- data/locales/gl.yml +31 -10
- data/locales/hi.yml +27 -6
- data/locales/hr.yml +29 -8
- data/locales/hu.yml +29 -8
- data/locales/id.yml +27 -6
- data/locales/it.yml +29 -8
- data/locales/iw.yml +29 -8
- data/locales/ja.yml +29 -8
- data/locales/ko.yml +29 -8
- data/locales/lt.yml +30 -9
- data/locales/lv.yml +30 -9
- data/locales/mt.yml +32 -11
- data/locales/nl.yml +28 -7
- data/locales/no.yml +30 -9
- data/locales/pl.yml +27 -6
- data/locales/pt-PT.yml +27 -6
- data/locales/ro.yml +28 -7
- data/locales/ru.yml +27 -6
- data/locales/sk.yml +27 -6
- data/locales/sl.yml +30 -9
- data/locales/sq.yml +28 -7
- data/locales/sr.yml +27 -6
- data/locales/sv.yml +27 -6
- data/locales/th.yml +28 -7
- data/locales/tl.yml +27 -6
- data/locales/tr.yml +27 -6
- data/locales/uk.yml +27 -6
- data/locales/vi.yml +27 -6
- data/locales/zh-CN.yml +28 -7
- data/locales/zh-TW.yml +28 -7
- data/locales/zh.yml +28 -7
- data/muck-raker.gemspec +126 -13
- data/public/images/service_icons/16/metacafe.png +0 -0
- data/public/images/service_icons/24/metacafe.png +0 -0
- data/public/images/service_icons/48/metacafe.png +0 -0
- data/public/images/service_icons/60/metacafe.png +0 -0
- data/public/images/service_icons/source/bibsonomy.psd +0 -0
- data/public/images/service_icons/source/metacafe.psd +0 -0
- data/public/stylesheets/frame.css +10 -6
- data/public/stylesheets/muck-raker.css +77 -0
- data/test/rails_root/app/views/layouts/default.html.erb +1 -1
- data/test/rails_root/db/bootstrap/service_categories.yml +1 -1
- data/test/rails_root/db/bootstrap/services.yml +18 -2
- data/test/rails_root/db/migrate/20091006183742_add_feed_count_to_aggregation.rb +9 -0
- data/test/rails_root/public/images/service_icons/16/metacafe.png +0 -0
- data/test/rails_root/public/images/service_icons/24/metacafe.png +0 -0
- data/test/rails_root/public/images/service_icons/48/metacafe.png +0 -0
- data/test/rails_root/public/images/service_icons/60/metacafe.png +0 -0
- data/test/rails_root/public/images/service_icons/source/bibsonomy.psd +0 -0
- data/test/rails_root/public/images/service_icons/source/metacafe.psd +0 -0
- data/test/rails_root/public/javascripts/muck_activities.js +1 -2
- data/test/rails_root/public/stylesheets/application.css +0 -117
- data/test/rails_root/public/stylesheets/frame.css +10 -6
- data/test/rails_root/public/stylesheets/muck-activities.css +39 -0
- data/test/rails_root/public/stylesheets/muck-raker.css +77 -0
- data/test/rails_root/test/factories.rb +5 -0
- data/test/rails_root/test/functional/aggregation_feeds_controller_test.rb +67 -0
- data/test/rails_root/test/functional/aggregations_controller_test.rb +37 -3
- data/test/rails_root/test/functional/topics_controller_test.rb +46 -0
- data/test/rails_root/test/unit/aggregation_feed_test.rb +8 -0
- data/test/rails_root/test/unit/aggregation_test.rb +95 -0
- data/test/rails_root/test/unit/comment_test.rb +1 -1
- data/test/rails_root/test/unit/entry_test.rb +3 -0
- data/test/rails_root/test/unit/feed_test.rb +3 -0
- data/test/rails_root/test/unit/oai_endpoint_test.rb +3 -0
- data/test/rails_root/test/unit/service_test.rb +81 -11
- metadata +126 -13
- data/app/controllers/muck/opmls_controller.rb +0 -28
- data/app/views/google/_feed_bookmarks.html.erb +0 -13
- data/app/views/google/_feed_display.html.erb +0 -13
- data/app/views/google/_feed_photos.html.erb +0 -13
- data/app/views/google/_feeds_display.html.erb +0 -2
- data/app/views/opmls/index.html.erb +0 -19
- data/test/rails_root/test/functional/opmls_controller_test.rb +0 -37
@@ -81,30 +81,30 @@ class ServiceTest < ActiveSupport::TestCase
|
|
81
81
|
end
|
82
82
|
should "set display uri when building a feed" do
|
83
83
|
tag = 'identity'
|
84
|
-
feeds = Service.build_feeds(@user
|
84
|
+
feeds = Service.build_feeds(tag, @user)
|
85
85
|
assert feeds.any?{|feed| feed.display_uri == (@uri_template.sub('{tag}', tag))}
|
86
86
|
end
|
87
87
|
should "build a feed for every tag service" do
|
88
88
|
tag = 'cycling'
|
89
|
-
feeds = Service.build_feeds(@user
|
89
|
+
feeds = Service.build_feeds(tag, @user)
|
90
90
|
assert_equal Service.tag_services.length, feeds.length
|
91
91
|
assert feeds.any?{|feed| feed.uri == (@template.sub('{tag}', tag))}
|
92
92
|
end
|
93
93
|
should "build a limited number of feeds for tag" do
|
94
94
|
tag = 'ruby'
|
95
|
-
feeds = Service.build_feeds(@user,
|
95
|
+
feeds = Service.build_feeds(tag, @user, [@service.id])
|
96
96
|
assert_equal 1, feeds.length
|
97
97
|
assert feeds.any?{|feed| feed.uri == (@template.sub('{tag}', tag))}
|
98
98
|
end
|
99
99
|
should "create a feed for every tag service" do
|
100
100
|
tag = 'physics'
|
101
|
-
feeds = Service.create_feeds(@user
|
101
|
+
feeds = Service.create_feeds(tag, @user)
|
102
102
|
assert_equal Service.tag_services.length, feeds.length
|
103
103
|
assert feeds.any?{|feed| feed.uri == (@template.sub('{tag}', tag))}
|
104
104
|
end
|
105
105
|
should "create a limited number of feeds for tag" do
|
106
106
|
tag = 'math'
|
107
|
-
feeds = Service.create_feeds(@user,
|
107
|
+
feeds = Service.create_feeds(tag, @user, [@service.id])
|
108
108
|
assert_equal 1, feeds.length
|
109
109
|
assert feeds.any?{|feed| feed.uri == (@template.sub('{tag}', tag))}
|
110
110
|
end
|
@@ -139,19 +139,89 @@ class ServiceTest < ActiveSupport::TestCase
|
|
139
139
|
context "Find service by uri" do
|
140
140
|
setup do
|
141
141
|
Service.delete_all
|
142
|
-
@service = Factory(:service, :uri => 'http://www.example.com')
|
143
142
|
end
|
144
|
-
|
143
|
+
teardown do
|
145
144
|
bootstrap_services
|
146
145
|
end
|
147
146
|
should "find service when uri is shorter" do
|
148
|
-
|
149
|
-
|
147
|
+
foo_service = Factory(:service, :uri => 'http://www.foo.com')
|
148
|
+
service = Service.find_service_by_uri('foo.com', true)
|
149
|
+
assert_equal foo_service, service
|
150
150
|
end
|
151
151
|
should "find service uri is longer" do
|
152
|
-
|
153
|
-
|
152
|
+
example_service = Factory(:service, :uri => 'http://www.example.com')
|
153
|
+
service = Service.find_service_by_uri('http://www.example.com/other_stuff', true)
|
154
|
+
assert_equal example_service, service
|
154
155
|
end
|
155
156
|
end
|
156
157
|
|
158
|
+
context "build" do
|
159
|
+
setup do
|
160
|
+
@terms = "ruby"
|
161
|
+
@user = Factory(:user)
|
162
|
+
end
|
163
|
+
context "photo feeds" do
|
164
|
+
setup do
|
165
|
+
@feeds = Service.build_photo_feeds(@terms, @user.id)
|
166
|
+
end
|
167
|
+
should "only create photo feeds" do
|
168
|
+
assert @feeds.length > 0
|
169
|
+
assert @feeds.all? { |feed| feed.service.service_category.name == "Photos" }
|
170
|
+
end
|
171
|
+
end
|
172
|
+
context "video feeds" do
|
173
|
+
setup do
|
174
|
+
@feeds = Service.build_video_feeds(@terms, @user.id)
|
175
|
+
end
|
176
|
+
should "only create video feeds" do
|
177
|
+
assert @feeds.length > 0
|
178
|
+
assert @feeds.all? { |feed| feed.service.service_category.name == "Videos" }
|
179
|
+
end
|
180
|
+
end
|
181
|
+
context "bookmark feeds" do
|
182
|
+
setup do
|
183
|
+
@feeds = Service.build_bookmark_feeds(@terms, @user.id)
|
184
|
+
end
|
185
|
+
should "only create bookmark feeds" do
|
186
|
+
assert @feeds.length > 0
|
187
|
+
assert @feeds.all? { |feed| feed.service.service_category.name == "Bookmarks" }
|
188
|
+
end
|
189
|
+
end
|
190
|
+
context "music feeds" do
|
191
|
+
setup do
|
192
|
+
@feeds = Service.build_music_feeds(@terms, @user.id)
|
193
|
+
end
|
194
|
+
should "only create music feeds" do
|
195
|
+
assert @feeds.length > 0
|
196
|
+
assert @feeds.all? { |feed| feed.service.service_category.name == "Music" }
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
context "service types" do
|
202
|
+
should "get photo services" do
|
203
|
+
assert Service.get_photo_services.length > 0
|
204
|
+
assert Service.get_photo_services.all? { |service| service.service_category.name == "Photo" }
|
205
|
+
end
|
206
|
+
should "get video services" do
|
207
|
+
assert Service.get_video_services.length > 0
|
208
|
+
assert Service.get_video_services.all? { |service| service.service_category.name == "Video" }
|
209
|
+
end
|
210
|
+
should "get bookmark services" do
|
211
|
+
assert Service.get_bookmark_services.length > 0
|
212
|
+
assert Service.get_bookmark_services.all? { |service| service.service_category.name == "Bookmark" }
|
213
|
+
end
|
214
|
+
should "get music services" do
|
215
|
+
assert Service.get_music_services.length > 0
|
216
|
+
assert Service.get_music_services.all? { |service| service.service_category.name == "Music" }
|
217
|
+
end
|
218
|
+
should "get general services" do
|
219
|
+
assert Service.get_general_services.length > 0
|
220
|
+
assert !Service.get_general_services.any? { |service| service.service_category.name == "Photo" }
|
221
|
+
assert !Service.get_general_services.any? { |service| service.service_category.name == "Video" }
|
222
|
+
assert !Service.get_general_services.any? { |service| service.service_category.name == "Bookmark" }
|
223
|
+
assert !Service.get_general_services.any? { |service| service.service_category.name == "Music" }
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
157
227
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-raker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Duffin Justin Ball
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-16 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -118,14 +118,15 @@ files:
|
|
118
118
|
- VERSION
|
119
119
|
- app/controllers/admin/muck/feeds_controller.rb
|
120
120
|
- app/controllers/admin/muck/oai_endpoints_controller.rb
|
121
|
+
- app/controllers/muck/aggregation_feeds_controller.rb
|
121
122
|
- app/controllers/muck/aggregations_controller.rb
|
122
123
|
- app/controllers/muck/entries_controller.rb
|
123
124
|
- app/controllers/muck/feed_previews_controller.rb
|
124
125
|
- app/controllers/muck/feeds_controller.rb
|
125
126
|
- app/controllers/muck/identity_feeds_controller.rb
|
126
127
|
- app/controllers/muck/oai_endpoints_controller.rb
|
127
|
-
- app/controllers/muck/opmls_controller.rb
|
128
128
|
- app/controllers/muck/recommendations_controller.rb
|
129
|
+
- app/controllers/muck/topics_controller.rb
|
129
130
|
- app/controllers/muck/visits_controller.rb
|
130
131
|
- app/helpers/muck_raker_aggregations_helper.rb
|
131
132
|
- app/helpers/muck_raker_feeds_helper.rb
|
@@ -154,10 +155,18 @@ files:
|
|
154
155
|
- app/views/activity_templates/_entry_share.html.erb
|
155
156
|
- app/views/admin/feeds/index.html.erb
|
156
157
|
- app/views/admin/oai_endpoints/index.html.erb
|
158
|
+
- app/views/aggregations/_aggregation.html.erb
|
157
159
|
- app/views/aggregations/_data_source.html.erb
|
158
160
|
- app/views/aggregations/_data_sources.html.erb
|
161
|
+
- app/views/aggregations/_feeds.html.erb
|
162
|
+
- app/views/aggregations/_preview_form.html.erb
|
159
163
|
- app/views/aggregations/edit.html.erb
|
164
|
+
- app/views/aggregations/index.html.erb
|
165
|
+
- app/views/aggregations/index.iphone.erb
|
160
166
|
- app/views/aggregations/new.html.erb
|
167
|
+
- app/views/aggregations/preview.html.erb
|
168
|
+
- app/views/aggregations/preview.iphone.erb
|
169
|
+
- app/views/aggregations/rss_discovery.html.erb
|
161
170
|
- app/views/aggregations/show.html.erb
|
162
171
|
- app/views/default/_language_list.html.erb
|
163
172
|
- app/views/entries/_related_entry.html.erb
|
@@ -189,11 +198,7 @@ files:
|
|
189
198
|
- app/views/feeds/unban.html.erb
|
190
199
|
- app/views/google/_dynamic_feeds_vertical.html.erb
|
191
200
|
- app/views/google/_feed.html.erb
|
192
|
-
- app/views/google/_feed_bookmarks.html.erb
|
193
|
-
- app/views/google/_feed_display.html.erb
|
194
|
-
- app/views/google/_feed_photos.html.erb
|
195
201
|
- app/views/google/_feed_search.html.erb
|
196
|
-
- app/views/google/_feeds_display.html.erb
|
197
202
|
- app/views/google/_feeds_scripts.html.erb
|
198
203
|
- app/views/google/_slide_show.html.erb
|
199
204
|
- app/views/identity_feeds/_available_service_categories.html.erb
|
@@ -206,10 +211,6 @@ files:
|
|
206
211
|
- app/views/oai_endpoints/_oai_endpoint_row.html.erb
|
207
212
|
- app/views/oai_endpoints/new.html.erb
|
208
213
|
- app/views/oai_endpoints/show.html.erb
|
209
|
-
- app/views/opmls/_rss_discover.html.erb
|
210
|
-
- app/views/opmls/index.html.erb
|
211
|
-
- app/views/opmls/index.opml.builder
|
212
|
-
- app/views/opmls/new.html.erb
|
213
214
|
- app/views/parts/_add_feed.html.erb
|
214
215
|
- app/views/parts/_select_feed.html.erb
|
215
216
|
- app/views/raker_mailer/notification_feed_added.text.ar.html.erb
|
@@ -300,8 +301,94 @@ files:
|
|
300
301
|
- app/views/raker_mailer/notification_feed_added.text.zh-TW.plain.erb
|
301
302
|
- app/views/raker_mailer/notification_feed_added.text.zh.html.erb
|
302
303
|
- app/views/raker_mailer/notification_feed_added.text.zh.plain.erb
|
304
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ar.html.erb
|
305
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ar.plain.erb
|
306
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.bg.html.erb
|
307
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.bg.plain.erb
|
308
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ca.html.erb
|
309
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ca.plain.erb
|
310
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.cs.html.erb
|
311
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.cs.plain.erb
|
312
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.da.html.erb
|
313
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.da.plain.erb
|
314
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.de.html.erb
|
315
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.de.plain.erb
|
316
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.el.html.erb
|
317
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.el.plain.erb
|
318
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.es.html.erb
|
319
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.es.plain.erb
|
320
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.et.html.erb
|
321
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.et.plain.erb
|
322
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.fa.html.erb
|
323
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.fa.plain.erb
|
324
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.fi.html.erb
|
325
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.fi.plain.erb
|
326
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.fr.html.erb
|
327
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.fr.plain.erb
|
328
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.gl.html.erb
|
329
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.gl.plain.erb
|
330
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.hi.html.erb
|
331
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.hi.plain.erb
|
332
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.hr.html.erb
|
333
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.hr.plain.erb
|
303
334
|
- app/views/raker_mailer/notification_oai_endpoint_added.text.html.erb
|
335
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.hu.html.erb
|
336
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.hu.plain.erb
|
337
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.id.html.erb
|
338
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.id.plain.erb
|
339
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.it.html.erb
|
340
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.it.plain.erb
|
341
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.iw.html.erb
|
342
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.iw.plain.erb
|
343
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ja.html.erb
|
344
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ja.plain.erb
|
345
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ko.html.erb
|
346
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ko.plain.erb
|
347
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.lt.html.erb
|
348
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.lt.plain.erb
|
349
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.lv.html.erb
|
350
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.lv.plain.erb
|
351
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.mt.html.erb
|
352
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.mt.plain.erb
|
353
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.nl.html.erb
|
354
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.nl.plain.erb
|
355
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.no.html.erb
|
356
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.no.plain.erb
|
357
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.pl.html.erb
|
358
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.pl.plain.erb
|
304
359
|
- app/views/raker_mailer/notification_oai_endpoint_added.text.plain.erb
|
360
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.pt-PT.html.erb
|
361
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.pt-PT.plain.erb
|
362
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ro.html.erb
|
363
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ro.plain.erb
|
364
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ru.html.erb
|
365
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.ru.plain.erb
|
366
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sk.html.erb
|
367
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sk.plain.erb
|
368
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sl.html.erb
|
369
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sl.plain.erb
|
370
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sq.html.erb
|
371
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sq.plain.erb
|
372
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sr.html.erb
|
373
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sr.plain.erb
|
374
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sv.html.erb
|
375
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.sv.plain.erb
|
376
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.th.html.erb
|
377
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.th.plain.erb
|
378
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.tl.html.erb
|
379
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.tl.plain.erb
|
380
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.tr.html.erb
|
381
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.tr.plain.erb
|
382
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.uk.html.erb
|
383
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.uk.plain.erb
|
384
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.vi.html.erb
|
385
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.vi.plain.erb
|
386
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.zh-CN.html.erb
|
387
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.zh-CN.plain.erb
|
388
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.zh-TW.html.erb
|
389
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.zh-TW.plain.erb
|
390
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.zh.html.erb
|
391
|
+
- app/views/raker_mailer/notification_oai_endpoint_added.text.zh.plain.erb
|
305
392
|
- app/views/recommendations/index.html.erb
|
306
393
|
- app/views/recommendations/index.pjs.erb
|
307
394
|
- app/views/recommendations/index.rss.builder
|
@@ -330,6 +417,14 @@ files:
|
|
330
417
|
- app/views/services/_new_service.html.erb
|
331
418
|
- app/views/services/_summary.html.erb
|
332
419
|
- app/views/services/_view_service.html.erb
|
420
|
+
- app/views/topics/_feed_preview.html.erb
|
421
|
+
- app/views/topics/_form.html.erb
|
422
|
+
- app/views/topics/_rss_discover.html.erb
|
423
|
+
- app/views/topics/new.html.erb
|
424
|
+
- app/views/topics/photos.html.erb
|
425
|
+
- app/views/topics/show.html.erb
|
426
|
+
- app/views/topics/show.opml.builder
|
427
|
+
- app/views/topics/videos.html.erb
|
333
428
|
- app/views/visits/_comments_tool.html.erb
|
334
429
|
- app/views/visits/_frame_scripts.html.erb
|
335
430
|
- app/views/visits/_share_tool.html.erb
|
@@ -408,6 +503,7 @@ files:
|
|
408
503
|
- db/migrate/20090922231552_add_dates_to_oai_endpoints.rb
|
409
504
|
- db/migrate/20090923150807_rename_name_in_aggregation.rb
|
410
505
|
- db/migrate/20090924200750_add_uri_data_template_to_services.rb
|
506
|
+
- db/migrate/20091006183742_add_feed_count_to_aggregation.rb
|
411
507
|
- install.rb
|
412
508
|
- lib/active_record/acts/muck_aggregation_owner.rb
|
413
509
|
- lib/active_record/acts/muck_feed_owner.rb
|
@@ -500,6 +596,7 @@ files:
|
|
500
596
|
- public/images/service_icons/16/livejournal.png
|
501
597
|
- public/images/service_icons/16/magnolia.png
|
502
598
|
- public/images/service_icons/16/mendeley.png
|
599
|
+
- public/images/service_icons/16/metacafe.png
|
503
600
|
- public/images/service_icons/16/mixx.png
|
504
601
|
- public/images/service_icons/16/myspace.png
|
505
602
|
- public/images/service_icons/16/netflix.png
|
@@ -564,6 +661,7 @@ files:
|
|
564
661
|
- public/images/service_icons/24/livejournal.png
|
565
662
|
- public/images/service_icons/24/magnolia.png
|
566
663
|
- public/images/service_icons/24/mendeley.png
|
664
|
+
- public/images/service_icons/24/metacafe.png
|
567
665
|
- public/images/service_icons/24/mixx.png
|
568
666
|
- public/images/service_icons/24/myspace.png
|
569
667
|
- public/images/service_icons/24/netflix.png
|
@@ -628,6 +726,7 @@ files:
|
|
628
726
|
- public/images/service_icons/48/livejournal.png
|
629
727
|
- public/images/service_icons/48/magnolia.png
|
630
728
|
- public/images/service_icons/48/mendeley.png
|
729
|
+
- public/images/service_icons/48/metacafe.png
|
631
730
|
- public/images/service_icons/48/mixx.png
|
632
731
|
- public/images/service_icons/48/myspace.png
|
633
732
|
- public/images/service_icons/48/netflix.png
|
@@ -692,6 +791,7 @@ files:
|
|
692
791
|
- public/images/service_icons/60/livejournal.png
|
693
792
|
- public/images/service_icons/60/magnolia.png
|
694
793
|
- public/images/service_icons/60/mendeley.png
|
794
|
+
- public/images/service_icons/60/metacafe.png
|
695
795
|
- public/images/service_icons/60/mixx.png
|
696
796
|
- public/images/service_icons/60/myspace.png
|
697
797
|
- public/images/service_icons/60/netflix.png
|
@@ -738,6 +838,7 @@ files:
|
|
738
838
|
- public/images/service_icons/source/clipmarks.png
|
739
839
|
- public/images/service_icons/source/connotea.psd
|
740
840
|
- public/images/service_icons/source/icerocket.psd
|
841
|
+
- public/images/service_icons/source/metacafe.psd
|
741
842
|
- public/images/service_icons/source/netflix.png
|
742
843
|
- public/images/service_icons/source/oai.png
|
743
844
|
- public/images/service_icons/source/odeo.png
|
@@ -749,6 +850,7 @@ files:
|
|
749
850
|
- public/images/service_icons/source/xanga.png
|
750
851
|
- public/javascripts/muck_raker.js
|
751
852
|
- public/stylesheets/frame.css
|
853
|
+
- public/stylesheets/muck-raker.css
|
752
854
|
- rails/init.rb
|
753
855
|
- raker/lib/aggregatord.jar
|
754
856
|
- raker/lib/aggregatord.properties
|
@@ -922,6 +1024,7 @@ files:
|
|
922
1024
|
- test/rails_root/db/migrate/20090922231552_add_dates_to_oai_endpoints.rb
|
923
1025
|
- test/rails_root/db/migrate/20090923150807_rename_name_in_aggregation.rb
|
924
1026
|
- test/rails_root/db/migrate/20090924200750_add_uri_data_template_to_services.rb
|
1027
|
+
- test/rails_root/db/migrate/20091006183742_add_feed_count_to_aggregation.rb
|
925
1028
|
- test/rails_root/features/feeds.feature
|
926
1029
|
- test/rails_root/features/step_definitions/common_steps.rb
|
927
1030
|
- test/rails_root/features/step_definitions/visit_steps.rb
|
@@ -1011,6 +1114,7 @@ files:
|
|
1011
1114
|
- test/rails_root/public/images/service_icons/16/livejournal.png
|
1012
1115
|
- test/rails_root/public/images/service_icons/16/magnolia.png
|
1013
1116
|
- test/rails_root/public/images/service_icons/16/mendeley.png
|
1117
|
+
- test/rails_root/public/images/service_icons/16/metacafe.png
|
1014
1118
|
- test/rails_root/public/images/service_icons/16/mixx.png
|
1015
1119
|
- test/rails_root/public/images/service_icons/16/myspace.png
|
1016
1120
|
- test/rails_root/public/images/service_icons/16/netflix.png
|
@@ -1075,6 +1179,7 @@ files:
|
|
1075
1179
|
- test/rails_root/public/images/service_icons/24/livejournal.png
|
1076
1180
|
- test/rails_root/public/images/service_icons/24/magnolia.png
|
1077
1181
|
- test/rails_root/public/images/service_icons/24/mendeley.png
|
1182
|
+
- test/rails_root/public/images/service_icons/24/metacafe.png
|
1078
1183
|
- test/rails_root/public/images/service_icons/24/mixx.png
|
1079
1184
|
- test/rails_root/public/images/service_icons/24/myspace.png
|
1080
1185
|
- test/rails_root/public/images/service_icons/24/netflix.png
|
@@ -1139,6 +1244,7 @@ files:
|
|
1139
1244
|
- test/rails_root/public/images/service_icons/48/livejournal.png
|
1140
1245
|
- test/rails_root/public/images/service_icons/48/magnolia.png
|
1141
1246
|
- test/rails_root/public/images/service_icons/48/mendeley.png
|
1247
|
+
- test/rails_root/public/images/service_icons/48/metacafe.png
|
1142
1248
|
- test/rails_root/public/images/service_icons/48/mixx.png
|
1143
1249
|
- test/rails_root/public/images/service_icons/48/myspace.png
|
1144
1250
|
- test/rails_root/public/images/service_icons/48/netflix.png
|
@@ -1203,6 +1309,7 @@ files:
|
|
1203
1309
|
- test/rails_root/public/images/service_icons/60/livejournal.png
|
1204
1310
|
- test/rails_root/public/images/service_icons/60/magnolia.png
|
1205
1311
|
- test/rails_root/public/images/service_icons/60/mendeley.png
|
1312
|
+
- test/rails_root/public/images/service_icons/60/metacafe.png
|
1206
1313
|
- test/rails_root/public/images/service_icons/60/mixx.png
|
1207
1314
|
- test/rails_root/public/images/service_icons/60/myspace.png
|
1208
1315
|
- test/rails_root/public/images/service_icons/60/netflix.png
|
@@ -1251,6 +1358,7 @@ files:
|
|
1251
1358
|
- test/rails_root/public/images/service_icons/source/clipmarks.png
|
1252
1359
|
- test/rails_root/public/images/service_icons/source/connotea.psd
|
1253
1360
|
- test/rails_root/public/images/service_icons/source/icerocket.psd
|
1361
|
+
- test/rails_root/public/images/service_icons/source/metacafe.psd
|
1254
1362
|
- test/rails_root/public/images/service_icons/source/netflix.png
|
1255
1363
|
- test/rails_root/public/images/service_icons/source/oai.png
|
1256
1364
|
- test/rails_root/public/images/service_icons/source/odeo.png
|
@@ -1387,6 +1495,8 @@ files:
|
|
1387
1495
|
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png
|
1388
1496
|
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png
|
1389
1497
|
- test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css
|
1498
|
+
- test/rails_root/public/stylesheets/muck-activities.css
|
1499
|
+
- test/rails_root/public/stylesheets/muck-raker.css
|
1390
1500
|
- test/rails_root/public/stylesheets/reset.css
|
1391
1501
|
- test/rails_root/public/stylesheets/styles.css
|
1392
1502
|
- test/rails_root/public/stylesheets/themes/blue/styles.css
|
@@ -1412,12 +1522,13 @@ files:
|
|
1412
1522
|
- test/rails_root/test/functional/.keep
|
1413
1523
|
- test/rails_root/test/functional/admin/feeds_controller_test.rb
|
1414
1524
|
- test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
|
1525
|
+
- test/rails_root/test/functional/aggregation_feeds_controller_test.rb
|
1415
1526
|
- test/rails_root/test/functional/aggregations_controller_test.rb
|
1416
1527
|
- test/rails_root/test/functional/feed_previews_controller_test.rb
|
1417
1528
|
- test/rails_root/test/functional/feeds_controller_test.rb
|
1418
1529
|
- test/rails_root/test/functional/identity_feeds_controller_test.rb
|
1419
1530
|
- test/rails_root/test/functional/oai_endpoints_controller_test.rb
|
1420
|
-
- test/rails_root/test/functional/
|
1531
|
+
- test/rails_root/test/functional/topics_controller_test.rb
|
1421
1532
|
- test/rails_root/test/functional/visits_controller_test.rb
|
1422
1533
|
- test/rails_root/test/integration/.keep
|
1423
1534
|
- test/rails_root/test/mocks/development/.keep
|
@@ -1562,6 +1673,7 @@ test_files:
|
|
1562
1673
|
- test/rails_root/db/migrate/20090922231552_add_dates_to_oai_endpoints.rb
|
1563
1674
|
- test/rails_root/db/migrate/20090923150807_rename_name_in_aggregation.rb
|
1564
1675
|
- test/rails_root/db/migrate/20090924200750_add_uri_data_template_to_services.rb
|
1676
|
+
- test/rails_root/db/migrate/20091006183742_add_feed_count_to_aggregation.rb
|
1565
1677
|
- test/rails_root/features/step_definitions/common_steps.rb
|
1566
1678
|
- test/rails_root/features/step_definitions/visit_steps.rb
|
1567
1679
|
- test/rails_root/features/step_definitions/webrat_steps.rb
|
@@ -1572,12 +1684,13 @@ test_files:
|
|
1572
1684
|
- test/rails_root/test/factories.rb
|
1573
1685
|
- test/rails_root/test/functional/admin/feeds_controller_test.rb
|
1574
1686
|
- test/rails_root/test/functional/admin/oai_endpoints_controller_test.rb
|
1687
|
+
- test/rails_root/test/functional/aggregation_feeds_controller_test.rb
|
1575
1688
|
- test/rails_root/test/functional/aggregations_controller_test.rb
|
1576
1689
|
- test/rails_root/test/functional/feed_previews_controller_test.rb
|
1577
1690
|
- test/rails_root/test/functional/feeds_controller_test.rb
|
1578
1691
|
- test/rails_root/test/functional/identity_feeds_controller_test.rb
|
1579
1692
|
- test/rails_root/test/functional/oai_endpoints_controller_test.rb
|
1580
|
-
- test/rails_root/test/functional/
|
1693
|
+
- test/rails_root/test/functional/topics_controller_test.rb
|
1581
1694
|
- test/rails_root/test/functional/visits_controller_test.rb
|
1582
1695
|
- test/rails_root/test/shoulda_macros/controller.rb
|
1583
1696
|
- test/rails_root/test/shoulda_macros/forms.rb
|
@@ -1,28 +0,0 @@
|
|
1
|
-
class Muck::OpmlsController < ApplicationController
|
2
|
-
unloadable
|
3
|
-
|
4
|
-
def index
|
5
|
-
if params[:terms].blank?
|
6
|
-
flash[:error] = I18n.t('muck.raker.no_terms_error')
|
7
|
-
redirect_to new_opml_path
|
8
|
-
else
|
9
|
-
@feeds = Service.build_feeds(current_user, params[:terms], params[:service_ids])
|
10
|
-
@discovered_feeds = GoogleFeedRequest.find_feeds(params[:terms])
|
11
|
-
@title = params[:terms]
|
12
|
-
@terms = params[:terms]
|
13
|
-
respond_to do |format|
|
14
|
-
format.html { render :template => 'opmls/index' }
|
15
|
-
format.opml { render :template => 'opmls/index' }
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def new
|
21
|
-
@page_title = I18n.t('muck.raker.generate_opml')
|
22
|
-
@service_categories = ServiceCategory.sorted.find(:all, :include => [:tag_services])
|
23
|
-
respond_to do |format|
|
24
|
-
format.html { render :template => 'opmls/new' }
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<% content_for :head do -%>
|
2
|
-
<%= google_ajax_api_scripts -%>
|
3
|
-
<%= google_load_feeds -%>
|
4
|
-
<%= google_load_bookmarks_script(javascript_callback, feed.uri, content_id) %>
|
5
|
-
<% end -%>
|
6
|
-
<% content_for :javascript do -%>
|
7
|
-
google.setOnLoadCallback(function() {
|
8
|
-
google_load_bookmarks("<%= feed.uri %>", "<%= content_id %>", <%= number_of_items %>);
|
9
|
-
});
|
10
|
-
<% end -%>
|
11
|
-
<div id="<%= content_id %>" class="feed-item">
|
12
|
-
<span class="waiting"><%= t('muck.raker.loading_message') %></span>
|
13
|
-
</div>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<% content_for :head do -%>
|
2
|
-
<%= google_ajax_api_scripts -%>
|
3
|
-
<%= google_load_feeds -%>
|
4
|
-
<%= google_load_entries_script(javascript_callback, feed.uri, content_id) %>
|
5
|
-
<% end -%>
|
6
|
-
<% content_for :javascript do -%>
|
7
|
-
google.setOnLoadCallback(function() {
|
8
|
-
google_load_entries("<%= feed.uri %>", "<%= content_id %>", <%= number_of_items %>);
|
9
|
-
});
|
10
|
-
<% end -%>
|
11
|
-
<div id="<%= content_id %>" class="feed-item">
|
12
|
-
<span class="waiting"><%= t('muck.raker.loading_message') %></span>
|
13
|
-
</div>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<% content_for :head do -%>
|
2
|
-
<%= google_ajax_api_scripts -%>
|
3
|
-
<%= google_load_feeds -%>
|
4
|
-
<%= google_load_images_script(javascript_callback, feed.uri, content_id) -%>
|
5
|
-
<% end -%>
|
6
|
-
<% content_for :javascript do -%>
|
7
|
-
google.setOnLoadCallback(function() {
|
8
|
-
google_load_images("<%= feed.uri %>", "<%= content_id %>", <%= number_of_images %>);
|
9
|
-
});
|
10
|
-
<% end -%>
|
11
|
-
<div id="<%= content_id %>" class="feed-photos feed-item">
|
12
|
-
<span class="waiting"><%= t('muck.raker.loading_message') %></span>
|
13
|
-
</div>
|
@@ -1,2 +0,0 @@
|
|
1
|
-
<%= render :partial => 'google/feed', :collection => data_feeds, :locals => {:number_of_items => number_of_items, :number_of_images => number_of_images, :content_id => nil, :javascript_callback => javascript_callback } %>
|
2
|
-
<%= render :partial => 'google/feed', :collection => photo_feeds, :locals => {:number_of_items => number_of_items, :number_of_images => number_of_images, :content_id => nil, :javascript_callback => javascript_callback } %>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<% content_for :head do -%>
|
2
|
-
<%= render :partial => 'opmls/rss_discover', :collection => @feeds %>
|
3
|
-
<% end -%>
|
4
|
-
<div id="opml">
|
5
|
-
<h2><%= t('muck.raker.opml_generated', :terms => @title) %></h2>
|
6
|
-
<%= link_to t('muck.raker.generate_new_opml'), new_opml_path %>
|
7
|
-
<%= link_to t('muck.raker.download_opml', :terms => @terms), opmls_path(:terms => params[:terms], :service_ids => params[:service_ids], :format => 'opml') %>
|
8
|
-
<a href="http://www.google.com/reader/view/feed/<%=CGI.escape(request.url)%>" title="<%=@title%>">
|
9
|
-
<img src="http://buttons.googlesyndication.com/fusion/add.gif" border="0" alt="Add to Google" />
|
10
|
-
</a>
|
11
|
-
<div id="opml-feeds">
|
12
|
-
<%= render :partial => 'google/feed', :collection => @feeds, :locals => {:number_of_items => 5, :number_of_images => 20, :content_id => nil, :javascript_callback => 'google_load_complete'} %>
|
13
|
-
</div>
|
14
|
-
<h2><%= t('muck.raker.related_feeds') %></h2>
|
15
|
-
<div id="discovered_feeds">
|
16
|
-
<%= render :partial => 'google/feed', :collection => @discovered_feeds, :locals => {:number_of_items => 5, :number_of_images => 20, :content_id => nil, :javascript_callback => 'google_load_complete'} %>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
<%= render :partial => 'google/feeds_scripts' %>
|
@@ -1,37 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::OpmlsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
tests Muck::OpmlsController
|
6
|
-
|
7
|
-
context "opmls 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 index with term defined" do
|
19
|
-
setup do
|
20
|
-
get :index, :terms => 'ruby,rails'
|
21
|
-
end
|
22
|
-
should_not_set_the_flash
|
23
|
-
should_respond_with :success
|
24
|
-
should_render_template :index
|
25
|
-
end
|
26
|
-
|
27
|
-
context "GET index without terms" do
|
28
|
-
setup do
|
29
|
-
get :index
|
30
|
-
end
|
31
|
-
should_set_the_flash_to(I18n.t('muck.raker.no_terms_error'))
|
32
|
-
should_redirect_to("new opml") { new_opml_path }
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|