forked from ruby-git/ruby-git
-
Notifications
You must be signed in to change notification settings - Fork 1
/
git.gemspec
48 lines (41 loc) · 1.91 KB
/
git.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
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'git/version'
Gem::Specification.new do |s|
s.author = 'Scott Chacon and others'
s.email = '[email protected]'
s.homepage = 'http://github.com/ruby-git/ruby-git'
s.license = 'MIT'
s.name = 'git'
s.summary = 'An API to create, read, and manipulate Git repositories'
s.description = <<~DESCRIPTION
The Git Gem provides an API that can be used to create, read, and manipulate
Git repositories by wrapping system calls to the `git` binary. The API can be
used for working with Git in complex interactions including branching and
merging, object inspection and manipulation, history, patch generation and
more.
DESCRIPTION
s.version = Git::VERSION
s.metadata['homepage_uri'] = s.homepage
s.metadata['source_code_uri'] = s.homepage
s.metadata['changelog_uri'] = 'http://rubydoc.info/gems/git/file.CHANGELOG.html'
s.require_paths = ['lib']
s.required_ruby_version = '>= 2.3'
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to?(:required_rubygems_version=)
s.requirements = ['git 1.6.0.0, or greater']
s.add_runtime_dependency 'addressable', '~> 2.8'
s.add_runtime_dependency 'rchardet', '~> 1.8'
s.add_development_dependency 'bump', '~> 0.10'
s.add_development_dependency 'minitar', '~> 0.9'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'test-unit', '~> 3.3'
unless RUBY_PLATFORM == 'java'
s.add_development_dependency 'redcarpet', '~> 3.5'
s.add_development_dependency 'yard', '~> 0.9'
s.add_development_dependency 'yardstick', '~> 0.9'
end
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
s.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(tests|spec|features|bin)/}) }
end
end