Skip to content

Commit

Permalink
Improve OmniAuth version check to allow anything from 1.0 forward
Browse files Browse the repository at this point in the history
This should enable people to try OmniAuth 2 currently in pre-release.
  • Loading branch information
carlosantoniodasilva committed Jan 7, 2021
1 parent 98fc5e8 commit 8bb358c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/devise/omniauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
raise
end

unless OmniAuth::VERSION =~ /^1\./
raise "You are using an old OmniAuth version, please ensure you have 1.0.0.pr2 version or later installed."
if Gem::Version.new(OmniAuth::VERSION) < Gem::Version.new('1.0.0')
raise "You are using an old OmniAuth version, please ensure you have 1.0.0 version or later installed."
end

# Clean up the default path_prefix. It will be automatically set by Devise.
Expand Down

0 comments on commit 8bb358c

Please sign in to comment.