Skip to content

Commit

Permalink
added jeweler
Browse files Browse the repository at this point in the history
removed tasks
added spec stubs
  • Loading branch information
mwmitchell committed Feb 5, 2010
1 parent 1caadac commit e3c402d
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 85 deletions.
56 changes: 46 additions & 10 deletions Rakefile
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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.0
0.12.1
94 changes: 58 additions & 36 deletions rsolr-ext.gemspec
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

3 changes: 0 additions & 3 deletions spec/pagination_spec.rb

This file was deleted.

9 changes: 9 additions & 0 deletions spec/rsolr-ext_spec.rb
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
1 change: 1 addition & 0 deletions spec/spec.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--color
9 changes: 9 additions & 0 deletions spec/spec_helper.rb
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
19 changes: 0 additions & 19 deletions tasks/gem.rake

This file was deleted.

9 changes: 0 additions & 9 deletions tasks/rdoc.rake

This file was deleted.

7 changes: 0 additions & 7 deletions tasks/test.rake

This file was deleted.

0 comments on commit e3c402d

Please sign in to comment.