regolith 0.1.20 → 0.1.22
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 +26 -1
- data/lib/regolith/version.rb +1 -1
- data/regolith.gemspec +8 -8
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fa276472ded40f3c9b79460cc8c603063bba90b2c9f3fe678b96671c519e2e5
|
4
|
+
data.tar.gz: 05a30e0848e755bc2e55d4e83dcdca7b81593ab6c9ecb7a3d5b26baaa086fc31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57a83ef606eace382435a56faaa26c2dff33319d4bf32a2e0822c7192f8b31f80517e202f48d7964d95b6706e1b595a1d267f2b3fe8fa6ef3d5c5a767af1aa4f
|
7
|
+
data.tar.gz: f8a8f96681e5453b855d1b4158f59bb5de2646c8b28e7231a7d83476dfaba2a70dcadc5f8d2114475b9abd588ef9295617fd62136ad57870874788637a3928e2
|
data/lib/regolith/cli.rb
CHANGED
@@ -172,12 +172,37 @@ module Regolith
|
|
172
172
|
puts "→ Next: regolith generate service <another_service> or regolith server"
|
173
173
|
end
|
174
174
|
|
175
|
+
# --- New helper to make Bootsnap optional ---
|
176
|
+
def make_bootsnap_optional(service_dir)
|
177
|
+
boot_rb_path = File.join(service_dir, "config", "boot.rb")
|
178
|
+
return unless File.exist?(boot_rb_path)
|
179
|
+
|
180
|
+
boot = File.read(boot_rb_path)
|
181
|
+
patched = boot.sub(
|
182
|
+
/^\s*require\s+["']bootsnap\/setup["']\s*$/,
|
183
|
+
<<~'RUBY'.strip
|
184
|
+
begin
|
185
|
+
require "bootsnap/setup"
|
186
|
+
rescue LoadError
|
187
|
+
warn "[regolith] bootsnap not found; continuing without it"
|
188
|
+
end
|
189
|
+
RUBY
|
190
|
+
)
|
191
|
+
|
192
|
+
if patched != boot
|
193
|
+
File.write(boot_rb_path, patched)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
175
197
|
def patch_rails_app(service_dir, service_name, port)
|
176
198
|
initializer_dir = "#{service_dir}/config/initializers"
|
177
199
|
FileUtils.mkdir_p(initializer_dir)
|
178
200
|
File.write("#{initializer_dir}/regolith.rb", generate_regolith_initializer(service_name))
|
179
201
|
File.write("#{service_dir}/Dockerfile", generate_dockerfile)
|
180
202
|
|
203
|
+
# Call the Bootsnap patcher here
|
204
|
+
make_bootsnap_optional(service_dir)
|
205
|
+
|
181
206
|
app_rb_path = "#{service_dir}/config/application.rb"
|
182
207
|
app_rb_content = File.read(app_rb_path)
|
183
208
|
|
@@ -388,4 +413,4 @@ module Regolith
|
|
388
413
|
HELP
|
389
414
|
end
|
390
415
|
end
|
391
|
-
end
|
416
|
+
end
|
data/lib/regolith/version.rb
CHANGED
data/regolith.gemspec
CHANGED
@@ -5,18 +5,18 @@ Gem::Specification.new do |spec|
|
|
5
5
|
spec.name = "regolith"
|
6
6
|
spec.version = Regolith::VERSION
|
7
7
|
spec.authors = ["Regolith Team"]
|
8
|
-
spec.email = ["
|
8
|
+
spec.email = ["info@regolith.bio"]
|
9
9
|
|
10
|
-
spec.summary = "Rails
|
11
|
-
spec.description = "
|
12
|
-
spec.homepage = "https://
|
10
|
+
spec.summary = "Rails microservices. Zero setup. Docker + PostgreSQL"
|
11
|
+
spec.description = "Generate and orchestrate Rails microservices with zero setup using Docker + PostgreSQL."
|
12
|
+
spec.homepage = "https://regolith.bio"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
spec.required_ruby_version = ">= 2.7.0"
|
16
16
|
|
17
|
-
spec.metadata["homepage_uri"] =
|
18
|
-
spec.metadata["source_code_uri"] = "https://github.com/
|
19
|
-
spec.metadata["changelog_uri"] = "https://github.com/
|
17
|
+
spec.metadata["homepage_uri"] = "https://regolith.bio"
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/ziolndr/regolith"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/ziolndr/regolith/blob/main/CHANGELOG.md"
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
@@ -34,4 +34,4 @@ Gem::Specification.new do |spec|
|
|
34
34
|
# Development dependencies
|
35
35
|
spec.add_development_dependency "rspec", "~> 3.0"
|
36
36
|
spec.add_development_dependency "rake", "~> 13.0"
|
37
|
-
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regolith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Regolith Team
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '13.0'
|
69
|
-
description:
|
70
|
-
|
69
|
+
description: Generate and orchestrate Rails microservices with zero setup using Docker
|
70
|
+
+ PostgreSQL.
|
71
71
|
email:
|
72
|
-
-
|
72
|
+
- info@regolith.bio
|
73
73
|
executables:
|
74
74
|
- regolith
|
75
75
|
extensions: []
|
@@ -86,13 +86,13 @@ files:
|
|
86
86
|
- lib/regolith/service_client.rb
|
87
87
|
- lib/regolith/version.rb
|
88
88
|
- regolith.gemspec
|
89
|
-
homepage: https://
|
89
|
+
homepage: https://regolith.bio
|
90
90
|
licenses:
|
91
91
|
- MIT
|
92
92
|
metadata:
|
93
|
-
homepage_uri: https://
|
94
|
-
source_code_uri: https://github.com/
|
95
|
-
changelog_uri: https://github.com/
|
93
|
+
homepage_uri: https://regolith.bio
|
94
|
+
source_code_uri: https://github.com/ziolndr/regolith
|
95
|
+
changelog_uri: https://github.com/ziolndr/regolith/blob/main/CHANGELOG.md
|
96
96
|
post_install_message:
|
97
97
|
rdoc_options: []
|
98
98
|
require_paths:
|
@@ -111,5 +111,5 @@ requirements: []
|
|
111
111
|
rubygems_version: 3.3.15
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
|
-
summary: Rails
|
114
|
+
summary: Rails microservices. Zero setup. Docker + PostgreSQL
|
115
115
|
test_files: []
|