ndr_dev_support 7.3.2 → 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,22 @@
|
|
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
|
+
|
12
|
+
## 7.3.3 / 2025-07-31
|
13
|
+
### Fixed
|
14
|
+
* Update rubocop version dependency
|
15
|
+
* rake bundle:update should package gems for all platforms
|
16
|
+
|
17
|
+
## Changed
|
18
|
+
* Drop support for Ruby 3.0
|
19
|
+
|
4
20
|
## 7.3.2 / 2025-05-01
|
5
21
|
### Fixed
|
6
22
|
* Capistrano: Add missing `tmpdir` requirement to deploy application secrets
|
@@ -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
|
|
data/lib/tasks/audit_bundle.rake
CHANGED
@@ -138,11 +138,12 @@ namespace :bundle do
|
|
138
138
|
end
|
139
139
|
|
140
140
|
# Retrieve binary gems for platforms listed in Gemfile.lock
|
141
|
-
platforms = `bundle platform`.split("\n").grep(/^[*] x86_64-/).collect { |s| s[2..] }
|
142
141
|
Dir.chdir('vendor/cache') do
|
142
|
+
platforms = `bundle platform`.split("\n").grep(/^[*] x86_64-/).collect { |s| s[2..] }
|
143
143
|
platforms.each do |platform|
|
144
144
|
system("gem fetch #{gem} --version=#{new_gem_version2} --platform=#{platform}")
|
145
145
|
end
|
146
|
+
system('bundle package --all-platforms')
|
146
147
|
end if Dir.exist?('vendor/cache')
|
147
148
|
|
148
149
|
if gem == 'webpacker'
|
@@ -206,7 +207,7 @@ namespace :bundle do
|
|
206
207
|
|
207
208
|
$ ( git rm #{files_to_git_rm.join(' ')}
|
208
209
|
git add #{files_to_git_add.join(' ')}
|
209
|
-
git commit -m '
|
210
|
+
git commit -m 'Bump #{gem} to #{new_gem_version2}'
|
210
211
|
)
|
211
212
|
MSG
|
212
213
|
end
|
data/ndr_dev_support.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.required_ruby_version = '>= 3.
|
23
|
+
spec.required_ruby_version = '>= 3.1'
|
24
24
|
|
25
25
|
spec.add_dependency 'pry'
|
26
26
|
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
# Rubocop dependencies:
|
32
32
|
spec.add_dependency 'parser'
|
33
33
|
spec.add_dependency 'rainbow'
|
34
|
-
spec.add_dependency 'rubocop', '~> 1.
|
34
|
+
spec.add_dependency 'rubocop', '~> 1.72'
|
35
35
|
spec.add_dependency 'rubocop-rails', '~> 2.9'
|
36
36
|
spec.add_dependency 'rubocop-rake', '~> 0.5'
|
37
37
|
spec.add_dependency 'unicode-display_width', '>= 1.3.3'
|
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
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.72'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
96
|
+
version: '1.72'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -480,7 +480,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
480
480
|
requirements:
|
481
481
|
- - ">="
|
482
482
|
- !ruby/object:Gem::Version
|
483
|
-
version: '3.
|
483
|
+
version: '3.1'
|
484
484
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
485
485
|
requirements:
|
486
486
|
- - ">="
|