Hanami 2.2.0.rc1 is out!

:tada: Hanami 2.2.0.rc1 is out! :tada:

See more details in the announcement post.

You can discuss or share the release via the following (and of course, right here in this forum):

Thank you to this release’s contributors!

We’re still on track to have 2.2.0 out this time next week!

Between now and then, we’d love anything you can do to help test rc1. Let’s make this a solid release :muscle:

4 Likes

I found one issue with hanami-rspec after the upgrade. Bringing it up here for visibility. The rest looks great, thanks for all the effort!

1 Like

Doing a walkthrough of the tutorial, web version, now, and I’m just going to note a couple of things as I’m going. ruby 3.3.5

  • I’m getting ostruct warnings. Nothing breaking, but it’s nice to have a warning free initial install. I’m not sure which gem is actually causing it.
  • The tutorial asks you to install database_cleaner-sequel, but it’s prebaked now
  • the require_relative instruction isn’t required as the generated spec_helper glob includes everything in the support directory already
  • Adding the handling for the books.show 404 causes a generated spec (actions/books/show_spec) to start failing.

the rest of it seems to finish out fine, although I think I might like to suggest that the “build a web page” tutorial at least have a small hint at CSS management, before sending you off to the more in-depth asset guide.

It’s kind of fun seeing ROM’s bones in all the repo management after all this time.

5 Likes

Hey there @cflipse, nice to see you here and thank you so much for giving this a test!

These will be fixed by tomorrow’s 2.2.0 release :slight_smile: Fix is Use gemspec to load json gem with no warnings by timriley · Pull Request #1469 · hanami/hanami · GitHub

Ohh yes, I’d forgotten to update these. Removed!

Great feedback. I added a --skip-tests flag to these generators a few months ago, but forgot to update the guides to use it. Fixed in Update getting started guides for 2.2 by timriley · Pull Request #262 · hanami/guides · GitHub.

Good suggestion! I’ve added this as a contribution idea for the hack day at RubyConf next week: Hanami hack day at RubyConf 2024. If we don’t get any takers there, I’ll open up an issue.

We’re going to bring it to the masses!! :rocket:

This was all fantastic feedback, Chris, thanks again! And maybe I’ll see you at RubyConf next week? :heart:

1 Like

getting the following error:
Unable to load application: NameError: uninitialized constant Hanami::Middleware::BodyParser
when using
config.middleware.use Hanami::Middleware::BodyParser, :form
in app.rb