forked from doorkeeper-gem/doorkeeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doorkeeper.gemspec
58 lines (48 loc) · 2.4 KB
/
doorkeeper.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
# frozen_string_literal: true
$LOAD_PATH.unshift(File.expand_path("lib", __dir__))
require "doorkeeper/version"
Gem::Specification.new do |gem|
gem.name = "doorkeeper"
gem.version = Doorkeeper::VERSION::STRING
gem.authors = ["Felipe Elias Philipp", "Tute Costa", "Jon Moss", "Nikita Bulai"]
gem.email = %w[[email protected]]
gem.homepage = "https://github.com/doorkeeper-gem/doorkeeper"
gem.summary = "OAuth 2 provider for Rails and Grape"
gem.description = "Doorkeeper is an OAuth 2 provider for Rails and Grape."
gem.license = "MIT"
gem.files = Dir[
"{app,config,lib,vendor}/**/*",
"CHANGELOG.md",
"MIT-LICENSE",
"README.md",
]
gem.require_paths = ["lib"]
gem.metadata = {
"homepage_uri" => "https://github.com/doorkeeper-gem/doorkeeper",
"changelog_uri" => "https://github.com/doorkeeper-gem/doorkeeper/blob/main/CHANGELOG.md",
"source_code_uri" => "https://github.com/doorkeeper-gem/doorkeeper",
"bug_tracker_uri" => "https://github.com/doorkeeper-gem/doorkeeper/issues",
"documentation_uri" => "https://doorkeeper.gitbook.io/guides/",
}
gem.add_dependency "railties", ">= 5"
gem.required_ruby_version = ">= 2.7"
gem.post_install_message = <<~MSG.strip
Starting from 5.5.0 RC1 Doorkeeper requires client authentication for Resource Owner Password Grant
as stated in the OAuth RFC. You have to create a new OAuth client (Doorkeeper::Application) if you didn't
have it before and use client credentials in HTTP Basic auth if you previously used this grant flow without
client authentication.
To opt out of this you could set the "skip_client_authentication_for_password_grant" configuration option
to "true", but note that this is in violation of the OAuth spec and represents a security risk.
Read https://github.com/doorkeeper-gem/doorkeeper/issues/561#issuecomment-612857163 for more details.
MSG
gem.add_development_dependency "appraisal"
gem.add_development_dependency "capybara"
gem.add_development_dependency "coveralls_reborn"
gem.add_development_dependency "database_cleaner", "~> 2.0"
gem.add_development_dependency "factory_bot", "~> 6.0"
gem.add_development_dependency "generator_spec", "~> 0.10.0"
gem.add_development_dependency "grape"
gem.add_development_dependency "rake", ">= 11.3.0"
gem.add_development_dependency "rspec-rails"
gem.add_development_dependency "timecop"
end