muck-raker 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- oer_commons:
2
- uri: 'http://www.oercommons.org/oai'
3
- display_uri: 'http://www.oercommons.org'
4
- metadata_prefix: 'oer_recommender'
5
- title: 'OER Commons - Open Educational Resources'
1
+ oer_commons:
2
+ uri: 'http://www.oercommons.org/oai'
3
+ display_uri: 'http://www.oercommons.org'
4
+ metadata_prefix: 'oer_recommender'
5
+ title: 'OER Commons - Open Educational Resources'
6
6
  short_title: 'OERC'
@@ -1,172 +1,172 @@
1
- rss:
2
- id: 1
1
+ rss:
2
+ id: 1
3
3
  name: rss
4
- uri:
5
- api_uri:
6
- uri_template:
7
- icon: rss-atom.gif
8
- sequence: 1
9
- oai:
10
- id: 2
4
+ uri:
5
+ api_uri:
6
+ uri_template:
7
+ icon: rss-atom.gif
8
+ sequence: 1
9
+ oai:
10
+ id: 2
11
11
  name: OAI
12
- uri:
13
- api_uri:
14
- uri_template:
15
- icon: oai.gif
16
- sequence: 2
17
- twitter:
18
- id: 3
12
+ uri:
13
+ api_uri:
14
+ uri_template:
15
+ icon: oai.gif
16
+ sequence: 2
17
+ twitter:
18
+ id: 3
19
19
  name: Twitter
20
- uri: "http://www.twitter.com"
21
- api_uri:
22
- uri_template:
23
- icon: twitter.gif
24
- sequence: 3
25
- youtube:
26
- id: 4
20
+ uri: "http://www.twitter.com"
21
+ api_uri:
22
+ uri_template:
23
+ icon: twitter.gif
24
+ sequence: 3
25
+ youtube:
26
+ id: 4
27
27
  name: You Tube
28
- uri: "http://www.youtube.com"
29
- api_uri:
30
- uri_template: feed://www.youtube.com/rss/user/{username}/videos.rss
31
- icon: youtube.gif
32
- sequence: 4
33
- flickr:
34
- id: 5
28
+ uri: "http://www.youtube.com"
29
+ api_uri:
30
+ uri_template: feed://www.youtube.com/rss/user/{username}/videos.rss
31
+ icon: youtube.gif
32
+ sequence: 4
33
+ flickr:
34
+ id: 5
35
35
  name: Flickr
36
- uri: "http://www.flickr.com"
37
- api_uri:
38
- uri_template: "http://api.flickr.com/services/feeds/activity.gne?id={username}"
39
- icon: flickr.gif
40
- sequence: 5
41
- delicious:
42
- id: 6
36
+ uri: "http://www.flickr.com"
37
+ api_uri:
38
+ uri_template: "http://api.flickr.com/services/feeds/activity.gne?id={username}"
39
+ icon: flickr.gif
40
+ sequence: 5
41
+ delicious:
42
+ id: 6
43
43
  name: del.icio.us
44
- uri: "http://del.icio.us/"
45
- api_uri: "https://api.del.icio.us/v1/"
46
- uri_template:
47
- icon: delicious.gif
48
- sequence: 6
49
- digg:
50
- id: 7
44
+ uri: "http://del.icio.us/"
45
+ api_uri: "https://api.del.icio.us/v1/"
46
+ uri_template:
47
+ icon: delicious.gif
48
+ sequence: 6
49
+ digg:
50
+ id: 7
51
51
  name: Digg
52
- uri: "http://www.digg.com"
53
- api_uri:
54
- uri_template: "http://digg.com/rss/{username}/index2.xml"
55
- icon: digg.gif
56
- sequence: 7
57
- 43places:
58
- id: 8
52
+ uri: "http://www.digg.com"
53
+ api_uri:
54
+ uri_template: "http://digg.com/rss/{username}/index2.xml"
55
+ icon: digg.gif
56
+ sequence: 7
57
+ 43places:
58
+ id: 8
59
59
  name: 43 Places
60
- uri: "http://www.43places.com"
61
- api_uri:
62
- uri_template: "http://www.43places.com/rss/uber/author?username={username}"
63
- icon: 43places.gif
64
- sequence: 8
65
- allconsuming:
66
- id: 9
60
+ uri: "http://www.43places.com"
61
+ api_uri:
62
+ uri_template: "http://www.43places.com/rss/uber/author?username={username}"
63
+ icon: 43places.gif
64
+ sequence: 8
65
+ allconsuming:
66
+ id: 9
67
67
  name: All Consuming
68
- uri: "http://allconsuming.net/"
69
- api_uri:
70
- uri_template: "http://allconsuming.net/person/{username}/rss"
71
- icon: allconsuming.gif
72
- sequence: 9
73
- clipmarks:
74
- id: 10
75
- sequence: 10
68
+ uri: "http://allconsuming.net/"
69
+ api_uri:
70
+ uri_template: "http://allconsuming.net/person/{username}/rss"
71
+ icon: allconsuming.gif
72
+ sequence: 9
73
+ clipmarks:
74
+ id: 10
75
+ sequence: 10
76
76
  name: Clipmarks
77
- uri: "http://www.clipmarks.com"
78
- api_uri:
79
- uri_template: "http://rss.clipmarks.com/clipper/{username}/"
80
- icon: clipmarks.gif
81
- lastfm:
82
- id: 11
83
- sequence: 11
77
+ uri: "http://www.clipmarks.com"
78
+ api_uri:
79
+ uri_template: "http://rss.clipmarks.com/clipper/{username}/"
80
+ icon: clipmarks.gif
81
+ lastfm:
82
+ id: 11
83
+ sequence: 11
84
84
  name: Last.fm
85
- uri: "http://www.last.fm"
86
- api_uri:
87
- uri_template: "http://ws.audioscrobbler.com/1.0/user/{username}/recenttracks.rss"
88
- icon: lastfm.gif
89
- livejournal:
90
- id: 12
91
- sequence: 12
85
+ uri: "http://www.last.fm"
86
+ api_uri:
87
+ uri_template: "http://ws.audioscrobbler.com/1.0/user/{username}/recenttracks.rss"
88
+ icon: lastfm.gif
89
+ livejournal:
90
+ id: 12
91
+ sequence: 12
92
92
  name: LiveJournal
93
- uri: "http://www.livejournal.com"
94
- api_uri:
95
- uri_template: "http://{username}.livejournal.com"
96
- icon: livejournal.gif
97
- simpy:
98
- id: 13
99
- sequence: 13
93
+ uri: "http://www.livejournal.com"
94
+ api_uri:
95
+ uri_template: "http://{username}.livejournal.com"
96
+ icon: livejournal.gif
97
+ simpy:
98
+ id: 13
99
+ sequence: 13
100
100
  name: Simpy
101
- uri: "http://www.simpy.com"
102
- api_uri:
103
- uri_template: "http://www.simpy.com/rss/user/{username}/links/"
104
- icon: simpy.gif
105
- wordpress:
106
- id: 14
107
- sequence: 14
101
+ uri: "http://www.simpy.com"
102
+ api_uri:
103
+ uri_template: "http://www.simpy.com/rss/user/{username}/links/"
104
+ icon: simpy.gif
105
+ wordpress:
106
+ id: 14
107
+ sequence: 14
108
108
  name: Wordpress.com
109
- uri: "http://www.wordpress.com/"
110
- api_uri:
111
- uri_template: "http://{username}.wordpress.com/"
112
- icon: wordpress.gif
113
- xanga:
114
- id: 15
115
- sequence: 15
109
+ uri: "http://www.wordpress.com/"
110
+ api_uri:
111
+ uri_template: "http://{username}.wordpress.com/"
112
+ icon: wordpress.gif
113
+ xanga:
114
+ id: 15
115
+ sequence: 15
116
116
  name: Xanga
117
- uri: "http://www.xanga.com"
118
- api_uri:
119
- uri_template: "http://www.xanga.com/{username}/rss"
120
- icon: xanga.gif
121
- citeulike:
122
- id: 16
123
- sequence: 16
117
+ uri: "http://www.xanga.com"
118
+ api_uri:
119
+ uri_template: "http://www.xanga.com/{username}/rss"
120
+ icon: xanga.gif
121
+ citeulike:
122
+ id: 16
123
+ sequence: 16
124
124
  name: cite u like
125
- uri: "http://www.citeulike.org"
126
- api_uri:
127
- uri_template: "http://www.citeulike.org/rss/user/{username}"
128
- icon: citeulike.gif
129
- googlenews:
130
- id: 17
131
- sequence: 17
125
+ uri: "http://www.citeulike.org"
126
+ api_uri:
127
+ uri_template: "http://www.citeulike.org/rss/user/{username}"
128
+ icon: citeulike.gif
129
+ googlenews:
130
+ id: 17
131
+ sequence: 17
132
132
  name: Google News
133
- uri: "http://news.google.com/"
134
- icon: googlenews.gif
135
- googleblogsearch:
136
- id: 18
137
- sequence: 18
133
+ uri: "http://news.google.com/"
134
+ icon: googlenews.gif
135
+ googleblogsearch:
136
+ id: 18
137
+ sequence: 18
138
138
  name: Google Blog Search
139
- uri: "http://blogsearch.google.com/"
140
- icon: googleblogs.gif
141
- opml:
142
- id: 19
143
- sequence: 19
139
+ uri: "http://blogsearch.google.com/"
140
+ icon: googleblogs.gif
141
+ opml:
142
+ id: 19
143
+ sequence: 19
144
144
  name: OPML
145
- icon: opml.gif
146
- tag:
147
- id: 20
148
- sequence: 20
145
+ icon: opml.gif
146
+ tag:
147
+ id: 20
148
+ sequence: 20
149
149
  name: Tag
150
- icon: tag.gif
151
- odeo:
152
- id: 21
153
- sequence: 21
150
+ icon: tag.gif
151
+ odeo:
152
+ id: 21
153
+ sequence: 21
154
154
  name: Odeo Podcasts
155
- uri: "http://www.odeo.com"
156
- icon: odeo.gif
157
- technorati:
158
- id: 22
159
- sequence: 22
155
+ uri: "http://www.odeo.com"
156
+ icon: odeo.gif
157
+ technorati:
158
+ id: 22
159
+ sequence: 22
160
160
  name: Technorati
161
- uri: "http://www.technorati.com/"
162
- api_uri:
163
- uri_template: "http://feeds.technorati.com/faves/{username}?format=rss"
164
- icon: technorati.gif
165
- merlot:
166
- id: 23
167
- sequence: 23
161
+ uri: "http://www.technorati.com/"
162
+ api_uri:
163
+ uri_template: "http://feeds.technorati.com/faves/{username}?format=rss"
164
+ icon: technorati.gif
165
+ merlot:
166
+ id: 23
167
+ sequence: 23
168
168
  name: Merlot
169
- uri: "http://www.merlot.org/"
170
- api_uri:
171
- uri_template:
172
- icon: merlot.gif
169
+ uri: "http://www.merlot.org/"
170
+ api_uri:
171
+ uri_template:
172
+ icon: merlot.gif
@@ -5,11 +5,9 @@ class CreateShares < ActiveRecord::Migration
5
5
  t.string :title
6
6
  t.text :message
7
7
  t.integer :shared_by_id, :null => false
8
- t.integer :shared_to_id
9
8
  t.timestamps
10
9
  end
11
10
  add_index :shares, :shared_by_id
12
- add_index :shares, :shared_to_id
13
11
  end
14
12
 
15
13
  def self.down
@@ -0,0 +1,9 @@
1
+ class AddCommentCountToShares < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :shares, :comment_count, :integer, :default => 0
4
+ end
5
+
6
+ def self.down
7
+ remove_column :shares, :comment_count
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddSharesUriIndex < ActiveRecord::Migration
2
+ def self.up
3
+ add_index :shares, :uri
4
+ end
5
+
6
+ def self.down
7
+ remove_index :shares, :uri
8
+ end
9
+ end
@@ -0,0 +1,61 @@
1
+ function show_tool(tool) {
2
+ jQuery('.tool').hide();
3
+ jQuery("#content_iframe").width('75%');
4
+ jQuery('#' + tool + '_tool').show();
5
+ maximize_space();
6
+ return false;
7
+ }
8
+ function maximize_space() {
9
+ var container = jQuery(".tools_container");
10
+ var spacer = jQuery('#comments_tools_close_wrapper').height() + 5;
11
+ container.height(jQuery(window).height() - (jQuery('#toolbar').height() + spacer));
12
+ }
13
+ function setup_comment_submit(){
14
+ jQuery(".comment-submit").click(function() {
15
+ jQuery(this).siblings('textarea').hide();
16
+ jQuery(this).parent().append('<p class="comment-loading"><img src="/images/spinner.gif" alt="loading..." /> ' + ADD_COMMENT_MESSAGE + '</p>');
17
+ var form = jQuery(this).parents('form');
18
+ jQuery.post(form.attr('action'), form.serialize() + '&format=json',
19
+ function(data){
20
+ var json = eval('(' + data + ')');
21
+ if(!json.success){
22
+ jQuery.jGrowl.info(json.message);
23
+ } else {
24
+ jQuery('.comment-loading').remove();
25
+ jQuery('#comments_tool').find('textarea').show();
26
+ jQuery('#comments_tool').find('textarea').val('');
27
+ jQuery("#comments_container").animate({ scrollTop: jQuery("#comments_container").attr("scrollHeight") }, 3000);
28
+ var contents = jQuery(json.html)
29
+ contents.hide();
30
+ jQuery('#comments_wrapper').append(contents);
31
+ contents.fadeIn("slow");
32
+ apply_frame_comment_hover();
33
+ }
34
+ });
35
+ return false;
36
+ });
37
+ }
38
+ function apply_frame_comment_hover(){
39
+ jQuery('.comment_holder').hover(
40
+ function () { jQuery(this).addClass('comment-hover'); },
41
+ function () { jQuery(this).removeClass('comment-hover'); } );
42
+ }
43
+ function setup_share_submit(){
44
+ jQuery('#share_submit_share_new').click(function() {
45
+ jQuery(this).parent().append('<p class="share-loading"><img src="/images/spinner.gif" alt="loading..." /> ' + ADD_SHARE_MESSAGE + '</p>');
46
+ jQuery('#share_submit_share_new').hide();
47
+ var form = jQuery(this).parents('form');
48
+ jQuery.post(form.attr('action'), form.serialize() + '&format=json',
49
+ function(data){
50
+ var json = eval('(' + data + ')');
51
+ jQuery('.share-loading').remove();
52
+ jQuery('#share_submit_share_new').show();
53
+ if(!json.success){
54
+ jQuery.jGrowl.info(json.message);
55
+ } else {
56
+ jQuery.jGrowl.info(json.message);
57
+ }
58
+ });
59
+ return false;
60
+ });
61
+ }
@@ -7,10 +7,11 @@
7
7
  #toolbar .section{padding:5px 20px;}
8
8
  #toolbar #profile{float:left;}
9
9
  #toolbar #search{float:right;}
10
- #toolbar #search input{font-size:.8em;}
10
+ #toolbar #search input{font-size:1em;}
11
11
  #toolbar #tools{float:right;}
12
12
  #toolbar #tools a{margin-right:5px;padding-left:18px;font-weight:bolder;font-size:1em;color:#54493F;}
13
- #toolbar #tools a:hover{color:#999;}
13
+ #toolbar #tools a:hover{text-decoration:underline;}
14
+ #toolbar #tools #share_login a{padding:0px;margin:0px;}
14
15
  #toolbar #close{float:right;padding-right:5px;}
15
16
  #toolbar .section a{text-decoration:none;}
16
17
  a#close_frame{-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background:transparent url('/images/icons/close.png') no-repeat scroll left top;display:block;height:19px;width:19px;}
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.22
4
+ version: 0.1.23
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-08-08 00:00:00 -06:00
12
+ date: 2009-08-12 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -387,6 +387,7 @@ files:
387
387
  - locales/zh-TW.yml
388
388
  - locales/zh.yml
389
389
  - muck-raker.gemspec
390
+ - public/javascripts/muck_raker.js
390
391
  - rails/init.rb
391
392
  - raker/lib/aggregatord.jar
392
393
  - raker/lib/aggregatord.properties
@@ -544,7 +545,9 @@ files:
544
545
  - test/rails_root/db/migrate/20090730045848_add_comment_cache_to_entries.rb
545
546
  - test/rails_root/db/migrate/20090730154102_allow_null_user.rb
546
547
  - test/rails_root/db/migrate/20090803185323_create_shares.rb
547
- - test/rails_root/db/migrate/20090804211240_add_entry_id_to_shares.rb.rb
548
+ - test/rails_root/db/migrate/20090804184247_add_comment_count_to_shares.rb
549
+ - test/rails_root/db/migrate/20090804211240_add_entry_id_to_shares.rb
550
+ - test/rails_root/db/migrate/20090804231857_add_shares_uri_index.rb
548
551
  - test/rails_root/features/feeds.feature
549
552
  - test/rails_root/features/step_definitions/common_steps.rb
550
553
  - test/rails_root/features/step_definitions/visit_steps.rb
@@ -617,6 +620,7 @@ files:
617
620
  - test/rails_root/public/javascripts/jquery/jrails.js
618
621
  - test/rails_root/public/javascripts/muck.js
619
622
  - test/rails_root/public/javascripts/muck_activities.js
623
+ - test/rails_root/public/javascripts/muck_raker.js
620
624
  - test/rails_root/public/javascripts/prototype.js
621
625
  - test/rails_root/public/javascripts/scriptaculous.js
622
626
  - test/rails_root/public/javascripts/slider.js
@@ -848,8 +852,9 @@ test_files:
848
852
  - test/rails_root/db/migrate/20090730045848_add_comment_cache_to_entries.rb
849
853
  - test/rails_root/db/migrate/20090730154102_allow_null_user.rb
850
854
  - test/rails_root/db/migrate/20090803185323_create_shares.rb
851
- - test/rails_root/db/migrate/20090804211240_add_entry_id_to_shares.rb.rb
852
- - test/rails_root/db/schema.rb
855
+ - test/rails_root/db/migrate/20090804184247_add_comment_count_to_shares.rb
856
+ - test/rails_root/db/migrate/20090804211240_add_entry_id_to_shares.rb
857
+ - test/rails_root/db/migrate/20090804231857_add_shares_uri_index.rb
853
858
  - test/rails_root/features/step_definitions/common_steps.rb
854
859
  - test/rails_root/features/step_definitions/visit_steps.rb
855
860
  - test/rails_root/features/step_definitions/webrat_steps.rb