mailer-log 0.1.2 → 0.1.3
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/mailer_log/version.rb +1 -1
- data/lib/tasks/mailer_log.rake +34 -0
- 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: a070e2dd525affdc0b151f116aff2ea100ce5e15f5783badef38080d9bbce327
|
|
4
|
+
data.tar.gz: '0788ddb2cf8f37c1a826e2603312cb6a735c5204c97b8e68096b2b4f8d0f2808'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3705a0d7b7619d23fbd83fd267559b393d4c6517c49bf6d038533b7151b418209da5d9fc8b7188ee2f097a6da481951f4d8b2cae220720f6beb4638f16efba77
|
|
7
|
+
data.tar.gz: b785d36ca1c0aa2993e702c855e29fb4e1a042b1866a7774944d20ed501129c49fac33529289dda5104ec9541df376761498c7238b00fea7db57289b3dcba1d9
|
data/lib/mailer_log/version.rb
CHANGED
data/lib/tasks/mailer_log.rake
CHANGED
|
@@ -4,6 +4,23 @@ namespace :mailer_log do
|
|
|
4
4
|
desc 'Build MailerLog Vue.js frontend (set MAILER_LOG_OVERRIDES_PATH to customize components)'
|
|
5
5
|
task :build_frontend do
|
|
6
6
|
frontend_dir = MailerLog::Engine.root.join('frontend')
|
|
7
|
+
|
|
8
|
+
unless frontend_dir.exist?
|
|
9
|
+
puts <<~MSG
|
|
10
|
+
ERROR: Frontend source not available.
|
|
11
|
+
|
|
12
|
+
This task is for gem development only. When using mailer-log from RubyGems,
|
|
13
|
+
the frontend is pre-built and included in public/mailer_log/.
|
|
14
|
+
|
|
15
|
+
To customize the frontend with overrides:
|
|
16
|
+
1. Clone the gem repository: git clone https://github.com/trafficrunners/mailer-log.git
|
|
17
|
+
2. cd mailer-log/frontend
|
|
18
|
+
3. MAILER_LOG_OVERRIDES_PATH=/path/to/your/overrides npm run build
|
|
19
|
+
4. Copy public/mailer_log/ to your app
|
|
20
|
+
MSG
|
|
21
|
+
exit 1
|
|
22
|
+
end
|
|
23
|
+
|
|
7
24
|
overrides_path = ENV['MAILER_LOG_OVERRIDES_PATH']
|
|
8
25
|
|
|
9
26
|
puts 'Installing npm dependencies...'
|
|
@@ -25,6 +42,23 @@ namespace :mailer_log do
|
|
|
25
42
|
desc 'Start Vite development server for MailerLog frontend'
|
|
26
43
|
task :dev_server do
|
|
27
44
|
frontend_dir = MailerLog::Engine.root.join('frontend')
|
|
45
|
+
|
|
46
|
+
unless frontend_dir.exist?
|
|
47
|
+
puts <<~MSG
|
|
48
|
+
ERROR: Frontend source not available.
|
|
49
|
+
|
|
50
|
+
This task is for gem development only. When using mailer-log from RubyGems,
|
|
51
|
+
the frontend is pre-built and served automatically.
|
|
52
|
+
|
|
53
|
+
To develop the frontend with hot-reload:
|
|
54
|
+
1. Clone the gem repository: git clone https://github.com/trafficrunners/mailer-log.git
|
|
55
|
+
2. cd mailer-log/frontend
|
|
56
|
+
3. npm install
|
|
57
|
+
4. MAILER_LOG_OVERRIDES_PATH=/path/to/your/overrides npm run dev
|
|
58
|
+
MSG
|
|
59
|
+
exit 1
|
|
60
|
+
end
|
|
61
|
+
|
|
28
62
|
overrides_path = ENV['MAILER_LOG_OVERRIDES_PATH']
|
|
29
63
|
|
|
30
64
|
puts 'Starting Vite dev server...'
|