puma-redeploy 0.3.4 → 0.4.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: 9c3ab66d43e2e0873f599be9539d9ed53a3cb9e6903559d14e99e6621948bb1a
4
- data.tar.gz: 16cb84d8f89796065d3447d28af9bbfefd8b9cfc7c628536010d7053402e7ee7
3
+ metadata.gz: d6edbb8fa181e9de57382d871f38d81d2a905cd24a138dd2479f5f4b09a39e04
4
+ data.tar.gz: b39412cc34c1c7c417e73d4b6c938022c187f4d623d8efd45e2c8c066246eee9
5
5
  SHA512:
6
- metadata.gz: 378a9de4c851ed162ef10c3c8fe374cc9a0d54aeca59c09f94059c1371c1bad4915863a9b69f8ad7140f93a35e56efc607c5e0a4701be88859cf24f99093e27d
7
- data.tar.gz: ba10ba1dd934b22cc087b81a1086481c0b08bb33d47c6939c2f06a13eefd9aa0a19fa0767fef1388cc7643be7a34ec88047d787bb62b2edcdb146e9f2b22626d
6
+ metadata.gz: 0523cf96ee296d6e3ca47795f56c5d7de9f513741141d6d8d3447dca2b6323924b17ad437a64536e20ded566dc5948100a7bf1f4e1291ad307b56953d31f47dc
7
+ data.tar.gz: 3ede12f21e140f29d69abe27e4b1bfe16394a8c4aa585cbe0722c8a857a41043e52c3fb431cc2b21711562de28ad2b5267f80a9f4f7d6cb9fba76f19a71dda7a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.4.0
4
+
5
+ **Fixes and enhancements:**
6
+
7
+ - Fix the order when running commands to run after unzip archive. Also bump to 0.4.0
8
+
9
+
3
10
  ## v0.3.4
4
11
 
5
12
  **Features:**
@@ -1,11 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'puma-redeploy'
4
- # require 'puma/plugin'
5
- # require 'puma/redeploy/dsl'
6
- # require 'puma/redeploy/file_handler'
7
- # require 'puma/redeploy/file_deployer'
8
- # require 'puma/redeploy/deployer_factory'
9
4
  require 'logger'
10
5
 
11
6
  Puma::Plugin.create do
@@ -28,15 +23,14 @@ def monitor_loop(handler, delay, launcher, logger)
28
23
  next unless handler.needs_redeploy?
29
24
 
30
25
  watch_file_data = handler.watch_file_data
31
-
32
26
  archive_file = handler.archive_file(watch_file_data[:archive_location])
33
27
 
34
28
  logger.info "Puma phased_restart begin file=#{handler.watch_file} archive=#{archive_file}"
35
29
 
36
- Puma::Redeploy::CommandRunner.new(commands: watch_file_data[:commands], logger:).run
37
-
38
30
  handler.deploy(source: archive_file)
39
31
 
32
+ Puma::Redeploy::CommandRunner.new(commands: watch_file_data[:commands], logger:).run
33
+
40
34
  launcher.phased_restart
41
35
  end
42
36
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Puma
4
4
  module Redeploy
5
- VERSION = '0.3.4'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma-redeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tbeauvais
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-09 00:00:00.000000000 Z
11
+ date: 2024-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3