-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minitest-substitute.gemspec
54 lines (45 loc) · 2.12 KB
/
minitest-substitute.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
# frozen_string_literal: true
require_relative 'lib/minitest/substitute/version'
Gem::Specification.new do |spec|
spec.name = 'minitest-substitute'
spec.version = Minitest::Substitute::VERSION
spec.summary = 'Substitute values for the duration of a block or a group of tests'
spec.description = <<~END
Simple Minitest helper to replace values such as an instance variable of an
object or an environment variable for the duration of a block or a group of
tests. This comes in very handy when you have to derive from default
configuration in order to test some aspects of your code.
END
spec.authors = ['Sven Schwyn']
spec.email = ['[email protected]']
spec.homepage = 'https://github.com/svoop/minitest-substitute'
spec.license = 'MIT'
spec.metadata = {
'homepage_uri' => spec.homepage,
'changelog_uri' => 'https://github.com/svoop/minitest-substitute/blob/main/CHANGELOG.md',
'source_code_uri' => 'https://github.com/svoop/minitest-substitute',
'documentation_uri' => 'https://www.rubydoc.info/gems/minitest-substitute',
'bug_tracker_uri' => 'https://github.com/svoop/minitest-substitute/issues'
}
spec.files = Dir['lib/**/*']
spec.require_paths = %w(lib)
spec.extra_rdoc_files = Dir['README.md', 'CHANGELOG.md', 'LICENSE.txt']
spec.rdoc_options += [
'--title', 'Minitest::Substitute',
'--main', 'README.md',
'--line-numbers',
'--inline-source',
'--quiet'
]
spec.required_ruby_version = '>= 3.0.0'
spec.add_runtime_dependency 'minitest', '~> 5'
spec.add_development_dependency 'debug'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'minitest-flash'
spec.add_development_dependency 'minitest-focus'
spec.add_development_dependency 'guard'
spec.add_development_dependency 'guard-minitest'
spec.add_development_dependency 'yard'
spec.post_install_message = '⚠️ Breaking change: minitest-substitute >= 1.0.0 switched from "with" to "substitute" to prevent conflicts with Rails 7. Please read the update section in the README.'
end