hanami-reloader 2.2.0.rc1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e9e2570c993e38119cfc5fad5de16e6ce8e55c370b735c1d5d60c3b67ad200f
4
- data.tar.gz: 2040b8dc64426fa7729d9bdffd3e1d2f07452dd18c61ceb835cb6c59bc03b74b
3
+ metadata.gz: 23c5ea44c64f39c2e1c37e6ad15c88620ff724bc0eb3eeb5a1f5732f0de49688
4
+ data.tar.gz: 8597cdc9f0f4dbb3146a5e1470fd28b58505f8ec9e12b787f269732ca02546fb
5
5
  SHA512:
6
- metadata.gz: fc05212552dd7c368fc80cf1c06cfd1513e4f17e4aa4069fbbf189113c87f2503b18a5e2002d05d3972c78aa62d649bafed58a717a8deb6a8b10467a57c03512
7
- data.tar.gz: e06bdf7d909da2ecd9dd7e9dfb529fbfcb95eb94dfc28b357a2596de176c1933be9e96858bbb71af3616c9c06b056f1904a8aa01d83504ea3130070ce4ae482b
6
+ metadata.gz: 3f913786180a2650820c63fc69e5db4de0277a87e918b1ffabd080df35f6e2215070c10ac3771690bc5c87c5fceb07663c82fdda96ac32c2e16f3493aeb4a3dc
7
+ data.tar.gz: 425b29968044ef985a2af062ad5933355f38a35db693f2f34ae71474624cef1be1ab747d9d81b364176a21550d22749a5e7cc383a6285c22414a03399d3fd308
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Code reloading for Hanami 2
4
4
 
5
+ ## v2.2.0 - 2024-11-05
6
+
7
+ ### Added
8
+
9
+ - [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)
10
+
5
11
  ## v2.2.0.rc1 - 2024-10-29
6
12
 
7
13
  ## v2.2.0.beta2 - 2024-07-16
@@ -25,7 +25,9 @@ Gem::Specification.new do |spec|
25
25
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
26
26
  spec.metadata["rubygems_mfa_required"] = "true"
27
27
 
28
- spec.add_dependency "hanami-cli", "~> 2.2.rc"
28
+ spec.add_dependency "guard", "~> 2.19"
29
+ spec.add_dependency "guard-puma", "~> 0.8"
30
+ spec.add_dependency "hanami-cli", "~> 2.2"
29
31
  spec.add_dependency "zeitwerk", "~> 2.6"
30
32
 
31
33
  spec.add_development_dependency "bundler", ">= 1.6", "< 3"
@@ -31,20 +31,16 @@ module Hanami
31
31
 
32
32
  desc "Generate configuration for code reloading"
33
33
 
34
- def initialize(fs: Dry::Files.new, bundler: CLI::Bundler.new(fs: fs), **args)
35
- super(fs: fs, **args)
36
- @bundler = bundler
34
+ def initialize(fs: Dry::Files.new, **args)
35
+ super
37
36
  end
38
37
 
39
38
  def call(*, **)
40
39
  generate_configuration(Guardfile.default_path)
41
- bundle_gems
42
40
  end
43
41
 
44
42
  private
45
43
 
46
- attr_reader :bundler
47
-
48
44
  def generate_configuration(path)
49
45
  fs.write path, <<~CODE
50
46
  # frozen_string_literal: true
@@ -58,28 +54,6 @@ module Hanami
58
54
  end
59
55
  CODE
60
56
  end
61
-
62
- def bundle_gems
63
- fs.touch("Gemfile")
64
- gemfile = fs.read("Gemfile")
65
-
66
- return if gemfile.include?("guard-puma")
67
-
68
- if gemfile.include?("group :development do")
69
- fs.inject_line_at_block_bottom "Gemfile", "group :development do", <<~CODE
70
- gem "guard-puma"
71
- CODE
72
- else
73
- fs.append "Gemfile", <<~CODE
74
-
75
- group :development do
76
- gem "guard-puma", "~> 0.8"
77
- end
78
- CODE
79
- end
80
-
81
- bundler.install!
82
- end
83
57
  end
84
58
 
85
59
  # Override `hanami server` command
@@ -4,6 +4,6 @@ module Hanami
4
4
  module Reloader
5
5
  # @since 0.1.0
6
6
  # @api public
7
- VERSION = "2.2.0.rc1"
7
+ VERSION = "2.2.0"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-reloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.rc1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: guard
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.19'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.19'
27
+ - !ruby/object:Gem::Dependency
28
+ name: guard-puma
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.8'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.8'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: hanami-cli
15
43
  requirement: !ruby/object:Gem::Requirement
16
44
  requirements:
17
45
  - - "~>"
18
46
  - !ruby/object:Gem::Version
19
- version: 2.2.rc
47
+ version: '2.2'
20
48
  type: :runtime
21
49
  prerelease: false
22
50
  version_requirements: !ruby/object:Gem::Requirement
23
51
  requirements:
24
52
  - - "~>"
25
53
  - !ruby/object:Gem::Version
26
- version: 2.2.rc
54
+ version: '2.2'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: zeitwerk
29
57
  requirement: !ruby/object:Gem::Requirement