sunspot 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/sunspot/installer/solrconfig_updater.rb +10 -5
- data/lib/sunspot/version.rb +1 -1
- data/tasks/gemspec.rake +1 -0
- metadata +19 -5
data/History.txt
CHANGED
@@ -9,6 +9,8 @@ module Sunspot
|
|
9
9
|
class SolrconfigUpdater
|
10
10
|
include TaskHelper
|
11
11
|
|
12
|
+
CONFIG_FILES = %w(solrconfig.xml elevate.xml spellings.txt stopwords.txt synonyms.txt)
|
13
|
+
|
12
14
|
class <<self
|
13
15
|
def execute(solrconfig_path, options = {})
|
14
16
|
new(solrconfig_path, options).execute
|
@@ -27,11 +29,14 @@ module Sunspot
|
|
27
29
|
|
28
30
|
def execute
|
29
31
|
if @force
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
config_dir = File.dirname(@solrconfig_path)
|
33
|
+
FileUtils.mkdir_p(config_dir)
|
34
|
+
CONFIG_FILES.each do |file|
|
35
|
+
source_path =
|
36
|
+
File.join(File.dirname(__FILE__), '..', '..', '..', 'solr', 'solr', 'conf', file)
|
37
|
+
FileUtils.cp(source_path, config_dir)
|
38
|
+
say("Copied default #{file} to #{config_dir}")
|
39
|
+
end
|
35
40
|
else
|
36
41
|
@document = File.open(@solrconfig_path) do |f|
|
37
42
|
Nokogiri::XML(
|
data/lib/sunspot/version.rb
CHANGED
data/tasks/gemspec.rake
CHANGED
@@ -14,6 +14,7 @@ TEXT
|
|
14
14
|
s.rubyforge_project = 'sunspot'
|
15
15
|
s.files = FileList['[A-Z]*', '{bin,installer,lib,spec,tasks,templates}/**/*', 'solr/{etc,lib,webapps}/**/*', 'solr/solr/{conf,lib}/*', 'solr/start.jar']
|
16
16
|
s.add_runtime_dependency 'rsolr', '0.12.1'
|
17
|
+
s.add_runtime_dependency 'escape', '0.0.4'
|
17
18
|
s.add_development_dependency 'rspec', '~> 1.1'
|
18
19
|
s.extra_rdoc_files = ['README.rdoc']
|
19
20
|
s.test_files = FileList['spec/**/*_spec.rb']
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mat Brown
|
@@ -24,7 +24,7 @@ autorequire:
|
|
24
24
|
bindir: bin
|
25
25
|
cert_chain: []
|
26
26
|
|
27
|
-
date: 2010-03-
|
27
|
+
date: 2010-03-05 00:00:00 -05:00
|
28
28
|
default_executable:
|
29
29
|
dependencies:
|
30
30
|
- !ruby/object:Gem::Dependency
|
@@ -42,9 +42,23 @@ dependencies:
|
|
42
42
|
type: :runtime
|
43
43
|
version_requirements: *id001
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
|
-
name:
|
45
|
+
name: escape
|
46
46
|
prerelease: false
|
47
47
|
requirement: &id002 !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - "="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
segments:
|
52
|
+
- 0
|
53
|
+
- 0
|
54
|
+
- 4
|
55
|
+
version: 0.0.4
|
56
|
+
type: :runtime
|
57
|
+
version_requirements: *id002
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec
|
60
|
+
prerelease: false
|
61
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
48
62
|
requirements:
|
49
63
|
- - ~>
|
50
64
|
- !ruby/object:Gem::Version
|
@@ -53,7 +67,7 @@ dependencies:
|
|
53
67
|
- 1
|
54
68
|
version: "1.1"
|
55
69
|
type: :development
|
56
|
-
version_requirements: *
|
70
|
+
version_requirements: *id003
|
57
71
|
description: |
|
58
72
|
Sunspot is a library providing a powerful, all-ruby API for the Solr search engine. Sunspot manages the configuration of persistent Ruby classes for search and indexing and exposes Solr's most powerful features through a collection of DSLs. Complex search operations can be performed without hand-writing any boolean queries or building Solr parameters by hand.
|
59
73
|
|