capistrano-solid_queue 0.1.2 → 0.1.3

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: c04a8eebc3b4b5598a9eac1e362a1196778b43229f42d1f7734492794fd57207
4
- data.tar.gz: b9dabd1aee6c8cee17eff11aab13a3f2324906bd394ea74cb406d93aca41d32a
3
+ metadata.gz: 2905775672a64a7e909bf749cf7fec4496cc5a26be4a22060b9a32520842af57
4
+ data.tar.gz: a2f839777ed810896d596d2365499535c98b62a33cb99484e1311bb285cb9bdf
5
5
  SHA512:
6
- metadata.gz: 9fefa8f089252a38a0612cd7579a82245b17ae739ef3c7c358041945e68e661f219e7b939e5854e5145727da5f6afd5d6a5b4cde18f179073383f3eea2b4e660
7
- data.tar.gz: 48b8ab02509a1e15855f0c1017d5adf2ebb2b68cdab91c213058bfa96a80f519e027d3505e271a5ee7263c47a2dca6b932736bae6f74772e5813477e3f0f6c32
6
+ metadata.gz: ea28c7a078a31b4aaa77e98ba21fa4294dbe5fcd7381d6d87d4665ca4a72b684bc056ccb33640854eb5de98bea870d8320db3bd492d00633933e9e63076642e1
7
+ data.tar.gz: 4102571e45a97c1a2204a0960558239379bd0dd0b47c342d0208febd8d1d7a10d633c2122248bbc870f8bb6559bef3e05511cb847547d4449ffd51fd64a2bb6c
data/CHANGELOG.md CHANGED
@@ -1,13 +1,40 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
+
1
7
  ## [Unreleased]
2
8
 
9
+ ## [0.1.3] - 2026-11-09
10
+
11
+ ### Fixed
12
+
13
+ - `RAILS_ENV` of the systemd service comes from `:rails_env`, falling back to `:stage` ([#9](https://github.com/codeur/capistrano-solid_queue/pull/9)). Run `cap <stage> solid_queue:install` again to update an installed service.
14
+ - `default_env` values in the systemd service are expanded by the server shell, as in Capistrano commands, so `RBENV_ROOT=$HOME/.rbenv` set by capistrano-rbenv becomes an absolute path ([#12](https://github.com/codeur/capistrano-solid_queue/pull/12)). Run `cap <stage> solid_queue:install` again to update an installed service.
15
+ - `solid_queue:quiet` no longer aborts the deploy when `systemctl` fails, as before 0.1.1 ([#10](https://github.com/codeur/capistrano-solid_queue/pull/10)).
16
+ - The README example with `load_hooks: false` installs `Capistrano::SolidQueue::Systemd` ([#11](https://github.com/codeur/capistrano-solid_queue/pull/11)).
17
+
3
18
  ## [0.1.2] - 2025-06-12
4
19
 
5
- - Quiet task only runs on :solid_queue_role [#3](https://github.com/codeur/capistrano-solid_queue/pull/5) by [@bashcoder](https://github.com/bashcoder)
20
+ ### Fixed
21
+
22
+ - Quiet task only runs on `:solid_queue_role` ([#5](https://github.com/codeur/capistrano-solid_queue/pull/5)) by [@bashcoder](https://github.com/bashcoder).
6
23
 
7
24
  ## [0.1.1] - 2025-03-27
8
25
 
9
- - Fix system user [#2](https://github.com/codeur/capistrano-solid_queue/pull/2) by [@lubosch](https://github.com/lubosch)
26
+ ### Fixed
27
+
28
+ - System user mode, with `set :solid_queue_systemctl_user, :system` ([#2](https://github.com/codeur/capistrano-solid_queue/pull/2)) by [@lubosch](https://github.com/lubosch).
10
29
 
11
30
  ## [0.1.0] - 2024-04-22
12
31
 
13
- - Initial release
32
+ ### Added
33
+
34
+ - Initial release.
35
+
36
+ [unreleased]: https://github.com/codeur/capistrano-solid_queue/compare/v0.1.3...HEAD
37
+ [0.1.3]: https://github.com/codeur/capistrano-solid_queue/compare/v0.1.2...v0.1.3
38
+ [0.1.2]: https://github.com/codeur/capistrano-solid_queue/compare/v0.1.1...v0.1.2
39
+ [0.1.1]: https://github.com/codeur/capistrano-solid_queue/compare/v0.1.0...v0.1.1
40
+ [0.1.0]: https://github.com/codeur/capistrano-solid_queue/releases/tag/v0.1.0
data/README.md CHANGED
@@ -42,7 +42,7 @@ To prevent loading [the hooks](lib/capistrano/solid_queue.rb) of the plugin, add
42
42
  ```ruby
43
43
  # Capfile
44
44
 
45
- install_plugin Capistrano::SolidQueue, load_hooks: false
45
+ install_plugin Capistrano::SolidQueue::Systemd, load_hooks: false
46
46
  ```
47
47
 
48
48
  Then run once
data/Rakefile CHANGED
@@ -3,7 +3,11 @@
3
3
  require "bundler/gem_tasks"
4
4
  require "minitest/test_task"
5
5
 
6
- Minitest::TestTask.create
6
+ Minitest::TestTask.create do |t|
7
+ # Capistrano 3.20 emits circular require warnings under Ruby 3.4 with -w.
8
+ # Keep test output clean until upstream fixes the warning path.
9
+ t.warning = false
10
+ end
7
11
 
8
12
  require "standard/rake"
9
13
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Capistrano
4
4
  module SolidQueue
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
@@ -25,12 +25,12 @@ module Capistrano
25
25
  end
26
26
 
27
27
  def execute_systemd(*args, raise_on_non_zero_exit: true)
28
- sudo_if_needed(*systemd_command(*args), raise_on_non_zero_exit: true)
28
+ sudo_if_needed(*systemd_command(*args), raise_on_non_zero_exit: raise_on_non_zero_exit)
29
29
  end
30
30
 
31
31
  def sudo_if_needed(*command, raise_on_non_zero_exit: true)
32
32
  if fetch(:solid_queue_systemctl_user) == :system
33
- backend.sudo command.map(&:to_s).join(" ")
33
+ backend.sudo command.join(" "), raise_on_non_zero_exit: raise_on_non_zero_exit
34
34
  else
35
35
  backend.execute(*command, raise_on_non_zero_exit: raise_on_non_zero_exit)
36
36
  end
@@ -4,9 +4,9 @@ After=syslog.target network.target
4
4
 
5
5
  [Service]
6
6
  Type=simple
7
- Environment='RAILS_ENV=<%= fetch(:stage) %>'
7
+ Environment='RAILS_ENV=<%= fetch(:rails_env, fetch(:stage)) %>'
8
8
  <% fetch(:default_env).reject{ |k, _| k.to_s == 'path' }.each do |variable, value| -%>
9
- Environment='<%= variable.to_s.upcase %>=<%= value.to_s %>'
9
+ Environment='<%= variable.to_s.upcase %>=<%= capture(:printf, "%s", %("#{value.to_s.gsub('"', '\"')}")) %>'
10
10
  <% end -%>
11
11
  WorkingDirectory=<%= current_path %>
12
12
  ExecStart=<%= capture(:echo, SSHKit.config.command_map[:bundle]).strip %> exec rake solid_queue:start
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-solid_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice TEXIER
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-06-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: capistrano
@@ -50,7 +49,6 @@ metadata:
50
49
  homepage_uri: https://github.com/codeur/capistrano-solid_queue
51
50
  source_code_uri: https://github.com/codeur/capistrano-solid_queue
52
51
  changelog_uri: https://github.com/codeur/capistrano-solid_queue/releases
53
- post_install_message:
54
52
  rdoc_options: []
55
53
  require_paths:
56
54
  - lib
@@ -65,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
63
  - !ruby/object:Gem::Version
66
64
  version: '0'
67
65
  requirements: []
68
- rubygems_version: 3.5.22
69
- signing_key:
66
+ rubygems_version: 4.0.16
70
67
  specification_version: 4
71
68
  summary: Adds support for SolidQueue to Capistrano 3.x
72
69
  test_files: []