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: 075d6598048f0b0288649a9ea1c071c33abb11481bdc93dbc7db4cf678ea033c
4
- data.tar.gz: d95c2dc791de40932ccf0720b96e9f6ca252842dbe45cb1b02f6344d3a6bdd79
3
+ metadata.gz: 326090ab3bd97631ff34098e27fd2ac5bda6c72bc90dc9674d7d33a2620c4674
4
+ data.tar.gz: da332e6b58df3db660c9a9f83f7749126401476199870048abe87b42fe8d3460
5
5
  SHA512:
6
- metadata.gz: 6772091bb99f0f1f70c4d36049789244bcf4f1e1e386510c3e9c603a32d43cbc1fbdb3b78a044e4c973623ce4a29601f4987a95a7b4bc7c884879988bc523845
7
- data.tar.gz: 24fcca3b39d2adee7fc8964fd80a404ed60ed6b4a563a06a91ef40c6cae3f0cb4945e8be9f92539b73e16741214ad1500a944280a130baec4f7ebe3bd8d893f9
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
- # Make the shared/bundle/ directory writeable by deployers:
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
- after 'deploy:finalize_update', 'ndr_dev_support:filesystem_tweaks'
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
 
@@ -2,5 +2,5 @@
2
2
  # This defines the NdrDevSupport version. If you change it, rebuild and commit the gem.
3
3
  # Use "rake build" to build the gem, see rake -T for all bundler rake tasks (and our own).
4
4
  module NdrDevSupport
5
- VERSION = '7.3.3'
5
+ VERSION = '7.3.4'
6
6
  end
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.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-08-01 00:00:00.000000000 Z
11
+ date: 2025-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry