Skip to content

Commit f12d90f

Browse files
committed
Allow for omniauth 2.0 series
1 parent 5afe8ae commit f12d90f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/ruby.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Ruby
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
48

59
jobs:
610
test:

lib/omniauth/strategies/github.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def email_access_allowed?
7575
end
7676

7777
def callback_url
78-
full_host + script_name + callback_path
78+
full_host + callback_path
7979
end
8080
end
8181
end

omniauth-github.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
1616
gem.require_paths = ["lib"]
1717
gem.version = OmniAuth::GitHub::VERSION
1818

19-
gem.add_dependency 'omniauth', '~> 1.5'
19+
gem.add_dependency 'omniauth', '>= 1.5', '< 3.0'
2020
gem.add_dependency 'omniauth-oauth2', '>= 1.4.0', '< 2.0'
2121
gem.add_development_dependency 'rspec', '~> 3.5'
2222
gem.add_development_dependency 'rack-test'

0 commit comments

Comments
 (0)