monitor_me 0.1.2 → 0.1.3

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: ff4a8de2e94dc1fcc303eb0c6cfa5498965eb706bfca92e5522de6c4b1b31a86
4
+ data.tar.gz: 53e3427957cdf8f449aa9d6ad31d92e5c6f3499cd1f8a23b407fe843dc5484ad
5
5
  SHA512:
6
- metadata.gz: df27afe088936c4a0a989e2b19d78baef26176d3e61d7c18ea92d8225fa6cf10b754f1acd39d287af781a829cd0cd297a2f8698a3dd7c3f4f6c27c2e86197329
7
- data.tar.gz: f8a2ae9ebb72bb1d455bba1079f4fda25db0ea96a69dad253940ff690a5dd29770c740b43d11b49c92cf65e8956d463e1fcba4064664a226317228953b482232
6
+ metadata.gz: 333fad8871bb6cf601d3dc836b1480773775ccb6f93adfdcc83593d6456dc54fd12029eb2b0f3df22ac041af305b22a6784d10f82366890e40de967b6dc3bc6b
7
+ data.tar.gz: 401ee0fbb5d1dcaa5d6914dbdf7c19d331a1d79031f23a7081dd80465dc43ead898661286d099b6cad9c724c7d1912f7b3ed6eddcc7cfe61657491a9e2cf5319
@@ -1,3 +1,3 @@
1
1
  class MonitorMe
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
data/lib/monitor_me.rb CHANGED
@@ -3,8 +3,13 @@ require "monitor_me/version"
3
3
  class MonitorMe
4
4
 
5
5
  def log_error(record)
6
- print "LOGGIN ERROR FOR #{record.class.name} RECORD"
7
- print record.errors.full_messages
6
+ if MONITOR_APIKEY.blank?
7
+ print "Oops. Cannot send response without apikey. Please provide an apikey in this format in config/environments/*.rb:"
8
+ print "MONITOR_APIKEY = 'apikey' # note it is strongly recommended to use ENV variables in non-development environments!"
9
+ else
10
+ print "LOGGIN ERROR FOR #{record.class.name} RECORD"
11
+ print record.errors.full_messages
12
+ end
8
13
  end
9
14
 
10
15
  def self.print_api_key_global
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Charette