muck-raker 0.1.30 → 0.1.31
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.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.31
|
@@ -27,10 +27,15 @@ class Muck::RecommendationsController < ApplicationController
|
|
27
27
|
@limit = 25 if @limit > 25
|
28
28
|
|
29
29
|
respond_to do |format|
|
30
|
-
format.html
|
30
|
+
format.html do
|
31
31
|
order = params[:order] || "mixed"
|
32
|
-
|
33
|
-
|
32
|
+
if !@entry.id.nil?
|
33
|
+
redirect_to resource_path(@entry) + "?limit=#{@limit}&order=#{order}&details=#{@details}"
|
34
|
+
else
|
35
|
+
@recommendations = @entry.ranked_recommendations(@limit, params[:order] || "mixed", @details)
|
36
|
+
render :template => 'recommendations/index'
|
37
|
+
end
|
38
|
+
end
|
34
39
|
format.xml {
|
35
40
|
render(:template => @entry.id.nil? ? '/recommendations/index_real_time.xml.builder' : '/recommendations/index.xml.builder', :layout => false)
|
36
41
|
}
|
@@ -1,26 +1,25 @@
|
|
1
1
|
xml.instruct!
|
2
2
|
|
3
3
|
if @entry.nil?
|
4
|
-
|
4
|
+
xml.recommendations
|
5
5
|
else
|
6
|
-
|
7
|
-
|
8
|
-
xml.recommendations(:document_id => @entry.nil? ? "" : @entry.id, :uri => @uri, :title => t("muck.raker.gm_title"), :more_prompt => t("muck.raker.gm_more_prompt"), :direct_link_text => t("muck.raker.direct_link")) do
|
6
|
+
@recommendations = @entry.ranked_recommendations(@limit, params[:order] || "mixed", @details)
|
7
|
+
xml.recommendations(:document_id => @entry.nil? ? "" : @entry.id, :uri => @uri, :title => t("muck.raker.gm_title"), :more_prompt => t("muck.raker.gm_more_prompt"), :direct_link_text => t("muck.raker.direct_link")) do
|
9
8
|
@recommendations.results.each do |recommendation|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
9
|
+
xml.recommendation do
|
10
|
+
xml.title recommendation["title"]
|
11
|
+
xml.collection recommendation["collection"]
|
12
|
+
xml.link "http://folksemantic.com/visits/" + recommendation["id"].to_s
|
13
|
+
|
14
|
+
if @details == true
|
15
|
+
xml.description recommendation["description"]
|
16
|
+
xml.relevance round(recommendation["score"])
|
17
|
+
xml.published_at recommendation["published_at"]
|
18
|
+
xml.author recommendation["author"]
|
19
|
+
else
|
20
|
+
xml.description ""
|
23
21
|
end
|
22
|
+
end
|
24
23
|
end
|
25
|
-
end
|
24
|
+
end
|
26
25
|
end
|
data/locales/en.yml
CHANGED
@@ -3,16 +3,17 @@ en:
|
|
3
3
|
activity_templates:
|
4
4
|
entry_comment: Comment
|
5
5
|
raker:
|
6
|
-
no_tags: No tags available yet
|
6
|
+
no_tags: "No tags available yet"
|
7
7
|
collections: Collections
|
8
8
|
demo: Demo
|
9
9
|
search_button: Go
|
10
|
-
collections_long: Indexed Collections
|
11
|
-
developers_long: Information for Developers
|
12
|
-
powered_by: powered by
|
13
|
-
no_hits: Your search - <b>{{search}}</b> - did not match any <b>{{resource_type}}</b>. Please try a different search or choose a different language.
|
14
|
-
no_tagged_courses: No <b>courses</b> were found tagged with <b>{{tags}}</b>. <a href='/resources'>Start over</a> or show <a href='/resources/tags/{{tags}}'>all resources tagged {{tags}}</a>.
|
15
|
-
no_tagged_resources: No <b>resources</b> were found tagged with <b>{{tags}}</b>. <a href='/resources'>Start over</a>.
|
10
|
+
collections_long: "Indexed Collections"
|
11
|
+
developers_long: "Information for Developers"
|
12
|
+
powered_by: "powered by"
|
13
|
+
no_hits: "Your search - <b>{{search}}</b> - did not match any <b>{{resource_type}}</b>. Please try a different search or choose a different language."
|
14
|
+
no_tagged_courses: "No <b>courses</b> were found tagged with <b>{{tags}}</b>. <a href='/resources'>Start over</a> or show <a href='/resources/tags/{{tags}}'>all resources tagged {{tags}}</a>."
|
15
|
+
no_tagged_resources: "No <b>resources</b> were found tagged with <b>{{tags}}</b>. <a href='/resources'>Start over</a>."
|
16
|
+
no_recommendations: "No recommendations were found."
|
16
17
|
previous: Previous
|
17
18
|
next: Next
|
18
19
|
results: Results
|
data/muck-raker.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-raker}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.31"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Joel Duffin Justin Ball"]
|
@@ -173,6 +173,7 @@ Gem::Specification.new do |s|
|
|
173
173
|
"app/views/raker_mailer/notification_feed_added.text.zh-TW.plain.erb",
|
174
174
|
"app/views/raker_mailer/notification_feed_added.text.zh.html.erb",
|
175
175
|
"app/views/raker_mailer/notification_feed_added.text.zh.plain.erb",
|
176
|
+
"app/views/recommendations/index.html.erb",
|
176
177
|
"app/views/recommendations/index.pjs.erb",
|
177
178
|
"app/views/recommendations/index.rss.builder",
|
178
179
|
"app/views/recommendations/index.xml.builder",
|
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.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Duffin Justin Ball
|
@@ -268,6 +268,7 @@ files:
|
|
268
268
|
- app/views/raker_mailer/notification_feed_added.text.zh-TW.plain.erb
|
269
269
|
- app/views/raker_mailer/notification_feed_added.text.zh.html.erb
|
270
270
|
- app/views/raker_mailer/notification_feed_added.text.zh.plain.erb
|
271
|
+
- app/views/recommendations/index.html.erb
|
271
272
|
- app/views/recommendations/index.pjs.erb
|
272
273
|
- app/views/recommendations/index.rss.builder
|
273
274
|
- app/views/recommendations/index.xml.builder
|