Skip to content

Commit

Permalink
Upgrade minimum required ruby version to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Mar 24, 2023
1 parent e43948a commit 3612ed7
Show file tree
Hide file tree
Showing 18 changed files with 64 additions and 666 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1.144.2
with:
ruby-version: 2.7
ruby-version: 3.0
# bundler-cache: true

- name: Install packages
run: gem install bundler:'~> 2.2.2' && bundle install
run: gem install bundler:'~> 2.4.9' && bundle install

- name: Run build
run: |
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Change Log for Authress Ruby SDK:

## 2.0
* Update minimum required ruby version to 3.0
8 changes: 5 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
source "https://rubygems.org"

source 'https://rubygems.org' do
gem 'rake', '~> 13.0.1'
gem 'rake'
gem 'pry-byebug'
gem 'rubocop', '~> 0.66.0'
gem 'rdoc'
gem 'rubocop'
end

gemspec
89 changes: 44 additions & 45 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,71 +5,70 @@ PATH
json (~> 2.1, >= 2.1.0)
typhoeus (>= 1.0.1)

GEM
specs:
diff-lcs (1.4.4)
ethon (0.12.0)
ffi (>= 1.3.0)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.0)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
byebug (11.1.3)
coderay (1.1.3)
ffi (1.15.3)
jaro_winkler (1.5.4)
json (2.5.1)
diff-lcs (1.5.0)
ethon (0.16.0)
ffi (>= 1.15.0)
ffi (1.15.5)
json (2.6.3)
method_source (1.0.0)
parallel (1.20.1)
parser (3.0.1.1)
parallel (1.22.1)
parser (3.2.1.1)
ast (~> 2.4.1)
pry (0.13.1)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (~> 0.13.0)
psych (4.0.1)
rainbow (3.0.0)
rake (13.0.3)
rdoc (6.3.1)
rubocop (0.66.0)
jaro_winkler (~> 1.5.1)
pry (>= 0.13, < 0.15)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.7.0)
rexml (3.2.5)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.1)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.48.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
psych (>= 3.1.0)
parser (>= 3.2.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.26.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.6)
ruby-progressbar (1.11.0)
unicode-display_width (1.5.0)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.28.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
unicode-display_width (2.4.2)

PLATFORMS
x86_64-linux

DEPENDENCIES
authress-sdk!
pry-byebug!
rake (~> 13.0.1)!
rdoc!
rspec (~> 3.6, >= 3.6.0)
rubocop (~> 0.66.0)!
rake!
rspec
rubocop!

BUNDLED WITH
2.2.21
2.4.9
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ require 'authress-sdk'
require 'authress-sdk'

# create an instance of the API class during service initialization
# Replace DOMAIN with the Authress domain for your account
# Replace the base_url with the custom Authress domain for your account
# https://authress.io/app/#/settings?focus=domain
AuthressSdk.configure do |config|
config.base_url = 'https://DOMAIN.api-REGION.authress.io'
config.base_url = 'https://login.company.com'
end

# on api route
Expand Down Expand Up @@ -65,7 +66,7 @@ require 'authress-sdk'
# Create a service client in the Authress management portal and past the access token here
# This will generate a token automatically instead of passing the user token to the api
AuthressSdk.configure do |config|
config.base_url = 'https://DOMAIN.api-REGION.authress.io'
config.base_url = 'https://login.company.com'
client_access_key = 'eyJrZXlJ....'
config.token_provider = AuthressSdk::ServiceClientTokenProvider.new(client_access_key)
end
Expand Down
6 changes: 3 additions & 3 deletions authress-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |s|
s.name = "authress-sdk"
s.version = VERSION.to_s
s.platform = Gem::Platform::RUBY
s.authors = ["Rhosys", "Authress"]
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."
Expand All @@ -39,12 +39,12 @@ Gem::Specification.new do |s|
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.0"
s.required_ruby_version = ">= 3.0"

s.add_runtime_dependency 'typhoeus', '>= 1.0.1'
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'

s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
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']
Expand Down
51 changes: 0 additions & 51 deletions spec/models/body_10_spec.rb

This file was deleted.

51 changes: 0 additions & 51 deletions spec/models/body_11_spec.rb

This file was deleted.

39 changes: 0 additions & 39 deletions spec/models/body_1_spec.rb

This file was deleted.

33 changes: 0 additions & 33 deletions spec/models/body_2_spec.rb

This file was deleted.

Loading

0 comments on commit 3612ed7

Please sign in to comment.