Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (23 sloc) 0.545 kb
ad5a548 @metaskills [1.9] Added a few #encoding file hints. Add 1px.gif as a schema fixture ...
metaskills authored
1 # encoding: UTF-8
74f0121 @metaskills Initial checking.
metaskills authored
2 require 'rake'
8e03fcb @metaskills Get the Rakefile working and building extension by finding freetds inclu...
metaskills authored
3 require 'rake/testtask'
74f0121 @metaskills Initial checking.
metaskills authored
4 require 'rake/extensiontask'
5
6
7 def test_libs
8 ['lib','test']
9 end
10
11 def test_files
3839fc8 @metaskills Woot! Passing a few basic tests that prove the structure and build are c...
metaskills authored
12 Dir.glob("test/**/*_test.rb").sort
74f0121 @metaskills Initial checking.
metaskills authored
13 end
14
8e03fcb @metaskills Get the Rakefile working and building extension by finding freetds inclu...
metaskills authored
15 Rake::TestTask.new do |t|
74f0121 @metaskills Initial checking.
metaskills authored
16 t.libs = test_libs
17 t.test_files = test_files
18 t.verbose = true
19 end
20
49acc0b @metaskills More prep for gem release.
metaskills authored
21 def gemspec
22 @clean_gemspec ||= eval(File.read(File.expand_path('../tiny_tds.gemspec', __FILE__)))
23 end
24
25 Rake::ExtensionTask.new('tiny_tds', gemspec) do |ext|
26 ext.lib_dir = 'lib/tiny_tds'
74f0121 @metaskills Initial checking.
metaskills authored
27 end
28
29 task :build => [:clean, :compile]
30
3839fc8 @metaskills Woot! Passing a few basic tests that prove the structure and build are c...
metaskills authored
31 task :default => [:build, :test]
74f0121 @metaskills Initial checking.
metaskills authored
32
33
Something went wrong with that request. Please try again.