-
-
Notifications
You must be signed in to change notification settings - Fork 358
/
rspec-mocks.gemspec
56 lines (48 loc) · 2.2 KB
/
rspec-mocks.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
54
55
56
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "rspec/mocks/version"
Gem::Specification.new do |s|
s.name = "rspec-mocks"
s.version = RSpec::Mocks::Version::STRING
s.platform = Gem::Platform::RUBY
s.license = "MIT"
s.authors = ["Steven Baker", "David Chelimsky", "Myron Marston"]
s.email = "rspec@googlegroups.com"
s.homepage = "https://github.com/rspec/rspec-mocks"
s.summary = "rspec-mocks-#{RSpec::Mocks::Version::STRING}"
s.description = "RSpec's 'test double' framework, with support for stubbing and mocking"
s.metadata = {
'bug_tracker_uri' => 'https://github.com/rspec/rspec-mocks/issues',
'changelog_uri' => "https://github.com/rspec/rspec-mocks/blob/v#{s.version}/Changelog.md",
'documentation_uri' => 'https://rspec.info/documentation/',
'mailing_list_uri' => 'https://groups.google.com/forum/#!forum/rspec',
'source_code_uri' => 'https://github.com/rspec/rspec-mocks',
}
s.files = `git ls-files -- lib/*`.split("\n")
s.files += %w[README.md LICENSE.md Changelog.md .yardopts .document]
s.test_files = []
s.rdoc_options = ["--charset=UTF-8"]
s.require_path = "lib"
s.required_ruby_version = '>= 1.8.7'
private_key = File.expand_path('~/.gem/rspec-gem-private_key.pem')
if File.exist?(private_key)
s.signing_key = private_key
s.cert_chain = [File.expand_path('~/.gem/rspec-gem-public_cert.pem')]
end
if RSpec::Mocks::Version::STRING =~ /[a-zA-Z]+/
# pin to exact version for rc's and betas
s.add_runtime_dependency "rspec-support", "= #{RSpec::Mocks::Version::STRING}"
else
# pin to major/minor ignoring patch
s.add_runtime_dependency "rspec-support", "~> #{RSpec::Mocks::Version::STRING.split('.')[0..1].concat(['0']).join('.')}"
end
s.add_runtime_dependency "diff-lcs", ">= 1.2.0", "< 2.0"
s.add_development_dependency 'rake', '> 10.0.0'
s.add_development_dependency 'cucumber', '>= 1.3'
if RUBY_VERSION.to_f >= 2.4
s.add_development_dependency 'aruba', '>= 1.1.0', '< 3.0.0'
else
s.add_development_dependency 'aruba', '~> 0.14.10'
end
s.add_development_dependency 'minitest', '~> 5.2'
end