Skip to content

Commit

Permalink
use jeweler for gem management
Browse files Browse the repository at this point in the history
  • Loading branch information
netskin-ci committed Aug 31, 2010
1 parent 224c0ce commit 4e6bbba
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 34 deletions.
5 changes: 5 additions & 0 deletions .document
@@ -0,0 +1,5 @@
README.rdoc
lib/**/*.rb
bin/*
features/**/*.feature
LICENSE
21 changes: 21 additions & 0 deletions .gitignore
@@ -0,0 +1,21 @@
## MAC OS
.DS_Store

## TEXTMATE
*.tmproj
tmtags

## EMACS
*~
\#*
.\#*

## VIM
*.swp

## PROJECT::GENERAL
coverage
rdoc
pkg

## PROJECT::SPECIFIC
Empty file removed CHANGELOG
Empty file.
46 changes: 46 additions & 0 deletions Rakefile
@@ -0,0 +1,46 @@
require 'rubygems'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'sequel_mappable'
gem.authors = ['Corin Langosch']
gem.date = Date.today.to_s
gem.email = 'info@netskin.com'
gem.homepage = 'http://github.com/gucki/sequel_mappable'
gem.summary = 'Usefull geo data filters for Sequel'
gem.description = 'Sequel plugin which provides geo distance-based filters and distance calculation functionality for model.'
gem.add_development_dependency "rspec", ">= 1.2.9"
# 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

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 = "sequel_mappable #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
7 changes: 0 additions & 7 deletions lib/sequel_mappable/version.rb

This file was deleted.

27 changes: 0 additions & 27 deletions sequel_mappable.gemspec

This file was deleted.

7 changes: 7 additions & 0 deletions spec/sequel_mappable_spec.rb
@@ -0,0 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "SequelMappable" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
end
end
1 change: 1 addition & 0 deletions spec/spec.opts
@@ -0,0 +1 @@
--color
9 changes: 9 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,9 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'sequel_mappable'
require 'spec'
require 'spec/autorun'

Spec::Runner.configure do |config|

end

0 comments on commit 4e6bbba

Please sign in to comment.