solr_sail 0.0.5-java → 0.0.6-java

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,6 +16,17 @@ From zero to search in the flash of a gem.
16
16
  <version>0.0.2</version>
17
17
  </dependency>
18
18
 
19
+ May have to add the Sonatype Repo if the sync to Maven Central
20
+ is slow.
21
+
22
+ <repositories>
23
+ <repository>
24
+ <id>oss.sonatype.org</id>
25
+ <name>Sonatype Repository</name>
26
+ <url>https://oss.sonatype.org/content/groups/public</url>
27
+ </repository>
28
+ </repositories>
29
+
19
30
  ## Usage
20
31
 
21
32
  ### From the command line
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ task :default => :prepare
2
+
3
+ task :prepare do
4
+ $:.unshift File.expand_path('../lib', __FILE__)
5
+ require 'solr_sail'
6
+ puts "Installing Jar Dependencies"
7
+ SolrSail.install_jars
8
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/lib/solr_sail/cli.rb CHANGED
@@ -7,9 +7,16 @@ module SolrSail
7
7
  desc "install", "Install Solr config"
8
8
  method_option :solr_home, :aliases => "-h", :default => 'solr', :desc => "Path to install solr config"
9
9
  def install
10
+ puts "Installing Solr config"
10
11
  SolrSail.install_config( :solr_home => options[:solr_home] )
11
12
  end
12
13
 
14
+ desc "install_jars", "Install Solr jar dependencies"
15
+ def install_jars
16
+ puts "Installing Jar dependencies"
17
+ SolrSail.install_jars()
18
+ end
19
+
13
20
  desc "start", "Run Solr"
14
21
  method_option :solr_home, :aliases => "-h", :default => 'solr', :desc => "Path to install solr config"
15
22
  def start
data/lib/solr_sail.rb CHANGED
@@ -17,6 +17,15 @@ module SolrSail
17
17
  DEFAULT_JAR = File.expand_path("#{File.dirname(__FILE__)}/../#{DEFAULT_JAR_NAME}")
18
18
  DEFAULT_LOCKFILE = File.expand_path("#{File.dirname(__FILE__)}/../Jarfile.lock")
19
19
 
20
+ #
21
+ # Install Jar dependencies, should be called by the Gem.post_install
22
+ #
23
+ def self.install_jars( opts ={} )
24
+ opts = {:lockfile => DEFAULT_LOCKFILE }.merge( opts )
25
+ lockfile = opts.delete(:lockfile)
26
+ LockJar.install( lockfile, opts )
27
+ end
28
+
20
29
  #
21
30
  # Extract the configuration files for Solr
22
31
  #
@@ -33,7 +42,6 @@ module SolrSail
33
42
  $CLASSPATH << File.expand_path( jar )
34
43
 
35
44
  # XXX: need a safer way to pass opts to LockJar
36
- LockJar.install( lockfile, opts )
37
45
  LockJar.load( lockfile, opts )
38
46
 
39
47
  solr_config = com.tobedevoured.solrsail.SolrConfig.new( opts[:solr_home] )
data/pom.xml CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <groupId>com.tobedevoured</groupId>
6
6
  <artifactId>solr_sail</artifactId>
7
- <version>0.0.5</version>
7
+ <version>0.0.6</version>
8
8
  <packaging>jar</packaging>
9
9
 
10
10
  <name>Solr Sail</name>
data/solr_sail.gemspec ADDED
@@ -0,0 +1,78 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "solr_sail"
8
+ s.version = "0.0.6"
9
+ s.platform = "java"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.authors = ["Michael Guymon"]
13
+ s.date = "2012-09-08"
14
+ s.description = "From zero to search in the flash of a gem."
15
+ s.email = "michael@tobedevoured.com"
16
+ s.executables = ["solrsail"]
17
+ s.extensions = ["Rakefile"]
18
+ s.extra_rdoc_files = [
19
+ "LICENSE",
20
+ "README.md"
21
+ ]
22
+ s.files = [
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "Jarfile",
26
+ "Jarfile.lock",
27
+ "LICENSE",
28
+ "README.md",
29
+ "Rakefile",
30
+ "VERSION",
31
+ "bin/solrsail",
32
+ "lib/solr_sail.rb",
33
+ "lib/solr_sail/cli.rb",
34
+ "lib/solr_sail/version.rb",
35
+ "pom.xml",
36
+ "solr_sail-0.0.6.jar",
37
+ "solr_sail.gemspec"
38
+ ]
39
+ s.homepage = "http://github.com/mguymon/solr_sail"
40
+ s.licenses = ["MIT"]
41
+ s.require_paths = ["lib"]
42
+ s.rubygems_version = "1.8.24"
43
+ s.summary = "From zero to search in the flash of a gem."
44
+
45
+ if s.respond_to? :specification_version then
46
+ s.specification_version = 3
47
+
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_runtime_dependency(%q<lock_jar>, ["~> 0.5.2"])
50
+ s.add_runtime_dependency(%q<thor>, ["> 0.14.0"])
51
+ s.add_development_dependency(%q<rsolr>, ["~> 1.0.0"])
52
+ s.add_development_dependency(%q<rspec>, ["~> 2.11.0"])
53
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.4"])
54
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
55
+ s.add_development_dependency(%q<jruby-openssl>, [">= 0"])
56
+ s.add_development_dependency(%q<yard>, [">= 0"])
57
+ else
58
+ s.add_dependency(%q<lock_jar>, ["~> 0.5.2"])
59
+ s.add_dependency(%q<thor>, ["> 0.14.0"])
60
+ s.add_dependency(%q<rsolr>, ["~> 1.0.0"])
61
+ s.add_dependency(%q<rspec>, ["~> 2.11.0"])
62
+ s.add_dependency(%q<bundler>, ["~> 1.1.4"])
63
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
64
+ s.add_dependency(%q<jruby-openssl>, [">= 0"])
65
+ s.add_dependency(%q<yard>, [">= 0"])
66
+ end
67
+ else
68
+ s.add_dependency(%q<lock_jar>, ["~> 0.5.2"])
69
+ s.add_dependency(%q<thor>, ["> 0.14.0"])
70
+ s.add_dependency(%q<rsolr>, ["~> 1.0.0"])
71
+ s.add_dependency(%q<rspec>, ["~> 2.11.0"])
72
+ s.add_dependency(%q<bundler>, ["~> 1.1.4"])
73
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
74
+ s.add_dependency(%q<jruby-openssl>, [">= 0"])
75
+ s.add_dependency(%q<yard>, [">= 0"])
76
+ end
77
+ end
78
+
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: solr_sail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: java
7
7
  authors:
8
8
  - Michael Guymon
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-09-03 00:00:00 Z
13
+ date: 2012-09-08 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: lock_jar
@@ -104,8 +104,8 @@ description: From zero to search in the flash of a gem.
104
104
  email: michael@tobedevoured.com
105
105
  executables:
106
106
  - solrsail
107
- extensions: []
108
-
107
+ extensions:
108
+ - Rakefile
109
109
  extra_rdoc_files:
110
110
  - LICENSE
111
111
  - README.md
@@ -116,13 +116,15 @@ files:
116
116
  - Jarfile.lock
117
117
  - LICENSE
118
118
  - README.md
119
+ - Rakefile
119
120
  - VERSION
120
121
  - bin/solrsail
121
122
  - lib/solr_sail.rb
122
123
  - lib/solr_sail/cli.rb
123
124
  - lib/solr_sail/version.rb
124
125
  - pom.xml
125
- - solr_sail-0.0.5.jar
126
+ - solr_sail-0.0.6.jar
127
+ - solr_sail.gemspec
126
128
  homepage: http://github.com/mguymon/solr_sail
127
129
  licenses:
128
130
  - MIT