sunspot 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/bin/sunspot-solr +5 -5
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 10
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 0
data/bin/sunspot-solr CHANGED
@@ -17,11 +17,11 @@ rescue LoadError => e
17
17
  end
18
18
 
19
19
  working_directory = FileUtils.pwd
20
- solr_home = File.expand_path(File.join(File.dirname(__FILE__), '..', 'solr'))
20
+ solr_install = File.expand_path(File.join(File.dirname(__FILE__), '..', 'solr'))
21
21
 
22
22
  port = '8983'
23
23
  data_dir = File.expand_path(File.join(Dir.tmpdir, 'solr_data'))
24
- home = nil
24
+ solr_home = File.join(solr_install, 'solr')
25
25
  pid_dir = working_directory
26
26
  log_file = nil
27
27
  log_level = 'OFF'
@@ -70,13 +70,13 @@ PROPERTIES
70
70
  end
71
71
 
72
72
  Daemons.run_proc('sunspot-solr', options) do
73
- FileUtils.cd(solr_home) do
73
+ FileUtils.cd(solr_install) do
74
74
  args = ['java']
75
75
  args << "-Djetty.port=#{port}" if port
76
76
  args << "-Dsolr.data.dir=#{data_dir}" if data_dir
77
- args << "-Dsolr.solr.home=#{home}" if home
77
+ args << "-Dsolr.solr.home=#{solr_home}" if solr_home
78
78
  args << "-Djava.util.logging.config.file=#{logging_properties(log_file, log_level)}" if log_file and log_level != 'OFF'
79
- args << '-jar' << 'start.jar'
79
+ args << '-jar' << File.join(solr_install, 'start.jar')
80
80
  STDERR.puts(args * ' ')
81
81
  Kernel.exec(*args)
82
82
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mat Brown