Skip to content

Commit df873c4

Browse files
upgrades
1 parent 29d195f commit df873c4

File tree

12 files changed

+258
-8
lines changed

12 files changed

+258
-8
lines changed

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23.11.0
1+
24.4.1

.npm-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11.2.0
1+
11.4.2

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.2
1+
3.4.5

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ruby 3.4.2
1+
ruby 3.4.5
22
yarn 1.22.22
3-
nodejs 23.11.0
3+
nodejs 24.4.1

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source "https://rubygems.org"
44

55
gemspec
66

7-
ruby "3.4.2"
7+
ruby "3.4.5"
88

99
gem "bundler-audit"
1010
gem "dorian"

bin/bundle

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'bundle' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
require "rubygems"
12+
13+
m =
14+
Module.new do
15+
module_function
16+
17+
def invoked_as_script?
18+
File.expand_path($PROGRAM_NAME) == File.expand_path(__FILE__)
19+
end
20+
21+
def env_var_version
22+
ENV.fetch("BUNDLER_VERSION", nil)
23+
end
24+
25+
def cli_arg_version
26+
return unless invoked_as_script? # don't want to hijack other binstubs
27+
return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
28+
29+
bundler_version = nil
30+
update_index = nil
31+
ARGV.each_with_index do |a, i|
32+
if update_index && update_index.succ == i &&
33+
a.match?(Gem::Version::ANCHORED_VERSION_PATTERN)
34+
bundler_version = a
35+
end
36+
unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/o
37+
next
38+
end
39+
40+
bundler_version = Regexp.last_match(1)
41+
update_index = i
42+
end
43+
bundler_version
44+
end
45+
46+
def gemfile
47+
gemfile = ENV.fetch("BUNDLE_GEMFILE", nil)
48+
return gemfile if gemfile && !gemfile.empty?
49+
50+
File.expand_path("../Gemfile", __dir__)
51+
end
52+
53+
def lockfile
54+
lockfile =
55+
case File.basename(gemfile)
56+
when "gems.rb"
57+
gemfile.sub(/\.rb$/, ".locked")
58+
else
59+
"#{gemfile}.lock"
60+
end
61+
File.expand_path(lockfile)
62+
end
63+
64+
def lockfile_version
65+
return unless File.file?(lockfile)
66+
67+
lockfile_contents = File.read(lockfile)
68+
unless lockfile_contents =~
69+
/\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/o
70+
return
71+
end
72+
73+
Regexp.last_match(1)
74+
end
75+
76+
def bundler_requirement
77+
@bundler_requirement ||=
78+
env_var_version || cli_arg_version ||
79+
bundler_requirement_for(lockfile_version)
80+
end
81+
82+
def bundler_requirement_for(version)
83+
return "#{Gem::Requirement.default}.a" unless version
84+
85+
bundler_gem_version = Gem::Version.new(version)
86+
87+
bundler_gem_version.approximate_recommendation
88+
end
89+
90+
def load_bundler!
91+
ENV["BUNDLE_GEMFILE"] ||= gemfile
92+
93+
activate_bundler
94+
end
95+
96+
def activate_bundler
97+
gem_error =
98+
activation_error_handling { gem "bundler", bundler_requirement }
99+
return if gem_error.nil?
100+
101+
require_error = activation_error_handling { require "bundler/version" }
102+
if require_error.nil? &&
103+
Gem::Requirement.new(bundler_requirement).satisfied_by?(
104+
Gem::Version.new(Bundler::VERSION)
105+
)
106+
return
107+
end
108+
109+
warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
110+
exit 42
111+
end
112+
113+
def activation_error_handling
114+
yield
115+
nil
116+
rescue StandardError, LoadError => e
117+
e
118+
end
119+
end
120+
121+
m.load_bundler!
122+
123+
load Gem.bin_path("bundler", "bundle") if m.invoked_as_script?

bin/bundle-audit

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'bundle-audit' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12+
13+
bundle_binstub = File.expand_path("bundle", __dir__)
14+
15+
if File.file?(bundle_binstub)
16+
if File.read(bundle_binstub, 300).include?(
17+
"This file was generated by Bundler"
18+
)
19+
load(bundle_binstub)
20+
else
21+
abort(
22+
"Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
23+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
24+
)
25+
end
26+
end
27+
28+
require "rubygems"
29+
require "bundler/setup"
30+
31+
load Gem.bin_path("bundler-audit", "bundle-audit")

bin/bundler-audit

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'bundler-audit' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12+
13+
bundle_binstub = File.expand_path("bundle", __dir__)
14+
15+
if File.file?(bundle_binstub)
16+
if File.read(bundle_binstub, 300).include?(
17+
"This file was generated by Bundler"
18+
)
19+
load(bundle_binstub)
20+
else
21+
abort(
22+
"Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
23+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
24+
)
25+
end
26+
end
27+
28+
require "rubygems"
29+
require "bundler/setup"
30+
31+
load Gem.bin_path("bundler-audit", "bundler-audit")

bin/dorian

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'dorian' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12+
13+
bundle_binstub = File.expand_path("bundle", __dir__)
14+
15+
if File.file?(bundle_binstub)
16+
if File.read(bundle_binstub, 300).include?(
17+
"This file was generated by Bundler"
18+
)
19+
load(bundle_binstub)
20+
else
21+
abort(
22+
"Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
23+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
24+
)
25+
end
26+
end
27+
28+
require "rubygems"
29+
require "bundler/setup"
30+
31+
load Gem.bin_path("dorian", "dorian")

bin/rubocop

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'rubocop' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12+
13+
bundle_binstub = File.expand_path("bundle", __dir__)
14+
15+
if File.file?(bundle_binstub)
16+
if File.read(bundle_binstub, 300).include?(
17+
"This file was generated by Bundler"
18+
)
19+
load(bundle_binstub)
20+
else
21+
abort(
22+
"Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
23+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
24+
)
25+
end
26+
end
27+
28+
require "rubygems"
29+
require "bundler/setup"
30+
31+
load Gem.bin_path("rubocop", "rubocop")

0 commit comments

Comments
 (0)