forked from mwmitchell/rsolr-ext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
124 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,50 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
require 'rake/gempackagetask' | ||
|
||
ENV['RUBYOPT'] = '-W1' | ||
|
||
task :environment do | ||
require File.dirname(__FILE__) + '/lib/rsolr-ext' | ||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "rsolr-ext" | ||
gem.summary = %Q{A query/response extension lib for RSolr} | ||
gem.description = %Q{A query/response extension lib for RSolr} | ||
gem.email = "[email protected]" | ||
gem.homepage = "http://github.com/mwmitchell/rsolr-ext" | ||
gem.authors = ["Matt Mitchell"] | ||
gem.add_development_dependency "rspec", ">= 1.2.9" | ||
gem.add_dependency "rsolr", ">= 0.12.1" | ||
|
||
gem.files = FileList['lib/**/*.rb', 'LICENSE', 'README.rdoc', 'VERSION'] | ||
gem.test_files = ['spec/*', 'Rakefile'] | ||
|
||
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings | ||
end | ||
# Jeweler::GemcutterTasks.new | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" | ||
end | ||
|
||
require 'spec/rake/spectask' | ||
Spec::Rake::SpecTask.new(:spec) do |spec| | ||
spec.libs << 'lib' << 'spec' | ||
spec.spec_files = FileList['spec/**/*_spec.rb'] | ||
end | ||
|
||
Spec::Rake::SpecTask.new(:rcov) do |spec| | ||
spec.libs << 'lib' << 'spec' | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
spec.rcov = true | ||
end | ||
|
||
Dir['tasks/*.rake'].each { |t| load t } | ||
|
||
task :default => ['test'] | ||
task :spec => :check_dependencies | ||
|
||
task :default => :spec | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
version = File.exist?('VERSION') ? File.read('VERSION') : "" | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "rsolr-ext #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.0 | ||
0.12.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,62 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
|
||
s.name = "rsolr-ext" | ||
s.version = "0.11.2" | ||
s.date = "2010-01-07" | ||
|
||
s.summary = "An extension lib for RSolr" | ||
s.email = "[email protected]" | ||
s.homepage = "http://github.com/mwmitchell/rsolr-ext" | ||
s.description = "An extension lib for RSolr" | ||
s.has_rdoc = true | ||
s.name = %q{rsolr-ext} | ||
s.version = "0.12.1" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Matt Mitchell"] | ||
s.date = %q{2010-02-05} | ||
s.description = %q{A query/response extension lib for RSolr} | ||
s.email = %q{[email protected]} | ||
s.extra_rdoc_files = [ | ||
"LICENSE", | ||
"README.rdoc" | ||
] | ||
s.files = [ | ||
"lib/mash.rb", | ||
"lib/rsolr-ext/connection.rb", | ||
"lib/rsolr-ext/doc.rb", | ||
"lib/rsolr-ext/model.rb", | ||
"lib/rsolr-ext/request.rb", | ||
"lib/rsolr-ext/response/docs.rb", | ||
"lib/rsolr-ext/response/facets.rb", | ||
"lib/rsolr-ext/response/spelling.rb", | ||
"lib/rsolr-ext/response.rb", | ||
"lib/rsolr-ext.rb", | ||
"LICENSE", | ||
"README.rdoc", | ||
"rsolr-ext.gemspec" | ||
] | ||
s.test_files = [ | ||
'test/connection_test.rb', | ||
'test/request_test.rb', | ||
'test/response_test.rb', | ||
'test/test_unit_test_case.rb', | ||
'test/helper.rb' | ||
] | ||
|
||
s.extra_rdoc_files = %w(LICENSE README.rdoc) | ||
|
||
s.add_dependency("rsolr", ["=0.11.0"]) | ||
|
||
end | ||
"README.rdoc", | ||
"VERSION", | ||
"lib/mash.rb", | ||
"lib/rsolr-ext.rb", | ||
"lib/rsolr-ext/connection.rb", | ||
"lib/rsolr-ext/doc.rb", | ||
"lib/rsolr-ext/model.rb", | ||
"lib/rsolr-ext/request.rb", | ||
"lib/rsolr-ext/response.rb", | ||
"lib/rsolr-ext/response/docs.rb", | ||
"lib/rsolr-ext/response/facets.rb", | ||
"lib/rsolr-ext/response/spelling.rb" | ||
] | ||
s.homepage = %q{http://github.com/mwmitchell/rsolr-ext} | ||
s.rdoc_options = ["--charset=UTF-8"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.5} | ||
s.summary = %q{A query/response extension lib for RSolr} | ||
s.test_files = [ | ||
"spec/rsolr-ext_spec.rb", | ||
"spec/spec.opts", | ||
"spec/spec_helper.rb", | ||
"Rakefile" | ||
] | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
s.add_development_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_runtime_dependency(%q<rsolr>, [">= 0.12.1"]) | ||
else | ||
s.add_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_dependency(%q<rsolr>, [">= 0.12.1"]) | ||
end | ||
else | ||
s.add_dependency(%q<rspec>, [">= 1.2.9"]) | ||
s.add_dependency(%q<rsolr>, [">= 0.12.1"]) | ||
end | ||
end | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') | ||
|
||
describe RSolr::Ext do | ||
|
||
it 'should do something' do | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$LOAD_PATH.unshift(File.dirname(__FILE__)) | ||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
require 'rsolr-ext' | ||
require 'spec' | ||
require 'spec/autorun' | ||
|
||
Spec::Runner.configure do |config| | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.