mic_monitor_gem 0.3.1 → 0.3.2

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: fcbbdf5ac70b3a724b6451e0bf43c19cae3ee336af6a3aeafbdbc87e2eaa5dd9
4
- data.tar.gz: 7ca4df1b08916c3106850d01292ee1c6967913ef34940bf15392bdc0c66a9f25
3
+ metadata.gz: 7df63ed5ae8c11fa20becfb17abc24c4f0cce253aa721222228f8c7d44ece668
4
+ data.tar.gz: b151144467502b4bb9471057cce12ea9b55b1c10eaea4a941f75231c69a40a60
5
5
  SHA512:
6
- metadata.gz: 71acf0138f48c2d665b79658c1a6983886da2a4a09f414beef31af12c8529f4d94020b2e6d9d54c5bd20e48d76c0a7c0ba6233156c4f4d9ff0dfc93ce9cd3706
7
- data.tar.gz: e74ec2fc54680b63fdbd253bf9fa82cf859b67c09c72a5a8695f464bd25ea2db05e9e871435c30335898a1dd46c224909aff5b98a96aab995643a95201372b22
6
+ metadata.gz: 9c940a6ee06e33dbd57add44675937f3ea0ba6ca72f667236c895028b00dae7cbfa5e6adc8818b8ace05140d627698ea35aaaab9d17f3b396319eaeb29badb6e
7
+ data.tar.gz: de404a1976b98a8b9a5ba5c980a4e2565501ec32ba376f05003df09c3a2df8810ca06d0b6d4cb3acb6637f45f30e0f12c3f6a39c0753420bc8d21deaff68d9a2
@@ -6,15 +6,15 @@ module MicMonitorGem
6
6
  ENV_PATH = "#{Rails.root}/config/environments/production.rb"
7
7
 
8
8
  def add_config_email_to_env_produciton
9
- inject_into_file ENV_PATH, before: "end"do
9
+ append_to_file ENV_PATH do
10
10
  <<-'RUBY'
11
- Rails.application.config.middleware.use ExceptionNotification::Rack,
12
- email: {
13
- deliver_with: :deliver, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now
14
- email_prefix: ENV['EMAIL_PREFIX'],
15
- sender_address: ENV['SENDER_ADDRESS'],
16
- exception_recipients: ENV['EXCEPTION_RECINPIENTS']
17
- }
11
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
12
+ email: {
13
+ deliver_with: :deliver, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now
14
+ email_prefix: ENV['EMAIL_PREFIX'],
15
+ sender_address: ENV['SENDER_ADDRESS'],
16
+ exception_recipients: ENV['EXCEPTION_RECINPIENTS']
17
+ }
18
18
  RUBY
19
19
  end
20
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicMonitorGem
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mic_monitor_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mic-locnv
@@ -55,6 +55,7 @@ files:
55
55
  - mic_monitor_gem-0.2.8.gem
56
56
  - mic_monitor_gem-0.2.9.gem
57
57
  - mic_monitor_gem-0.3.0.gem
58
+ - mic_monitor_gem-0.3.1.gem
58
59
  - mic_monitor_gem.gemspec
59
60
  homepage: https://github.com/miclabs/mic_monitor_gem
60
61
  licenses: