Skip to content

Fix namespace of js configiration generator#118

Merged
joaquintomas2003 merged 2 commits into0-3-1from
fix-js-generator
Feb 10, 2026
Merged

Fix namespace of js configiration generator#118
joaquintomas2003 merged 2 commits into0-3-1from
fix-js-generator

Conversation

@joaquintomas2003
Copy link
Copy Markdown
Member

@joaquintomas2003 joaquintomas2003 commented Feb 7, 2026

Fix install_generator invoking the wrong namespace.

Issue raised in #117

/home/kevo/.rvm/gems/ruby-3.3.6/gems/thor-1.5.0/lib/thor/invocation.rb:112:in `invoke': Missing Thor class for invoke devise:webauthn:javascript (RuntimeError)
        from /home/kevo/.rvm/gems/ruby-3.3.6/gems/devise-webauthn-0.3.0/lib/generators/devise/webauthn/install/install_generator.rb:30:in `generate_javascript_configuration'

Closes #117

@joaquintomas2003
Copy link
Copy Markdown
Member Author

We should have a test that actually fully runs the generator, to be able to catch these bugs

Copy link
Copy Markdown
Collaborator

@santiagorodriguez96 santiagorodriguez96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update the CHANGELOG?

@santiagorodriguez96
Copy link
Copy Markdown
Collaborator

santiagorodriguez96 commented Feb 9, 2026

Also I think I would merge this into a different branch that only includes this change – something like 0-3-x maybe? – so that we can release this fix in a patch version from it as in master there are a couple of changes that IMO will require a minor version change.

What do you think?

@joaquintomas2003 joaquintomas2003 changed the base branch from master to 0-3-1 February 10, 2026 13:39
Comment thread CHANGELOG.md Outdated

### Fixed

- Fix `install_generator` invoking wrong namespace for `javascript_configuration_generator`. [#118](https://github.com/cedarcode/devise-webauthn/pull/118) [@joaquintomas2003]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: what do you think about

- Fix `install_generator` invoking missing `devise:webauthn:javascript` task

@joaquintomas2003 joaquintomas2003 merged commit 3314591 into 0-3-1 Feb 10, 2026
49 of 50 checks passed
@joaquintomas2003 joaquintomas2003 deleted the fix-js-generator branch February 10, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants