Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleanup .gemspec; Add License and Readme; Add Rake tasks

  • Loading branch information...
commit 6a924233f75fc3a5c43547149732048f5c9bb4fb 1 parent ade5068
@karmi authored
View
2  .gitignore
@@ -2,3 +2,5 @@
.bundle
Gemfile.lock
pkg/*
+rdoc/
+scratch/
View
20 MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright 2011 Karel Minarik
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
3  README.rdoc
@@ -0,0 +1,3 @@
+= Slingshot
+
+Ruby API for the ElasticSearch search engine/database.
View
17 Rakefile
@@ -1,2 +1,19 @@
require 'bundler'
Bundler::GemHelper.install_tasks
+
+task :default => :test
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
+end
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "Slingshot"
+ rdoc.rdoc_files.include('README.rdoc')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
View
23 slingshot.gemspec
@@ -6,16 +6,29 @@ Gem::Specification.new do |s|
s.name = "slingshot"
s.version = Slingshot::VERSION
s.platform = Gem::Platform::RUBY
- s.authors = ["TODO: Write your name"]
- s.email = ["TODO: Write your email address"]
- s.homepage = ""
- s.summary = %q{TODO: Write a gem summary}
- s.description = %q{TODO: Write a gem description}
+ s.summary = "Ruby API for ElasticSearch"
+ s.homepage = "http://github.com/karmi/slingshot"
+ s.authors = [ 'Karel Minarik' ]
+ s.email = 'karmi@karmi.cz'
s.rubyforge_project = "slingshot"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+
s.require_paths = ["lib"]
+
+ s.extra_rdoc_files = [ "README.rdoc", "MIT-LICENSE" ]
+ s.rdoc_options = [ "--charset=UTF-8" ]
+
+ s.required_rubygems_version = ">= 1.3.6"
+
+ s.add_development_dependency "turn"
+ s.add_development_dependency "shoulda"
+
+ s.description = <<-DESC
+ Ruby API for the ElasticSearch search engine/database.
+ A work in progress, currently.
+ DESC
end
Please sign in to comment.
Something went wrong with that request. Please try again.