Skip to content

Commit cf2e5cd

Browse files
committed
Update Gemfile to use custom gemfile process for manual dependency injection
1 parent 5c2bbdf commit cf2e5cd

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

.fernignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
lib/square_legacy/
22
lib/square_legacy.rb
3-
Gemfile
43
Rakefile
54
.gitignore
65
test/
76
.github/workflows
87
README.md
98
lib/square/file_param.rb
9+
custom.gemfile.rb

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
pkg
22
*.gem
33
CLAUDE.md
4+
vendor/
5+
.bundle/

Gemfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ gemspec
77
group :test, :development do
88
gem "rake", "~> 13.0"
99

10-
gem 'minitest', '~> 5.20'
10+
gem "minitest", "~> 5.16"
1111
gem "minitest-rg"
1212

13-
gem 'mutex_m'
14-
gem 'base64'
15-
1613
gem "rubocop", "~> 1.21"
1714
gem "rubocop-minitest"
1815

1916
gem "pry"
2017

2118
gem "webmock"
2219
end
20+
21+
# Load custom Gemfile configuration if it exists
22+
custom_gemfile = File.join(__dir__, "custom.gemfile.rb")
23+
eval_gemfile(custom_gemfile) if File.exist?(custom_gemfile)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ PLATFORMS
144144

145145
DEPENDENCIES
146146
base64
147-
minitest (~> 5.20)
147+
minitest (~> 5.20, ~> 5.16)
148148
minitest-proveit (~> 1.0)
149149
minitest-rg
150150
mutex_m

custom.gemfile.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# frozen_string_literal: true
2+
3+
# Custom Gemfile configuration file
4+
# This file is automatically loaded by the main Gemfile. You can add custom gems,
5+
# groups, or other Gemfile configurations here. If you do make changes to this file,
6+
# you will need to add it to the .fernignore file to prevent your changes from being
7+
# overwritten by the generator.
8+
9+
# Example usage:
10+
# gem 'custom-gem', '~> 1.0'
11+
#
12+
# group :development do
13+
# gem 'debug-gem', '~> 2.0'
14+
# end
15+
16+
# Add your custom gem dependencies here
17+
18+
group :test, :development do
19+
gem 'mutex_m'
20+
gem 'base64'
21+
end

0 commit comments

Comments
 (0)