pushmore 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 +4 -4
- data/lib/push_more.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0970675fb1f350e790cc90eb12f74b0a75ea77f8'
|
4
|
+
data.tar.gz: c3ec14061622732b9e5b3940c28a0805ea2e0a14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e69d5ff3c843d4f5f725f4953f07eb966d190303f503f3b091015eab804c83f18ece9559952313229c004745ec29e88d55c3bd6e572289bea8f07f7ca29f2c9
|
7
|
+
data.tar.gz: 6a9d2286f567e3b0ebd1c945f9dca94d84873eeba56834ac52a1d141a8d4edf12d85ae04c0a9502f41db5c04736def155e22a5a8b0e6d0d9a66cfa2a8c22527e
|
data/lib/push_more.rb
CHANGED
@@ -3,6 +3,16 @@
|
|
3
3
|
require "net/https"
|
4
4
|
|
5
5
|
class PushMore
|
6
|
+
# Send notifcations to Telegram through PushMore.io
|
7
|
+
#
|
8
|
+
# Example:
|
9
|
+
# >> PushMore.new("hello world!", key: "foobar123").deliver
|
10
|
+
# => true
|
11
|
+
#
|
12
|
+
# Arguments:
|
13
|
+
# body: (String)
|
14
|
+
# key: (String)
|
15
|
+
|
6
16
|
WEBHOOK_BASE_URL = "https://pushmore.io/webhook/"
|
7
17
|
|
8
18
|
def initialize(body, key: ENV.fetch("PUSH_MORE_KEY"))
|