Skip to content

Commit 7d4e666

Browse files
committed
testing
1 parent a65d360 commit 7d4e666

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch:
88
group :test do
99
gem 'rake'
1010
gem 'rspec', '~> 3.0'
11-
gem 'rails', '~> 8.0.0'
11+
gem 'rails', '~> 7.1'
1212
gem 'rspec-rails'
1313
gem 'sqlite3', '~> 2.6.0'
1414
gem 'capybara'

lib/devise_saml_authenticatable.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class Engine < Rails::Engine
2020
end
2121
end
2222

23+
if !defined?(::RubySaml) && defined?(::OneLogin::RubySaml)
24+
::RubySaml = ::OneLogin::RubySaml
25+
end
26+
2327
# Get saml information from config/saml.yml now
2428
module Devise
2529
# Allow route customization to avoid collision

spec/support/Gemfile.rails7.1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ source 'https://rubygems.org'
33
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
44
gemspec path: '../..'
55

6+
gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch: 'v2.x'
7+
68
group :test do
79
gem 'rake'
810
gem 'rspec', '~> 3.0'

spec/support/Gemfile.rails7.2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ source 'https://rubygems.org'
33
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
44
gemspec path: '../..'
55

6+
gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch: 'v2.x'
7+
68
group :test do
79
gem 'rake'
810
gem 'rspec', '~> 3.0'

spec/support/Gemfile.rails8.0

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ source 'https://rubygems.org'
33
# Specify your gem's dependencies in devise_saml_authenticatable.gemspec
44
gemspec path: '../..'
55

6+
gem 'ruby-saml', git: 'https://github.com/SAML-Toolkits/ruby-saml.git', branch: 'v2.x'
7+
68
group :test do
79
gem 'rake'
810
gem 'rspec', '~> 3.0'

0 commit comments

Comments
 (0)