monitor_me 0.1.5 → 0.1.5.7

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: 2f516eed48c379dae8f896e4df8967609c92394edebc2da3e2aa37b67634ee65
4
- data.tar.gz: f9c21b34a19c0be8634135881dcd2c89ba28f72096972efbf9a0c1a6d64d1365
3
+ metadata.gz: d982cd866a5d6472b58f1f4894ff86a6e7665ab559cb4af1efe3618433fac7f8
4
+ data.tar.gz: 7b2c9c3e5bed94eeb2f766119181c57f0916b74fcfbc5baa8a622d59d12c525a
5
5
  SHA512:
6
- metadata.gz: 5f1be73ce5e450a051e0e727c9c968e3c710b90b980a7993e9ff6c7864e1214cb0875b14d6c481f09f423c739a40de8ebeb6699f303f7715dda75a08e226faea
7
- data.tar.gz: ed4b72b646ceea3adcda2252f8289706c80f8d323a5b3b47cb1ca7c3038a368fc533d7a85071ed7a37e76d08262f68d158cb65d71b9e0773bc23fd0b1b30a108
6
+ metadata.gz: 3df55336b526d2d93a7b83c759f6057f3e34afc845cf02858b2da7dbf48a0690ff31ada6d122d24677dec07621515f887e85ad0b2746d7812eb90625afe80eeb
7
+ data.tar.gz: c7f44aabdc3225bd0403f1d9e96c39352c396db6621bf86aafd89ac799e7544980dc05af7f806bc33659c53d3667d723fd28a759cc804fe6877ae45ffdcb27fd
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "colorize"
@@ -1,3 +1,3 @@
1
1
  class MonitorMe
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.5.7'
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 user.to_yaml
14
- puts debug(user)
13
+ puts record.errors.full_messages.red
14
+ puts record.to_yaml
15
15
  end
16
16
  end
17
17
 
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
4
+ version: 0.1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Charette