solrsan 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,7 +13,7 @@ I made a few test cases for further examples at http://github.com/tc/solrsan/tre
13
13
  Install Jetty
14
14
 
15
15
  ```
16
- wget http://download.eclipse.org/jetty/stable-7/dist/jetty-distribution-7.5.3.v20111011.tar.gz
16
+ wget http://download.eclipse.org/jetty/7.5.4.v20111024/dist/jetty-distribution-7.5.4.v20111024.tar.gz"
17
17
  tar -zxvf jetty-distribution-*.tar.gz
18
18
  rm jetty-distribution-*.tar.gz
19
19
  sudo mv jetty-distribution-* /usr/local
@@ -113,7 +113,7 @@ In each model, you can include a Solrsan::Search module which will include a few
113
113
  search(params)
114
114
  ```
115
115
 
116
- === Search:
116
+ ## Search:
117
117
  A simple search query:
118
118
 
119
119
  ```
@@ -123,6 +123,8 @@ A simple search query:
123
123
  More searching examples can be seen in test/unit/search_test.rb
124
124
 
125
125
  ## Changelog
126
+ 0.5.1
127
+ Added solr:setup rake/cap task
126
128
 
127
129
  0.5.0
128
130
  Updated gems to rsolr 1.0.3/rails 3.1.1
@@ -2,6 +2,11 @@
2
2
 
3
3
  Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :solr do
5
+ desc "setup"
6
+ task :setup, :roles => :search do
7
+ run "cd #{current_path} && rake solr:setup RAILS_ENV=#{stage}"
8
+ end
9
+
5
10
  desc "starts solr"
6
11
  task :start, :roles => :search do
7
12
  run "cd #{current_path} && rake solr:start RAILS_ENV=#{stage}"
@@ -1,3 +1,3 @@
1
1
  module Solrsan
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
data/lib/tasks/solr.rake CHANGED
@@ -25,8 +25,22 @@ namespace :solr do
25
25
  jetty_port_opt = "jetty.port=#{jetty_port}"
26
26
  solr_params = "#{jetty_port_opt} -Dsolr.solr.home=\"#{solr_home}\" -Dsolr.data.dir=\"#{solr_data_dir}\""
27
27
 
28
+ desc "Install solr"
29
+ task :setup do
30
+ run_system_command "wget http://download.eclipse.org/jetty/7.5.4.v20111024/dist/jetty-distribution-7.5.4.v20111024.tar.gz"
31
+ run_system_command "tar -zxvf jetty-distribution-*.tar.gz"
32
+ run_system_command "rm jetty-distribution-*.tar.gz"
33
+ run_system_command "sudo mv jetty-distribution-* /usr/local"
34
+ run_system_command "sudo ln -s /usr/local/jetty-distribution-* #{jetty_path}"
35
+
36
+ run_system_command "wget http://www.ecoficial.com/apachemirror/lucene/solr/3.4.0/apache-solr-3.4.0.tgz"
37
+ run_system_command "tar -zxvf apache-solr-*.tgz"
38
+ run_system_command "sudo cp apache-solr-*/dist/apache-solr-*.war #{jetty_path}/webapps/solr.war"
39
+ run_system_command "sudo mkdir -p #{solr_data_dir}"
40
+ end
41
+
28
42
  desc "Start solr"
29
- task(:start) do
43
+ task :start do
30
44
  # -Dsolr.clustering.enabled=true
31
45
  cmd = kill_matching_process_cmd(jetty_port_opt)
32
46
  stop_exit_status = run_system_command(cmd)
@@ -38,7 +52,7 @@ namespace :solr do
38
52
  end
39
53
 
40
54
  desc "Stop solr"
41
- task(:stop) do
55
+ task :stop do
42
56
  cmd = kill_matching_process_cmd(jetty_port_opt)
43
57
  run_system_command(cmd)
44
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solrsan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-17 00:00:00.000000000 Z
12
+ date: 2011-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rsolr
16
- requirement: &70127777711700 !ruby/object:Gem::Requirement
16
+ requirement: &70102427130080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70127777711700
24
+ version_requirements: *70102427130080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activemodel
27
- requirement: &70127777711200 !ruby/object:Gem::Requirement
27
+ requirement: &70102427128460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.1.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70127777711200
35
+ version_requirements: *70102427128460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: activesupport
38
- requirement: &70127777710700 !ruby/object:Gem::Requirement
38
+ requirement: &70102427127940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 3.1.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70127777710700
46
+ version_requirements: *70102427127940
47
47
  description: solrsan is a lightweight wrapper for using Apache Solr within a Ruby
48
48
  application including Rails and Sinatra.
49
49
  email: