fabychy 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fabychy/bot.rb +4 -0
- data/lib/fabychy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67756fa87b4970b37a9a0b9acbec6003826157dc
|
4
|
+
data.tar.gz: 83ccd025d56f5004ed5c96a4af3da734aae48856
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0d3f796ea36b6ed7464bb21957bfeab25986d4b31728ce225b1ec6eeee09c7e2ad6e8136ad5ce15d5ce9231b02a2e8bd8da24bc6887f1dcb24fe16dc467bbc6
|
7
|
+
data.tar.gz: a9af73a88abfb5eb229cd81a6878f3f06400702deeb587de1334cfff3dd8babf16aec21e96dce9dd9ff7352be248d6d41a6e9e00fb081e209231fc98ef3962aa
|
data/lib/fabychy/bot.rb
CHANGED
@@ -12,6 +12,10 @@ module Fabychy
|
|
12
12
|
@connection = HTTPClient.new
|
13
13
|
end
|
14
14
|
|
15
|
+
def send_raw(message)
|
16
|
+
api_post("me/messages?access_token=#{@access_token}", message)
|
17
|
+
end
|
18
|
+
|
15
19
|
def send_message(message)
|
16
20
|
api_post("me/messages?access_token=#{@access_token}", Fabychy::Sanitizer.sanitize(:msg, message))
|
17
21
|
end
|
data/lib/fabychy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fabychy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nima Kaviani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|