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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64e896ea013f8d46cb167c7ccf6da3a4e021a3e10289fbf2ff6cbf8d14f951b9
4
- data.tar.gz: 963d939833fd64d529e6b7f9cddc11cbde95d4b9d2aed6b919226285641f66f2
3
+ metadata.gz: a070e2dd525affdc0b151f116aff2ea100ce5e15f5783badef38080d9bbce327
4
+ data.tar.gz: '0788ddb2cf8f37c1a826e2603312cb6a735c5204c97b8e68096b2b4f8d0f2808'
5
5
  SHA512:
6
- metadata.gz: fe3c2c1d76822b2dc5d56ec576024ca56c41bf9a3535bb035540a1cbf2d4424f3de1b0648632c43af5683071bc84d81365cfc0ef843ca2948c298faba55e2a95
7
- data.tar.gz: c1622125425f2c8c3e82af582202b80a332ed9d5ffa34dbc4c482f1e34d6625de03dd6279cd579545d93949ce1eb8da2a68b003c28395dd56f3f5dd785867182
6
+ metadata.gz: 3705a0d7b7619d23fbd83fd267559b393d4c6517c49bf6d038533b7151b418209da5d9fc8b7188ee2f097a6da481951f4d8b2cae220720f6beb4638f16efba77
7
+ data.tar.gz: b785d36ca1c0aa2993e702c855e29fb4e1a042b1866a7774944d20ed501129c49fac33529289dda5104ec9541df376761498c7238b00fea7db57289b3dcba1d9
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailerLog
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
@@ -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...'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailer-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrafficRunners