muck-raker 0.1.4 → 0.1.5

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.
@@ -273,6 +273,9 @@ class CreateMuckRaker < ActiveRecord::Migration
273
273
  end
274
274
 
275
275
  def self.down
276
+ remove_column :languages, :muck_raker_supported
277
+ remove_column :languages, :indexed_records
278
+
276
279
  drop_table :action_types
277
280
  drop_table :aggregation_feeds
278
281
  drop_table :aggregation_top_tags
@@ -0,0 +1,19 @@
1
+ class CreateTagClouds < ActiveRecord::Migration
2
+ def self.up
3
+
4
+ drop_table "cloud_caches"
5
+
6
+ create_table "tag_clouds", :force => true do |t|
7
+ t.integer "language_id"
8
+ t.string "filter"
9
+ t.string "tag_list", :limit => 2500
10
+ end
11
+
12
+ add_index "tag_clouds", ["language_id", "filter"], {:unique => true}
13
+
14
+ end
15
+
16
+ def self.down
17
+ drop_table "tag_clouds"
18
+ end
19
+ end
@@ -0,0 +1,16 @@
1
+ class AddGrainSizeToEntries < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :feeds, :default_content_type, :string, :default => "unknown"
4
+ execute "UPDATE feeds SET default_content_type = 'course' WHERE ocw = true"
5
+ remove_column :feeds, :ocw
6
+
7
+ add_column :entries, :content_type, :string, :default => "unknown"
8
+ add_index "entries", ["content_type"]
9
+ end
10
+
11
+ def self.down
12
+ remove_column :feeds, :default_content_type
13
+ remove_column :entries, :content_type
14
+ add_column :fields, :ocw, :boolean, :default => false
15
+ end
16
+ end
data/muck-raker.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{muck-raker}
5
- s.version = "0.1.4"
5
+ s.version = "0.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Joel Duffin Justin Ball"]
9
- s.date = %q{2009-06-19}
9
+ s.date = %q{2009-06-24}
10
10
  s.description = %q{The aggregation and recommendation engine for the muck system.}
11
11
  s.email = %q{justinball@gmail.com}
12
12
  s.extra_rdoc_files = [
@@ -34,8 +34,6 @@ Gem::Specification.new do |s|
34
34
  "app/models/attention.rb",
35
35
  "app/models/click.rb",
36
36
  "app/models/click.rb",
37
- "app/models/cloud_cache.rb",
38
- "app/models/cloud_cache.rb",
39
37
  "app/models/entry.rb",
40
38
  "app/models/entry.rb",
41
39
  "app/models/feed.rb",
@@ -50,6 +48,8 @@ Gem::Specification.new do |s|
50
48
  "app/models/service.rb",
51
49
  "app/models/subject.rb",
52
50
  "app/models/subject.rb",
51
+ "app/models/tag_cloud.rb",
52
+ "app/models/tag_cloud.rb",
53
53
  "app/models/user.rb",
54
54
  "app/models/user.rb",
55
55
  "app/views/default/_advertisements.html.erb",
@@ -63,14 +63,16 @@ Gem::Specification.new do |s|
63
63
  "app/views/default/widgets.html.erb",
64
64
  "app/views/default/widgets.html.erb",
65
65
  "app/views/documents/.tmp_not_found.html",
66
- "app/views/entries/_cloud_type_selector.html.erb",
67
- "app/views/entries/_cloud_type_selector.html.erb",
68
66
  "app/views/entries/_result.html.erb",
69
67
  "app/views/entries/_result.html.erb",
68
+ "app/views/entries/_result_navigation.html.erb",
69
+ "app/views/entries/_result_navigation.html.erb",
70
+ "app/views/entries/_result_status.html.erb",
71
+ "app/views/entries/_result_status.html.erb",
72
+ "app/views/entries/_results.html.erb",
73
+ "app/views/entries/_results.html.erb",
70
74
  "app/views/entries/_tag_cloud.html.erb",
71
75
  "app/views/entries/_tag_cloud.html.erb",
72
- "app/views/entries/_tags.html.erb",
73
- "app/views/entries/_tags.html.erb",
74
76
  "app/views/entries/browse_by_tags.html.erb",
75
77
  "app/views/entries/browse_by_tags.html.erb",
76
78
  "app/views/entries/collections.html.erb",
@@ -186,11 +188,19 @@ Gem::Specification.new do |s|
186
188
  "config/solr/cores/zh/conf/synonyms.txt",
187
189
  "config/solr/solr.xml",
188
190
  "db/bootstrap/attention.yml",
191
+ "db/bootstrap/attention.yml",
192
+ "db/bootstrap/feeds.yml",
189
193
  "db/bootstrap/feeds.yml",
190
194
  "db/bootstrap/oai_endpoints.yml",
195
+ "db/bootstrap/oai_endpoints.yml",
196
+ "db/bootstrap/services.yml",
191
197
  "db/bootstrap/services.yml",
192
198
  "db/migrate/20090602191243_create_muck_raker.rb",
193
199
  "db/migrate/20090602191243_create_muck_raker.rb",
200
+ "db/migrate/20090619211125_create_tag_clouds.rb",
201
+ "db/migrate/20090619211125_create_tag_clouds.rb",
202
+ "db/migrate/20090623181458_add_grain_size_to_entries.rb",
203
+ "db/migrate/20090623181458_add_grain_size_to_entries.rb",
194
204
  "install.rb",
195
205
  "lib/muck_raker.rb",
196
206
  "lib/muck_raker.rb",
Binary file
Binary file
data/rdoc/created.rid CHANGED
@@ -1 +1 @@
1
- Thu, 18 Jun 2009 16:50:31 -0600
1
+ Fri, 19 Jun 2009 02:11:46 -0600
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
4
+ version: 0.1.5
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-06-19 00:00:00 -06:00
12
+ date: 2009-06-24 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -64,7 +64,6 @@ files:
64
64
  - app/helpers/muck_raker_helper.rb
65
65
  - app/models/attention.rb
66
66
  - app/models/click.rb
67
- - app/models/cloud_cache.rb
68
67
  - app/models/entry.rb
69
68
  - app/models/feed.rb
70
69
  - app/models/language.rb
@@ -72,6 +71,7 @@ files:
72
71
  - app/models/recommendation.rb
73
72
  - app/models/service.rb
74
73
  - app/models/subject.rb
74
+ - app/models/tag_cloud.rb
75
75
  - app/models/user.rb
76
76
  - app/views/default/_advertisements.html.erb
77
77
  - app/views/default/_language_list.html.erb
@@ -79,10 +79,11 @@ files:
79
79
  - app/views/default/tour.html.erb
80
80
  - app/views/default/widgets.html.erb
81
81
  - app/views/documents/.tmp_not_found.html
82
- - app/views/entries/_cloud_type_selector.html.erb
83
82
  - app/views/entries/_result.html.erb
83
+ - app/views/entries/_result_navigation.html.erb
84
+ - app/views/entries/_result_status.html.erb
85
+ - app/views/entries/_results.html.erb
84
86
  - app/views/entries/_tag_cloud.html.erb
85
- - app/views/entries/_tags.html.erb
86
87
  - app/views/entries/browse_by_tags.html.erb
87
88
  - app/views/entries/collections.html.erb
88
89
  - app/views/entries/details.html.erb
@@ -166,6 +167,8 @@ files:
166
167
  - db/bootstrap/oai_endpoints.yml
167
168
  - db/bootstrap/services.yml
168
169
  - db/migrate/20090602191243_create_muck_raker.rb
170
+ - db/migrate/20090619211125_create_tag_clouds.rb
171
+ - db/migrate/20090623181458_add_grain_size_to_entries.rb
169
172
  - install.rb
170
173
  - lib/muck_raker.rb
171
174
  - lib/muck_raker/initialize_routes.rb
@@ -1,9 +0,0 @@
1
- class CloudCache < ActiveRecord::Base
2
-
3
- def self.language_tags language
4
- english_id = 38
5
- results = CloudCache.find(:all, :conditions => ["language_id = ? AND filter = 'all'", english_id])
6
- results.empty? ? '' : results[0].tag_list
7
- end
8
-
9
- end
@@ -1,9 +0,0 @@
1
- <div id="cloud-type-selector">
2
- <ul>
3
- <li>Keywords</li>
4
- <li>Department</li>
5
- <li>Organization</li>
6
- <li>Author</li>
7
- <li>Date</li>
8
- </ul>
9
- </div>
@@ -1,7 +0,0 @@
1
- <% if tags.blank? -%>
2
- <%= t('folksemantic.no_tags') %>
3
- <% else -%>
4
- <% tag_cloud tags, %w(cloud1 cloud2 cloud3 cloud4 cloud5 cloud6) do |tag, css_class| %>
5
- <%= link_to tag, { :action => :browse_by_tags, :tags => tag }, :class => css_class %>
6
- <% end %>
7
- <% end -%>