Skip to content
Merged
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixed

- Fix `install_generator` invoking missing `devise:webauthn:javascript` task. [#118](https://github.com/cedarcode/devise-webauthn/pull/118) [@joaquintomas2003]

## [v0.3.0](https://github.com/cedarcode/devise-webauthn/compare/v0.2.2...v0.3.0/) - 2026-01-16

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def generate_webauthn_id_column
end

def generate_javascript_configuration
invoke "devise:webauthn:javascript"
invoke "devise:webauthn:javascript_configuration"
end

def final_message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Devise
module Webauthn
class JavascriptConfigurationGenerator < Rails::Generators::Base
hide!
namespace "devise:webauthn:javascript"

desc "Configure JavaScript loading for devise-webauthn"

Expand Down
2 changes: 1 addition & 1 deletion spec/generators/devise/webauthn/install_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

it "invokes the javascript configuration generator" do
expect(generator).to have_received(:invoke)
.with("devise:webauthn:javascript")
.with("devise:webauthn:javascript_configuration")
end
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require "spec_helper"
require "generators/devise/webauthn/javascript/javascript_configuration_generator"
require "generators/devise/webauthn/javascript_configuration/javascript_configuration_generator"

RSpec.describe Devise::Webauthn::JavascriptConfigurationGenerator, type: :generator do
tests described_class
Expand Down