railsmaker-core 0.0.2 → 0.0.4
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/CHANGELOG.md +5 -0
- data/README.md +3 -2
- data/bin/railsmaker +9 -2
- data/lib/railsmaker/generators/app_generator.rb +9 -3
- data/lib/railsmaker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0498a8c2eab4d7d8f917e3f55711a8097969e3dfb4b169dc6cfff766282969f2'
|
4
|
+
data.tar.gz: 2f1b5996ed10083ac0cac57ac593363855c5abcfc11aa8baad739ea728460cb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fa6105c8ed5cfa0e17fdb2468ea6833247846b7ffa3f896551e19b23059fd290b5e625af243a295591749a93b551d865d370b87024c9d3b8cc2a5d2d9cee472
|
7
|
+
data.tar.gz: 21996f9480c2c21d8d310efd729eeeeec5b5b94b5b261e0bf6e476c76241b8925ffbd20cd625719e7a9f5f24fc5843a015612303bdb28d0b667105b89a2bc88e
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.0.3] - 2025-02-16
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- Docker registry URL is now configurable from the start
|
12
|
+
|
8
13
|
## [0.0.2] - 2025-02-13
|
9
14
|
|
10
15
|
### Added
|
data/README.md
CHANGED
@@ -3,10 +3,11 @@
|
|
3
3
|
[](https://railsmaker.com)
|
4
4
|
[](https://github.com/sgerov/railsmaker-sample)
|
5
5
|
[](./10-STEPS-TO-PROD.md)
|
6
|
+
[](https://daisyuitemplates.com/)
|
6
7
|
|
7
8
|
# 📦 Railsmaker
|
8
9
|
|
9
|
-
Ship your MVP in hours, not weeks • Zero config needed • Save
|
10
|
+
Ship your MVP in hours, not weeks • Zero config needed • Save 20+ dev hours
|
10
11
|
|
11
12
|
## ⚡ Why Railsmaker?
|
12
13
|
- **Ship Faster**: From zero to production in 15 minutes
|
@@ -115,7 +116,7 @@ railsmaker remote registry \
|
|
115
116
|
|
116
117
|
After setting up your registry:
|
117
118
|
1. Create an A record for `registry.example.com` pointing to your server
|
118
|
-
2. Update your Kamal config to use your private registry:
|
119
|
+
2. Update your Kamal config to use your private registry (unless you already used `-r` option):
|
119
120
|
```yaml
|
120
121
|
# config/deploy.yml
|
121
122
|
registry:
|
data/bin/railsmaker
CHANGED
@@ -205,6 +205,7 @@ module RailsMaker
|
|
205
205
|
method_option :analytics, type: :string, desc: 'Set up Plausible Analytics (provide your ANALYTICS_DOMAIN)'
|
206
206
|
method_option :sentry, type: :boolean, default: true, desc: 'Configure Sentry error tracking'
|
207
207
|
method_option :ui, type: :boolean, default: true, desc: 'Include UI assets'
|
208
|
+
method_option :registry_url, type: :string, aliases: '-r', desc: 'Custom Docker registry URL'
|
208
209
|
def new
|
209
210
|
self.destination_root = File.expand_path(options[:name], Dir.pwd)
|
210
211
|
say "Generating new Rails application: #{options[:name]}", :yellow
|
@@ -256,7 +257,8 @@ module RailsMaker
|
|
256
257
|
['Name:', opts[:name], :highlight],
|
257
258
|
['Docker:', opts[:docker], :highlight],
|
258
259
|
['IP:', opts[:ip], :highlight],
|
259
|
-
['Domain:', opts[:domain], :highlight]
|
260
|
+
['Domain:', opts[:domain], :highlight],
|
261
|
+
['Registry:', opts[:registry_url] || 'Docker Hub', :highlight]
|
260
262
|
],
|
261
263
|
'Features & Integrations' => [
|
262
264
|
['Authentication', opts[:auth], :status],
|
@@ -318,7 +320,8 @@ module RailsMaker
|
|
318
320
|
opentelemetry: options[:opentelemetry],
|
319
321
|
analytics: options[:analytics],
|
320
322
|
sentry: options[:sentry],
|
321
|
-
ui: options[:ui]
|
323
|
+
ui: options[:ui],
|
324
|
+
registry_url: options[:registry_url]
|
322
325
|
}
|
323
326
|
|
324
327
|
# Only ask for values that weren't provided via command line
|
@@ -356,6 +359,10 @@ module RailsMaker
|
|
356
359
|
wizard_options[:bucketname] = nil if wizard_options[:bucketname] && wizard_options[:bucketname].empty?
|
357
360
|
wizard_options[:analytics] = nil if wizard_options[:analytics] && wizard_options[:analytics].empty?
|
358
361
|
|
362
|
+
# Add registry URL prompt if not provided
|
363
|
+
wizard_options[:registry_url] ||= ask('Docker registry URL (leave blank for Docker Hub):')
|
364
|
+
wizard_options[:registry_url] = nil if wizard_options[:registry_url].empty?
|
365
|
+
|
359
366
|
wizard_options
|
360
367
|
end
|
361
368
|
end
|
@@ -10,6 +10,7 @@ module RailsMaker
|
|
10
10
|
class_option :ip, type: :string, required: true, desc: 'Server IP address'
|
11
11
|
class_option :domain, type: :string, required: true, desc: 'Domain name'
|
12
12
|
class_option :ui, type: :boolean, default: false, desc: 'Include UI assets?'
|
13
|
+
class_option :registry_url, type: :string, desc: 'Custom Docker registry URL (e.g., registry.digitalocean.com)'
|
13
14
|
|
14
15
|
def check_required_env_vars
|
15
16
|
super(%w[
|
@@ -71,17 +72,17 @@ module RailsMaker
|
|
71
72
|
|
72
73
|
def setup_frontend
|
73
74
|
say('Adding Tailwind CSS')
|
74
|
-
gem 'tailwindcss-rails', '~> 4.
|
75
|
+
gem 'tailwindcss-rails', '~> 4.2.0'
|
75
76
|
|
76
77
|
say('Installing gems')
|
77
78
|
run 'bundle install --quiet'
|
78
79
|
|
79
80
|
say('Setting up Tailwind')
|
80
|
-
run 'bun add -d tailwindcss@4.0.
|
81
|
+
run 'bun add -d tailwindcss@4.0.12 @tailwindcss/cli@4.0.12'
|
81
82
|
rails_command 'tailwindcss:install'
|
82
83
|
|
83
84
|
say('Installing DaisyUI')
|
84
|
-
run 'bun add -d daisyui@5.0.0
|
85
|
+
run 'bun add -d daisyui@5.0.0'
|
85
86
|
|
86
87
|
validate_gsub_strings([
|
87
88
|
{
|
@@ -143,6 +144,11 @@ module RailsMaker
|
|
143
144
|
inject_into_file 'config/deploy.yml', after: 'ssl: true' do
|
144
145
|
"\n forward_headers: true"
|
145
146
|
end
|
147
|
+
|
148
|
+
return unless options[:registry_url]
|
149
|
+
|
150
|
+
uncomment_lines 'config/deploy.yml', 'server: registry.digitalocean.com'
|
151
|
+
gsub_file 'config/deploy.yml', 'registry.digitalocean.com / ghcr.io / ...', options[:registry_url]
|
146
152
|
end
|
147
153
|
|
148
154
|
def current_dir
|
data/lib/railsmaker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsmaker-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sava Gerov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clearance
|