-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhanami_id.gemspec
64 lines (56 loc) · 2.36 KB
/
hanami_id.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
53
54
55
56
57
58
59
60
61
62
63
64
# 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 = ["[email protected]"]
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