Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Jun 13, 2024
1 parent b7dd055 commit 877aab1
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
7 changes: 0 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ RSpec/SpecFilePathFormat:
OAuth2Client: oauth2_client
OAuth2Token: oauth2_token
OAuth2RefreshedToken: oauth2_refreshed_token

RSpec/FilePath:
CustomTransform:
OAuth2: oauth2
OAuth2Client: oauth2_client
OAuth2Token: oauth2_token
OAuth2RefreshedToken: oauth2_refreshed_token

Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lokalise_api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RubyLokaliseApi
# Regular API client used to perform requests with a basic API token
class Client < BaseClient
def initialize(token, params = {})
super(token, params)
super

@token_header = 'x-api-token'
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lokalise_api/endpoints/main_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MainEndpoint < BaseEndpoint
BASE_URL = 'https://api.lokalise.com/api2'

def initialize(client, params = {})
super(client, params)
super

@uri = partial_uri(base_query(*@query_params))
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lokalise_api/endpoints/oauth2/oauth2_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class OAuth2Endpoint < BaseEndpoint
PARTIAL_URI_TEMPLATE = '{/segments*}{?query*}'

def initialize(client, params = {})
super(client, params)
super

@uri = partial_uri(base_query(*@query_params), params.fetch(:get, []))
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_lokalise_api/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def from_response(body)

# Initializes a new Error object
def initialize(message = '')
super(message)
super
end
end
end
2 changes: 1 addition & 1 deletion lib/ruby_lokalise_api/oauth2_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RubyLokaliseApi
# Client used to perform API requests with an OAuth2 access token
class OAuth2Client < Client
def initialize(token, params = {})
super(token, params)
super
@token_header = 'Authorization'
@token = "Bearer #{@token}"
end
Expand Down
2 changes: 1 addition & 1 deletion ruby-lokalise-api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rubocop', '~> 1.6'
spec.add_development_dependency 'rubocop-performance', '~> 1.5'
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
spec.add_development_dependency 'rubocop-rspec', '~> 2.0'
spec.add_development_dependency 'rubocop-rspec', '~> 3.0'
spec.add_development_dependency 'simplecov', '~> 0.21'
spec.add_development_dependency 'simplecov-lcov', '~> 0.8'
spec.add_development_dependency 'webmock', '~> 3.14'
Expand Down

0 comments on commit 877aab1

Please sign in to comment.