Skip to content

Commit

Permalink
Final push for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Oct 18, 2010
1 parent 49acc0b commit 7120f62
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -12,4 +12,5 @@ vendor
lib/tiny_tds/tiny_tds.rb
.rvmrc
Gemfile.lock
misc
misc
*.gem
18 changes: 16 additions & 2 deletions Rakefile
@@ -1,9 +1,12 @@
# encoding: UTF-8
require 'rake'
require "rake/clean"
require 'rbconfig'
require 'rake/testtask'
require 'rake/extensiontask'



def test_libs
['lib','test']
end
Expand All @@ -12,14 +15,25 @@ def test_files
Dir.glob("test/**/*_test.rb").sort
end

def gemspec
@clean_gemspec ||= eval(File.read(File.expand_path('../tiny_tds.gemspec', __FILE__)))
end

Rake::TestTask.new do |t|
t.libs = test_libs
t.test_files = test_files
t.verbose = true
end

def gemspec
@clean_gemspec ||= eval(File.read(File.expand_path('../tiny_tds.gemspec', __FILE__)))
desc "Build the gem"
task :gem => [:distclean] do
sh %{gem build tiny_tds.gemspec}
end

desc "Try to clean up everything"
task :distclean do
CLEAN.concat(['pkg', 'tiny_tds-*.gem', 'tmp'])
Rake::Task[:clean].invoke
end

Rake::ExtensionTask.new('tiny_tds', gemspec) do |ext|
Expand Down

0 comments on commit 7120f62

Please sign in to comment.