capistrano3_featureset 1.1.0 → 1.2.1

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: 7c9172c1524531a7246d2517f48daf9f6b409681914ddf539a44a6db35c81b0d
4
- data.tar.gz: 5876c45aaf6bcbb5837866a60c52d982c61dc1fc0cbf97064fad34e16dd57b05
3
+ metadata.gz: 1bdd639b717389ed7c32e5331efc773f4827a99f4d1fa4b0dbdfefbf7c53f9f4
4
+ data.tar.gz: 88e82a2f84f7f0a7e76205828e1c4691cd2a0170d954158a2e3a8fc25498e807
5
5
  SHA512:
6
- metadata.gz: 9d12b43d848be73bcf6fef029fd6e928387ea50eeaf6339f43b278efa6c5aa3d05e7e7cb292736f24306389de271c4b32f579fd70433e24310d12c74ff319343
7
- data.tar.gz: 0d5b5bdf4ae553d4d6f986dc92d0e0218172982ad827000e3986b8328c45f17a10d44c42e71ab4b477f69732cba5a94d3abd419997da2f4603d68509c2013e76
6
+ metadata.gz: 03c98c5c66a52beb473231e17620fb4f0d5c6e20aa193854835e39afa969d590d996ae1930e6b3b99366936f50016e63f9b8757511e7a3168cf7b33b14f6b774
7
+ data.tar.gz: 4edcd23b6b326e99c3d36ca59520dfb00abd43c9f6ec78585d4403315273d95646bfc7089d74bacd61b8a63c8f26374210c6f14d802cc2c1d0e2c2c8c595d01c
data/README.md CHANGED
@@ -38,6 +38,7 @@ set :deploy_to, '/srv/application-name'
38
38
  set :ruby_version, '4.0.1'
39
39
 
40
40
  # set :version_manager, 'rvm' # default is mise
41
+ # set :mise_path, '~/.local/bin/mise' # default is /usr/bin/mise (deb package)
41
42
  # set :enable_delayed_job, false # default is false
42
43
  # set :enable_solid_queue, false # default is false
43
44
  # set :enable_whenever, false # default is false
@@ -49,6 +50,21 @@ set :ruby_version, '4.0.1'
49
50
 
50
51
  # Changelog
51
52
 
53
+ ## [1.2.1] - 2026-11-19
54
+
55
+ ### Fixed
56
+
57
+ * `version_manager:check` raised a `NameError` (`uninitialized constant Capistrano::Error`) instead of
58
+ the intended error message. It now raises `Capistrano3Featureset::Error`.
59
+
60
+ ## [1.2.0] - 2026-10-05
61
+
62
+ ### Changed
63
+
64
+ * `mise_path` is now a regular default setting and can be overridden per deployment.
65
+ * The default `mise_path` is now `/usr/bin/mise` (Debian package) instead of `~/.local/bin/mise`.
66
+ Set `set :mise_path, '~/.local/bin/mise'` to keep the previous behaviour.
67
+
52
68
  ## [1.1.0] - 2026-09-16
53
69
 
54
70
  ### Added
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'capistrano3_featureset'
6
- spec.version = '1.1.0'
6
+ spec.version = '1.2.1'
7
7
  spec.authors = ['Georg Limbach', 'Tom Armitage', 'Stefan Daschek']
8
8
  spec.email = ['georg.limbach@lichtbit.com']
9
9
 
@@ -1,5 +1,6 @@
1
1
  # Load DSL and set up stages
2
2
  require 'capistrano/setup'
3
+ require 'capistrano3_featureset'
3
4
 
4
5
  # Include default deployment tasks
5
6
  require 'capistrano/deploy'
@@ -25,6 +26,8 @@ namespace :load do
25
26
  set :rsync_options, "-azc --delete --delete-excluded --exclude #{rsync_excludes.join(' --exclude ')}"
26
27
 
27
28
  set :version_manager, 'mise'
29
+ set :mise_path, "/usr/bin/mise"
30
+
28
31
  set :enable_delayed_job, false
29
32
  set :enable_solid_queue, false
30
33
  set :enable_whenever, false
@@ -7,7 +7,7 @@ namespace :version_manager do
7
7
  on roles(fetch(:ruby_roles, :all)) do
8
8
  if fetch(:version_manager) == 'mise'
9
9
 
10
- # chcek ruby version
10
+ # check ruby version
11
11
  ruby_version = fetch(:ruby_version)
12
12
  installed_rubies = capture(:mise, 'list', 'ruby', '--installed')
13
13
  unless installed_rubies.include?(ruby_version)
@@ -15,7 +15,7 @@ namespace :version_manager do
15
15
  error "Installed Rubies:"
16
16
  error installed_rubies
17
17
  error "Install with: mise install ruby@#{ruby_version}"
18
- raise Capistrano::Error, "Required Ruby #{ruby_version} is not installed"
18
+ raise Capistrano3Featureset::Error, "Required Ruby #{ruby_version} is not installed"
19
19
  end
20
20
 
21
21
  # check env file
@@ -33,11 +33,11 @@ namespace :version_manager do
33
33
  error "Environment file contains variables using 'export':"
34
34
  error exported_vars
35
35
  error "Please use plain assignments like: FOO=bar"
36
- raise Capistrano::Error, "Environment variables must not use 'export'"
36
+ raise Capistrano3Featureset::Error, "Environment variables must not use 'export'"
37
37
  end
38
38
  else
39
39
  error "Environment file not found: #{env_file}"
40
- raise Capistrano::Error, "Required environment file is missing"
40
+ raise Capistrano3Featureset::Error, "Required environment file is missing"
41
41
  end
42
42
  end
43
43
 
@@ -61,8 +61,6 @@ namespace :version_manager do
61
61
  SSHKit.config.default_env.merge!(path: "/home/#{fetch(:application)}/.local/bin:$PATH")
62
62
  SSHKit.config.default_env.merge!(mise_config_file: "/home/#{fetch(:application)}/#{fetch(:application)}.mise.toml")
63
63
 
64
- set :mise_path, "~/.local/bin/mise"
65
-
66
64
  SSHKit.config.command_map[:mise] = fetch(:mise_path)
67
65
 
68
66
  mise_prefix = "#{fetch(:mise_path)} exec ruby@#{fetch(:ruby_version)} --"
@@ -0,0 +1,3 @@
1
+ module Capistrano3Featureset
2
+ class Error < StandardError; end
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3_featureset
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Limbach
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2026-09-16 00:00:00.000000000 Z
13
+ date: 2026-11-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano