Sha256: 5e67df0b9632392a9f5b025941cb2d4677b66ff0e41737b7f103ab1e64b668ab
Contents?: true
Size: 1.78 KB
Versions: 4
Compression:
Stored size: 1.78 KB
Contents
require 'rubygems/package_task' GEM_SPEC = Gem::Specification.new do |s| # basic information s.name = "do_mysql" s.version = DataObjects::Mysql::VERSION # description and details s.summary = 'DataObjects MySQL Driver' s.description = "Implements the DataObjects API for MySQL" # dependencies s.add_dependency "addressable", "~>2.0.0" s.add_dependency "extlib", "~>0.9.12" s.add_dependency "data_objects", DataObjects::Mysql::VERSION if JRUBY s.add_dependency "jdbc-mysql", ">=5.0.4" s.add_dependency "do_jdbc", DataObjects::Mysql::VERSION s.platform = "java" # components, files and paths s.files = FileList["lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake", "LICENSE", "Rakefile", "*.{rdoc,txt,yml}", "lib/*.jar"] else s.platform = Gem::Platform::RUBY s.extensions << 'ext/do_mysql_ext/extconf.rb' s.files = FileList["lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake", "ext/**/*.{rb,c}", "LICENSE", "Rakefile", "*.{rdoc,txt,yml}"] end # development dependencies s.add_development_dependency 'rspec', '~>1.2.0' s.require_path = 'lib' # documentation s.has_rdoc = false # project information s.homepage = 'http://github.com/datamapper/do' s.rubyforge_project = 'dorb' # author and contributors s.author = 'Dirkjan Bussink' s.email = 'd.bussink@gmail.com' end gem_package = Gem::PackageTask.new(GEM_SPEC) do |pkg| pkg.need_tar = false pkg.need_zip = false end file "#{GEM_SPEC.name}.gemspec" => ['Rakefile', 'tasks/gem.rake'] do |t| puts "Generating #{t.name}" File.open(t.name, 'w') { |f| f.puts GEM_SPEC.to_yaml } end desc "Generate or update the standalone gemspec file for the project" task :gemspec => ["#{GEM_SPEC.name}.gemspec"]
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
do_mysql-0.9.12-java | tasks/gem.rake |
do_mysql-0.9.12-x86-mingw32 | tasks/gem.rake |
do_mysql-0.9.12 | tasks/gem.rake |
do_mysql-0.9.12-x86-mswin32-60 | tasks/gem.rake |