monitor_me 0.1.2 → 0.1.5

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: 7787a9266f0ecfd1e2642a76d89832a5ce48247180e983db06e972ddd5334670
4
- data.tar.gz: 01e19ece3c5001d3533071b04e621d52833dd81501b258917cd5250d649de9a4
3
+ metadata.gz: 2f516eed48c379dae8f896e4df8967609c92394edebc2da3e2aa37b67634ee65
4
+ data.tar.gz: f9c21b34a19c0be8634135881dcd2c89ba28f72096972efbf9a0c1a6d64d1365
5
5
  SHA512:
6
- metadata.gz: df27afe088936c4a0a989e2b19d78baef26176d3e61d7c18ea92d8225fa6cf10b754f1acd39d287af781a829cd0cd297a2f8698a3dd7c3f4f6c27c2e86197329
7
- data.tar.gz: f8a2ae9ebb72bb1d455bba1079f4fda25db0ea96a69dad253940ff690a5dd29770c740b43d11b49c92cf65e8956d463e1fcba4064664a226317228953b482232
6
+ metadata.gz: 5f1be73ce5e450a051e0e727c9c968e3c710b90b980a7993e9ff6c7864e1214cb0875b14d6c481f09f423c739a40de8ebeb6699f303f7715dda75a08e226faea
7
+ data.tar.gz: ed4b72b646ceea3adcda2252f8289706c80f8d323a5b3b47cb1ca7c3038a368fc533d7a85071ed7a37e76d08262f68d158cb65d71b9e0773bc23fd0b1b30a108
@@ -1,3 +1,3 @@
1
1
  class MonitorMe
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.5'
3
3
  end
data/lib/monitor_me.rb CHANGED
@@ -2,12 +2,20 @@ require "monitor_me/version"
2
2
 
3
3
  class MonitorMe
4
4
 
5
- def log_error(record)
6
- print "LOGGIN ERROR FOR #{record.class.name} RECORD"
7
- print record.errors.full_messages
5
+ def self.log_error(record)
6
+ if MONITOR_APIKEY.blank?
7
+ puts "Oops. Cannot send response without apikey."
8
+ puts "Please provide an apikey in this format in config/environments/*.rb:"
9
+ puts "\nMONITOR_APIKEY = 'apikey' # note it is strongly recommended to use ENV variables in non-development environments!"
10
+ else
11
+ puts "LOGGIN ERROR FOR #{record.class.name} RECORD\n"
12
+ puts record.errors.full_messages
13
+ puts user.to_yaml
14
+ puts debug(user)
15
+ end
8
16
  end
9
17
 
10
- def self.print_api_key_global
11
- print "#{MONITOR_APIKEY}" unless MONITOR_APIKEY.blank?
18
+ def self.puts_api_key_global
19
+ puts "#{MONITOR_APIKEY}" unless MONITOR_APIKEY.blank?
12
20
  end
13
21
  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.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Charette