-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathomniauth-openid.gemspec
More file actions
100 lines (91 loc) · 3.8 KB
/
omniauth-openid.gemspec
File metadata and controls
100 lines (91 loc) · 3.8 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# encoding: utf-8
gem_version =
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1")
# Loading the version from an anonymous module allows version.rb to get code coverage from SimpleCov!
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358
Module.new.tap { |mod| Kernel.load("lib/omniauth/openid/version.rb", mod) }::OmniAuth::OpenID::Version::VERSION
else
require_relative "lib/omniauth/openid/version"
OmniAuth::OpenID::Version::VERSION
end
Gem::Specification.new do |spec|
spec.name = "omniauth-openid"
spec.version = gem_version
spec.authors = ["Peter Boling", "Michael Bleigh", "Erik Michaels-Ober", "Tom Milewski"]
spec.email = ["floss@galtzo.com"]
# Linux distros often package gems and securely certify them independent
# of the official RubyGem certification process. Allowed via ENV["SKIP_GEM_SIGNING"]
# Ref: https://gitlab.com/oauth-xx/version_gem/-/issues/3
# Hence, only enable signing if `SKIP_GEM_SIGNING` is not set in ENV.
# See CONTRIBUTING.md
unless ENV.include?("SKIP_GEM_SIGNING")
user_cert = "certs/#{ENV.fetch("GEM_CERT_USER", ENV["USER"])}.pem"
cert_file_path = File.join(__dir__, user_cert)
cert_chain = cert_file_path.split(",")
cert_chain.select! { |fp| File.exist?(fp) }
if cert_file_path && cert_chain.any?
spec.cert_chain = cert_chain
if $PROGRAM_NAME.end_with?("gem") && ARGV[0] == "build"
spec.signing_key = File.join(Gem.user_home, ".ssh", "gem-private_key.pem")
end
end
end
spec.summary = "OpenID strategy for OmniAuth."
spec.description = "OpenID (not OIDC) strategy for OmniAuth."
spec.homepage = "https://github.com/omniauth/#{spec.name}"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.4.0"
spec.metadata["homepage_uri"] = "https://railsbling.com/tags/#{spec.name}/"
spec.metadata["source_code_uri"] = "#{spec.homepage}/tree/v#{spec.version}"
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md"
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
spec.metadata["wiki_uri"] = "#{spec.homepage}/wiki"
spec.metadata["funding_uri"] = "https://liberapay.com/pboling"
spec.metadata["news_uri"] = "https://www.railsbling.com/tags/#{spec.name}"
spec.metadata["rubygems_mfa_required"] = "true"
# Specify which files should be added to the gem when it is released.
spec.files = Dir[
# Splats (alphabetical)
"lib/**/*.rb",
]
# Automatically included with gem package, no need to list again in files.
spec.extra_rdoc_files = Dir[
# Files (alphabetical)
"CHANGELOG.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"LICENSE.txt",
"README.md",
"SECURITY.md",
]
spec.rdoc_options += [
"--title",
"#{spec.name} - #{spec.summary}",
"--main",
"CHANGELOG.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"LICENSE.txt",
"README.md",
"SECURITY.md",
"--line-numbers",
"--inline-source",
"--quiet",
]
spec.bindir = "exe"
spec.require_paths = ["lib"]
spec.add_dependency("omniauth", ">= 1.1")
spec.add_dependency("rack-openid", "~> 1.4")
spec.add_dependency("ruby-openid", "~> 2.1", ">= 2.1.8")
spec.add_dependency("version_gem", "~> 1.1", ">= 1.1.8")
### Testing
spec.add_development_dependency("rack-session", ">= 1")
spec.add_development_dependency("rack-test", "~> 2.2")
spec.add_development_dependency("rake", "~> 13")
spec.add_development_dependency("rspec", "~> 3")
spec.add_development_dependency("rspec-block_is_expected", "~> 1.0", ">= 1.0.6")
spec.add_development_dependency("webmock", "~> 3.18", ">= 3.18.1")
### Releasing
spec.add_development_dependency("stone_checksums", "~> 1.0") # ruby >= 2.2
end