monitor_me 0.1.5.5 → 0.1.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0423b1fd4b19587f941e238e02bed27c498e95d9c28552ce730643005dbe6913
4
- data.tar.gz: ca735b2aa84f4942119d5bd1b009c83bba4fb4c9197e6d103f3978d32a2a3614
3
+ metadata.gz: 64bb9a1e8d09b2bc1fc429aec4c5ca6d15446e50424db2413ff8f15ff4f20092
4
+ data.tar.gz: e9e6606f35c341398475c33193f627f93873e6ec9b2459584979366941f76280
5
5
  SHA512:
6
- metadata.gz: d1820ba8d0f4c589c627ca56cfa5f1bdbd4d4edc412fd624afc5b6c314c2a70dfd90bf5944ed45963346857db9903ce86cea7209f70d54e15c3282bbcd10def4
7
- data.tar.gz: ada9c7ffc9396436ec9b79debaa23671ca95e09d668a2e71d5f821cee54bfb814c55704900c74fc7ec79a02ee7fda8320471f370fb1f4a3b71fce215768da191
6
+ metadata.gz: e11b25998d295e4fdd05729feb96ab8eb11b2bda5346e0bac86e5cbad10128541fb541afbe5144ea33ed59d6d884dadc5581ecdd3ff8fe6ce4413f94c6a45e49
7
+ data.tar.gz: 448c9742a4e94674c02a95ef32d608a51e30f154b4fd4ca6b3318dfe42aea4e138cda29443805da327cdc424f2779d70d393d419c8ac6afd1d1e980fb6a9a5aa
data/Gemfile CHANGED
@@ -5,3 +5,5 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "rspec", "~> 3.0"
8
+
9
+ gemspec
@@ -1,3 +1,3 @@
1
1
  class MonitorMe
2
- VERSION = '0.1.5.5'
2
+ VERSION = '0.1.5.8'
3
3
  end
data/lib/monitor_me.rb CHANGED
@@ -1,17 +1,17 @@
1
1
  require "monitor_me/version"
2
+ require 'colorize'
2
3
 
3
4
  class MonitorMe
4
5
 
5
6
  def self.log_error(record)
6
- if MONITOR_APIKEY.blank?
7
- puts "Oops. Cannot send response without apikey."
7
+ if MONITOR_APIKEY.nil? || MONITOR_APIKEY.empty?
8
+ puts "Oops. Cannot send response without apikey.".red
8
9
  puts "Please provide an apikey in this format in config/environments/*.rb:"
9
10
  puts "\nMONITOR_APIKEY = 'apikey' # note it is strongly recommended to use ENV variables in non-development environments!"
10
11
  else
11
12
  puts "LOGGIN ERROR FOR #{record.class.name} RECORD\n"
12
- puts record.errors.full_messages
13
- puts recird.to_yaml
14
- puts debug(record)
13
+ puts record.errors.full_messages.red
14
+ puts record.to_yaml
15
15
  end
16
16
  end
17
17
 
data/monitor_me.gemspec CHANGED
@@ -25,4 +25,6 @@ Gem::Specification.new do |spec|
25
25
  spec.bindir = "exe"
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
+
29
+ spec.add_runtime_dependency "colorize"
28
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monitor_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.5
4
+ version: 0.1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Charette
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2022-05-14 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: colorize
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description:
14
28
  email:
15
29
  - charettesa19@gmail.com