-
Notifications
You must be signed in to change notification settings - Fork 1
/
authress-sdk.gemspec
67 lines (56 loc) · 2.58 KB
/
authress-sdk.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
65
66
67
# -*- encoding: utf-8 -*-
=begin
#Authress
Client SDK for Authress authorization as a service. Provides managed authorization api to secure service resources including user data.
OpenAPI spec version: v1
Contact: [email protected]
=end
require 'rdoc'
PULL_REQUEST = nil
BRANCH = ENV['GITHUB_REF']
BUILD_NUMBER = ENV['GITHUB_RUN_NUMBER']
RELEASE_VERSION = case
#Builds of pull requests
when !PULL_REQUEST.nil? then "0.#{PULL_REQUEST}"
#Builds of branches that aren't master or release
when (BRANCH.nil? || !BRANCH.match(/^(refs\/heads\/)?release[\/-]/i)) then '0.0'
#Builds of release branches (or locally or on server)
else BRANCH.match(/^(?:refs\/heads\/)?release[\/-](\d+(?:\.\d+){0,3})$/i)[1]
end
VERSION = Gem::Version.new("#{RELEASE_VERSION}.#{BUILD_NUMBER || '0'}.0")
Gem::Specification.new do |s|
s.name = "authress-sdk"
s.version = VERSION.to_s
s.platform = Gem::Platform::RUBY
s.authors = ["Authress"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/Authress/authress-sdk.rb"
s.summary = "The Authress SDK for Ruby provides authorization as a service with fully compatible REST apis."
formatter = RDoc::Markup::ToRdoc.new
s.description = <<-EOF
This is the Authress SDK used to integrate with the authorization as a service provider Authress at https://authress.io. The full documentation is available in the Github repo Readme: https://github.com/Authress/authress-sdk.rb.
EOF
s.license = "Apache-2.0"
s.required_ruby_version = ">= 2.7"
s.add_runtime_dependency 'typhoeus', '>= 1.4'
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
s.add_runtime_dependency 'omniauth-oauth2'
s.add_runtime_dependency 'jwt', '>= 2.8'
s.add_runtime_dependency 'oauth2'
s.add_runtime_dependency 'rbnacl'
s.add_runtime_dependency 'openssl'
s.add_development_dependency 'rspec'
s.files = Dir.glob("{bin,lib}/{**}/{*}", File::FNM_DOTMATCH).select{|f| !(File.basename(f)).match(/^\.+$/)}
s.extra_rdoc_files = ['README.md']
# s.test_files = `find spec/*`.split("\n")
s.executables = []
s.require_paths = ["lib"]
s.metadata = {
"bug_tracker_uri" => "https://github.com/Authress/authress-sdk.rb/issues",
"changelog_uri" => "https://github.com/Authress/authress-sdk.rb/CHANGELOG.md",
"documentation_uri" => "https://github.com/Authress/authress-sdk.rb",
"homepage_uri" => "https://github.com/Authress/authress-sdk.rb",
"source_code_uri" => "https://github.com/Authress/authress-sdk.rb",
"wiki_uri" => "https://github.com/Authress/authress-sdk.rb/wiki"
}
end