muck-raker 0.3.11 → 0.3.13

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.3.11
1
+ 0.3.13
@@ -0,0 +1,13 @@
1
+ ENV['RAILS_ENV'] = ENV['RAILS_ENV'] || GlobalConfig.rails_env
2
+ SOLR_CONFIG_PATH = "#{RAILS_ROOT}/config/solr"
3
+ SOLR_LOGS_PATH = "#{RAILS_ROOT}/log"
4
+ SOLR_PIDS_PATH = "#{RAILS_ROOT}/tmp/pids/solr"
5
+
6
+ RAKER_LOGS_PATH = "#{RAILS_ROOT}/log"
7
+ RAKER_PIDS_PATH = "#{RAILS_ROOT}/tmp/pids/raker"
8
+
9
+ if ENV['RAILS_ENV'] == "production"
10
+ SOLR_DATA_PATH = "#{RAILS_ROOT}/../../shared/solr_indexes"
11
+ else
12
+ SOLR_DATA_PATH = "#{RAILS_ROOT}/solr_indexes"
13
+ end
@@ -0,0 +1,10 @@
1
+ # Config file for the acts_as_solr plugin.
2
+ #
3
+ # If you change the host or port number here, make sure you update
4
+ # them in your Solr config file
5
+
6
+ development:
7
+ url: http://localhost:8982/solr
8
+
9
+ production:
10
+ url: http://localhost:8983/solr
@@ -25,69 +25,13 @@ module MuckRaker
25
25
  Fixtures.new(Attention.connection,"attention",Attention,yml).insert_fixtures
26
26
  end
27
27
 
28
- namespace :db do
29
-
30
- desc "Flags the languages that the muck raker supports"
31
- task :populate => :environment do
32
- require 'active_record/fixtures'
33
- ['en', 'es', 'zh-CN', 'fr', 'ja', 'de', 'ru', 'nl'].each{|l|
34
- r = Language.first(:one, :conditions => "locale = '#{l}'")
35
- if r
36
- r.update_attribute(:muck_raker_supported, true)
37
- else
38
- puts "Unable to find languages to flag. You probably need to run rake muck:db:populate"
39
- break
40
- end
41
- }
42
- end
43
-
44
- desc "Loads some feeds oai endpoints to get things started"
45
- task :bootstrap => :environment do
46
- require 'active_record/fixtures'
47
- ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
48
-
49
- # import the bootstrap db entries
50
- OaiEndpoint.delete_all
51
- yml = File.join(File.dirname(__FILE__), '..', '..', 'db', 'bootstrap',"oai_endpoints")
52
- Fixtures.new(OaiEndpoint.connection,"oai_endpoints",OaiEndpoint,yml).insert_fixtures
53
-
54
- Feed.delete_all
55
- yml = File.join(File.dirname(__FILE__), '..', '..', 'db', 'bootstrap',"feeds")
56
- Fixtures.new(Feed.connection,"feeds",Feed,yml).insert_fixtures
57
-
58
- ServiceCategory.delete_all
59
- yml = File.join(File.dirname(__FILE__), '..', '..', 'db', 'bootstrap',"service_categories")
60
- Fixtures.new(Service.connection,"service_categories",ServiceCategory,yml).insert_fixtures
61
-
62
- Service.delete_all
63
- yml = File.join(File.dirname(__FILE__), '..', '..', 'db', 'bootstrap',"services")
64
- Fixtures.new(Service.connection,"services",Service,yml).insert_fixtures
65
-
66
- end
67
-
68
- desc "Deletes and reloads services and service categories"
69
- task :bootstrap_services => :environment do
70
- require 'active_record/fixtures'
71
- ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
72
-
73
- ServiceCategory.delete_all
74
- yml = File.join(File.dirname(__FILE__), '..', '..', 'db', 'bootstrap',"service_categories")
75
- Fixtures.new(Service.connection,"service_categories",ServiceCategory,yml).insert_fixtures
76
-
77
- Service.delete_all
78
- yml = File.join(File.dirname(__FILE__), '..', '..', 'db', 'bootstrap',"services")
79
- Fixtures.new(Service.connection,"services",Service,yml).insert_fixtures
80
-
81
- end
82
-
83
- end
84
-
85
28
  desc "Sync files from muck raker."
86
29
  task :sync do
87
30
  path = File.join(File.dirname(__FILE__), *%w[.. ..])
88
31
  system "rsync -ruv #{path}/db ."
89
- system "rsync -ruv #{path}/public ."
90
32
  system "rsync -ruv #{path}/config/solr ./config"
33
+ system "rsync -ruv #{path}/config/solr.yml ./config" if !File.exist?('.config/solr.yml')
34
+ system "rsync -ruv #{path}/config/initializers/muck_raker.rb ./config/initializers" if !File.exist?('.config/initializsers/muck_raker.rb')
91
35
  end
92
36
 
93
37
  def reload_cores
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-raker}
8
- s.version = "0.3.11"
8
+ s.version = "0.3.13"
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"]
12
- s.date = %q{2009-12-19}
12
+ s.date = %q{2010-02-08}
13
13
  s.description = %q{The aggregation and recommendation daemons for the muck system.}
14
14
  s.email = %q{justin@tatemae.com}
15
15
  s.extra_rdoc_files = [
@@ -21,7 +21,9 @@ Gem::Specification.new do |s|
21
21
  "README.rdoc",
22
22
  "Rakefile",
23
23
  "VERSION",
24
+ "config/initializers/muck_raker.rb",
24
25
  "config/muck_raker_environment.rb",
26
+ "config/solr.yml",
25
27
  "config/solr/README.txt",
26
28
  "config/solr/cores/de/conf/protwords.txt",
27
29
  "config/solr/cores/de/conf/schema.xml",
@@ -224,3 +226,4 @@ Gem::Specification.new do |s|
224
226
  else
225
227
  end
226
228
  end
229
+
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.3.11
4
+ version: 0.3.13
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-12-19 00:00:00 -07:00
12
+ date: 2010-02-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -27,7 +27,9 @@ files:
27
27
  - README.rdoc
28
28
  - Rakefile
29
29
  - VERSION
30
+ - config/initializers/muck_raker.rb
30
31
  - config/muck_raker_environment.rb
32
+ - config/solr.yml
31
33
  - config/solr/README.txt
32
34
  - config/solr/cores/de/conf/protwords.txt
33
35
  - config/solr/cores/de/conf/schema.xml