mic_monitor_gem 0.2.5 → 0.2.6

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: bb9a9719caedb0a70c6ffc97926999bd2d313edf747db41ca7854ee950e02a09
4
- data.tar.gz: b90634b9f6771bba94ede49ff37eb55012b7c135e4fead0ba53e8d0dda5ea2c0
3
+ metadata.gz: 4fd3f8ec8fe5290df14099de1045a61942b6254f5997bf7ba0c912fc41d4de4d
4
+ data.tar.gz: a9b828a5b724161cca23996eb6252a5605e5ba0052fabae24607a2779fe762f0
5
5
  SHA512:
6
- metadata.gz: df39ce9ba20b43422541a0721036d00c672eb16496e7ab00b739f13d191172eb75ba0c9b22e163ee0dd6e89a7e71c86ad9567ad24217dde02772706f6044c9a0
7
- data.tar.gz: 129e044256ede039807cb9f2740c509c3b0e3e2b54fa52c52c5e8fca39eb6db1a55d5d484a5a49b98a6e3fadb48946f549d1abcdf58350cf1d3ad55913399f07
6
+ metadata.gz: ee5ac64ff11e2579159538411e431043224549ac9495ad0407fee8f260fb87feae796eac7f037029693ec9d1f8fd8944e4c22703d84e6769396bec6ead36cc4e
7
+ data.tar.gz: a98d71fd355f33fc1eb889f7bd19556fb3b0797593155ea964888ffde72c9e6698676d154f0afc18202ef77999215c11827f30f5edf569d098f97abb79f6117a
@@ -0,0 +1,25 @@
1
+ module MicMonitorGem
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ ENV_PATH = "#{Rails.root}/config/environments/production.rb"
7
+
8
+ def add_config_email_to_env_produciton
9
+ append_to_file ENV_PATH do
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
+ }
18
+ RUBY
19
+
20
+ end
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicMonitorGem
4
- VERSION = "0.2.5"
4
+ VERSION = "0.2.6"
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.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - mic-locnv
@@ -32,8 +32,8 @@ files:
32
32
  - config/routes.rb
33
33
  - lib/mic_monitor_gem.rb
34
34
  - lib/mic_monitor_gem/engine.rb
35
- - lib/mic_monitor_gem/generator/mic_monitor_gem/install/USAGE
36
- - lib/mic_monitor_gem/generator/mic_monitor_gem/install/install_generator.rb
35
+ - lib/mic_monitor_gem/generator/mic_monitor_gem/USAGE
36
+ - lib/mic_monitor_gem/generator/mic_monitor_gem/install_generator.rb
37
37
  - lib/mic_monitor_gem/version.rb
38
38
  - mic_monitor_gem-0.1.0.gem
39
39
  - mic_monitor_gem-0.1.1.gem
@@ -50,6 +50,7 @@ files:
50
50
  - mic_monitor_gem-0.2.2.gem
51
51
  - mic_monitor_gem-0.2.3.gem
52
52
  - mic_monitor_gem-0.2.4.gem
53
+ - mic_monitor_gem-0.2.5.gem
53
54
  - mic_monitor_gem.gemspec
54
55
  homepage: https://github.com/miclabs/mic_monitor_gem
55
56
  licenses:
@@ -1,23 +0,0 @@
1
- module MicMonitorGem
2
- class InstallGenerator < Rails::Generators::Base
3
- source_root File.expand_path('../templates', __FILE__)
4
-
5
- ENV_PATH = "#{Rails.root}/config/environments/production.rb"
6
-
7
- def add_config_email_to_env_produciton
8
- append_to_file ENV_PATH do
9
- <<-'RUBY'
10
- Rails.application.config.middleware.use ExceptionNotification::Rack,
11
- email: {
12
- deliver_with: :deliver, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now
13
- email_prefix: '[PREFIX] ',
14
- sender_address: %{"notifier" <notifier@example.com>},
15
- exception_recipients: %w{exceptions@example.com}
16
- }
17
- RUBY
18
-
19
- end
20
- end
21
-
22
- end
23
- end