bard-staging_banner 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2575c1a7289bff8ecb865ed511d0a6f8bb3bdf0648aee3cf4f64b2b7d0840542
4
- data.tar.gz: 1448e0ae9c1d8fcdbcbd5eb6cc65efb5210f15c36884b4f568675e156659047d
3
+ metadata.gz: f817bf2b38bb2531b5c21ad1a136c84768bb52953a5902d9ecdfa56f6d0f7adc
4
+ data.tar.gz: 993fc6e9d99cb7ee9af90c8147df68aec315d27fb55f23c670f50405724e411f
5
5
  SHA512:
6
- metadata.gz: 29ad9d47cdbf3ed0e72b05aa4042af9560ecd7a14ac00990c22ce96f7fbb598a9a81f36f46840702db364aba9f97156d68b828a3863627a6357618f38da5a8f5
7
- data.tar.gz: 5347e2b4cc34326830526d030c2444ab3b17d8ff5493f35fd4d9b116aa5fa27d5d59290fdaf43870673b81421a4fbccb0831bc78fe059dab5a71d3e3ffe4b20f
6
+ metadata.gz: a4141519744c94a0c8e836b5ce5f596d6aac6aac7873681c1f865048b41c4058a57036a326848ef43501eb40b284decacc03a66f74d3c98f15df8d273ab45390
7
+ data.tar.gz: fd6e0e5ff1c0ce7118c63497a43dc4f2269f25b19fe5725c81613d2a4cc5b9be4f334f1839157e81b8152d66693acfca528aff941471c502b8c47fb59e5c7603
@@ -1,5 +1,5 @@
1
1
  module Bard
2
2
  module StagingBanner
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -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 !Rails.env.production?
13
- config.action_mailer.delivery_method = :letter_opener
11
+ if !Rails.env.production? && defined?(ActionMailer)
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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-29 00:00:00.000000000 Z
11
+ date: 2023-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: letter_opener_web