rspec--rspec-metagem/rspec.gemspec

46 lines
1.7 KiB
Ruby
Raw Normal View History

2010-03-04 14:54:20 +00:00
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "rspec/version"
2010-03-04 14:54:20 +00:00
Gem::Specification.new do |s|
s.name = "rspec"
s.version = RSpec::Version::STRING
s.platform = Gem::Platform::RUBY
s.license = "MIT"
2013-10-12 04:07:21 +00:00
s.authors = ["Steven Baker", "David Chelimsky", "Myron Marston"]
s.email = "rspec@googlegroups.com"
2011-02-27 15:51:28 +00:00
s.homepage = "http://github.com/rspec"
s.summary = "rspec-#{RSpec::Version::STRING}"
2011-02-27 15:51:28 +00:00
s.description = "BDD for Ruby"
2010-03-04 14:54:20 +00:00
2018-10-19 14:46:24 +00:00
s.metadata = {
2021-10-26 16:30:25 +00:00
'bug_tracker_uri' => 'https://github.com/rspec/rspec-metagem/issues',
2018-10-19 14:46:24 +00:00
'documentation_uri' => 'https://rspec.info/documentation/',
'mailing_list_uri' => 'https://groups.google.com/forum/#!forum/rspec',
2021-10-26 16:30:25 +00:00
'source_code_uri' => 'https://github.com/rspec/rspec-metagem',
2018-10-19 14:46:24 +00:00
}
s.files = `git ls-files -- lib/*`.split("\n")
2015-10-06 20:08:03 +00:00
s.files += ["LICENSE.md"]
s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
2012-04-22 22:28:57 +00:00
s.extra_rdoc_files = [ "README.md" ]
s.rdoc_options = ["--charset=UTF-8"]
s.require_path = "lib"
2010-03-04 14:54:20 +00:00
2013-11-08 03:46:34 +00:00
private_key = File.expand_path('~/.gem/rspec-gem-private_key.pem')
2014-03-16 22:23:22 +00:00
if File.exist?(private_key)
2013-11-08 03:46:34 +00:00
s.signing_key = private_key
s.cert_chain = [File.expand_path('~/.gem/rspec-gem-public_cert.pem')]
end
%w[core expectations mocks].each do |name|
2011-04-18 00:00:14 +00:00
if RSpec::Version::STRING =~ /[a-zA-Z]+/
s.add_runtime_dependency "rspec-#{name}", "= #{RSpec::Version::STRING}"
else
s.add_runtime_dependency "rspec-#{name}", "~> #{RSpec::Version::STRING.split('.')[0..1].concat(['0']).join('.')}"
end
2010-03-04 14:54:20 +00:00
end
end