-
-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow requirement of single files #205
Allow requirement of single files #205
Conversation
This ensures dependencies are properly required in each file
👍 |
@luisvm , @Lordnibbler what do you think? |
👍 |
2 similar comments
👍 |
👍 |
Allow requirement of single files
thank you @rafaelgonzalez ! |
Cheers everyone |
The file onelogin.rb is unnecessary since we don't use any I noticed that in ruby-saml-example we never used
with the gem installed, it imports the lib/ruby-saml.rb so the library is available. After read the REQUIRING CODE section of rubygem I saw that is common to set in the lib path a file with the name of the library, so I will replace lib/onelogin.rb by lib/ruby-saml.rb .That will maintain ruby-saml-example compatibility. @Lordnibbler, are you agree? |
* SAML-Toolkits#205 introduced a regression when the entry point file was renamed: `lib/ruby-saml.rb → lib/onelogin/ruby-saml.rb`. this is causing problems with `bundler`, and also when integrating with other libraries such as `omniauth-saml`.
* SAML-Toolkits#205 introduced a regression when the entry point file was renamed: `lib/ruby-saml.rb → lib/onelogin/ruby-saml.rb`. this is causing problems with `bundler`, and also when integrating with other libraries such as `omniauth-saml`.
This is to reflect the advertised behaviour in the README.
You can manually test requirements of each file in
irb
(exitingirb
between each) with:require_relative 'lib/onelogin/ruby-saml/authrequest'
require_relative 'lib/onelogin/ruby-saml/logoutrequest'
require_relative 'lib/onelogin/ruby-saml/logoutresponse'
require_relative 'lib/onelogin/ruby-saml/settings'
require_relative 'lib/onelogin/ruby-saml/slo_logoutrequest'
require_relative 'lib/onelogin/ruby-saml/slo_logoutresponse'