forked from jruby/activerecord-jdbc-adapter
-
Notifications
You must be signed in to change notification settings - Fork 5
/
activerecord-jdbc-alt-adapter.gemspec
54 lines (43 loc) · 2.6 KB
/
activerecord-jdbc-alt-adapter.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- encoding: utf-8 -*-
Gem::Specification.new do |gem|
gem.name = 'activerecord-jdbc-alt-adapter'
path = File.expand_path('lib/arjdbc/version.rb', File.dirname(__FILE__))
gem.version = File.read(path).match( /.*VERSION\s*=\s*['"](.*)['"]/m )[1]
gem.platform = 'java' # due jar-dependencies to resolve requirements for ext
gem.authors = ['Nick Sieger, Ola Bini, Karol Bucek, Jesse Chavez, and JRuby contributors']
gem.homepage = 'https://github.com/JesseChavez/activerecord-jdbc-adapter'
gem.license = 'BSD-2-Clause'
gem.summary = 'ActiveRecord JDBC adapter, for use within JRuby on Rails and SQL Server'
gem.description = "" <<
"Fork of the ActiveRecord JDBC adapter with support for SQL Server and Azure SQL, " <<
"for more information and help look at the README file in the github repository. " <<
"AR-JDBC is a database adapter for Rails' ActiveRecord component " <<
"designed to be used with JRuby built upon Java's JDBC API for " <<
"database access. Provides (ActiveRecord) built-in adapters: MySQL, " <<
"PostgreSQL, SQLite3, and SQLServer."
gem.require_paths = ["lib"]
gem.files = `git ls-files`.split("\n").
reject { |f| f =~ /^(activerecord-jdbc[^-]|jdbc-)/ }. # gem directories
reject { |f| f =~ /^(bench|test)/ }. # not sure if including tests is useful
reject { |f| f =~ /^(gemfiles)/ } # no tests - no Gemfile_s appraised ...
gem.files += ['lib/arjdbc/jdbc/adapter_java.jar'] #if ENV['RELEASE'].eql?('true')
if ENV['INCLUDE_JAR_IN_GEM'] != 'true' # @see Rakefile
gem.extensions << 'Rakefile' # to support auto-building .jar with :git paths
#gem.add_runtime_dependency 'jar-dependencies', '~> 0.1' # development not enough!
#gem.add_development_dependency 'ruby-maven', '~> 3.1'
#
#gem.requirements << "jar mysql:mysql-connector-java, 5.1.44, :scope => :compile"
#gem.requirements << "jar org.postgresql:postgresql, 42.1.4.jre6, :scope => :compile"
# compilation .jar dependencies for extension (at least until `mvn') :
gem.add_development_dependency 'jdbc-mysql', '~> 8.0.0'
gem.add_development_dependency 'jdbc-postgres', '~> 42.1'
end
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^test/})
gem.add_dependency 'activerecord', '~> 7.1.3'
#gem.add_development_dependency 'test-unit', '2.5.4'
#gem.add_development_dependency 'test-unit-context', '>= 0.3.0'
#gem.add_development_dependency 'mocha', '~> 0.13.1'
gem.rdoc_options = ["--main", "README.md"]
end