messenger_client 0.1.0 → 0.1.1

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: 8d88fe123f1849121c7648507e7609f370f00be3
4
- data.tar.gz: 87cb3c7f6c730f40ea42a8d74b8f7fb6d5b42124
3
+ metadata.gz: c35746fe9e9f53199eb9ef6fbcb4dff1fcf06254
4
+ data.tar.gz: 17f6f6861ecb67b2ab4bdc6998b722e9cfc1342c
5
5
  SHA512:
6
- metadata.gz: 95003a3729846d4301e7c3f899209e37d98c591c0409d87459c026ce14b9fbde88182a96d3256e742e206d18575f9048506647a2dcb5c2a5f225454819b3ba1e
7
- data.tar.gz: 1dfbe0db59111d64d0cd788541d1a508af4ac8b79fc493e4c693fecd7b5cb03525a6782c8f40d1b4081301ce2f61075ec3a0c78058aa3335bbccf384ce6c20ef
6
+ metadata.gz: 8c2b702d42926113d12f49469ab5127e42921197f06a52b0790385fe3f9079fe9907237f151c61a6c54a6e8744516a22c7e9d4a92cec524dfe5a90fbb858d148
7
+ data.tar.gz: '088b983e8d0bb4d0fe767ce20611dde12808f0bd9426ef8d5d029c06d78dfae3a707f3c72d0c943ae2df454e4f746e201ce3ac86d128b1a93ec9407c2bd657ab'
@@ -72,8 +72,6 @@ module MessengerClient
72
72
  def generic_template(recipient_id:, template:)
73
73
  end
74
74
 
75
- private
76
-
77
75
  def send(recipient_id, data, opts={})
78
76
  payload = {
79
77
  recipient: {
@@ -82,13 +80,21 @@ module MessengerClient
82
80
  }
83
81
  payload.merge!(message: data) unless data.nil?
84
82
  payload.merge!(opts)
85
- Typhoeus.post(url, body: json(payload), headers: headers)
83
+ res = Typhoeus.post(url, body: json(payload), headers: headers)
84
+ p res.body if ENV["DEBUG"]
85
+ p res.headers if ENV["DEBUG"]
86
+ res
86
87
  end
87
88
 
88
89
  def post(payload)
89
- Typhoeus.post(url, body: json(payload), headers: headers)
90
+ res = Typhoeus.post(url, body: json(payload), headers: headers)
91
+ p res.body if ENV["DEBUG"]
92
+ p res.headers if ENV["DEBUG"]
93
+ res
90
94
  end
91
95
 
96
+ private
97
+
92
98
  def url
93
99
  URL_TEMPLATE % @page_access_token
94
100
  end
@@ -1,3 +1,3 @@
1
1
  module MessengerClient
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messenger_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Cruz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-04 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.5.1
129
+ rubygems_version: 2.6.8
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: A client for the Facebook Messenger platform