| 1 |
# coding: utf-8 |
| 2 |
lib = File.expand_path('../lib', __FILE__) |
| 3 |
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) |
| 4 |
begin |
| 5 |
require_relative "lib/error_highlight/version" |
| 6 |
rescue LoadError # Fallback to load version file in ruby core repository |
| 7 |
require_relative "version" |
| 8 |
end |
| 9 |
|
| 10 |
Gem::Specification.new do |spec| |
| 11 |
spec.name = "error_highlight" |
| 12 |
spec.version = ErrorHighlight::VERSION |
| 13 |
spec.authors = ["Yusuke Endoh"] |
| 14 |
spec.email = ["[email protected]"] |
| 15 |
|
| 16 |
spec.summary = 'Shows a one-line code snippet with an underline in the error backtrace' |
| 17 |
spec.description = 'The gem enhances Exception#message by adding a short explanation where the exception is raised' |
| 18 |
spec.homepage = "https://github.com/ruby/error_highlight" |
| 19 |
|
| 20 |
spec.license = "MIT" |
| 21 |
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0.dev") |
| 22 |
|
| 23 |
spec.files = Dir.chdir(File.expand_path(__dir__)) do |
| 24 |
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) } |
| 25 |
end |
| 26 |
spec.require_paths = ["lib"] |
| 27 |
end |