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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc4410cdbfbd1a5f314f784309bc88d2b0d6b9e3bbcda0bd6a3d49e74893ba95
4
- data.tar.gz: 7b4b961f4c89d92943070dd8f30ee4067bf6a61d5a3e3d73f1ab18ee3face259
3
+ metadata.gz: 5fa276472ded40f3c9b79460cc8c603063bba90b2c9f3fe678b96671c519e2e5
4
+ data.tar.gz: 05a30e0848e755bc2e55d4e83dcdca7b81593ab6c9ecb7a3d5b26baaa086fc31
5
5
  SHA512:
6
- metadata.gz: d2373e922caf22b534c57aec574f527805489466cbc229c3187c937c48a5b985781e8632ffbc37fadcf0cbd6ad299f6278c2d661c34b7a00ecdd7c25329a36db
7
- data.tar.gz: d9e47728449fae4bc0198e2c3dc7e831898d48cd76b7e30a7ac4dad77f662e90e0f93118e02e7ab50505c8b3f084d3bcabcba363fed38a0be30b18eb499f4f1a
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
@@ -1,4 +1,4 @@
1
1
  # lib/regolith/version.rb
2
2
  module Regolith
3
- VERSION = "0.1.20"
3
+ VERSION = "0.1.22"
4
4
  end
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 = ["team@regolith.dev"]
8
+ spec.email = ["info@regolith.bio"]
9
9
 
10
- spec.summary = "Rails for distributed systems"
11
- spec.description = "Regolith provides seamless inter-service communication and orchestration for Ruby microservices"
12
- spec.homepage = "https://github.com/regolith/regolith"
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"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/regolith/regolith"
19
- spec.metadata["changelog_uri"] = "https://github.com/regolith/regolith/CHANGELOG.md"
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.20
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: Regolith provides seamless inter-service communication and orchestration
70
- for Ruby microservices
69
+ description: Generate and orchestrate Rails microservices with zero setup using Docker
70
+ + PostgreSQL.
71
71
  email:
72
- - team@regolith.dev
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://github.com/regolith/regolith
89
+ homepage: https://regolith.bio
90
90
  licenses:
91
91
  - MIT
92
92
  metadata:
93
- homepage_uri: https://github.com/regolith/regolith
94
- source_code_uri: https://github.com/regolith/regolith
95
- changelog_uri: https://github.com/regolith/regolith/CHANGELOG.md
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 for distributed systems
114
+ summary: Rails microservices. Zero setup. Docker + PostgreSQL
115
115
  test_files: []