acts_as_solr 1.1.3 → 1.2.0
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/FORKED_CHANGES +3 -1
- data/VERSION +1 -1
- data/acts_as_solr.gemspec +4 -1
- data/bin/acts_as_solr +11 -0
- data/config/solr_environment.rb +14 -3
- metadata +5 -4
data/FORKED_CHANGES
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
- installer executable
|
2
|
+
- Fix config errors
|
1
3
|
VERSION 1.1.3
|
2
4
|
- improve memory usage (via amuino)
|
3
5
|
VERSION 1.1.1
|
4
6
|
- highlighting support (needs doc)
|
5
7
|
- invalid chars in XML bug fix
|
6
|
-
- Raise a specific Exception class on connection error
|
8
|
+
- Raise a specific Exception class on connection error
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/acts_as_solr.gemspec
CHANGED
@@ -5,13 +5,15 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_solr}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kyle Maxwell"]
|
12
12
|
s.date = %q{2010-03-02}
|
13
|
+
s.default_executable = %q{acts_as_solr}
|
13
14
|
s.description = %q{Acts As Solr}
|
14
15
|
s.email = %q{kyle@onemorecloud.com}
|
16
|
+
s.executables = ["acts_as_solr"]
|
15
17
|
s.extra_rdoc_files = [
|
16
18
|
"LICENSE",
|
17
19
|
"README.markdown",
|
@@ -28,6 +30,7 @@ Gem::Specification.new do |s|
|
|
28
30
|
"TESTING_THE_PLUGIN",
|
29
31
|
"VERSION",
|
30
32
|
"acts_as_solr.gemspec",
|
33
|
+
"bin/acts_as_solr",
|
31
34
|
"config/solr.yml",
|
32
35
|
"config/solr_environment.rb",
|
33
36
|
"init.rb",
|
data/bin/acts_as_solr
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
def die(s); STDERR.puts(s); exit(1); end
|
3
|
+
if ARGV[0] != "install"
|
4
|
+
die "Usage: #{$0} install"
|
5
|
+
end
|
6
|
+
|
7
|
+
require "fileutils"
|
8
|
+
include FileUtils::Verbose
|
9
|
+
|
10
|
+
die("Where's the config folder?") unless File.directory?("config")
|
11
|
+
cp File.dirname(__FILE__) + "/../config/solr.yml", "config"
|
data/config/solr_environment.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
ENV['RAILS_ENV'] = (ENV['RAILS_ENV'] || 'development').dup
|
2
2
|
# RAILS_ROOT isn't defined yet, so figure it out.
|
3
|
-
|
3
|
+
|
4
|
+
rails_root_dir = "#{File.expand_path('.')}"
|
4
5
|
SOLR_PATH = "#{File.dirname(File.expand_path(__FILE__))}/../solr" unless defined? SOLR_PATH
|
5
6
|
|
6
7
|
SOLR_LOGS_PATH = "#{rails_root_dir}/log" unless defined? SOLR_LOGS_PATH
|
@@ -10,10 +11,20 @@ SOLR_DATA_PATH = "#{rails_root_dir}/solr/#{ENV['RAILS_ENV']}" unless defined? SO
|
|
10
11
|
unless defined? SOLR_PORT
|
11
12
|
config = YAML::load_file(rails_root_dir+'/config/solr.yml')
|
12
13
|
|
13
|
-
|
14
|
+
begin
|
15
|
+
SOLR_PORT = ENV['PORT'] || URI.parse(config[ENV['RAILS_ENV']]['url']).port
|
16
|
+
rescue
|
17
|
+
STDERR.puts "Couldn't set Solr port"
|
18
|
+
SOLR_PORT = 8982
|
19
|
+
end
|
14
20
|
end
|
15
21
|
|
16
|
-
|
22
|
+
begin
|
23
|
+
SOLR_JVM_OPTIONS = config[ENV['RAILS_ENV']]['jvm_options'] unless defined? SOLR_JVM_OPTIONS
|
24
|
+
rescue
|
25
|
+
STDERR.puts "Couldn't set JVM Options"
|
26
|
+
SOLR_JVM_OPTIONS = ""
|
27
|
+
end
|
17
28
|
|
18
29
|
if ENV['RAILS_ENV'] == 'test'
|
19
30
|
DB = (ENV['DB'] ? ENV['DB'] : 'mysql') unless defined?(DB)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_solr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Maxwell
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
|
12
12
|
date: 2010-03-02 00:00:00 -08:00
|
13
|
-
default_executable:
|
13
|
+
default_executable: acts_as_solr
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thoughtbot-shoulda
|
@@ -24,8 +24,8 @@ dependencies:
|
|
24
24
|
version:
|
25
25
|
description: Acts As Solr
|
26
26
|
email: kyle@onemorecloud.com
|
27
|
-
executables:
|
28
|
-
|
27
|
+
executables:
|
28
|
+
- acts_as_solr
|
29
29
|
extensions: []
|
30
30
|
|
31
31
|
extra_rdoc_files:
|
@@ -43,6 +43,7 @@ files:
|
|
43
43
|
- TESTING_THE_PLUGIN
|
44
44
|
- VERSION
|
45
45
|
- acts_as_solr.gemspec
|
46
|
+
- bin/acts_as_solr
|
46
47
|
- config/solr.yml
|
47
48
|
- config/solr_environment.rb
|
48
49
|
- init.rb
|