Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Suggestion - rename classes to follow Rails conventions #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/omniauth/azure_activedirectory/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

module OmniAuth
# The release version.
module AzureActiveDirectory
module AzureActivedirectory
VERSION = '1.0.0'
end
end
6 changes: 2 additions & 4 deletions lib/omniauth/strategies/azure_activedirectory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
module OmniAuth
module Strategies
# A strategy for authentication against Azure Active Directory.
class AzureActiveDirectory
include OmniAuth::AzureActiveDirectory
class AzureActivedirectory
include OmniAuth::AzureActivedirectory
include OmniAuth::Strategy

class OAuthError < StandardError; end
Expand Down Expand Up @@ -325,5 +325,3 @@ def verify_options
end
end
end

OmniAuth.config.add_camelization 'azure_activedirectory', 'AzureActiveDirectory'
2 changes: 1 addition & 1 deletion omniauth-azure-activedirectory.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'omniauth/azure_activedirectory/version'

Gem::Specification.new do |s|
s.name = 'omniauth-azure-activedirectory'
s.version = OmniAuth::AzureActiveDirectory::VERSION
s.version = OmniAuth::AzureActivedirectory::VERSION
s.author = 'Microsoft Corporation'
s.email = '[email protected]'
s.summary = 'Azure Active Directory strategy for OmniAuth'
Expand Down
2 changes: 1 addition & 1 deletion spec/omniauth/strategies/azure_activedirectory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# This was fairly awkward to test. I've stubbed every endpoint and am simulating
# the state of the request. Especially large strings are stored in fixtures.
describe OmniAuth::Strategies::AzureActiveDirectory do
describe OmniAuth::Strategies::AzureActivedirectory do
let(:app) { -> _ { [200, {}, ['Hello world.']] } }
let(:x5c) { File.read(File.expand_path('../../../fixtures/x5c.txt', __FILE__)) }

Expand Down