Skip to content

Commit 2c36551

Browse files
committed
Changes GitHub cameliization to Github
1 parent 04e3e5c commit 2c36551

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module OmniAuth
2-
module GitHubDataResidency
2+
module GithubDataResidency
33
VERSION = "0.0.1"
44
end
55
end

lib/omniauth/strategies/github_data_residency.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module OmniAuth
44
module Strategies
5-
class GitHubDataResidency < OmniAuth::Strategies::GitHub
5+
class GithubDataResidency < OmniAuth::Strategies::GitHub
66
# The enterprise subdomain is used to build the client_options urls for the GitHub Enterprise with Data Residency OAuth API
77
# The enterprise_subdomain is required to be set in the request params for the GitHubDR strategy to work
88
option :enterprise_options, {
@@ -59,4 +59,4 @@ def invalid_enterprise_subdomain?
5959
end
6060
end
6161

62-
OmniAuth.config.add_camelization "github_data_residency", "GitHubDataResidency"
62+
OmniAuth.config.add_camelization "github_data_residency", "GithubDataResidency"

omniauth-github-data-residency.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require_relative "lib/omniauth-github-data-residency/version"
44

55
Gem::Specification.new do |spec|
66
spec.name = "omniauth-github-data-residency"
7-
spec.version = OmniAuth::GitHubDataResidency::VERSION
7+
spec.version = OmniAuth::GithubDataResidency::VERSION
88
spec.authors = ["Packfiles"]
99
spec.email = ["hello@packfiles.io"]
1010

spec/omniauth/strategies/github_data_residency_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "omniauth/strategies/github_data_residency"
22

3-
RSpec.describe OmniAuth::Strategies::GitHubDataResidency do
3+
RSpec.describe OmniAuth::Strategies::GithubDataResidency do
44
let(:access_token) { instance_double("AccessToken", :options => {}, :[] => "user") }
55
let(:app) { lambda { |_env| [200, {}, ["Hello."]] } }
66
let(:enterprise_subdomain) { "example-corp" }
@@ -60,7 +60,7 @@
6060

6161
it "ensures client options are updated before proceeding" do
6262
# Create a custom test implementation of request_phase that simply returns an observable result
63-
test_implementation = Class.new(OmniAuth::Strategies::GitHubDataResidency) do
63+
test_implementation = Class.new(OmniAuth::Strategies::GithubDataResidency) do
6464
def custom_request_phase_test
6565
# Call the original request_phase
6666
request_phase
@@ -93,7 +93,7 @@ def custom_request_phase_test
9393

9494
it "ensures client options are updated before proceeding" do
9595
# Create a custom test implementation of callback_phase that simply returns an observable result
96-
test_implementation = Class.new(OmniAuth::Strategies::GitHubDataResidency) do
96+
test_implementation = Class.new(OmniAuth::Strategies::GithubDataResidency) do
9797
def custom_callback_phase_test
9898
# Call the original callback_phase
9999
callback_phase

0 commit comments

Comments
 (0)