forked from mongodb/mongo-ruby-kerberos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mongo_kerberos.gemspec
49 lines (42 loc) · 2.1 KB
/
mongo_kerberos.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
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'mongo/gssapi_native/version'
Gem::Specification.new do |s|
s.name = 'mongo_kerberos'
s.version = Mongo::GssapiNative::VERSION.dup
s.authors = ['Emily Stolfo', 'Durran Jordan']
s.email = ['[email protected]']
s.homepage = 'https://docs.mongodb.com/ruby-driver/current/tutorials/ruby-driver-authentication/#kerberos-gssapi-mechanism'
s.summary = 'Kerberos authentication support for the MongoDB Ruby driver'
s.description = 'Adds Kerberos authentication via libsasl to the MongoDB Ruby Driver on MRI and JRuby'
s.license = 'Apache-2.0'
s.metadata = {
'bug_tracker_uri' => 'https://jira.mongodb.org/projects/RUBY',
'changelog_uri' => 'https://github.com/mongodb/mongo-ruby-kerberos/releases',
'documentation_uri' => 'https://docs.mongodb.com/ruby-driver/current/tutorials/ruby-driver-authentication/#kerberos-gssapi-mechanism',
'homepage_uri' => 'https://docs.mongodb.com/ruby-driver/current/tutorials/ruby-driver-authentication/#kerberos-gssapi-mechanism',
'mailing_list_uri' => 'https://groups.google.com/group/mongodb-user',
'source_code_uri' => 'https://github.com/mongodb/mongo-ruby-kerberos'
}
if File.exist?('gem-private_key.pem')
s.signing_key = 'gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
else
warn "[#{s.name}] Warning: No private key present, creating unsigned gem."
end
s.files = %w(CONTRIBUTING.md LICENSE NOTICE README.md Rakefile)
s.files += Dir.glob('lib/**/*')
unless RUBY_PLATFORM =~ /java/
s.platform = Gem::Platform::RUBY
s.files += Dir.glob('ext/**/*.{c,h,rb}')
s.extensions = ['ext/mongo_kerberos/extconf.rb']
else
s.platform = 'java'
s.files << 'lib/mongo/auth/kerberos/native.jar'
end
s.test_files = Dir.glob('spec/**/*')
s.require_path = 'lib'
s.required_ruby_version = '>= 1.9.3'
s.required_rubygems_version = '>= 1.3.6'
s.add_dependency('mongo', "~> 2.0")
end