Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relocate gem definition to its own task.
- Loading branch information
1 parent
8b78668
commit f68f595
Showing
2 changed files
with
31 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,10 @@ | ||
require 'rubygems' | ||
require 'hoe' | ||
require "rake/extensiontask" | ||
|
||
Hoe.plugin :debugging, :doofus, :git | ||
|
||
HOE = Hoe.spec 'sqlite3-ruby' do | ||
developer 'Jamis Buck', 'jamis@37signals.com' | ||
developer 'Luis Lavena', 'luislavena@gmail.com' | ||
developer 'Aaron Patterson', 'aaron@tenderlovemaking.com' | ||
|
||
self.readme_file = 'README.rdoc' | ||
self.history_file = 'CHANGELOG.rdoc' | ||
self.extra_rdoc_files = FileList['*.rdoc'] | ||
|
||
spec_extras[:required_ruby_version] = Gem::Requirement.new('> 1.8.5') | ||
spec_extras[:required_rubygems_version] = '>= 1.3.5' | ||
spec_extras[:extensions] = ["ext/sqlite3/extconf.rb"] | ||
|
||
extra_dev_deps << ['rake-compiler', "~> 0.6.0"] | ||
|
||
clean_globs.push('**/test.db') | ||
end | ||
|
||
Rake::ExtensionTask.new 'sqlite3_native', HOE.spec do |ext| | ||
ext.lib_dir = File.join(*['lib', 'sqlite3', ENV['FAT_DIR']].compact) | ||
ext.ext_dir = 'ext/sqlite3' | ||
end | ||
|
||
task :test => :compile | ||
# | ||
# NOTE: Keep this file clean. | ||
# Add your customizations inside tasks directory. | ||
# Thank You. | ||
# | ||
|
||
# load rakefile extensions (tasks) | ||
Dir['tasks/*.rake'].sort.each { |f| load f } | ||
|
||
# vim: syntax=ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
require 'hoe' | ||
|
||
Hoe.plugin :debugging, :doofus, :git | ||
|
||
HOE = Hoe.spec 'sqlite3-ruby' do | ||
developer 'Jamis Buck', 'jamis@37signals.com' | ||
developer 'Luis Lavena', 'luislavena@gmail.com' | ||
developer 'Aaron Patterson', 'aaron@tenderlovemaking.com' | ||
|
||
self.readme_file = 'README.rdoc' | ||
self.history_file = 'CHANGELOG.rdoc' | ||
self.extra_rdoc_files = FileList['*.rdoc'] | ||
|
||
spec_extras[:required_ruby_version] = Gem::Requirement.new('> 1.8.5') | ||
spec_extras[:required_rubygems_version] = '>= 1.3.5' | ||
spec_extras[:extensions] = ["ext/sqlite3/extconf.rb"] | ||
|
||
extra_dev_deps << ['rake-compiler', "~> 0.6.0"] | ||
|
||
clean_globs.push('**/test.db') | ||
end | ||
|
||
# vim: syntax=ruby |