hanami_id.gemspec
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "hanami_id/version"
is_java = RUBY_PLATFORM == "java"
Gem::Specification.new do |spec|
spec.name = "hanami_id"
spec.version = HanamiId::VERSION
spec.authors = ["Viacheslav Ptsarev"]
spec.email = ["leemour@gmail.com"]
spec.platform = "java" if is_java
spec.summary = "Authentication for Hanami framework"
spec.description = <<~DESC
Fully-fledged flexible authentication solution based on Bcrypt and Warden.
Instead of magic intervention it acts isolated and generates a new
authentication app with all the code you need. It fully supports I18n.
DESC
spec.homepage = "https://github.com/leemour/hanami_id"
spec.license = "MIT"
spec.required_ruby_version = "~> 2.3"
if spec.respond_to?(:metadata)
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
spec.metadata["changelog_uri"] = "#{spec.homepage}/CHANGELOG.md"
end
spec.files = Dir[
"lib/**/*", "locales/**/*", "CHANGELOG.md", "CODE_OF_CONDUCT.md",
"LICENSE.txt", "README.md"
]
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency "bcrypt", "~> 3.1"
spec.add_dependency "hanami_id-generators", "~> 0.1"
spec.add_dependency "i18n", "~> 1.6"
spec.add_dependency "warden", "~> 1.2"
spec.add_development_dependency "bundler", ">= 1.17"
spec.add_development_dependency "bundler-audit", "~> 0.6"
spec.add_development_dependency "hanami", "~> 1.3"
spec.add_development_dependency "hanami-model", "~> 1.3"
if RUBY_VERSION >= "2.4"
spec.add_development_dependency "overcommit", "~> 0.48"
end
if is_java
spec.add_development_dependency "pry-debugger-jruby", "~> 1.1"
else
spec.add_development_dependency "pry-byebug", "~> 3.7"
end
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rubocop-md", "~> 0.3"
spec.add_development_dependency "rubocop-performance", "~> 1.3"
spec.add_development_dependency "rubocop-rspec", "~> 1.3"
spec.add_development_dependency "simplecov", "~> 0.16"
end