Skip to content

Commit

Permalink
Refactor file names to follow rubygem guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
Parth-Rewind committed Sep 25, 2023
1 parent b468c79 commit 06267c4
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 19 deletions.
10 changes: 6 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ Metrics/PerceivedComplexity:
Enabled: false

# Naming cop configuration
Naming/FileName:
Enabled: false
#Naming/FileName:
# Enabled: false
Naming/MethodParameterName:
Enabled: true
Exclude:
Expand Down Expand Up @@ -80,9 +80,11 @@ RSpec/NestedGroups:
RSpec/VerifiedDoubleReference:
Enabled: false
RSpec/FilePath:
Enabled: false
Exclude:
- spec/omni_auth/azure_devops/version_spec.rb
RSpec/SpecFilePathFormat:
Enabled: false
Exclude:
- spec/omni_auth/azure_devops/version_spec.rb

# Style cop configuration
Style/ArgumentsForwarding:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Omniauth
module OmniAuth
module AzureDevops
VERSION = '1.1.0'
end
Expand Down
File renamed without changes.
4 changes: 0 additions & 4 deletions lib/omniauth-azure-devops.rb

This file was deleted.

4 changes: 4 additions & 0 deletions lib/omniauth_azure_devops.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# frozen_string_literal: true

require 'omni_auth/azure_devops/version'
require 'omni_auth/strategies/azure_devops'
4 changes: 2 additions & 2 deletions omniauth-azure-devops.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# frozen_string_literal: true

require File.expand_path('lib/omniauth-azure-devops/version', __dir__)
require File.expand_path('lib/omni_auth/azure_devops/version', __dir__)

Gem::Specification.new do |gem|
gem.name = 'omniauth-azure-devops'
gem.version = Omniauth::AzureDevops::VERSION
gem.version = OmniAuth::AzureDevops::VERSION
gem.authors = ['Rewind Software Inc. | Parth Chandgadhiya']
gem.email = ['team@rewind.io']

Expand Down
7 changes: 7 additions & 0 deletions spec/omni_auth/azure_devops/version_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

describe OmniAuth::AzureDevops do
it 'has a version number' do
expect(OmniAuth::AzureDevops::VERSION).not_to be_nil
end
end
7 changes: 0 additions & 7 deletions spec/omniauth-azure-devops/version_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
require 'omniauth'
require 'omniauth-azure-devops'
require 'omniauth_azure_devops'
config.extend OmniAuth::Test::StrategyMacros, type: :strategy
OmniAuth.config.test_mode = true

Expand Down

0 comments on commit 06267c4

Please sign in to comment.