-
Notifications
You must be signed in to change notification settings - Fork 2
/
devise-bootstrap-form.gemspec
53 lines (45 loc) · 2.19 KB
/
devise-bootstrap-form.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
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "devise_bootstrap_form/version"
Gem::Specification.new do |spec|
spec.name = "devise-bootstrap-form"
spec.version = DeviseBootstrapForm::VERSION
spec.authors = ["Larry Reid"]
spec.email = ["[email protected]"]
spec.summary = "Generates nicer views for Devise that use Bootstrap via the `bootstrap_form` gem."
spec.description = <<~DESC
This gem generates Devise views styled with Bootstrap via the `bootstrap_form`
gem. If you plan to use, or are using, `bootstrap_form` in your app, your Devise
forms will be consistent with the rest of your forms.
The generator will detect if you're using `devise_invitable`, and will generate
`bootstrap_form` forms for its views as well. If you're using `devise-i18n`, the
forms will use translations.
DESC
spec.homepage = "https://github.com/lcreid/devise-bootstrap-form"
spec.license = "MIT"
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
if spec.respond_to?(:metadata) # rubocop:disable Style/GuardClause
spec.metadata["allowed_push_host"] = "https://rubygems.org"
else
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end
spec.required_ruby_version = ">= 2.6"
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency "bootstrap_form", "~> 5.0"
# Devise deprecated devise_error_messages! at 4.6.0, so for later versions
# we add a new partial.
spec.add_dependency "devise", ">= 4.6.0"
spec.add_dependency "rails", ">= 5.0.0"
spec.add_development_dependency "bundler"
spec.add_development_dependency "chandler"
spec.add_development_dependency "pry"
spec.add_development_dependency "rake"
spec.metadata = {
"rubygems_mfa_required" => "true"
}
end