Skip to content

Commit e05f575

Browse files
committed
release: bump version to v0.1.3
1 parent e165ee0 commit e05f575

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
devise-api (0.1.2)
4+
devise-api (0.1.3)
55
devise (>= 4.7.2)
66
dry-configurable (~> 1.0, >= 1.0.1)
77
dry-initializer (>= 3.1.1)

app/controllers/devise/api/tokens_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
# rubocop:disable Metrics/ClassLength
34
module Devise
45
module Api
56
class TokensController < Devise.api.config.base_controller.constantize
@@ -12,7 +13,7 @@ class TokensController < Devise.api.config.base_controller.constantize
1213
def sign_up
1314
unless Devise.api.config.sign_up.enabled
1415
error_response = Devise::Api::Responses::ErrorResponse.new(request, error: :sign_up_disabled,
15-
resource_class: resource_class)
16+
resource_class: resource_class)
1617

1718
return render json: error_response.body, status: error_response.status
1819
end
@@ -173,3 +174,4 @@ def current_devise_api_refresh_token
173174
end
174175
end
175176
end
177+
# rubocop:enable Metrics/ClassLength

lib/devise/api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Devise
44
module Api
5-
VERSION = '0.1.2'
5+
VERSION = '0.1.3'
66
end
77
end

spec/devise/api/responses/error_response_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@
149149

150150
it 'has a body with an error and error description' do
151151
allow(I18n).to receive(:t)
152-
.with('devise.api.error_response.sign_up_disabled')
153-
.and_return('Sign up is disabled')
152+
.with('devise.api.error_response.sign_up_disabled')
153+
.and_return('Sign up is disabled')
154154

155155
expect(error_response.body).to eq(
156-
error: :sign_up_disabled,
157-
error_description: ['Sign up is disabled']
158-
)
156+
error: :sign_up_disabled,
157+
error_description: ['Sign up is disabled']
158+
)
159159

160160
expect(I18n).to have_received(:t).with('devise.api.error_response.sign_up_disabled')
161161
end

spec/requests/tokens_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@
417417
allow(Devise.api.config.before_refresh).to receive(:call).and_call_original
418418
allow(Devise.api.config.after_successful_refresh).to receive(:call).and_call_original
419419

420-
post refresh_user_tokens_path, headers: authentication_headers_for(user, devise_api_token, :refresh_token), as: :json
420+
post refresh_user_tokens_path, headers: authentication_headers_for(user, devise_api_token, :refresh_token),
421+
as: :json
421422
end
422423

423424
it 'returns http success' do

0 commit comments

Comments
 (0)