Skip to content

Commit

Permalink
Remove Hanami version from Guides URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Oct 17, 2023
1 parent 1e954ee commit 1e2a068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/hanami/reloader/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ def call(*, **)
attr_reader :bundler

def generate_configuration(path)
require "hanami/version"

fs.write path, <<~CODE
# frozen_string_literal: true
group :#{Guardfile.group} do
guard "puma", port: ENV.fetch("#{Hanami::Port::ENV_VAR}", #{Hanami::Port::DEFAULT}) do
# Edit the following regular expression for your needs.
# See: https://guides.hanamirb.org/v#{Hanami::Version.major_minor}/app/code-reloading/
# See: https://guides.hanamirb.org/app/code-reloading/
watch(%r{^(app|config|lib|slices)([\\/][^\\/]+)*.(rb|erb|haml|slim)$}i)
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/hanami/reloader/commands/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
group :server do
guard "puma", port: ENV.fetch("HANAMI_PORT", 2300) do
# Edit the following regular expression for your needs.
# See: https://guides.hanamirb.org/v2.1/app/code-reloading/
# See: https://guides.hanamirb.org/app/code-reloading/
watch(#{matcher})
end
end
Expand Down

0 comments on commit 1e2a068

Please sign in to comment.