rubymonolith 0.1.6 → 0.1.8
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/monolith/cli/template.rb +28 -0
- data/lib/monolith/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: cb5f74d77e35babfe61684132459514678f690fe10a79d9b30a061d88ca7b794
|
|
4
|
+
data.tar.gz: e92e30ba25cec7e4efd15565f579c81af579d1fbaafafdb75c8a008b3079b754
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c07751f0b66623cc96dc7ae5e7ca1241ab496afcbb9d486327181eb15874b3b38e42e09e937fd41714fe635f8dd03ce13c08816369629a5b651eca50af1b80e
|
|
7
|
+
data.tar.gz: 9b0c0356ac484bcbfd089d233e23e7e5e941fde21b0087a3f7d346be5a5b6a3a92e18e84974f3a39221ecd52cd58dd6b3e2aa98dae1eb91e0ae9600a4990d21c
|
|
@@ -38,6 +38,13 @@ after_bundle do
|
|
|
38
38
|
run "npm init -y"
|
|
39
39
|
run "npm install daisyui@latest @tailwindcss/typography@latest"
|
|
40
40
|
|
|
41
|
+
# Add node_modules to .gitignore
|
|
42
|
+
append_to_file '.gitignore', <<~GITIGNORE
|
|
43
|
+
|
|
44
|
+
# Node modules
|
|
45
|
+
/node_modules/*
|
|
46
|
+
GITIGNORE
|
|
47
|
+
|
|
41
48
|
# Add sources and plugins to Tailwind CSS
|
|
42
49
|
append_to_file 'app/assets/tailwind/application.css', <<~CSS
|
|
43
50
|
|
|
@@ -50,6 +57,12 @@ after_bundle do
|
|
|
50
57
|
@plugin "@tailwindcss/typography";
|
|
51
58
|
@plugin "daisyui";
|
|
52
59
|
CSS
|
|
60
|
+
|
|
61
|
+
# Add Superview and Superform includes to ApplicationController
|
|
62
|
+
inject_into_class "app/controllers/application_controller.rb", "ApplicationController", <<~RUBY
|
|
63
|
+
include Superview::Actions
|
|
64
|
+
include Superform::Rails::StrongParameters
|
|
65
|
+
RUBY
|
|
53
66
|
end
|
|
54
67
|
|
|
55
68
|
# File-based content management system for static pages and markdown content
|
|
@@ -67,3 +80,18 @@ gem "rspec-rails"
|
|
|
67
80
|
after_bundle do
|
|
68
81
|
generate "rspec:install"
|
|
69
82
|
end
|
|
83
|
+
|
|
84
|
+
# Configure logging to stdout so the logs are visible in the console via `monolith dev`
|
|
85
|
+
after_bundle do
|
|
86
|
+
# Configure development environment to log to stdout
|
|
87
|
+
inject_into_file "config/environments/development.rb", after: "Rails.application.configure do\n" do
|
|
88
|
+
<<~RUBY
|
|
89
|
+
# Send logs directly to stdout
|
|
90
|
+
$stdout.sync = true
|
|
91
|
+
config.logger = ActiveSupport::TaggedLogging.new(
|
|
92
|
+
ActiveSupport::Logger.new($stdout)
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
RUBY
|
|
96
|
+
end
|
|
97
|
+
end
|
data/lib/monolith/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubymonolith
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brad Gessler
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-11-
|
|
10
|
+
date: 2025-11-15 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|