mic_monitor_gem 0.2.5 → 0.2.9
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 +4 -4
- data/lib/mic_monitor_gem/generators/mic_monitor_gem/install_generator.rb +23 -0
- data/lib/mic_monitor_gem/version.rb +1 -1
- data/mic_monitor_gem-0.2.5.gem +0 -0
- data/mic_monitor_gem-0.2.6.gem +0 -0
- data/mic_monitor_gem-0.2.7.gem +0 -0
- data/mic_monitor_gem-0.2.8.gem +0 -0
- metadata +6 -3
- data/lib/mic_monitor_gem/generator/mic_monitor_gem/install/USAGE +0 -5
- data/lib/mic_monitor_gem/generator/mic_monitor_gem/install/install_generator.rb +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9695603c08228af7bcf83dfbbc4f7e08d0ee0bfac8a3a99af3b6a8788028f0a0
|
4
|
+
data.tar.gz: e474a17a06d26c030bcfe871ab445b5e80ce7a7bba62c33be9c909813abd003a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54221e16725bdfc30288b78347c5ebe63dfcc8a0e0e7e9734a38a05cf146c98078d4ce6194779803e6a5af01b9e3a4974fd5396eb0eb4fa63dc72a7202ea363
|
7
|
+
data.tar.gz: b14fd948308e0590bccfb3051174fdb2f1286065d849fcb8f55ccba44260ddf7cc0c4208d294e91a192f37ddc0d7013a7895236d36eccff81190f90d42809166
|
@@ -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
|
+
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
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
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.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mic-locnv
|
@@ -32,8 +32,7 @@ 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/
|
36
|
-
- lib/mic_monitor_gem/generator/mic_monitor_gem/install/install_generator.rb
|
35
|
+
- lib/mic_monitor_gem/generators/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
|
@@ -50,6 +49,10 @@ files:
|
|
50
49
|
- mic_monitor_gem-0.2.2.gem
|
51
50
|
- mic_monitor_gem-0.2.3.gem
|
52
51
|
- mic_monitor_gem-0.2.4.gem
|
52
|
+
- mic_monitor_gem-0.2.5.gem
|
53
|
+
- mic_monitor_gem-0.2.6.gem
|
54
|
+
- mic_monitor_gem-0.2.7.gem
|
55
|
+
- mic_monitor_gem-0.2.8.gem
|
53
56
|
- mic_monitor_gem.gemspec
|
54
57
|
homepage: https://github.com/miclabs/mic_monitor_gem
|
55
58
|
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
|