outoftime-sunspot_rails 0.10.3 → 0.10.4

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/lib/sunspot/rails/tasks.rb +7 -1
  3. metadata +2 -2
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 10
3
- :patch: 3
3
+ :patch: 4
4
4
  :major: 0
@@ -4,6 +4,9 @@ namespace :sunspot do
4
4
  namespace :solr do
5
5
  desc 'Start the Solr instance'
6
6
  task :start => :environment do
7
+ if RUBY_PLATFORM =~ /w(in)?32$/
8
+ abort('This command does not work on Windows. Please use rake sunspot:solr:run to run Solr in the foreground.')
9
+ end
7
10
  data_path = File.join(::Rails.root, 'solr', 'data', ::Rails.env)
8
11
  pid_path = File.join(::Rails.root, 'solr', 'pids', ::Rails.env)
9
12
  solr_home =
@@ -21,7 +24,7 @@ namespace :sunspot do
21
24
  end
22
25
  end
23
26
 
24
- desc 'Run the Solr instance in the foreground. Windows users must use this task to run Solr'
27
+ desc 'Run the Solr instance in the foreground'
25
28
  task :run => :environment do
26
29
  data_path = File.join(::Rails.root, 'solr', 'data', ::Rails.env)
27
30
  solr_home =
@@ -31,6 +34,9 @@ namespace :sunspot do
31
34
  FileUtils.mkdir_p(data_path)
32
35
  port = Sunspot::Rails.configuration.port
33
36
  command = ['sunspot-solr', 'run', '--', '-p', port.to_s, '-d', data_path]
37
+ if RUBY_PLATFORM =~ /w(in)?32$/
38
+ command.first << '.bat'
39
+ end
34
40
  if solr_home
35
41
  command << '-s' << solr_home
36
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outoftime-sunspot_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mat Brown
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-07-22 00:00:00 -07:00
15
+ date: 2009-07-23 00:00:00 -07:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency