-
Notifications
You must be signed in to change notification settings - Fork 2
/
backtracie.gemspec
52 lines (46 loc) · 2.1 KB
/
backtracie.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
# frozen_string_literal: true
# backtracie: Ruby gem for beautiful backtraces
# Copyright (C) 2021 Ivo Anjo <ivo@ivoanjo.me>
#
# This file is part of backtracie.
#
# backtracie is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# backtracie is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with backtracie. If not, see <http://www.gnu.org/licenses/>.
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "backtracie/version"
Gem::Specification.new do |spec|
spec.name = "backtracie"
spec.version = Backtracie::VERSION
spec.authors = ["Ivo Anjo"]
spec.email = ["ivo@ivoanjo.me"]
spec.summary = "Ruby gem for beautiful backtraces"
spec.description = "Ruby gem for beautiful backtraces"
spec.homepage = "https://github.com/ivoanjo/backtracie"
spec.license = "LGPL-3.0+"
spec.required_ruby_version = ">= 2.3.0"
# 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{\A(?:test|spec|features|[.]github)/}) }
.reject { |f|
["gems.rb", ".whitesource", ".ruby-version", ".gitignore", ".rspec", ".standard.yml",
"DEVELOPMENT_NOTES.adoc", "Rakefile", "docker-compose.yml", "bin/console"].include?(f)
}
end
spec.require_paths = ["lib", "ext"]
spec.extensions = ["ext/backtracie_native_extension/extconf.rb"]
# Enables support for Ruby 2.5 and below. Not used at all in the others.
spec.add_dependency "debase-ruby_core_source", "~> 0.10", ">= 0.10.12"
end