Browse files

use jeweler for gem management

  • Loading branch information...
1 parent 224c0ce commit 4e6bbbab2e1758a017b20f4fae652c409c1cf884 @netskin-ci netskin-ci committed Aug 31, 2010
Showing with 89 additions and 34 deletions.
  1. +5 −0 .document
  2. +21 −0 .gitignore
  3. 0 CHANGELOG
  4. +46 −0 Rakefile
  5. +0 −7 lib/sequel_mappable/version.rb
  6. +0 −27 sequel_mappable.gemspec
  7. +7 −0 spec/sequel_mappable_spec.rb
  8. +1 −0 spec/spec.opts
  9. +9 −0 spec/spec_helper.rb
View
5 .document
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
View
21 .gitignore
@@ -0,0 +1,21 @@
+## MAC OS
+.DS_Store
+
+## TEXTMATE
+*.tmproj
+tmtags
+
+## EMACS
+*~
+\#*
+.\#*
+
+## VIM
+*.swp
+
+## PROJECT::GENERAL
+coverage
+rdoc
+pkg
+
+## PROJECT::SPECIFIC
View
0 CHANGELOG
No changes.
View
46 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
View
7 lib/sequel_mappable/version.rb
@@ -1,7 +0,0 @@
-module Sequel
- module Plugins
- module Mappable
- VERSION = '0.0.1'.freeze
- end
- end
-end
View
27 sequel_mappable.gemspec
@@ -1,27 +0,0 @@
-#!/usr/bin/env gem build
-# -*- encoding: utf-8 -*-
-
-require 'date'
-require File.expand_path("../lib/sequel_mappable/version", __FILE__)
-
-Gem::Specification.new do |gem|
- gem.name = 'sequel_mappable'
- gem.version = Sequel::Plugins::Mappable::VERSION.dup
- 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 = 'Sequel plugin which provides distance-based filters and distance calculation functionality for model.'
- gem.description = gem.summary
-
- gem.has_rdoc = true
- gem.require_paths = ['lib']
- gem.extra_rdoc_files = ['README.rdoc', 'LICENSE', 'CHANGELOG']
- gem.files = Dir['Rakefile', '{lib,spec}/**/*', 'README*', 'LICENSE*', 'CHANGELOG*'] & `git ls-files -z`.split("\0")
-
- gem.add_dependency 'sequel', ">= 3.0.0"
- gem.add_dependency 'geokit', ">= 1.5.0"
- gem.add_development_dependency 'sqlite3-ruby'
- gem.add_development_dependency 'rspec'
- gem.add_development_dependency 'yard'
-end
View
7 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
View
1 spec/spec.opts
@@ -0,0 +1 @@
+--color
View
9 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.