File: bson.gemspec

package info (click to toggle)
ruby-bson 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 264 kB
  • sloc: ruby: 1,551; makefile: 5
file content (34 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (2)
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
Gem::Specification.new do |s|
  s.name              = 'bson'

  s.version           = File.read(File.join(File.dirname(__FILE__), 'VERSION'))
  s.authors           = ['Tyler Brock', 'Gary Murakami', 'Emily Stolfo', 'Brandon Black', 'Durran Jordan']
  s.email             = 'mongodb-dev@googlegroups.com'
  s.homepage          = 'http://www.mongodb.org'
  s.summary           = 'Ruby implementation of BSON'
  s.description       = 'A Ruby BSON implementation for MongoDB. For more information about Mongo, see http://www.mongodb.org. For more information on BSON, see http://www.bsonspec.org.'
  s.rubyforge_project = 'bson'
  s.license           = 'Apache License Version 2.0'

  if File.exists?('gem-private_key.pem')
    s.signing_key = 'gem-private_key.pem'
    s.cert_chain  = ['gem-public_cert.pem']
  else
    warn 'Warning: No private key present, creating unsigned gem.'
  end

  s.files             = ['bson.gemspec', 'LICENSE', 'VERSION']
  s.files             += ['bin/b2json', 'bin/j2bson', 'lib/bson.rb']
  s.files             += Dir['lib/bson/**/*.rb']

  if RUBY_PLATFORM =~ /java/
    s.platform = 'java'
    s.files    += ['ext/jbson/target/jbson.jar', 'ext/jbson/lib/java-bson.jar']
  else
    s.platform = Gem::Platform::RUBY
  end

  s.executables       = ['b2json', 'j2bson']
  s.require_paths     = ['lib']
  s.has_rdoc          = 'yard'
end