diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e2bfa74..943a38a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,11 @@ - Fix form helpers (`passkey_creation_form_for`, `login_with_passkey_button`, `security_key_creation_form_for`, `login_with_security_key_button`) to accept a `resource_name` instead of requiring the `resource` object from the view context. [#114](https://github.com/cedarcode/devise-webauthn/pull/114) [@RenzoMinelli] +## [v0.3.1](https://github.com/cedarcode/devise-webauthn/compare/v0.3.0...v0.3.1/) - 2026-02-10 +### 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 diff --git a/Gemfile.lock b/Gemfile.lock index 14b882a5..11fb9ae8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - devise-webauthn (0.3.0) + devise-webauthn (0.3.1) devise (>= 4.9) webauthn (~> 3.0) diff --git a/lib/devise/webauthn/version.rb b/lib/devise/webauthn/version.rb index c8318daa..3cb4fe34 100644 --- a/lib/devise/webauthn/version.rb +++ b/lib/devise/webauthn/version.rb @@ -2,6 +2,6 @@ module Devise module Webauthn - VERSION = "0.3.0" + VERSION = "0.3.1" end end diff --git a/lib/generators/devise/webauthn/install/install_generator.rb b/lib/generators/devise/webauthn/install/install_generator.rb index 535a8d8f..4ac15881 100644 --- a/lib/generators/devise/webauthn/install/install_generator.rb +++ b/lib/generators/devise/webauthn/install/install_generator.rb @@ -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 diff --git a/lib/generators/devise/webauthn/javascript/javascript_configuration_generator.rb b/lib/generators/devise/webauthn/javascript_configuration/javascript_configuration_generator.rb similarity index 97% rename from lib/generators/devise/webauthn/javascript/javascript_configuration_generator.rb rename to lib/generators/devise/webauthn/javascript_configuration/javascript_configuration_generator.rb index c858e5be..231ade3c 100644 --- a/lib/generators/devise/webauthn/javascript/javascript_configuration_generator.rb +++ b/lib/generators/devise/webauthn/javascript_configuration/javascript_configuration_generator.rb @@ -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" diff --git a/spec/generators/devise/webauthn/install_generator_spec.rb b/spec/generators/devise/webauthn/install_generator_spec.rb index 2d88c239..4902e128 100644 --- a/spec/generators/devise/webauthn/install_generator_spec.rb +++ b/spec/generators/devise/webauthn/install_generator_spec.rb @@ -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 diff --git a/spec/generators/devise/webauthn/javascript_configuration_generator_spec.rb b/spec/generators/devise/webauthn/javascript_configuration_generator_spec.rb index df4de58b..bbace91c 100644 --- a/spec/generators/devise/webauthn/javascript_configuration_generator_spec.rb +++ b/spec/generators/devise/webauthn/javascript_configuration_generator_spec.rb @@ -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