muck-raker 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.rdoc +39 -4
- data/VERSION +1 -1
- data/app/controllers/muck/feeds_controller.rb +8 -2
- data/app/controllers/muck/identity_feeds_controller.rb +154 -0
- data/app/controllers/muck/visits_controller.rb +7 -1
- data/app/helpers/muck_raker_services_helper.rb +117 -0
- data/app/models/aggregation.rb +17 -0
- data/app/models/amazon.rb +59 -0
- data/app/models/amazon_request.rb +83 -0
- data/app/models/click.rb +0 -8
- data/app/models/entry.rb +2 -1
- data/app/models/feed.rb +53 -57
- data/app/models/feed_parent.rb +0 -5
- data/app/models/identity_feed.rb +26 -0
- data/app/models/recommendation.rb +0 -5
- data/app/models/service.rb +53 -8
- data/app/models/service_category.rb +14 -0
- data/app/models/tag_cloud.rb +0 -4
- data/app/views/activity_templates/_entry_comment.html.erb +8 -0
- data/app/views/activity_templates/_entry_share.html.erb +8 -0
- data/app/views/identity_feeds/_form.html.erb +20 -0
- data/app/views/identity_feeds/_service_categories.html.erb +13 -0
- data/app/views/identity_feeds/_services_for_user.html.erb +25 -0
- data/app/views/identity_feeds/edit.html.erb +2 -0
- data/app/views/identity_feeds/index.html.erb +32 -0
- data/app/views/identity_feeds/new.html.erb +1 -0
- data/app/views/parts/_add_extended_feed.html.erb +1 -1
- data/app/views/parts/_add_feed.html.erb +1 -1
- data/app/views/parts/_add_single_feed.html.erb +1 -1
- data/app/views/service_templates/_facebook.html.erb +4 -0
- data/app/views/service_templates/_friendfeed.html.erb +2 -0
- data/app/views/service_templates/_goodreads.html.erb +2 -0
- data/app/views/service_templates/_linkedin.html.erb +2 -0
- data/app/views/service_templates/_netflix.html.erb +2 -0
- data/app/views/service_templates/_polyvore.html.erb +2 -0
- data/app/views/service_templates/_zotero_group.html.erb +2 -0
- data/app/views/services/_edit_service.html.erb +1 -0
- data/app/views/services/_new_service.html.erb +1 -0
- data/app/views/services/_summary.html.erb +5 -0
- data/app/views/services/_view_service.html.erb +1 -0
- data/app/views/visits/_comments_tool.html.erb +19 -0
- data/app/views/visits/_frame_scripts.html.erb +26 -0
- data/app/views/visits/_share_tool.html.erb +22 -0
- data/app/views/visits/_toolbar.html.erb +25 -0
- data/app/views/visits/show.html.erb +4 -96
- data/config/muck_raker_routes.rb +2 -0
- data/db/bootstrap/service_categories.yml +40 -0
- data/db/bootstrap/services.yml +605 -153
- data/db/migrate/20090826220530_change_services_sequence_to_sort.rb +9 -0
- data/db/migrate/20090826225652_create_identity_feeds.rb +14 -0
- data/db/migrate/20090827005105_add_identity_fields_to_services.rb +13 -0
- data/db/migrate/20090827015308_create_service_categories.rb +12 -0
- data/db/migrate/20090827221502_add_prompt_and_template_to_services.rb +11 -0
- data/lib/active_record/acts/muck_feed_owner.rb +31 -0
- data/lib/active_record/acts/muck_feed_parent.rb +3 -2
- data/lib/active_record/acts/muck_raker_comment.rb +39 -0
- data/lib/active_record/acts/muck_raker_share.rb +32 -0
- data/lib/muck_raker/tasks.rb +19 -0
- data/lib/muck_raker.rb +6 -0
- data/locales/ar.yml +98 -61
- data/locales/bg.yml +90 -53
- data/locales/ca.yml +87 -50
- data/locales/cs.yml +82 -45
- data/locales/da.yml +69 -32
- data/locales/de.yml +75 -38
- data/locales/el.yml +78 -41
- data/locales/en.yml +39 -2
- data/locales/es.yml +82 -45
- data/locales/et.yml +89 -52
- data/locales/fa.yml +82 -45
- data/locales/fi.yml +95 -58
- data/locales/fr.yml +80 -43
- data/locales/gl.yml +94 -57
- data/locales/hi.yml +77 -40
- data/locales/hr.yml +84 -47
- data/locales/hu.yml +101 -64
- data/locales/id.yml +81 -44
- data/locales/it.yml +84 -47
- data/locales/iw.yml +91 -54
- data/locales/ja.yml +96 -59
- data/locales/ko.yml +77 -40
- data/locales/lt.yml +85 -48
- data/locales/lv.yml +87 -50
- data/locales/mt.yml +90 -53
- data/locales/nl.yml +75 -38
- data/locales/no.yml +77 -40
- data/locales/pl.yml +79 -42
- data/locales/pt-PT.yml +87 -50
- data/locales/ro.yml +100 -63
- data/locales/ru.yml +94 -57
- data/locales/sk.yml +83 -46
- data/locales/sl.yml +84 -47
- data/locales/sq.yml +101 -64
- data/locales/sr.yml +106 -69
- data/locales/sv.yml +87 -50
- data/locales/th.yml +100 -63
- data/locales/tl.yml +73 -36
- data/locales/tr.yml +84 -47
- data/locales/uk.yml +98 -61
- data/locales/vi.yml +87 -50
- data/locales/zh-CN.yml +82 -45
- data/locales/zh-TW.yml +82 -45
- data/locales/zh.yml +83 -46
- data/muck-raker.gemspec +517 -5
- data/public/ecs_to_rss-wishlist.xslt +41 -0
- data/public/images/service_icons/16/blogger.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/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/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/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/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/blogger.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/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/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/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/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/blogger.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/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/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/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/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/blogger.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/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/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/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/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/amazon.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/images/service_icons/source/Aquaticus_Social_Icon_template_by_jwloh.psd +0 -0
- data/public/images/service_icons/source/Google.psd +0 -0
- data/public/images/service_icons/source/Quake 9 Design.webloc +0 -0
- data/public/images/service_icons/source/ReadMe.rtf +52 -0
- data/public/images/service_icons/source/aquaticus.social.png +0 -0
- data/public/images/service_icons/source/citeulike.png +0 -0
- data/public/images/service_icons/source/clipmarks.png +0 -0
- data/public/images/service_icons/source/netflix.png +0 -0
- data/public/images/service_icons/source/oai.png +0 -0
- data/public/images/service_icons/source/odeo.png +0 -0
- data/public/images/service_icons/source/opml.png +0 -0
- data/public/images/service_icons/source/pandora.png +0 -0
- data/public/images/service_icons/source/simpy.png +0 -0
- data/public/images/service_icons/source/template.png +0 -0
- data/public/images/service_icons/source/xanga.png +0 -0
- data/public/javascripts/muck_raker.js +19 -5
- data/public/stylesheets/frame.css +52 -0
- data/raker/lib/aggregatord.jar +0 -0
- data/test/rails_root/app/controllers/application_controller.rb +2 -0
- data/test/rails_root/app/models/activity.rb +22 -1
- data/test/rails_root/app/models/comment.rb +21 -1
- data/test/rails_root/app/models/share.rb +19 -2
- data/test/rails_root/app/models/user.rb +2 -1
- data/test/rails_root/config/global_config.yml +4 -1
- data/test/rails_root/config/routes.rb +8 -1
- data/test/rails_root/db/bootstrap/service_categories.yml +40 -0
- data/test/rails_root/db/bootstrap/services.yml +605 -153
- data/test/rails_root/db/migrate/20090818204527_add_activity_indexes.rb +9 -0
- data/test/rails_root/db/migrate/20090819030523_add_attachable_to_activities.rb +13 -0
- data/test/rails_root/db/migrate/20090826220530_change_services_sequence_to_sort.rb +9 -0
- data/test/rails_root/db/migrate/20090826225652_create_identity_feeds.rb +14 -0
- data/test/rails_root/db/migrate/20090827005105_add_identity_fields_to_services.rb +13 -0
- data/test/rails_root/db/migrate/20090827015308_create_service_categories.rb +12 -0
- data/test/rails_root/db/migrate/20090827221502_add_prompt_and_template_to_services.rb +11 -0
- data/test/rails_root/public/ecs_to_rss-wishlist.xslt +41 -0
- data/test/rails_root/public/images/icons/comment.png +0 -0
- data/test/rails_root/public/images/service_icons/16/blogger.png +0 -0
- data/test/rails_root/public/images/service_icons/16/citeulike.png +0 -0
- data/test/rails_root/public/images/service_icons/16/clipmarks.png +0 -0
- data/test/rails_root/public/images/service_icons/16/delicious.png +0 -0
- data/test/rails_root/public/images/service_icons/16/digg.png +0 -0
- data/test/rails_root/public/images/service_icons/16/facebook.png +0 -0
- data/test/rails_root/public/images/service_icons/16/feed.png +0 -0
- data/test/rails_root/public/images/service_icons/16/flickr.png +0 -0
- data/test/rails_root/public/images/service_icons/16/friendfeed.png +0 -0
- data/test/rails_root/public/images/service_icons/16/friendster.png +0 -0
- data/test/rails_root/public/images/service_icons/16/furl.png +0 -0
- data/test/rails_root/public/images/service_icons/16/google.png +0 -0
- data/test/rails_root/public/images/service_icons/16/lastfm.png +0 -0
- data/test/rails_root/public/images/service_icons/16/linkedin.png +0 -0
- data/test/rails_root/public/images/service_icons/16/livejournal.png +0 -0
- data/test/rails_root/public/images/service_icons/16/magnolia.png +0 -0
- data/test/rails_root/public/images/service_icons/16/mixx.png +0 -0
- data/test/rails_root/public/images/service_icons/16/myspace.png +0 -0
- data/test/rails_root/public/images/service_icons/16/netflix.png +0 -0
- data/test/rails_root/public/images/service_icons/16/netvibes.png +0 -0
- data/test/rails_root/public/images/service_icons/16/newsvine.png +0 -0
- data/test/rails_root/public/images/service_icons/16/oai.png +0 -0
- data/test/rails_root/public/images/service_icons/16/odeo.png +0 -0
- data/test/rails_root/public/images/service_icons/16/opml.png +0 -0
- data/test/rails_root/public/images/service_icons/16/pandora.png +0 -0
- data/test/rails_root/public/images/service_icons/16/picasa.png +0 -0
- data/test/rails_root/public/images/service_icons/16/pownce.png +0 -0
- data/test/rails_root/public/images/service_icons/16/reddit.png +0 -0
- data/test/rails_root/public/images/service_icons/16/simpy.png +0 -0
- data/test/rails_root/public/images/service_icons/16/stumbleupon.png +0 -0
- data/test/rails_root/public/images/service_icons/16/technorati.png +0 -0
- data/test/rails_root/public/images/service_icons/16/twitter.png +0 -0
- data/test/rails_root/public/images/service_icons/16/vimeo.png +0 -0
- data/test/rails_root/public/images/service_icons/16/webshots.png +0 -0
- data/test/rails_root/public/images/service_icons/16/wordpress.png +0 -0
- data/test/rails_root/public/images/service_icons/16/xanga.png +0 -0
- data/test/rails_root/public/images/service_icons/16/yahoo.png +0 -0
- data/test/rails_root/public/images/service_icons/16/yelp.png +0 -0
- data/test/rails_root/public/images/service_icons/16/youtube.png +0 -0
- data/test/rails_root/public/images/service_icons/24/blogger.png +0 -0
- data/test/rails_root/public/images/service_icons/24/citeulike.png +0 -0
- data/test/rails_root/public/images/service_icons/24/clipmarks.png +0 -0
- data/test/rails_root/public/images/service_icons/24/delicious.png +0 -0
- data/test/rails_root/public/images/service_icons/24/digg.png +0 -0
- data/test/rails_root/public/images/service_icons/24/facebook.png +0 -0
- data/test/rails_root/public/images/service_icons/24/feed.png +0 -0
- data/test/rails_root/public/images/service_icons/24/flickr.png +0 -0
- data/test/rails_root/public/images/service_icons/24/friendfeed.png +0 -0
- data/test/rails_root/public/images/service_icons/24/friendster.png +0 -0
- data/test/rails_root/public/images/service_icons/24/furl.png +0 -0
- data/test/rails_root/public/images/service_icons/24/google.png +0 -0
- data/test/rails_root/public/images/service_icons/24/lastfm.png +0 -0
- data/test/rails_root/public/images/service_icons/24/linkedin.png +0 -0
- data/test/rails_root/public/images/service_icons/24/livejournal.png +0 -0
- data/test/rails_root/public/images/service_icons/24/magnolia.png +0 -0
- data/test/rails_root/public/images/service_icons/24/mixx.png +0 -0
- data/test/rails_root/public/images/service_icons/24/myspace.png +0 -0
- data/test/rails_root/public/images/service_icons/24/netflix.png +0 -0
- data/test/rails_root/public/images/service_icons/24/netvibes.png +0 -0
- data/test/rails_root/public/images/service_icons/24/newsvine.png +0 -0
- data/test/rails_root/public/images/service_icons/24/oai.png +0 -0
- data/test/rails_root/public/images/service_icons/24/odeo.png +0 -0
- data/test/rails_root/public/images/service_icons/24/opml.png +0 -0
- data/test/rails_root/public/images/service_icons/24/pandora.png +0 -0
- data/test/rails_root/public/images/service_icons/24/picasa.png +0 -0
- data/test/rails_root/public/images/service_icons/24/pownce.png +0 -0
- data/test/rails_root/public/images/service_icons/24/reddit.png +0 -0
- data/test/rails_root/public/images/service_icons/24/simpy.png +0 -0
- data/test/rails_root/public/images/service_icons/24/stumbleupon.png +0 -0
- data/test/rails_root/public/images/service_icons/24/technorati.png +0 -0
- data/test/rails_root/public/images/service_icons/24/twitter.png +0 -0
- data/test/rails_root/public/images/service_icons/24/vimeo.png +0 -0
- data/test/rails_root/public/images/service_icons/24/webshots.png +0 -0
- data/test/rails_root/public/images/service_icons/24/wordpress.png +0 -0
- data/test/rails_root/public/images/service_icons/24/xanga.png +0 -0
- data/test/rails_root/public/images/service_icons/24/yahoo.png +0 -0
- data/test/rails_root/public/images/service_icons/24/yelp.png +0 -0
- data/test/rails_root/public/images/service_icons/24/youtube.png +0 -0
- data/test/rails_root/public/images/service_icons/48/blogger.png +0 -0
- data/test/rails_root/public/images/service_icons/48/citeulike.png +0 -0
- data/test/rails_root/public/images/service_icons/48/clipmarks.png +0 -0
- data/test/rails_root/public/images/service_icons/48/delicious.png +0 -0
- data/test/rails_root/public/images/service_icons/48/digg.png +0 -0
- data/test/rails_root/public/images/service_icons/48/facebook.png +0 -0
- data/test/rails_root/public/images/service_icons/48/feed.png +0 -0
- data/test/rails_root/public/images/service_icons/48/flickr.png +0 -0
- data/test/rails_root/public/images/service_icons/48/friendfeed.png +0 -0
- data/test/rails_root/public/images/service_icons/48/friendster.png +0 -0
- data/test/rails_root/public/images/service_icons/48/furl.png +0 -0
- data/test/rails_root/public/images/service_icons/48/google.png +0 -0
- data/test/rails_root/public/images/service_icons/48/lastfm.png +0 -0
- data/test/rails_root/public/images/service_icons/48/linkedin.png +0 -0
- data/test/rails_root/public/images/service_icons/48/livejournal.png +0 -0
- data/test/rails_root/public/images/service_icons/48/magnolia.png +0 -0
- data/test/rails_root/public/images/service_icons/48/mixx.png +0 -0
- data/test/rails_root/public/images/service_icons/48/myspace.png +0 -0
- data/test/rails_root/public/images/service_icons/48/netflix.png +0 -0
- data/test/rails_root/public/images/service_icons/48/netvibes.png +0 -0
- data/test/rails_root/public/images/service_icons/48/newsvine.png +0 -0
- data/test/rails_root/public/images/service_icons/48/oai.png +0 -0
- data/test/rails_root/public/images/service_icons/48/odeo.png +0 -0
- data/test/rails_root/public/images/service_icons/48/opml.png +0 -0
- data/test/rails_root/public/images/service_icons/48/pandora.png +0 -0
- data/test/rails_root/public/images/service_icons/48/picasa.png +0 -0
- data/test/rails_root/public/images/service_icons/48/pownce.png +0 -0
- data/test/rails_root/public/images/service_icons/48/reddit.png +0 -0
- data/test/rails_root/public/images/service_icons/48/simpy.png +0 -0
- data/test/rails_root/public/images/service_icons/48/stumbleupon.png +0 -0
- data/test/rails_root/public/images/service_icons/48/technorati.png +0 -0
- data/test/rails_root/public/images/service_icons/48/twitter.png +0 -0
- data/test/rails_root/public/images/service_icons/48/vimeo.png +0 -0
- data/test/rails_root/public/images/service_icons/48/webshots.png +0 -0
- data/test/rails_root/public/images/service_icons/48/wordpress.png +0 -0
- data/test/rails_root/public/images/service_icons/48/xanga.png +0 -0
- data/test/rails_root/public/images/service_icons/48/yahoo.png +0 -0
- data/test/rails_root/public/images/service_icons/48/yelp.png +0 -0
- data/test/rails_root/public/images/service_icons/48/youtube.png +0 -0
- data/test/rails_root/public/images/service_icons/60/blogger.png +0 -0
- data/test/rails_root/public/images/service_icons/60/citeulike.png +0 -0
- data/test/rails_root/public/images/service_icons/60/clipmarks.png +0 -0
- data/test/rails_root/public/images/service_icons/60/delicious.png +0 -0
- data/test/rails_root/public/images/service_icons/60/digg.png +0 -0
- data/test/rails_root/public/images/service_icons/60/facebook.png +0 -0
- data/test/rails_root/public/images/service_icons/60/feed.png +0 -0
- data/test/rails_root/public/images/service_icons/60/flickr.png +0 -0
- data/test/rails_root/public/images/service_icons/60/friendfeed.png +0 -0
- data/test/rails_root/public/images/service_icons/60/friendster.png +0 -0
- data/test/rails_root/public/images/service_icons/60/furl.png +0 -0
- data/test/rails_root/public/images/service_icons/60/google.png +0 -0
- data/test/rails_root/public/images/service_icons/60/lastfm.png +0 -0
- data/test/rails_root/public/images/service_icons/60/linkedin.png +0 -0
- data/test/rails_root/public/images/service_icons/60/livejournal.png +0 -0
- data/test/rails_root/public/images/service_icons/60/magnolia.png +0 -0
- data/test/rails_root/public/images/service_icons/60/mixx.png +0 -0
- data/test/rails_root/public/images/service_icons/60/myspace.png +0 -0
- data/test/rails_root/public/images/service_icons/60/netflix.png +0 -0
- data/test/rails_root/public/images/service_icons/60/netvibes.png +0 -0
- data/test/rails_root/public/images/service_icons/60/newsvine.png +0 -0
- data/test/rails_root/public/images/service_icons/60/oai.png +0 -0
- data/test/rails_root/public/images/service_icons/60/odeo.png +0 -0
- data/test/rails_root/public/images/service_icons/60/opml.png +0 -0
- data/test/rails_root/public/images/service_icons/60/pandora.png +0 -0
- data/test/rails_root/public/images/service_icons/60/picasa.png +0 -0
- data/test/rails_root/public/images/service_icons/60/pownce.png +0 -0
- data/test/rails_root/public/images/service_icons/60/reddit.png +0 -0
- data/test/rails_root/public/images/service_icons/60/simpy.png +0 -0
- data/test/rails_root/public/images/service_icons/60/stumbleupon.png +0 -0
- data/test/rails_root/public/images/service_icons/60/technorati.png +0 -0
- data/test/rails_root/public/images/service_icons/60/twitter.png +0 -0
- data/test/rails_root/public/images/service_icons/60/vimeo.png +0 -0
- data/test/rails_root/public/images/service_icons/60/webshots.png +0 -0
- data/test/rails_root/public/images/service_icons/60/wordpress.png +0 -0
- data/test/rails_root/public/images/service_icons/60/xanga.png +0 -0
- data/test/rails_root/public/images/service_icons/60/yahoo.png +0 -0
- data/test/rails_root/public/images/service_icons/60/yelp.png +0 -0
- data/test/rails_root/public/images/service_icons/60/youtube.png +0 -0
- data/test/rails_root/public/images/service_icons/ReadMe.rtf +52 -0
- data/test/rails_root/public/images/service_icons/facebook_friend_links.jpg +0 -0
- data/test/rails_root/public/images/service_icons/facebook_my_links.jpg +0 -0
- data/test/rails_root/public/images/service_icons/source/Aquaticus_Social_Icon_template_by_jwloh.psd +0 -0
- data/test/rails_root/public/images/service_icons/source/Google.psd +0 -0
- data/test/rails_root/public/images/service_icons/source/Quake 9 Design.webloc +0 -0
- data/test/rails_root/public/images/service_icons/source/ReadMe.rtf +52 -0
- data/test/rails_root/public/images/service_icons/source/aquaticus.social.png +0 -0
- data/test/rails_root/public/images/service_icons/source/citeulike.png +0 -0
- data/test/rails_root/public/images/service_icons/source/clipmarks.png +0 -0
- data/test/rails_root/public/images/service_icons/source/netflix.png +0 -0
- data/test/rails_root/public/images/service_icons/source/oai.png +0 -0
- data/test/rails_root/public/images/service_icons/source/odeo.png +0 -0
- data/test/rails_root/public/images/service_icons/source/opml.png +0 -0
- data/test/rails_root/public/images/service_icons/source/pandora.png +0 -0
- data/test/rails_root/public/images/service_icons/source/simpy.png +0 -0
- data/test/rails_root/public/images/service_icons/source/template.png +0 -0
- data/test/rails_root/public/images/service_icons/source/xanga.png +0 -0
- data/test/rails_root/public/javascripts/jquery-ui.js +188 -0
- data/test/rails_root/public/javascripts/jquery.js +19 -0
- data/test/rails_root/public/javascripts/jrails.js +1 -0
- data/test/rails_root/public/javascripts/muck.js +5 -18
- data/test/rails_root/public/javascripts/muck_activities.js +3 -3
- data/test/rails_root/public/javascripts/muck_raker.js +19 -5
- data/test/rails_root/public/stylesheets/application.css +48 -2
- data/test/rails_root/public/stylesheets/frame.css +52 -0
- data/test/rails_root/public/stylesheets/styles.css +1 -1
- data/test/rails_root/test/factories.rb +16 -0
- data/test/rails_root/test/functional/feeds_controller_test.rb +2 -2
- data/test/rails_root/test/functional/identity_feeds_controller_test.rb +107 -0
- data/test/rails_root/test/test_helper.rb +1 -0
- data/test/rails_root/test/unit/comment_test.rb +38 -0
- data/test/rails_root/test/unit/feed_parent_test.rb +0 -5
- data/test/rails_root/test/unit/feed_test.rb +45 -7
- data/test/rails_root/test/unit/identity_feed_test.rb +8 -0
- data/test/rails_root/test/unit/service_category_test.rb +19 -0
- data/test/rails_root/test/unit/service_test.rb +68 -0
- data/test/rails_root/test/unit/share_test.rb +31 -0
- data/test/rails_root/test/unit/tag_cloud_test.rb +0 -4
- data/test/rails_root/test/unit/user_test.rb +30 -1
- data/test/rails_root/vendor/plugins/jrails/CHANGELOG +43 -0
- data/test/rails_root/vendor/plugins/jrails/LICENSE +18 -0
- data/test/rails_root/vendor/plugins/jrails/README.rdoc +21 -0
- data/test/rails_root/vendor/plugins/jrails/Rakefile +18 -0
- data/test/rails_root/vendor/plugins/jrails/VERSION.yml +4 -0
- data/test/rails_root/vendor/plugins/jrails/bin/jrails +30 -0
- data/test/rails_root/vendor/plugins/jrails/init.rb +1 -0
- data/test/rails_root/vendor/plugins/jrails/install.rb +9 -0
- data/test/rails_root/vendor/plugins/jrails/javascripts/jquery-ui.js +188 -0
- data/test/rails_root/vendor/plugins/jrails/javascripts/jquery.js +19 -0
- data/test/rails_root/vendor/plugins/jrails/javascripts/jrails.js +1 -0
- data/test/rails_root/vendor/plugins/jrails/javascripts/sources/jrails.js +197 -0
- data/test/rails_root/vendor/plugins/jrails/jrails.gemspec +50 -0
- data/test/rails_root/vendor/plugins/jrails/lib/jrails.rb +421 -0
- data/test/rails_root/vendor/plugins/jrails/rails/init.rb +15 -0
- data/test/rails_root/vendor/plugins/jrails/tasks/jrails.rake +25 -0
- metadata +519 -4
@@ -12,8 +12,8 @@
|
|
12
12
|
# top_tags :text
|
13
13
|
# priority :integer(4) default(10)
|
14
14
|
# status :integer(4) default(1)
|
15
|
-
# last_requested_at :datetime
|
16
|
-
# last_harvested_at :datetime
|
15
|
+
# last_requested_at :datetime default(Wed Jan 01 00:00:00 UTC 1969)
|
16
|
+
# last_harvested_at :datetime default(Wed Jan 01 00:00:00 UTC 1969)
|
17
17
|
# harvest_interval :integer(4) default(86400)
|
18
18
|
# failed_requests :integer(4) default(0)
|
19
19
|
# error_message :text
|
@@ -32,11 +32,6 @@
|
|
32
32
|
# contributor_id :integer(4)
|
33
33
|
# etag :string(255)
|
34
34
|
#
|
35
|
-
# Indexes
|
36
|
-
#
|
37
|
-
# index_feeds_on_service_id (service_id)
|
38
|
-
# index_feeds_on_uri (uri)
|
39
|
-
#
|
40
35
|
|
41
36
|
require File.dirname(__FILE__) + '/../test_helper'
|
42
37
|
|
@@ -51,6 +46,7 @@ class FeedTest < ActiveSupport::TestCase
|
|
51
46
|
should_have_many :entries
|
52
47
|
should_belong_to :contributor
|
53
48
|
should_belong_to :default_language
|
49
|
+
should_belong_to :service
|
54
50
|
|
55
51
|
should_validate_presence_of :uri
|
56
52
|
|
@@ -104,4 +100,46 @@ class FeedTest < ActiveSupport::TestCase
|
|
104
100
|
end
|
105
101
|
end
|
106
102
|
|
103
|
+
context "Delete feed if unused" do
|
104
|
+
setup do
|
105
|
+
@user = Factory(:user)
|
106
|
+
@identity_user = Factory(:user)
|
107
|
+
@delete_feed = Factory(:feed, :contributor => @user)
|
108
|
+
@dont_delete_feed = Factory(:feed, :contributor => @user)
|
109
|
+
@identity_user.own_feeds << @dont_delete_feed
|
110
|
+
end
|
111
|
+
should "delete feed" do
|
112
|
+
assert @delete_feed.delete_if_unused(@user)
|
113
|
+
end
|
114
|
+
should "not delete feed" do
|
115
|
+
assert !@dont_delete_feed.delete_if_unused(@user)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
context "Create feed from service" do
|
120
|
+
setup do
|
121
|
+
@login = 'jbasdf'
|
122
|
+
@password = ''
|
123
|
+
@uri_template = TEST_USERNAME_TEMPLATE
|
124
|
+
@service = Factory(:service, :uri_template => @uri_template)
|
125
|
+
@user = Factory(:user)
|
126
|
+
end
|
127
|
+
should "create feed from service" do
|
128
|
+
feeds = Feed.create_service_feeds(@service, '', @login, @password, @user.id)
|
129
|
+
feed = feeds[0]
|
130
|
+
assert_equal @uri_template.sub("{username}", @login), feed.uri
|
131
|
+
assert_equal @login, feed.login
|
132
|
+
assert_equal @password, feed.password
|
133
|
+
assert_equal @service.id, feed.service_id
|
134
|
+
end
|
135
|
+
should "create feed from service even with nil template" do
|
136
|
+
feeds = Feed.create_service_feeds(@service, '', @login, @password, @user.id)
|
137
|
+
feed = feeds[0]
|
138
|
+
assert_equal @uri_template.sub("{username}", @login), feed.uri
|
139
|
+
assert_equal @login, feed.login
|
140
|
+
assert_equal @password, feed.password
|
141
|
+
assert_equal @service.id, feed.service_id
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
107
145
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# == Schema Information
|
2
|
+
#
|
3
|
+
# Table name: service_categories
|
4
|
+
#
|
5
|
+
# id :integer(4) not null, primary key
|
6
|
+
# name :string(255) not null
|
7
|
+
# sort :integer(4) default(0)
|
8
|
+
#
|
9
|
+
|
10
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
11
|
+
|
12
|
+
class ServiceCategoryTest < ActiveSupport::TestCase
|
13
|
+
|
14
|
+
context "service category instance" do
|
15
|
+
should_have_many :services
|
16
|
+
should_have_named_scope :sorted
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# == Schema Information
|
2
|
+
#
|
3
|
+
# Table name: services
|
4
|
+
#
|
5
|
+
# id :integer(4) not null, primary key
|
6
|
+
# uri :string(2083) default("")
|
7
|
+
# name :string(1000) default("")
|
8
|
+
# api_uri :string(2083) default("")
|
9
|
+
# uri_template :string(2083) default("")
|
10
|
+
# icon :string(2083) default("rss.gif")
|
11
|
+
# sort :integer(4)
|
12
|
+
# requires_password :boolean(1)
|
13
|
+
# is_identity :boolean(1)
|
14
|
+
# service_category_id :integer(4)
|
15
|
+
# active :boolean(1) default(TRUE)
|
16
|
+
#
|
17
|
+
|
18
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
19
|
+
|
20
|
+
class ServiceTest < ActiveSupport::TestCase
|
21
|
+
|
22
|
+
context "service instance" do
|
23
|
+
should_belong_to :service_category
|
24
|
+
should_have_named_scope :sorted
|
25
|
+
should_have_named_scope :identity_services
|
26
|
+
should_have_named_scope :tag_services
|
27
|
+
end
|
28
|
+
|
29
|
+
context "identity services" do
|
30
|
+
should "generate uri using blog url" do
|
31
|
+
service = Factory(:service)
|
32
|
+
uris = service.generate_uris('', '', TEST_URI)
|
33
|
+
assert uris.map(&:url).include?(TEST_RSS_URI)
|
34
|
+
end
|
35
|
+
should "generate uri using username" do
|
36
|
+
service = Factory(:service, :uri_template => TEST_USERNAME_TEMPLATE)
|
37
|
+
uris = service.generate_uris('jbasdf', '', '')
|
38
|
+
assert uris.map(&:url).include?(TEST_USERNAME_TEMPLATE.sub('{username}', 'jbasdf'))
|
39
|
+
end
|
40
|
+
should "get twitter uri from username" do
|
41
|
+
service = Factory(:service, :uri_template => "http://www.twitter.com/{username}")
|
42
|
+
uris = service.generate_uris('jbasdf', '', '')
|
43
|
+
assert uris.map(&:url).include?("http://twitter.com/statuses/user_timeline/7219042.rss")
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
context "tag services" do
|
48
|
+
setup do
|
49
|
+
@template = "http://example.com/{tag}"
|
50
|
+
Factory(:service, :uri_template => @template, :use_for => 'tags')
|
51
|
+
end
|
52
|
+
should "generate feeds for tag" do
|
53
|
+
tag = 'rails'
|
54
|
+
uris = Service.generate_tag_uris(tag)
|
55
|
+
assert uris.include?(@template.sub('{tag}', tag))
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context "amazon wish list" do
|
60
|
+
setup do
|
61
|
+
@email = 'justinball@gmail.com'
|
62
|
+
end
|
63
|
+
should "get wishlist" do
|
64
|
+
Service.get_amazon_feeds(@email)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# == Schema Information
|
2
|
+
#
|
3
|
+
# Table name: shares
|
4
|
+
#
|
5
|
+
# id :integer(4) not null, primary key
|
6
|
+
# uri :string(2083) default(""), not null
|
7
|
+
# title :string(255)
|
8
|
+
# message :text
|
9
|
+
# shared_by_id :integer(4) not null
|
10
|
+
# shared_to_id :integer(4)
|
11
|
+
# created_at :datetime
|
12
|
+
# updated_at :datetime
|
13
|
+
# entry_id :integer(4)
|
14
|
+
# comment_count :integer(4) default(0)
|
15
|
+
#
|
16
|
+
|
17
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
18
|
+
|
19
|
+
class ShareTest < ActiveSupport::TestCase
|
20
|
+
|
21
|
+
context "share instance" do
|
22
|
+
setup do
|
23
|
+
@share = Factory(:share)
|
24
|
+
end
|
25
|
+
should_belong_to :entry
|
26
|
+
should "return entry for discover_attach_to" do
|
27
|
+
assert_equal @share.entry, @share.discover_attach_to
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -8,10 +8,6 @@
|
|
8
8
|
# tag_list :string(5000)
|
9
9
|
# grain_size :string(255) default("all")
|
10
10
|
#
|
11
|
-
# Indexes
|
12
|
-
#
|
13
|
-
# index_tag_clouds_on_grain_size_and_language_id_and_filter (grain_size,language_id,filter) UNIQUE
|
14
|
-
#
|
15
11
|
|
16
12
|
require File.dirname(__FILE__) + '/../test_helper'
|
17
13
|
|
@@ -1,3 +1,32 @@
|
|
1
|
+
# == Schema Information
|
2
|
+
#
|
3
|
+
# Table name: users
|
4
|
+
#
|
5
|
+
# id :integer(4) not null, primary key
|
6
|
+
# login :string(255)
|
7
|
+
# email :string(255)
|
8
|
+
# first_name :string(255)
|
9
|
+
# last_name :string(255)
|
10
|
+
# crypted_password :string(255)
|
11
|
+
# password_salt :string(255)
|
12
|
+
# persistence_token :string(255)
|
13
|
+
# single_access_token :string(255)
|
14
|
+
# perishable_token :string(255)
|
15
|
+
# login_count :integer(4) default(0), not null
|
16
|
+
# failed_login_count :integer(4) default(0), not null
|
17
|
+
# last_request_at :datetime
|
18
|
+
# last_login_at :datetime
|
19
|
+
# current_login_at :datetime
|
20
|
+
# current_login_ip :string(255)
|
21
|
+
# last_login_ip :string(255)
|
22
|
+
# terms_of_service :boolean(1) not null
|
23
|
+
# time_zone :string(255) default("UTC")
|
24
|
+
# disabled_at :datetime
|
25
|
+
# activated_at :datetime
|
26
|
+
# created_at :datetime
|
27
|
+
# updated_at :datetime
|
28
|
+
#
|
29
|
+
|
1
30
|
require File.dirname(__FILE__) + '/../test_helper'
|
2
31
|
|
3
32
|
class UserTest < ActiveSupport::TestCase
|
@@ -8,4 +37,4 @@ class UserTest < ActiveSupport::TestCase
|
|
8
37
|
should_have_many :feed_parents
|
9
38
|
should_have_many :feeds
|
10
39
|
end
|
11
|
-
end
|
40
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
0.5.0 (31 July 2009)
|
2
|
+
* Gemification
|
3
|
+
* Support for Ruby 1.9.X
|
4
|
+
* Updated to jQuery 1.3.2
|
5
|
+
* Updated to jQuery UI 1.7.2
|
6
|
+
* Created a jrails binary (runs rake tasks) because rails does not (yet?) pickup
|
7
|
+
tasks from gem plugins
|
8
|
+
* Changed default to use jQuery compatibility name (not $)
|
9
|
+
* Created a scrub task that will remove the prototype / script.aculo.us
|
10
|
+
javascript files
|
11
|
+
* better approximate scriptaculous effect names
|
12
|
+
* add support for page[:element_id].visual_effect(:effect) as well as page.visual_effect(:effect, :element_id)
|
13
|
+
* added a reset form function to jrails.js (stolen from jquery form)
|
14
|
+
* can now use jquery selectors in all functions
|
15
|
+
* added javascript_function helper to render inline rjs helpers
|
16
|
+
* better support for sortable_element
|
17
|
+
|
18
|
+
0.4.0 (16 June 2008)
|
19
|
+
* updated to jquery-ui 1.5 & merged js into single file
|
20
|
+
* Added jQuery.noConflict support
|
21
|
+
* support for value/val
|
22
|
+
* additional support for update/delete methods
|
23
|
+
* support for success/failure hash
|
24
|
+
* setRequestHeader now gets called globally
|
25
|
+
* Better support for droppables, sortables
|
26
|
+
* Add support for prototype AJAX callbacks
|
27
|
+
* better support for AJAX form calls
|
28
|
+
|
29
|
+
0.3.0 (22 Feb 2008)
|
30
|
+
* updated to jquery-fx 1.0b and jquery-ui 1.5b
|
31
|
+
* Add text/javascript request header to fix format.js
|
32
|
+
* Added Tasks (thanks ggarside)
|
33
|
+
* Improve visual_effects methods
|
34
|
+
* Fixed some RJS calls
|
35
|
+
* Fixed observer code for ie
|
36
|
+
|
37
|
+
0.2.0 (26 Nov 2007)
|
38
|
+
* Vastly Improved FX
|
39
|
+
* Improved Form Observers
|
40
|
+
* Fixed Rails <= 1.2.6 Compatibility
|
41
|
+
|
42
|
+
0.1.0 (15 Nov 2007)
|
43
|
+
* Initial release
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Copyright (c) 2008 Aaron Eisenberger
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
+
subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
= jRails
|
2
|
+
|
3
|
+
jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers.
|
4
|
+
|
5
|
+
== Resources
|
6
|
+
|
7
|
+
Install
|
8
|
+
|
9
|
+
* .script/plugin install git://github.com/aaronchi/jrails.git
|
10
|
+
|
11
|
+
Project Site
|
12
|
+
|
13
|
+
* http://code.google.com/p/ennerchi
|
14
|
+
|
15
|
+
Web Site
|
16
|
+
|
17
|
+
* http://www.ennerchi.com/projects/jrails
|
18
|
+
|
19
|
+
Group Site
|
20
|
+
|
21
|
+
* http://groups.google.com/group/jrails
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "jrails"
|
8
|
+
gem.summary = "jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers."
|
9
|
+
gem.description = "Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library."
|
10
|
+
gem.email = "aaronchi@gmail.com"
|
11
|
+
gem.homepage = "http://ennerchi.com/projects/jrails"
|
12
|
+
gem.authors = ["Aaron Eisenberger", "Patrick Hurley"]
|
13
|
+
gem.rubyforge_project = "jrails"
|
14
|
+
gem.files = FileList["[A-Z]*.rb","{bin,javascripts,lib,rails,tasks}/**/*"]
|
15
|
+
end
|
16
|
+
rescue LoadError
|
17
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
18
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'rake'
|
5
|
+
|
6
|
+
RAILS_ROOT = Dir.pwd
|
7
|
+
rakeapp = Rake.application
|
8
|
+
fname =File.join(File.dirname(__FILE__), '..', 'tasks', 'jrails.rake')
|
9
|
+
load fname
|
10
|
+
|
11
|
+
task :help do
|
12
|
+
puts "jrails [command]\n\n"
|
13
|
+
rakeapp.options.show_task_pattern = Regexp.new('^[hius]')
|
14
|
+
rakeapp.display_tasks_and_comments
|
15
|
+
end
|
16
|
+
|
17
|
+
desc 'Installs the jQuery and jRails javascripts to public/javascripts'
|
18
|
+
task :install do
|
19
|
+
Rake::Task['jrails:js:install'].invoke
|
20
|
+
end
|
21
|
+
|
22
|
+
desc 'Remove the prototype / script.aculo.us javascript files'
|
23
|
+
task :scrub do
|
24
|
+
Rake::Task['jrails:js:scrub'].invoke
|
25
|
+
end
|
26
|
+
|
27
|
+
rakeapp.init("jrails")
|
28
|
+
task :default => [:help]
|
29
|
+
|
30
|
+
rakeapp.top_level
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'rails/init.rb'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Install hook code here
|
2
|
+
puts "Copying files..."
|
3
|
+
dir = "javascripts"
|
4
|
+
["jquery-ui.js", "jquery.js", "jrails.js"].each do |js_file|
|
5
|
+
dest_file = File.join(RAILS_ROOT, "public", dir, js_file)
|
6
|
+
src_file = File.join(File.dirname(__FILE__) , dir, js_file)
|
7
|
+
FileUtils.cp_r(src_file, dest_file)
|
8
|
+
end
|
9
|
+
puts "Files copied - Installation complete!"
|