mic_monitor_gem 0.2.7 → 0.3.1

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: 7b064ae06e7aba1bfcf6f5891c5bcf7457a04f5cd97f292610412cb5ec582d45
4
- data.tar.gz: f2d4344d9595e57d2f3981e2f17e652c8a850b228d72b2dba7a66d8926bb9122
3
+ metadata.gz: fcbbdf5ac70b3a724b6451e0bf43c19cae3ee336af6a3aeafbdbc87e2eaa5dd9
4
+ data.tar.gz: 7ca4df1b08916c3106850d01292ee1c6967913ef34940bf15392bdc0c66a9f25
5
5
  SHA512:
6
- metadata.gz: 2fccaffd3315d42b9306a68a30d2b5050d4fe89983d17e0e4073dbc7814945e8459fe7e147ab4d79ef58198c01a0aed4d6de15beab8ae7b1ffe0c0996aab11f8
7
- data.tar.gz: a368a2be45f3b5d8c9ad6124c2d43cfb2f249e3231a3d3a7eb317659f54a0bf25e258f89be843a922c31bba8a381642f54735df31523ac5f39d2ba42a0658e03
6
+ metadata.gz: 71acf0138f48c2d665b79658c1a6983886da2a4a09f414beef31af12c8529f4d94020b2e6d9d54c5bd20e48d76c0a7c0ba6233156c4f4d9ff0dfc93ce9cd3706
7
+ data.tar.gz: e74ec2fc54680b63fdbd253bf9fa82cf859b67c09c72a5a8695f464bd25ea2db05e9e871435c30335898a1dd46c224909aff5b98a96aab995643a95201372b22
@@ -0,0 +1,23 @@
1
+ module MicMonitorGem
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('templates', __dir__)
5
+
6
+ ENV_PATH = "#{Rails.root}/config/environments/production.rb"
7
+
8
+ def add_config_email_to_env_produciton
9
+ inject_into_file ENV_PATH, before: "end"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
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicMonitorGem
4
- VERSION = "0.2.7"
4
+ VERSION = "0.3.1"
5
5
  end
Binary file
Binary file
Binary file
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.7
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mic-locnv
@@ -30,10 +30,9 @@ files:
30
30
  - bin/setup
31
31
  - config/environments/production.rb
32
32
  - config/routes.rb
33
+ - lib/generators/mic_monitor_gem/install_generator.rb
33
34
  - lib/mic_monitor_gem.rb
34
35
  - lib/mic_monitor_gem/engine.rb
35
- - lib/mic_monitor_gem/generator/mic_monitor_gem/USAGE
36
- - lib/mic_monitor_gem/generator/mic_monitor_gem/install_generator.rb
37
36
  - lib/mic_monitor_gem/version.rb
38
37
  - mic_monitor_gem-0.1.0.gem
39
38
  - mic_monitor_gem-0.1.1.gem
@@ -52,6 +51,10 @@ files:
52
51
  - mic_monitor_gem-0.2.4.gem
53
52
  - mic_monitor_gem-0.2.5.gem
54
53
  - mic_monitor_gem-0.2.6.gem
54
+ - mic_monitor_gem-0.2.7.gem
55
+ - mic_monitor_gem-0.2.8.gem
56
+ - mic_monitor_gem-0.2.9.gem
57
+ - mic_monitor_gem-0.3.0.gem
55
58
  - mic_monitor_gem.gemspec
56
59
  homepage: https://github.com/miclabs/mic_monitor_gem
57
60
  licenses:
@@ -1,5 +0,0 @@
1
- Description:
2
- Add config email to environments production
3
-
4
- Usage:
5
- rails generate mic_monitor_gem:install
@@ -1,19 +0,0 @@
1
- class MicMonitorGem::InstallGenerator < ::Rails::Generators::Base
2
- source_root File.expand_path('templates', __dir__)
3
-
4
- ENV_PATH = "#{Rails.root}/config/environments/production.rb"
5
-
6
- def add_config_email_to_env_produciton
7
- append_to_file ENV_PATH do
8
- <<-'RUBY'
9
- Rails.application.config.middleware.use ExceptionNotification::Rack,
10
- email: {
11
- deliver_with: :deliver, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now
12
- email_prefix: ENV['EMAIL_PREFIX'],
13
- sender_address: ENV['SENDER_ADDRESS'],
14
- exception_recipients: ENV['EXCEPTION_RECINPIENTS']
15
- }
16
- RUBY
17
- end
18
- end
19
- end