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
2 changes: 1 addition & 1 deletion lib/hanami/cli/generators/app/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def file_name(name)
ROM::SQL.migration do
# Add your migration here.
#
# See https://guides.hanamirb.org/v2.3/database/migrations/ for details.
# See https://hanakai.org/learn/hanami/database/migrations/ for details.
change do
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/hanami/cli/generators/app/slice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def call(app, slice, url, force: false, **opts) # rubocop:disable Metrics/AbcSiz
base_path: directory,
parent_class_name: "#{Hanami.app.namespace}::View::Context",
auto_register: false,
body: ["# Define your view context here. See https://guides.hanamirb.org/views/context/ for details."]
body: ["# Define your view context here. See https://hanakai.org/learn/hanami/views/context/ for details."] # rubocop:disable Layout/LineLength
).create(force:)

fs.create(
Expand Down
2 changes: 1 addition & 1 deletion lib/hanami/cli/generators/gem/app/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as assets from "hanami-assets";
// Assets are managed by esbuild (https://esbuild.github.io), and can be
// customized below.
//
// Learn more at https://guides.hanamirb.org/assets/customization/.
// Learn more at https://hanakai.org/learn/hanami/assets/customization/.

await assets.run({
esbuildOptionsFn: (args, esbuildOptions) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/hanami/cli/generators/gem/app/context.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module <%= camelized_app_name %>
module Views
class Context < Hanami::View::Context
# Define your view context here. See https://guides.hanamirb.org/views/context/ for details.
# Define your view context here. See https://hanakai.org/learn/hanami/views/context/ for details.
end
end
end
2 changes: 1 addition & 1 deletion lib/hanami/cli/generators/gem/app/readme.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
## Useful links

- [Hanami](http://hanamirb.org)
- [Hanami guides](https://guides.hanamirb.org/)
- [Hanami guides](https://hanakai.org/learn#hanami)
2 changes: 1 addition & 1 deletion lib/hanami/cli/generators/gem/app/routes.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module <%= camelized_app_name %>
class Routes < Hanami::Routes
# Add your routes here. See https://guides.hanamirb.org/routing/overview/ for details.
# Add your routes here. See https://hanakai.org/learn/hanami/routing/ for details.
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def output
ROM::SQL.migration do
# Add your migration here.
#
# See https://guides.hanamirb.org/v2.3/database/migrations/ for details.
# See https://hanakai.org/learn/hanami/database/migrations/ for details.
change do
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/hanami/cli/commands/app/generate/slice_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ module Helpers
module Admin
module Views
class Context < Test::View::Context
# Define your view context here. See https://guides.hanamirb.org/views/context/ for details.
# Define your view context here. See https://hanakai.org/learn/hanami/views/context/ for details.
end
end
end
Expand Down
16 changes: 8 additions & 8 deletions spec/unit/hanami/cli/commands/gem/new_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
## Useful links

- [Hanami](http://hanamirb.org)
- [Hanami guides](https://guides.hanamirb.org/)
- [Hanami guides](https://hanakai.org/learn#hanami)
EXPECTED
expect(fs.read("README.md")).to eq(readme)
expect(output).to include("Created README.md")
Expand Down Expand Up @@ -307,7 +307,7 @@ class App < Hanami::App
// Assets are managed by esbuild (https://esbuild.github.io), and can be
// customized below.
//
// Learn more at https://guides.hanamirb.org/assets/customization/.
// Learn more at https://hanakai.org/learn/hanami/assets/customization/.

await assets.run({
esbuildOptionsFn: (args, esbuildOptions) => {
Expand Down Expand Up @@ -344,7 +344,7 @@ class Settings < Hanami::Settings

module Bookshelf
class Routes < Hanami::Routes
# Add your routes here. See https://guides.hanamirb.org/routing/overview/ for details.
# Add your routes here. See https://hanakai.org/learn/hanami/routing/ for details.
end
end
EXPECTED
Expand Down Expand Up @@ -715,7 +715,7 @@ class Operation < Dry::Operation
## Useful links

- [Hanami](http://hanamirb.org)
- [Hanami guides](https://guides.hanamirb.org/)
- [Hanami guides](https://hanakai.org/learn#hanami)
EXPECTED
expect(fs.read("README.md")).to eq(readme)
expect(output).to include("Created README.md")
Expand Down Expand Up @@ -876,7 +876,7 @@ class App < Hanami::App
// Assets are managed by esbuild (https://esbuild.github.io), and can be
// customized below.
//
// Learn more at https://guides.hanamirb.org/assets/customization/.
// Learn more at https://hanakai.org/learn/hanami/assets/customization/.

await assets.run({
esbuildOptionsFn: (args, esbuildOptions) => {
Expand Down Expand Up @@ -913,7 +913,7 @@ class Settings < Hanami::Settings

module Bookshelf
class Routes < Hanami::Routes
# Add your routes here. See https://guides.hanamirb.org/routing/overview/ for details.
# Add your routes here. See https://hanakai.org/learn/hanami/routing/ for details.
end
end
EXPECTED
Expand Down Expand Up @@ -1035,7 +1035,7 @@ module Helpers
module #{inflector.camelize(app)}
module Views
class Context < Hanami::View::Context
# Define your view context here. See https://guides.hanamirb.org/views/context/ for details.
# Define your view context here. See https://hanakai.org/learn/hanami/views/context/ for details.
end
end
end
Expand Down Expand Up @@ -1374,7 +1374,7 @@ module Types
## Useful links

- [Hanami](http://hanamirb.org)
- [Hanami guides](https://guides.hanamirb.org/)
- [Hanami guides](https://hanakai.org/learn#hanami)
EXPECTED
expect(fs.read("README.md")).to eq(readme)

Expand Down
Loading