forked from ruby-git/ruby-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.gemspec
More file actions
57 lines (48 loc) · 2.37 KB
/
git.gemspec
File metadata and controls
57 lines (48 loc) · 2.37 KB
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
57
# frozen_string_literal: true
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
require 'git/version'
Gem::Specification.new do |spec|
spec.author = 'Scott Chacon and others'
spec.email = 'schacon@gmail.com'
spec.homepage = 'http://github.com/ruby-git/ruby-git'
spec.license = 'MIT'
spec.name = 'git'
spec.summary = 'An API to create, read, and manipulate Git repositories'
spec.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
command line. 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
spec.version = Git::VERSION
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['changelog_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}/file/CHANGELOG.md"
spec.metadata['documentation_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}"
spec.metadata['rubygems_mfa_required'] = 'true'
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 3.2.0'
spec.requirements = ['git 2.28.0 or greater']
spec.add_dependency 'activesupport', '>= 5.0'
spec.add_dependency 'addressable', '~> 2.8'
spec.add_dependency 'process_executer', '~> 4.0'
spec.add_dependency 'rchardet', '~> 1.9'
spec.add_development_dependency 'create_github_release', '~> 2.1'
spec.add_development_dependency 'main_branch_shared_rubocop_config', '~> 0.1'
spec.add_development_dependency 'minitar', '~> 1.0'
spec.add_development_dependency 'mocha', '~> 2.7'
spec.add_development_dependency 'rake', '~> 13.2'
spec.add_development_dependency 'rubocop', '~> 1.77'
spec.add_development_dependency 'test-unit', '~> 3.6'
unless RUBY_PLATFORM == 'java'
spec.add_development_dependency 'redcarpet', '~> 3.6'
spec.add_development_dependency 'yard', '~> 0.9', '>= 0.9.28'
spec.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.
spec.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