regolith 0.1.22 → 0.1.23
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 +4 -4
- data/lib/regolith/cli.rb +5 -4
- data/lib/regolith/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41ea8405c6a144230c7f4be3a1e2605cc2f80f05524850bad3e680e37d4187b4
|
4
|
+
data.tar.gz: c4ba815538da010c8f3b23b3b27b2c84b107d1d3ad64c267a7d0efe5c6ce4487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b4ca0d0e63b168706b29a54cb5344b7fe1a83cbc184773f848eafd73155aba7ed0748177ae22fab09c9e0c9df6c55ab0bf685e27104d9713831290fa1fe7d8
|
7
|
+
data.tar.gz: 757cf66d57106245541095029d9aea8f24b43aaae2a231afabc715dc3546308509c6f5077c631fe7722ed066150f9f586dc21a1bbba17a5a1bb7b0fd622bd1d6
|
data/lib/regolith/cli.rb
CHANGED
@@ -116,6 +116,10 @@ module Regolith
|
|
116
116
|
exit 1
|
117
117
|
end
|
118
118
|
|
119
|
+
# Fix bootsnap issue IMMEDIATELY after rails new
|
120
|
+
puts "🔧 Making bootsnap optional..."
|
121
|
+
make_bootsnap_optional(service_dir)
|
122
|
+
|
119
123
|
# Overwrite Gemfile before bundle install
|
120
124
|
puts "🔧 Overwriting Gemfile to remove sqlite3 and other defaults..."
|
121
125
|
|
@@ -172,7 +176,7 @@ module Regolith
|
|
172
176
|
puts "→ Next: regolith generate service <another_service> or regolith server"
|
173
177
|
end
|
174
178
|
|
175
|
-
# ---
|
179
|
+
# --- Helper to make Bootsnap optional ---
|
176
180
|
def make_bootsnap_optional(service_dir)
|
177
181
|
boot_rb_path = File.join(service_dir, "config", "boot.rb")
|
178
182
|
return unless File.exist?(boot_rb_path)
|
@@ -200,9 +204,6 @@ module Regolith
|
|
200
204
|
File.write("#{initializer_dir}/regolith.rb", generate_regolith_initializer(service_name))
|
201
205
|
File.write("#{service_dir}/Dockerfile", generate_dockerfile)
|
202
206
|
|
203
|
-
# Call the Bootsnap patcher here
|
204
|
-
make_bootsnap_optional(service_dir)
|
205
|
-
|
206
207
|
app_rb_path = "#{service_dir}/config/application.rb"
|
207
208
|
app_rb_content = File.read(app_rb_path)
|
208
209
|
|
data/lib/regolith/version.rb
CHANGED