regolith 0.1.10 → 0.1.12
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 +8 -6
- 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: c85567c62a9c6e8e6212f8ecb8f7423e43c7ad91ba76a85f98c3c13366742a15
|
4
|
+
data.tar.gz: 91cc3af60d1cf81743a8d2d410e59c3719d4d8d48e652819fe613e2ea8de2a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 923068f6e2f7d4c07de135ba262f2875e60640e8a925b3e595e8e55a6fc5a856d8ff619389c3010e9651b77f56e8794c3d8cb3222a43d60370771d20284a56e2
|
7
|
+
data.tar.gz: f6d3b263adecf4f026bcd278e4ca2f8c9c6787a20a421bbe83b98f6ccc686214a3fb18c7606c80d0ac1a1cde7b4694f01b448481cf0cd74a775709267fed208f
|
data/lib/regolith/cli.rb
CHANGED
@@ -161,13 +161,15 @@ module Regolith
|
|
161
161
|
exit 1
|
162
162
|
end
|
163
163
|
|
164
|
-
# Generate custom Gemfile
|
164
|
+
# Generate custom Gemfile (clean up Rails-generated files first)
|
165
165
|
puts "🔧 Creating custom Gemfile..."
|
166
|
+
|
167
|
+
# Remove Rails-generated Gemfile and lock file to avoid conflicts
|
168
|
+
FileUtils.rm_f("#{service_dir}/Gemfile")
|
169
|
+
FileUtils.rm_f("#{service_dir}/Gemfile.lock")
|
170
|
+
|
166
171
|
generate_gemfile(service_dir)
|
167
172
|
|
168
|
-
# Vendor Regolith gem - FIXED VERSION
|
169
|
-
vendor_regolith_gem(service_dir)
|
170
|
-
|
171
173
|
puts " → Running bundle install..."
|
172
174
|
Dir.chdir(service_dir) do
|
173
175
|
unless system("bundle install")
|
@@ -251,7 +253,7 @@ module Regolith
|
|
251
253
|
# Update Gemfile to use system gem
|
252
254
|
gemfile_path = File.join(service_dir, "Gemfile")
|
253
255
|
gemfile_content = File.read(gemfile_path)
|
254
|
-
gemfile_content.gsub!('gem "regolith", path: "vendor/regolith"', 'gem "regolith", "~> 0.1.
|
256
|
+
gemfile_content.gsub!('gem "regolith", path: "vendor/regolith"', 'gem "regolith", "~> 0.1.7"')
|
255
257
|
File.write(gemfile_path, gemfile_content)
|
256
258
|
end
|
257
259
|
rescue => e
|
@@ -260,7 +262,7 @@ module Regolith
|
|
260
262
|
# Update Gemfile to use system gem
|
261
263
|
gemfile_path = File.join(service_dir, "Gemfile")
|
262
264
|
gemfile_content = File.read(gemfile_path)
|
263
|
-
gemfile_content.gsub!('gem "regolith", path: "vendor/regolith"', 'gem "regolith", "~> 0.1.
|
265
|
+
gemfile_content.gsub!('gem "regolith", path: "vendor/regolith"', 'gem "regolith", "~> 0.1.7"')
|
264
266
|
File.write(gemfile_path, gemfile_content)
|
265
267
|
end
|
266
268
|
end
|
data/lib/regolith/version.rb
CHANGED