nifty_alert 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94b5bb14220d54a7b90773972048a442564a07eb
4
- data.tar.gz: 74fb323064bbc39bafa541822d4d190f5f388529
3
+ metadata.gz: 4ffd927ec73849cf0ef5228b0cfdb76ad8dc329e
4
+ data.tar.gz: 861138788bc744399fdb51f61cd33ae453fe4a89
5
5
  SHA512:
6
- metadata.gz: 4c17f5652b2820dc221e357b4bd0a3655857c63ad4dfc4783afbd3df8ca85161ff0f932474aa1fc59b5e608c283d57071e0a88805a49eea69bc60e94e37f887a
7
- data.tar.gz: 0ca72797c9a63f859223683efb02a9cda4d37e246a0c1390bc8b091cb4c26406de5e7a1f2602b7509ccc77f3f9c07211f69dffc41c4b4c0bc7fad13de65d84b0
6
+ metadata.gz: 21d0c74171ad8d308637d475e93efcf1861e3321a3c98bb8e062c06b05f01185fa241afc90d9c46af89499aa8957be4037864a2e056eac538069409250e67426
7
+ data.tar.gz: 5cf5daa928dc2cec0b6e555d27e526242acf935804eb472d2f25940c4bc59c504c81029d0ac20eaeea8c5d20a063839f6834a726c0e050529f8bcc17fbd8315d
@@ -1,3 +1,3 @@
1
1
  module NiftyAlert
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/nifty_alert.rb CHANGED
@@ -9,7 +9,13 @@ class NiftyAlert
9
9
 
10
10
  def report(number, threshold)
11
11
  if number > threshold
12
- Faraday.post(SERVICE_URL, description: @description, recipients: self.class.recipients)
12
+ Faraday.post(
13
+ SERVICE_URL,
14
+ description: @description,
15
+ recipients: self.class.recipients,
16
+ current_number: number,
17
+ threshold: threshold
18
+ )
13
19
  end
14
20
  rescue
15
21
  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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Albertson