ndr_dev_support 7.3.3 → 7.3.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 326090ab3bd97631ff34098e27fd2ac5bda6c72bc90dc9674d7d33a2620c4674
|
4
|
+
data.tar.gz: da332e6b58df3db660c9a9f83f7749126401476199870048abe87b42fe8d3460
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7899387fcbac802148d2beb3359b9da669ba57fa2e76f26a48c1a90e0d1f4d4ec231a5d018a6d6d8ef3e39fc427e42f2cc86dc39ef2b1d14261efd2a66cfb503
|
7
|
+
data.tar.gz: c45075ad3d39dc1a708751d8fdee5395085b4ad0612cc3dfad2ecb85f2e4ee965ffb990cd88631729f716a53f4c688cff57676d504f55b6eec82da214da4507a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
*no unreleased changes*
|
3
3
|
|
4
|
+
## 7.3.4 / 2025-09-26
|
5
|
+
### Fixed
|
6
|
+
* Capistrano: deploy:preinstall should fix up installed gem permissions
|
7
|
+
* Support Ruby 3.4
|
8
|
+
|
9
|
+
### Added
|
10
|
+
* Capistrano: cleanup bundled gems for old ruby versions.
|
11
|
+
|
4
12
|
## 7.3.3 / 2025-07-31
|
5
13
|
### Fixed
|
6
14
|
* Update rubocop version dependency
|
@@ -97,7 +97,29 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
97
97
|
fi
|
98
98
|
SHELL
|
99
99
|
end
|
100
|
+
|
101
|
+
desc <<~DESC
|
102
|
+
Cleanup bundled gems for old ruby versions.
|
103
|
+
|
104
|
+
Deletes shared bundle files that no longer match any installed releases.
|
105
|
+
|
106
|
+
This interacts reasonably with deploy:preinstall:
|
107
|
+
When deploy:preinstall installs new .rbenv and new shared bundled gems, this
|
108
|
+
will not delete them. If an older ruby version is then deployed, this removes
|
109
|
+
the new version's installed bundle, but leaves the .rbenv installation.
|
110
|
+
DESC
|
111
|
+
task :cleanup_unused_bundles do
|
112
|
+
# For ruby X.Y.Z, bundled gems are in .../shared/bundle/ruby/X.Y.0
|
113
|
+
# Generates e.g.
|
114
|
+
# find_options="-not ( -name DUMMY -or -name 3.1.0 -or -name 3.2.0 )"
|
115
|
+
# and then removes e.g. shared/bundle/ruby/3.0.0
|
116
|
+
run "find_options=\"-not ( -name DUMMY `grep -ho '^[0-9]*[.][0-9]*' " \
|
117
|
+
"#{releases_path}/*/.ruby-version | sed -e 's/.*/-or -name &.0/'` ) \"; " \
|
118
|
+
"find #{File.join(shared_path, 'bundle/ruby/*')} -maxdepth 0 $find_options " \
|
119
|
+
"-exec echo rm -rf '{}' ';' -exec rm -rf '{}' ';'"
|
120
|
+
end
|
100
121
|
end
|
101
122
|
|
102
123
|
before 'bundle:install', 'ndr_dev_support:install_ruby'
|
124
|
+
after 'deploy:finalize_update', 'ndr_dev_support:cleanup_unused_bundles'
|
103
125
|
end
|
@@ -164,8 +164,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
164
164
|
# already there:
|
165
165
|
run "rm -rf #{File.join(release_path, path)} && ln -s #{File.join(shared_path, path)} #{File.join(release_path, path)}"
|
166
166
|
end
|
167
|
+
end
|
168
|
+
|
169
|
+
after 'deploy:finalize_update', 'ndr_dev_support:filesystem_tweaks'
|
167
170
|
|
168
|
-
|
171
|
+
desc 'Make the shared/bundle/ directory writeable by deployers'
|
172
|
+
task :bundle_permissions do
|
169
173
|
# We already set group permissions correctly in the bundle directory, but some gem installs
|
170
174
|
# ignore these permissions, so we need to fix them up.
|
171
175
|
# Set deployer group for everything created by this user
|
@@ -178,7 +182,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
178
182
|
'-not -perm -0064 -print0 |xargs -r0 chmod g+rw,o+r'
|
179
183
|
end
|
180
184
|
|
181
|
-
|
185
|
+
# Ensure we have fixed the bundle permissions before potentially aborting
|
186
|
+
before 'ndr_dev_support:check_preinstall', 'ndr_dev_support:bundle_permissions'
|
182
187
|
end
|
183
188
|
end
|
184
189
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndr_dev_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.3.
|
4
|
+
version: 7.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NCRS Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|