-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrestful_error.gemspec
More file actions
25 lines (20 loc) · 1015 Bytes
/
restful_error.gemspec
File metadata and controls
25 lines (20 loc) · 1015 Bytes
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
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "restful_error/version"
Gem::Specification.new do |spec|
spec.name = "restful_error"
spec.version = RestfulError::VERSION
spec.required_ruby_version = ">= 3.2"
spec.authors = [ "kuboon" ]
spec.email = [ "o@kbn.one" ]
spec.summary = "Define your error with status code. Raise it and you will get formatted response with i18nized message."
spec.description = "Define status_code method on your error. Views and messages are fully customizable on rails way."
spec.homepage = "https://github.com/kuboon/restful_error"
spec.license = "MIT"
spec.files = Dir["lib/**/*.rb"] + Dir["config/locales/**/*"] + Dir["app/views/**/*"] + ["LICENSE.txt", "README.md"]
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = [ "lib" ]
spec.add_dependency "rack", ">= 2.1", "< 4"
spec.metadata["rubygems_mfa_required"] = "true"
end