mic_monitor_gem 0.2.0 → 0.2.4

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: 01a513f17127fc2ae50c24851172750113afcfc8f70d8841ab2ee55705178648
4
- data.tar.gz: 63c2249c263fabed88e0c680208725f1bf32569cde66e487dbc52b0e1cbcbf0c
3
+ metadata.gz: d27ff50e6568908d6e684160f1f187ec48f0e734854f5282a949b5733aab3ce5
4
+ data.tar.gz: 27c4db1df05bc57e1430b2054f3a5576deb1eb0d695b0c9de1a8d2b97c576ea4
5
5
  SHA512:
6
- metadata.gz: f52cd05b1d7fef9e8d30fa057eb52c4143a8004766c6700ba8476288161fbf4cdaf4b363ec1547ca2a590eaa74519d248a5119e0bfd31ab2ad4e078250a28fcc
7
- data.tar.gz: ce6b64857374f0fba95885a692664f0d59ea513f2fcfb2c4edef6cd57d3d09d846e2ac480f2b009f320f9159299fdf935704109c799f5c9f885287709a007374
6
+ metadata.gz: b70902c55d4f94b622c4d406a0e3f9ff2ed4b68e1d1a739d9e5ea8ffbf36ab25264bf01ae93e7d258f74e1ac07a968d55e01b2d38defae4348a57ab1adad8344
7
+ data.tar.gz: 8473ce03802f1c94b57bb348cb624c4974866583eace894e6949cf01ff5bc9f6bb4fa0788f78bf51e6c234802979fcb588baf3e6fedea6d6a1ed096094333378
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/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]
@@ -0,0 +1,5 @@
1
+ class MicMonitorGem::PingController < ActionController::Base
2
+ def index
3
+ render json: {status: 200}
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ Rails.application.config.middleware.use ExceptionNotification::Rack,
2
+ email: {
3
+ email_prefix: '[PREFIX] ',
4
+ sender_address: %{"notifier" <loc@miclabs.co>},
5
+ exception_recipients: %w{loc@miclabs.co}
6
+ }
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ MicMonitorGem::Engine.routes.draw do
2
+ resources :ping, only: [:index]
3
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MicMonitorGem
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.4"
5
5
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
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.0
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mic-locnv
@@ -24,10 +24,27 @@ files:
24
24
  - LICENSE.txt
25
25
  - README.md
26
26
  - Rakefile
27
+ - app/controller/mic_monitor_gem/ping_controller.rb
27
28
  - bin/console
28
29
  - bin/setup
30
+ - config/environments/production.rb
31
+ - config/routes.rb
29
32
  - lib/mic_monitor_gem.rb
30
33
  - lib/mic_monitor_gem/version.rb
34
+ - mic_monitor_gem-0.1.0.gem
35
+ - mic_monitor_gem-0.1.1.gem
36
+ - mic_monitor_gem-0.1.2.gem
37
+ - mic_monitor_gem-0.1.3.gem
38
+ - mic_monitor_gem-0.1.4.gem
39
+ - mic_monitor_gem-0.1.5.gem
40
+ - mic_monitor_gem-0.1.6.gem
41
+ - mic_monitor_gem-0.1.7.gem
42
+ - mic_monitor_gem-0.1.8.gem
43
+ - mic_monitor_gem-0.1.9.gem
44
+ - mic_monitor_gem-0.2.0.gem
45
+ - mic_monitor_gem-0.2.1.gem
46
+ - mic_monitor_gem-0.2.2.gem
47
+ - mic_monitor_gem-0.2.3.gem
31
48
  - mic_monitor_gem.gemspec
32
49
  homepage: https://github.com/miclabs/mic_monitor_gem
33
50
  licenses: