mic_monitor_gem 0.2.3 → 0.2.7

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: 8f31e03b02685725827ccfd46ecae3935ac05f6fb5c16a98d7c2ee6b0bc2265e
4
- data.tar.gz: a6b64ab57d1b7dda7716d8c04cfd392f3573fa0e72cdb32aab733f2518c099e9
3
+ metadata.gz: 7b064ae06e7aba1bfcf6f5891c5bcf7457a04f5cd97f292610412cb5ec582d45
4
+ data.tar.gz: f2d4344d9595e57d2f3981e2f17e652c8a850b228d72b2dba7a66d8926bb9122
5
5
  SHA512:
6
- metadata.gz: c988b148e42fcc3ff68f1ae1dac81c75909fbc4a97cdaa4930caac566c4eadd71ff62ac32fb3ae3cae4d1c649ee15a63f96eeb217eed0ed4392b0a9cdd96f95e
7
- data.tar.gz: 27b3a39bc87ea2284d81d05e54d0c51e8ed6e0e67c124bf6d7d11e8a2a97bca74a310b5dbf75d2a3343b7627a03fcdcf50f8caa32a113e920eac6b5b7d513c5d
6
+ metadata.gz: 2fccaffd3315d42b9306a68a30d2b5050d4fe89983d17e0e4073dbc7814945e8459fe7e147ab4d79ef58198c01a0aed4d6de15beab8ae7b1ffe0c0996aab11f8
7
+ data.tar.gz: a368a2be45f3b5d8c9ad6124c2d43cfb2f249e3231a3d3a7eb317659f54a0bf25e258f89be843a922c31bba8a381642f54735df31523ac5f39d2ba42a0658e03
data/.rubocop.yml CHANGED
@@ -1,11 +1,10 @@
1
- AllCops:
2
- TargetRubyVersion: 2.0
3
- DisplayCopNames: true
4
- Exclude:
5
- - "gemfiles/**/*"
1
+ Style/StringLiterals:
2
+ Enabled: true
3
+ EnforcedStyle: double_quotes
6
4
 
7
- Style/Documentation:
8
- Enabled: false
5
+ Style/StringLiteralsInInterpolation:
6
+ Enabled: true
7
+ EnforcedStyle: double_quotes
9
8
 
10
9
  Layout/LineLength:
11
- Max: 120
10
+ Max: 120
data/Gemfile CHANGED
@@ -5,4 +5,10 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in mic_monitor_gem.gemspec
6
6
  gemspec
7
7
 
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
11
+
12
+ gem "rubocop", "~> 0.80"
13
+
8
14
  gem 'exception_notification'
data/Gemfile.lock ADDED
@@ -0,0 +1,103 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mic_monitor_gem (0.2.4)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ actionmailer (6.1.4.1)
10
+ actionpack (= 6.1.4.1)
11
+ actionview (= 6.1.4.1)
12
+ activejob (= 6.1.4.1)
13
+ activesupport (= 6.1.4.1)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ rails-dom-testing (~> 2.0)
16
+ actionpack (6.1.4.1)
17
+ actionview (= 6.1.4.1)
18
+ activesupport (= 6.1.4.1)
19
+ rack (~> 2.0, >= 2.0.9)
20
+ rack-test (>= 0.6.3)
21
+ rails-dom-testing (~> 2.0)
22
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
23
+ actionview (6.1.4.1)
24
+ activesupport (= 6.1.4.1)
25
+ builder (~> 3.1)
26
+ erubi (~> 1.4)
27
+ rails-dom-testing (~> 2.0)
28
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
29
+ activejob (6.1.4.1)
30
+ activesupport (= 6.1.4.1)
31
+ globalid (>= 0.3.6)
32
+ activesupport (6.1.4.1)
33
+ concurrent-ruby (~> 1.0, >= 1.0.2)
34
+ i18n (>= 1.6, < 2)
35
+ minitest (>= 5.1)
36
+ tzinfo (~> 2.0)
37
+ zeitwerk (~> 2.3)
38
+ ast (2.4.2)
39
+ builder (3.2.4)
40
+ concurrent-ruby (1.1.9)
41
+ crass (1.0.6)
42
+ erubi (1.10.0)
43
+ exception_notification (4.4.3)
44
+ actionmailer (>= 4.0, < 7)
45
+ activesupport (>= 4.0, < 7)
46
+ globalid (0.5.2)
47
+ activesupport (>= 5.0)
48
+ i18n (1.8.11)
49
+ concurrent-ruby (~> 1.0)
50
+ loofah (2.12.0)
51
+ crass (~> 1.0.2)
52
+ nokogiri (>= 1.5.9)
53
+ mail (2.7.1)
54
+ mini_mime (>= 0.1.1)
55
+ mini_mime (1.1.2)
56
+ minitest (5.14.4)
57
+ nokogiri (1.12.5-x86_64-linux)
58
+ racc (~> 1.4)
59
+ parallel (1.21.0)
60
+ parser (3.0.2.0)
61
+ ast (~> 2.4.1)
62
+ racc (1.6.0)
63
+ rack (2.2.3)
64
+ rack-test (1.1.0)
65
+ rack (>= 1.0, < 3)
66
+ rails-dom-testing (2.0.3)
67
+ activesupport (>= 4.2.0)
68
+ nokogiri (>= 1.6)
69
+ rails-html-sanitizer (1.4.2)
70
+ loofah (~> 2.3)
71
+ rainbow (3.0.0)
72
+ rake (13.0.6)
73
+ regexp_parser (2.1.1)
74
+ rexml (3.2.5)
75
+ rubocop (0.93.1)
76
+ parallel (~> 1.10)
77
+ parser (>= 2.7.1.5)
78
+ rainbow (>= 2.2.2, < 4.0)
79
+ regexp_parser (>= 1.8)
80
+ rexml
81
+ rubocop-ast (>= 0.6.0)
82
+ ruby-progressbar (~> 1.7)
83
+ unicode-display_width (>= 1.4.0, < 2.0)
84
+ rubocop-ast (1.13.0)
85
+ parser (>= 3.0.1.1)
86
+ ruby-progressbar (1.11.0)
87
+ tzinfo (2.0.4)
88
+ concurrent-ruby (~> 1.0)
89
+ unicode-display_width (1.8.0)
90
+ zeitwerk (2.5.1)
91
+
92
+ PLATFORMS
93
+ x86_64-linux
94
+
95
+ DEPENDENCIES
96
+ exception_notification
97
+ mic_monitor_gem!
98
+ minitest (~> 5.0)
99
+ rake (~> 13.0)
100
+ rubocop (~> 0.80)
101
+
102
+ BUNDLED WITH
103
+ 2.2.3
data/Rakefile CHANGED
@@ -9,4 +9,8 @@ Rake::TestTask.new(:test) do |t|
9
9
  t.test_files = FileList["test/**/*_test.rb"]
10
10
  end
11
11
 
12
- task default: %i[test]
12
+ require "rubocop/rake_task"
13
+
14
+ RuboCop::RakeTask.new
15
+
16
+ task default: %i[test rubocop]
@@ -1,6 +1,6 @@
1
1
  Rails.application.config.middleware.use ExceptionNotification::Rack,
2
2
  email: {
3
3
  email_prefix: '[PREFIX] ',
4
- sender_address: %{"notifier" <loc2miclabs.co>},
4
+ sender_address: %{"notifier" <loc@miclabs.co>},
5
5
  exception_recipients: %w{loc@miclabs.co}
6
6
  }
@@ -0,0 +1,5 @@
1
+ module MicMonitorGem
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace MicMonitorGem
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ Description:
2
+ Add config email to environments production
3
+
4
+ Usage:
5
+ rails generate mic_monitor_gem:install
@@ -0,0 +1,19 @@
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicMonitorGem
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.7"
5
5
  end
@@ -1,9 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "mic_monitor_gem/version"
4
+ require_relative "mic_monitor_gem/engine"
4
5
 
5
6
  module MicMonitorGem
6
- class Engine < ::Rails::Engine
7
- isolate_namespace MicMonitorGem
8
- end
9
7
  end
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mic_monitor_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - mic-locnv
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-08 00:00:00.000000000 Z
11
+ date: 2021-11-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: call Rspec or features to check and send notification
14
14
  email:
@@ -21,6 +21,7 @@ files:
21
21
  - ".rubocop.yml"
22
22
  - CODE_OF_CONDUCT.md
23
23
  - Gemfile
24
+ - Gemfile.lock
24
25
  - LICENSE.txt
25
26
  - README.md
26
27
  - Rakefile
@@ -30,6 +31,9 @@ files:
30
31
  - config/environments/production.rb
31
32
  - config/routes.rb
32
33
  - lib/mic_monitor_gem.rb
34
+ - 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
33
37
  - lib/mic_monitor_gem/version.rb
34
38
  - mic_monitor_gem-0.1.0.gem
35
39
  - mic_monitor_gem-0.1.1.gem
@@ -44,6 +48,10 @@ files:
44
48
  - mic_monitor_gem-0.2.0.gem
45
49
  - mic_monitor_gem-0.2.1.gem
46
50
  - mic_monitor_gem-0.2.2.gem
51
+ - mic_monitor_gem-0.2.3.gem
52
+ - mic_monitor_gem-0.2.4.gem
53
+ - mic_monitor_gem-0.2.5.gem
54
+ - mic_monitor_gem-0.2.6.gem
47
55
  - mic_monitor_gem.gemspec
48
56
  homepage: https://github.com/miclabs/mic_monitor_gem
49
57
  licenses: