monitor_me 0.1.5.6 → 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: d510cdca15ecd93fb17f179d7d155f948a9e0d9e1d35597c664c9c158cd3482d
4
- data.tar.gz: 15eba823213e7901c431a57c7545fa8f86f791f8d99384bc0ade4d3a3a1ff129
3
+ metadata.gz: d982cd866a5d6472b58f1f4894ff86a6e7665ab559cb4af1efe3618433fac7f8
4
+ data.tar.gz: 7b2c9c3e5bed94eeb2f766119181c57f0916b74fcfbc5baa8a622d59d12c525a
5
5
  SHA512:
6
- metadata.gz: 70a5f8f80b9eab1d4bbce273dd83ec9fb6cafb7b1d66d49b86e7c5da73747dd6f9f97a7c453057fc1af1cb6c174a12219a7021a51796ca62591dea85508f638c
7
- data.tar.gz: 3e45ee8c47387226a5ffc36e80ae011d79456db22deaa5eb0c83953ea1e98e3cb52cadea4ab81cc5b597e56942b111c5592e5afcb8c70039a7627aec95cc949a
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.6'
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 record.errors.full_messages.red
13
14
  puts record.to_yaml
14
- puts debug(record)
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.6
4
+ version: 0.1.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Charette