hanami-reloader 2.3.0.beta2 → 3.0.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0565ffd3a8881bd43fafef138405cca40aadb3f41ab9f52b7623bb4ef3bba310
4
- data.tar.gz: 46f44946239a3119e562cd21c1ad253b2eaacc94018b72de2a4e33a7b763e1c8
3
+ metadata.gz: 913be5a25eb98885b9f4dcac5eec20c0123a811d837dfc7f43e9243305c11257
4
+ data.tar.gz: a9333303ff71bf34b956a48f7b0d1b0bb017398594929fafcb9fbe1b5d56bc69
5
5
  SHA512:
6
- metadata.gz: 207deb88b28b7bf0635e63807383dbc486301fcdae233ca92423fe87a3d5931f9ffc3171d7b1c584bf3866bce89e0239c431a6d3513080e8b768c852d5b1aedd
7
- data.tar.gz: 3e4c6fce3d4cb571f8baccdb205cd9b14b711322e4acc089147ee5ba8aa4c28f39438dd98f973637747e144cc92fc9c2dad1076b1d1fced52c190d6ae1524fb4
6
+ metadata.gz: dc5dd96a81bd8860b9644717c56ce883d6b1268432936bbc29d88239c748b89b4ae5e5a92414cb637f3d5395f783dc0bc1ca4c26e38ec2c428f53468b3366949
7
+ data.tar.gz: c2330ec9f3a90a8ab3b0f9e3bc0d705072cf789230bb1f7548196e4b67dbe29b79da46ec5d6be735b8d7ca1fb1d53fe1bab53ed362b5d94f561104071126d3a5
data/CHANGELOG.md CHANGED
@@ -1,137 +1,218 @@
1
- # Hanami::Reloader
1
+ # Changelog
2
2
 
3
- Code reloading for Hanami 2
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- ## v2.3.0.beta2 - 2025-10-17
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ ### Changed
13
+
14
+ ### Deprecated
15
+
16
+ ### Removed
17
+
18
+ ### Fixed
19
+
20
+ ### Security
21
+
22
+ [Unreleased]: https://github.com/hanami/reloader/compare/v3.0.0.rc1...HEAD
23
+
24
+ ## [3.0.0.rc1] - 2026-06-16
6
25
 
7
26
  ### Changed
8
27
 
9
- - [Andrea Fomera] Pass HANAMI_ENV from ENV to guard-puma in generated `Guardfile`. (#33)
10
- - Drop support for Ruby 3.1
28
+ - Require Ruby 3.3 or newer.
29
+
30
+ [3.0.0.rc1]: https://github.com/hanami/reloader/compare/v2.3.0...v3.0.0.rc1
31
+
32
+ ## [2.3.0] - 2025-11-12
33
+
34
+ ### Changed
35
+
36
+ - Skip reloading and print a warning if used in production env. (@krzykamil in #32)
37
+
38
+ [2.3.0]: https://github.com/hanami/reloader/compare/v2.3.0.beta2...v2.3.0
39
+
40
+ ## [2.3.0.beta2] - 2025-10-17
41
+
42
+ ### Changed
43
+
44
+ - Pass HANAMI_ENV from ENV to guard-puma in generated `Guardfile`. (@afomera in #33)
45
+ - Drop support for Ruby 3.1.
46
+
47
+ [2.3.0.beta2]: https://github.com/hanami/reloader/compare/v2.3.0.beta1...v2.3.0.beta2
11
48
 
12
- ## v2.3.0.beta1 - 2025-10-03
49
+ ## [2.3.0.beta1] - 2025-10-03
13
50
 
14
- ## v2.2.0 - 2024-11-05
51
+ [2.3.0.beta1]: https://github.com/hanami/reloader/compare/v2.2.0...v2.3.0.beta1
52
+
53
+ ## [2.2.0] - 2024-11-05
15
54
 
16
55
  ### Added
17
56
 
18
- - [Tim Riley] Depend on specific minimum guard and guard-puma versions via gemspec. This ensures that certain bundle gem deprecation warnings do not show when running `hanami server`. (#30)
57
+ - Depend on specific minimum guard and guard-puma versions via gemspec. This ensures that certain bundle gem deprecation warnings do not show when running `hanami server`. (@timriley in #30)
58
+
59
+ [2.2.0]: https://github.com/hanami/reloader/compare/v2.2.0.rc1...v2.2.0
60
+
61
+ ## [2.2.0.rc1] - 2024-10-29
19
62
 
20
- ## v2.2.0.rc1 - 2024-10-29
63
+ [2.2.0.rc1]: https://github.com/hanami/reloader/compare/v2.2.0.beta2...v2.2.0.rc1
21
64
 
22
- ## v2.2.0.beta2 - 2024-07-16
65
+ ## [2.2.0.beta2] - 2024-07-16
23
66
 
24
- ## v2.2.0.beta1 - 2024-07-16
67
+ [2.2.0.beta2]: https://github.com/hanami/reloader/compare/v2.2.0.beta1...v2.2.0.beta2
68
+
69
+ ## [2.2.0.beta1] - 2024-07-16
25
70
 
26
71
  ### Changed
27
72
 
28
- - Drop support for Ruby 3.0
73
+ - Drop support for Ruby 3.0.
74
+
75
+ [2.2.0.beta1]: https://github.com/hanami/reloader/compare/v2.1.0...v2.2.0.beta1
76
+
77
+ ## [2.1.0] - 2024-02-27
29
78
 
30
- ## v2.1.0 - 2024-02-27
79
+ [2.1.0]: https://github.com/hanami/reloader/compare/v2.1.0.rc3...v2.1.0
31
80
 
32
- ## v2.1.0.rc3 - 2024-02-16
81
+ ## [2.1.0.rc3] - 2024-02-16
33
82
 
34
- ## v2.1.0.rc2 - 2023-11-08
83
+ [2.1.0.rc3]: https://github.com/hanami/reloader/compare/v2.1.0.rc2...v2.1.0.rc3
35
84
 
36
- ## v2.1.0.rc1 - 2023-11-02
85
+ ## [2.1.0.rc2] - 2023-11-08
86
+
87
+ [2.1.0.rc2]: https://github.com/hanami/reloader/compare/v2.1.0.rc1...v2.1.0.rc2
88
+
89
+ ## [2.1.0.rc1] - 2023-11-02
37
90
 
38
91
  ### Fixed
39
92
 
40
- - [Luca Guidi] Ensure to reload app when actions, views, and templates, are touched.
41
- - [Luca Guidi] Fixed incorrect regular expression in `Guardfile`
93
+ - Ensure to reload app when actions, views, and templates, are touched. (@jodosha)
94
+ - Fixed incorrect regular expression in `Guardfile`. (@jodosha)
95
+
96
+ [2.1.0.rc1]: https://github.com/hanami/reloader/compare/v2.1.0.beta2...v2.1.0.rc1
42
97
 
43
- ## v2.1.0.beta2 - 2023-10-04
98
+ ## [2.1.0.beta2] - 2023-10-04
44
99
 
45
100
  ### Added
46
101
 
47
- - [Luca Guidi] When running `hanami new`, generate `Guardfile` that excludes static assets from triggering an app reload
102
+ - When running `hanami new`, generate `Guardfile` that excludes static assets from triggering an app reload. (@jodosha)
103
+
104
+ [2.1.0.beta2]: https://github.com/hanami/reloader/compare/v2.1.0.beta1...v2.1.0.beta2
105
+
106
+ ## [2.1.0.beta1] - 2023-06-29
48
107
 
49
- ## v2.1.0.beta1 - 2023-06-29
108
+ [2.1.0.beta1]: https://github.com/hanami/reloader/compare/v2.0.2...v2.1.0.beta1
50
109
 
51
- ## v2.0.2 - 2022-12-25
110
+ ## [2.0.2] - 2022-12-25
52
111
 
53
112
  ### Added
54
113
 
55
- - [Luca Guidi] Official support for Ruby 3.2
114
+ - Official support for Ruby 3.2. (@jodosha)
56
115
 
57
- ## v2.0.1 - 2022-12-06
116
+ [2.0.2]: https://github.com/hanami/reloader/compare/v2.0.1...v2.0.2
117
+
118
+ ## [2.0.1] - 2022-12-06
58
119
 
59
120
  ### Fixed
60
121
 
61
- - [Luca Guidi] Ensure `hanami server` to respect HTTP port used in `.env` or the value given as CLI argument (`--port`)
122
+ - Ensure `hanami server` to respect HTTP port used in `.env` or the value given as CLI argument (`--port`). (@jodosha)
123
+
124
+ [2.0.1]: https://github.com/hanami/reloader/compare/v2.0.0...v2.0.1
62
125
 
63
- ## v2.0.0 - 2022-11-22
126
+ ## [2.0.0] - 2022-11-22
64
127
 
65
128
  ### Added
66
129
 
67
- - [Tim Riley] Use Zeitwerk to autoload the gem
68
- - [Luca Guidi] Generate new apps by requiring `guard-puma` `~> 0.8`
69
- - [Tim Riley] Run bundle install after modifying `Gemfile`
130
+ - Use Zeitwerk to autoload the gem. (@timriley)
131
+ - Generate new apps by requiring `guard-puma` `~> 0.8`. (@jodosha)
132
+ - Run bundle install after modifying `Gemfile`. (@timriley)
70
133
 
71
134
  ### Fixed
72
135
 
73
- - [Luca Guidi] Ensure to use the given HTTP port
136
+ - Ensure to use the given HTTP port. (@jodosha)
137
+
138
+ [2.0.0]: https://github.com/hanami/reloader/compare/v2.0.0.rc1...v2.0.0
74
139
 
75
- ## v2.0.0.rc1 - 2022-11-08
140
+ ## [2.0.0.rc1] - 2022-11-08
76
141
 
77
142
  ### Changed
78
143
 
79
- - [Luca Guidi] Follow `hanami` versioning
144
+ - Follow `hanami` versioning. (@jodosha)
80
145
 
81
- ## v1.0.0.beta4 - 2022-10-24
146
+ [2.0.0.rc1]: https://github.com/hanami/reloader/compare/v1.0.0.beta4...v2.0.0.rc1
147
+
148
+ ## [1.0.0.beta4] - 2022-10-24
82
149
 
83
150
  ### Changed
84
151
 
85
- - [Luca Guidi] Add help message to `hanami server` command (#14)
152
+ - Add help message to `hanami server` command. (@jodosha in #14)
153
+
154
+ [1.0.0.beta4]: https://github.com/hanami/reloader/compare/v1.0.0.beta3...v1.0.0.beta4
86
155
 
87
- ## v1.0.0.beta3 - 2022-09-21
156
+ ## [1.0.0.beta3] - 2022-09-21
88
157
 
89
158
  ### Added
90
159
 
91
- - [Luca Guidi] Support for Hanami 2.0
92
- - [Luca Guidi] Official support for Ruby 3.0 and 3.1
160
+ - Support for Hanami 2.0. (@jodosha)
161
+ - Official support for Ruby 3.0 and 3.1. (@jodosha)
93
162
 
94
163
  ### Changed
95
164
 
96
- - [Luca Guidi] Drop support for Ruby: MRI 2.5, 2.6, and 2.7.
165
+ - Drop support for Ruby: MRI 2.5, 2.6, and 2.7. (@jodosha)
166
+
167
+ [1.0.0.beta3]: https://github.com/hanami/reloader/compare/v1.0.0.alpha1...v1.0.0.beta3
97
168
 
98
- ## v1.0.0.alpha1 - 2019-01-30
169
+ ## [1.0.0.alpha1] - 2019-01-30
99
170
 
100
171
  ### Added
101
172
 
102
- - [Luca Guidi] Added support for `hanami server --no-code-reloading` to skip code reloading.
103
- - [Luca Guidi] Added `hanami server --guardfile` option to specify the path to `Guardfile`. It defaults to `Guardfile` at the root of the project.
104
- - [Luca Guidi] Added support for `hanami generate reloader --puma` to generate Puma specific configuration.
173
+ - Added support for `hanami server --no-code-reloading` to skip code reloading. (@jodosha)
174
+ - Added `hanami server --guardfile` option to specify the path to `Guardfile`. It defaults to `Guardfile` at the root of the project. (@jodosha)
175
+ - Added support for `hanami generate reloader --puma` to generate Puma specific configuration. (@jodosha)
105
176
 
106
177
  ### Changed
107
178
 
108
- - [Luca Guidi] Drop support for Ruby: MRI 2.3, and 2.4.
109
- - [Luca Guidi] `hanami generate reloader` generates `Guardfile` (instead of `.hanami.server.guardfile`), with the Guard `:server` group.
110
- - [Luca Guidi] `hanami server` will look for `Guardfile` at the root of the project instead of `.hanami.server.guardfile`.
179
+ - Drop support for Ruby: MRI 2.3, and 2.4. (@jodosha)
180
+ - `hanami generate reloader` generates `Guardfile` (instead of `.hanami.server.guardfile`), with the Guard `:server` group. (@jodosha)
181
+ - `hanami server` will look for `Guardfile` at the root of the project instead of `.hanami.server.guardfile`. (@jodosha)
111
182
 
112
- ## v0.3.0 - 2020-02-10
183
+ [1.0.0.alpha1]: https://github.com/hanami/reloader/compare/v0.3.0...v1.0.0.alpha1
184
+
185
+ ## [0.3.0] - 2020-02-10
113
186
 
114
187
  ### Added
115
188
 
116
- - [Luca Guidi] Official support for Ruby 2.7.0
117
- - [Luca Guidi] Official support for Ruby 2.6.0
118
- - [Luca Guidi] Support for `bundler` 2.0+
189
+ - Official support for Ruby 2.7.0. (@jodosha)
190
+ - Official support for Ruby 2.6.0. (@jodosha)
191
+ - Support for `bundler` 2.0+. (@jodosha)
192
+
193
+ [0.3.0]: https://github.com/hanami/reloader/compare/v0.2.1...v0.3.0
119
194
 
120
- ## v0.2.1 - 2018-01-23
195
+ ## [0.2.1] - 2018-01-23
121
196
 
122
197
  ### Fixed
123
198
 
124
- - [Luca Guidi] Avoid Guard prompt when shutting down the server
199
+ - Avoid Guard prompt when shutting down the server. (@jodosha)
200
+
201
+ [0.2.1]: https://github.com/hanami/reloader/compare/v0.2.0...v0.2.1
125
202
 
126
- ## v0.2.0 - 2017-11-24
203
+ ## [0.2.0] - 2017-11-24
127
204
 
128
205
  ### Changed
129
206
 
130
- - [Marcello Rocha] Use `.hanami.server.guardfile` instead of `Guardfile` to avoid conflicts with other `guard` plugins.
207
+ - Use `.hanami.server.guardfile` instead of `Guardfile` to avoid conflicts with other `guard` plugins. (@mereghost)
131
208
 
132
- ## v0.1.0 - 2017-11-01
209
+ [0.2.0]: https://github.com/hanami/reloader/compare/v0.1.0...v0.2.0
210
+
211
+ ## [0.1.0] - 2017-11-01
133
212
 
134
213
  ### Added
135
214
 
136
- - [Luca Guidi] Added Hanami command `hanami generate reloader`
137
- - [Luca Guidi] Code reloading based on `guard`
215
+ - Added Hanami command `hanami generate reloader`. (@jodosha)
216
+ - Code reloading based on `guard`. (@jodosha)
217
+
218
+ [0.1.0]: https://github.com/hanami/reloader/releases/tag/v0.1.0
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2026 Hanakai team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,62 +1,22 @@
1
- # Hanami::Reloader
1
+ <!--- This file is synced from hanakai-rb/repo-sync -->
2
2
 
3
- Reloader and testing support for [full-stack Hanami applications](`https://github.com/hanami/hanami`).
3
+ [actions]: https://github.com/hanami/hanami-reloader/actions
4
+ [chat]: https://discord.gg/naQApPAsZB
5
+ [forum]: https://discourse.hanamirb.org
6
+ [rubygem]: https://rubygems.org/gems/hanami-reloader
4
7
 
5
- ## Status
8
+ # Hanami Reloader [![Gem Version](https://badge.fury.io/rb/hanami-reloader.svg)][rubygem] [![CI Status](https://github.com/hanami/hanami-reloader/workflows/CI/badge.svg)][actions]
6
9
 
7
- [![Gem Version](https://badge.fury.io/rb/hanami-reloader.svg)](https://badge.fury.io/rb/hanami-rspec)
8
- [![CI](https://github.com/hanami/reloader/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/hanami/rspec/actions?query=workflow%3Aci+branch%3Amain)
9
- [![Depfu](https://badges.depfu.com/badges/a8545fb67cf32a2c75b6227bc0821027/overview.svg)](https://depfu.com/github/hanami/reloader?project=Bundler)
10
+ [![Forum](https://img.shields.io/badge/Forum-dc360f?logo=discourse&logoColor=white)][forum]
11
+ [![Chat](https://img.shields.io/badge/Chat-717cf8?logo=discord&logoColor=white)][chat]
10
12
 
11
- ## Version
13
+ ## Links
12
14
 
13
- Versioning of this gem follows Reloader.
15
+ - [User documentation](https://hanamirb.org)
16
+ - [API documentation](http://rubydoc.info/gems/hanami-reloader)
14
17
 
15
- ## Contact
16
-
17
- - Home page: http://hanamirb.org
18
- - Mailing List: http://hanamirb.org/mailing-list
19
- - Bugs/Issues: https://github.com/hanami/reloader/issues
20
- - Chat: http://chat.hanamirb.org
21
-
22
-
23
- ## Installation
24
-
25
- **Hanami::Reloader** supports Ruby (MRI) 3.1+
26
-
27
- Add this line to your application's Gemfile:
28
-
29
- ```ruby
30
- group :cli, :development do
31
- gem "hanami-reloader"
32
- end
33
- ```
34
-
35
- And then execute:
36
-
37
- $ bundle install
38
- $ bundle exec hanami setup
39
-
40
- ## Usage
41
-
42
- ## Development
43
-
44
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
-
46
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
-
48
- ## Contributing
49
-
50
- Bug reports and pull requests are welcome on GitHub at https://github.com/hanami/reloader. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/hanami/rspec/blob/main/CODE_OF_CONDUCT.md).
51
18
 
52
19
  ## License
53
20
 
54
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
55
-
56
- ## Code of Conduct
57
-
58
- Everyone interacting in the `Hanami::Reloader` project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hanami/reloader/blob/main/CODE_OF_CONDUCT.md).
59
-
60
- ## Copyright
21
+ See `LICENSE` file.
61
22
 
62
- Copyright © 2014–2024 Hanami Team – Released under MIT License
@@ -1,37 +1,38 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # This file is synced from hanakai-rb/repo-sync. To update it, edit repo-sync.yml.
4
+
3
5
  lib = File.expand_path("lib", __dir__)
4
6
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
7
  require "hanami/reloader/version"
6
8
 
7
9
  Gem::Specification.new do |spec|
8
10
  spec.name = "hanami-reloader"
9
- spec.version = Hanami::Reloader::VERSION
10
- spec.authors = ["Luca Guidi"]
11
- spec.email = ["me@lucaguidi.com"]
12
-
13
- spec.summary = "Hanami reloader"
14
- spec.description = "Code reloading for Hanami"
15
- spec.homepage = "http://hanamirb.org"
11
+ spec.authors = ["Hanakai team"]
12
+ spec.email = ["info@hanakai.org"]
16
13
  spec.license = "MIT"
14
+ spec.version = Hanami::Reloader::VERSION.dup
17
15
 
18
- spec.required_ruby_version = ">= 3.2"
19
-
20
- spec.files = `git ls-files -- lib/* CHANGELOG.md LICENSE.md README.md hanami-reloader.gemspec`.split($INPUT_RECORD_SEPARATOR) # rubocop:disable Layout/LineLength
16
+ spec.summary = "Code reloading for Hanami"
17
+ spec.description = spec.summary
18
+ spec.homepage = "https://hanamirb.org"
19
+ spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "hanami-reloader.gemspec", "lib/**/*"]
21
20
  spec.bindir = "exe"
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.executables = Dir["exe/*"].map { |f| File.basename(f) }
23
22
  spec.require_paths = ["lib"]
24
23
 
25
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
26
- spec.metadata["rubygems_mfa_required"] = "true"
24
+ spec.extra_rdoc_files = ["README.md", "CHANGELOG.md", "LICENSE"]
27
25
 
28
- spec.add_dependency "guard", "~> 2.19"
29
- spec.add_dependency "guard-puma", "~> 0.8"
30
- spec.add_dependency "hanami-cli", "~> 2.3.0.beta2"
31
- spec.add_dependency "zeitwerk", "~> 2.6"
26
+ spec.metadata["changelog_uri"] = "https://github.com/hanami/hanami-reloader/blob/main/CHANGELOG.md"
27
+ spec.metadata["source_code_uri"] = "https://github.com/hanami/hanami-reloader"
28
+ spec.metadata["bug_tracker_uri"] = "https://github.com/hanami/hanami-reloader/issues"
29
+ spec.metadata["funding_uri"] = "https://github.com/sponsors/hanami"
32
30
 
33
- spec.add_development_dependency "bundler", ">= 1.6", "< 3"
34
- spec.add_development_dependency "rake", "~> 13.0"
35
- spec.add_development_dependency "rspec", "~> 3.7"
36
- spec.add_development_dependency "rubocop", "~> 1.11"
31
+ spec.required_ruby_version = ">= 3.3"
32
+
33
+ spec.add_runtime_dependency "guard", "~> 2.19"
34
+ spec.add_runtime_dependency "guard-puma", "~> 0.8"
35
+ spec.add_runtime_dependency "hanami-cli", "~> 3.0.0.rc"
36
+ spec.add_runtime_dependency "zeitwerk", "~> 2.6"
37
37
  end
38
+
@@ -78,6 +78,21 @@ module Hanami
78
78
  def call(**args)
79
79
  code_reloading = args.fetch(:code_reloading)
80
80
 
81
+ if ENV["HANAMI_ENV"] == "production"
82
+ msg = <<~TEXT
83
+ WARNING: You are running `hanami server` in the production environment via hanami-reloader.
84
+
85
+ Code reloading is disabled, but `hanami server` and hanami-reloader are intended to be used in
86
+ development only.
87
+
88
+ For production, start your web server directly, e.g. `bundle exec puma -C config/puma.rb`.
89
+ TEXT
90
+
91
+ err.puts msg
92
+
93
+ return super
94
+ end
95
+
81
96
  if code_reloading
82
97
  guard_puma_env_vars!(**args)
83
98
  exec "bundle exec guard #{guard_puma_options(**args)}"
@@ -2,8 +2,7 @@
2
2
 
3
3
  module Hanami
4
4
  module Reloader
5
- # @since 0.1.0
6
5
  # @api public
7
- VERSION = "2.3.0.beta2"
6
+ VERSION = "3.0.0.rc1"
8
7
  end
9
8
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-reloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.beta2
4
+ version: 3.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
- - Luca Guidi
7
+ - Hanakai team
8
8
  bindir: exe
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.3.0.beta2
46
+ version: 3.0.0.rc
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 2.3.0.beta2
53
+ version: 3.0.0.rc
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: zeitwerk
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -65,89 +65,32 @@ dependencies:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
67
  version: '2.6'
68
- - !ruby/object:Gem::Dependency
69
- name: bundler
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: '1.6'
75
- - - "<"
76
- - !ruby/object:Gem::Version
77
- version: '3'
78
- type: :development
79
- prerelease: false
80
- version_requirements: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- version: '1.6'
85
- - - "<"
86
- - !ruby/object:Gem::Version
87
- version: '3'
88
- - !ruby/object:Gem::Dependency
89
- name: rake
90
- requirement: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '13.0'
95
- type: :development
96
- prerelease: false
97
- version_requirements: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '13.0'
102
- - !ruby/object:Gem::Dependency
103
- name: rspec
104
- requirement: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '3.7'
109
- type: :development
110
- prerelease: false
111
- version_requirements: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: '3.7'
116
- - !ruby/object:Gem::Dependency
117
- name: rubocop
118
- requirement: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: '1.11'
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '1.11'
130
68
  description: Code reloading for Hanami
131
69
  email:
132
- - me@lucaguidi.com
70
+ - info@hanakai.org
133
71
  executables: []
134
72
  extensions: []
135
- extra_rdoc_files: []
73
+ extra_rdoc_files:
74
+ - CHANGELOG.md
75
+ - LICENSE
76
+ - README.md
136
77
  files:
137
78
  - CHANGELOG.md
138
- - LICENSE.md
79
+ - LICENSE
139
80
  - README.md
140
81
  - hanami-reloader.gemspec
141
82
  - lib/hanami-reloader.rb
142
83
  - lib/hanami/reloader.rb
143
84
  - lib/hanami/reloader/commands.rb
144
85
  - lib/hanami/reloader/version.rb
145
- homepage: http://hanamirb.org
86
+ homepage: https://hanamirb.org
146
87
  licenses:
147
88
  - MIT
148
89
  metadata:
149
- allowed_push_host: https://rubygems.org
150
- rubygems_mfa_required: 'true'
90
+ changelog_uri: https://github.com/hanami/hanami-reloader/blob/main/CHANGELOG.md
91
+ source_code_uri: https://github.com/hanami/hanami-reloader
92
+ bug_tracker_uri: https://github.com/hanami/hanami-reloader/issues
93
+ funding_uri: https://github.com/sponsors/hanami
151
94
  rdoc_options: []
152
95
  require_paths:
153
96
  - lib
@@ -155,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
98
  requirements:
156
99
  - - ">="
157
100
  - !ruby/object:Gem::Version
158
- version: '3.2'
101
+ version: '3.3'
159
102
  required_rubygems_version: !ruby/object:Gem::Requirement
160
103
  requirements:
161
104
  - - ">="
@@ -164,5 +107,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
107
  requirements: []
165
108
  rubygems_version: 3.6.9
166
109
  specification_version: 4
167
- summary: Hanami reloader
110
+ summary: Code reloading for Hanami
168
111
  test_files: []
data/LICENSE.md DELETED
@@ -1,22 +0,0 @@
1
- Copyright © 2014 Luca Guidi
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.