nifty_alert 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 971e9c9279cccb56bd52e2dfda694b5fdb950f12
4
- data.tar.gz: ce87d5ad520730c069ee21a39eeeec0bf0fe8000
3
+ metadata.gz: 94b5bb14220d54a7b90773972048a442564a07eb
4
+ data.tar.gz: 74fb323064bbc39bafa541822d4d190f5f388529
5
5
  SHA512:
6
- metadata.gz: b3c78ed8f220addc192f759e7659a770bb93f28bd16b4640b83f5d12cd799972f25357f30307440c71ada7c736bfce7144f06282f95b8c6cb0d4090798205410
7
- data.tar.gz: 36fe513042a5835610fb9007ee997aeca8778e5b5caad4485eccc3f62c8a7dcbc45f12fa999323808b209396d6c4711a01379f5e9f5d2d4ea897923b84ab3ac6
6
+ metadata.gz: 4c17f5652b2820dc221e357b4bd0a3655857c63ad4dfc4783afbd3df8ca85161ff0f932474aa1fc59b5e608c283d57071e0a88805a49eea69bc60e94e37f887a
7
+ data.tar.gz: 0ca72797c9a63f859223683efb02a9cda4d37e246a0c1390bc8b091cb4c26406de5e7a1f2602b7509ccc77f3f9c07211f69dffc41c4b4c0bc7fad13de65d84b0
@@ -1,3 +1,3 @@
1
1
  module NiftyAlert
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/nifty_alert.rb CHANGED
@@ -3,13 +3,13 @@ require "faraday"
3
3
  class NiftyAlert
4
4
  SERVICE_URL = "https://nifty-alert-production.herokuapp.com/alerts"
5
5
 
6
- def initialize(id)
7
- @id = id
6
+ def initialize(description)
7
+ @description = description
8
8
  end
9
9
 
10
10
  def report(number, threshold)
11
11
  if number > threshold
12
- Faraday.post(SERVICE_URL, id: @id, recipients: self.class.recipients)
12
+ Faraday.post(SERVICE_URL, description: @description, recipients: self.class.recipients)
13
13
  end
14
14
  rescue
15
15
  nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nifty_alert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Albertson