Debian Codegraph @

rspec-expectations/rspec-expectations.gemspec

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
2 require "rspec/expectations/version"
3
4 Gem::Specification.new do |s|
5 s.name = "rspec-expectations"
6 s.version = RSpec::Expectations::Version::STRING
7 s.platform = Gem::Platform::RUBY
8 s.license = "MIT"
9 s.authors = ["Steven Baker", "David Chelimsky", "Myron Marston"]
10 s.email = "[email protected]"
11 s.homepage = "https://rspec.info"
12 s.summary = "rspec-expectations-#{RSpec::Expectations::Version::STRING}"
13 s.description = "rspec-expectations provides a simple, readable API to express expected outcomes of a code example."
14
15 s.metadata = {
16 'bug_tracker_uri' => 'https://github.com/rspec/rspec/issues',
17 'changelog_uri' => "https://github.com/rspec/rspec/blob/rspec-expectations-v#{s.version}/rspec-expectations/Changelog.md",
18 'documentation_uri' => 'https://rspec.info/documentation/',
19 'mailing_list_uri' => 'https://groups.google.com/forum/#!forum/rspec',
20 'rubygems_mfa_required' => 'true',
21 'source_code_uri' => "https://github.com/rspec/rspec/blob/rspec-expectations-v#{s.version}/rspec-expectations",
22 }
23
24 s.files = `git ls-files -- lib/*`.split("\n")
25 s.files += %w[README.md LICENSE.md Changelog.md .yardopts .document]
26 s.test_files = []
27 s.rdoc_options = ["--charset=UTF-8"]
28 s.require_path = "lib"
29
30 s.required_ruby_version = '>= 1.8.7' # rubocop:disable Gemspec/RequiredRubyVersion
31
32 private_key = File.expand_path('~/.gem/rspec-gem-private_key.pem')
33 if File.exist?(private_key)
34 s.signing_key = private_key
35 s.cert_chain = [File.expand_path('~/.gem/rspec-gem-public_cert.pem')]
36 end
37
38 if RSpec::Expectations::Version::STRING =~ /[a-zA-Z]+/
39 # pin to exact version for rc's and betas
40 s.add_runtime_dependency "rspec-support", "= #{RSpec::Expectations::Version::STRING}"
41 else
42 # pin to major/minor ignoring patch
43 s.add_runtime_dependency "rspec-support", "~> #{RSpec::Expectations::Version::STRING.split('.')[0..1].concat(['0']).join('.')}"
44 end
45
46 s.add_runtime_dependency "diff-lcs", ">= 1.2.0", "< 2.0"
47 end