bard-staging_banner 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard/staging_banner/version.rb +1 -1
- data/lib/bard/staging_banner.rb +5 -3
- 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: b573a9eb52fccb2bac09b886f3a3cb513a840d679f596e64de8e942734ba93d9
|
4
|
+
data.tar.gz: bcc38e81e2809b62ea4181f96533ea4efa8543c2509424ae1b11cb347dda7d55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8efd4077afb6e3600d4a707b23265691eb516060ebdd075ec2ff06ff074379f7f88bb85e81dd4808e8a80940879766727a8c93101b7818b7c70c739159f63c6
|
7
|
+
data.tar.gz: 6046a7ffa37428399aaa6114d92821a283ad8b34ada4cd18d4572f248ac4db9ec3929e415b054d58a3f29083f0e928634b8b0bd4830e8d698e181a5860f28e8e
|
data/lib/bard/staging_banner.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require "bard/staging_banner/version"
|
2
2
|
require "bard/staging_banner/middleware"
|
3
|
-
require "letter_opener_web"
|
4
3
|
|
5
4
|
module Bard
|
6
5
|
module StagingBanner
|
@@ -9,9 +8,12 @@ module Bard
|
|
9
8
|
config.app_middleware.use Middleware
|
10
9
|
end
|
11
10
|
|
12
|
-
if
|
13
|
-
config.action_mailer.delivery_method = :letter_opener
|
11
|
+
if defined?(ActionMailer) && %w[development staging].include?(Rails.env)
|
14
12
|
initializer "bard-staging_banner.mount_letter_opener_web" do |app|
|
13
|
+
require "letter_opener_web"
|
14
|
+
|
15
|
+
config.action_mailer.delivery_method = :letter_opener
|
16
|
+
|
15
17
|
app.routes.append do
|
16
18
|
mount LetterOpenerWeb::Engine, at: "/mails"
|
17
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard-staging_banner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: letter_opener_web
|