Sha256: 612661e13ee086383512d4eaa02f5fdfbd14b52f40c5397529fe165300e1f7c2
Contents?: true
Size: 1.49 KB
Versions: 4
Compression:
Stored size: 1.49 KB
Contents
MANIFEST = FileList["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/**/*"] file "Manifest.txt" => :manifest task :manifest do File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} } end Rake::Task['manifest'].invoke require File.dirname(__FILE__) + "/../../lib/jdbc_adapter/version" $LOAD_PATH << File.dirname(__FILE__) + "/../../drivers/derby/lib" require "jdbc/derby" begin require 'hoe' Hoe.plugin :gemcutter hoe = Hoe.spec("activerecord-jdbcderby-adapter") do |p| p.version = JdbcAdapter::Version::VERSION p.spec_extras[:platform] = Gem::Platform.new("java") p.rubyforge_name = "jruby-extras" p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC" p.author = "Nick Sieger, Ola Bini and JRuby contributors" p.email = "nick@nicksieger.com, ola.bini@gmail.com" p.summary = "Derby JDBC adapter for JRuby on Rails." p.changes = "Updated to Derby version #{Jdbc::Derby::VERSION}." p.description = "Install this gem to use Derby with JRuby on Rails." p.extra_deps += [ ['activerecord-jdbc-adapter', "= #{JdbcAdapter::Version::VERSION}"], ['jdbc-derby', ">= #{Jdbc::Derby::VERSION}"]] end hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" } task :gemspec do File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby } end task :package => :gemspec rescue LoadError puts "You really need Hoe installed to be able to package this gem" rescue => e puts "ignoring error while loading hoe: #{e.to_s}" end
Version data entries
4 entries across 4 versions & 1 rubygems