Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8698488097
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.581 kb
require 'rubygems' unless defined?(Gem)
require 'rubygems/specification'
require 'rake/gempackagetask'
require 'rake/testtask'
def gemspec
@gemspec ||= begin
file = File.expand_path("elasticsearch-node.gemspec")
::Gem::Specification.load(file)
end
end
desc "Validates the gemspec"
task :gemspec do
gemspec.validate
end
Rake::GemPackageTask.new(gemspec) do |pkg|
pkg.gem_spec = gemspec
end
task :package => :gemspec
Rake::TestTask.new(:test) do |test|
test.libs << "test"
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
task :default => :test
Jump to Line
Something went wrong with that request. Please try again.