messenger_platform 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/README.md +170 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/messenger_platform.rb +26 -1
- data/lib/messenger_platform/api.rb +18 -0
- data/lib/messenger_platform/config.rb +14 -0
- data/lib/messenger_platform/entities/image.rb +12 -0
- data/lib/messenger_platform/entities/message.rb +26 -0
- data/lib/messenger_platform/entities/payload_button.rb +17 -0
- data/lib/messenger_platform/entities/payload_generic.rb +18 -0
- data/lib/messenger_platform/entities/payload_receipt.rb +17 -0
- data/lib/messenger_platform/entities/text.rb +10 -0
- data/lib/messenger_platform/entities/welcome.rb +22 -0
- data/lib/messenger_platform/parser.rb +27 -0
- data/lib/messenger_platform/version.rb +3 -0
- data/lib/tasks/messenger_platform_tasks.rake +4 -0
- data/messenger_platform.gemspec +27 -0
- metadata +104 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 834c72b31f17fd2d9f1970632e147c38ad600290
|
4
|
+
data.tar.gz: 766f0d2648a5eeb76911302ae851cf12bac3844a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70978bccb10ed016c1b0f53384b2163f8dca97509c003aba3efa508c6767b6b8530ce41d1056df2750c752d5c6d72dc76bcb21d754ea4ae45dc41811ad284ebc
|
7
|
+
data.tar.gz: c37a6d80d2d71a06a54c5a929698e3fe1e67adeabd969440140ccd4e359062bb7604ae9ded03c90d71ddab1695f94a7edec435b21e661aa12544420b0734395d
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at sugiacupit@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
# MessengerPlatform
|
2
|
+
|
3
|
+
A Ruby interface to the Facebook Messenger Platform API
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'messenger_platform'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install messenger_platform
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
#### Configuration
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
MessengerPlatform.configure do |config|
|
27
|
+
config.token = 'xxxx' # => messenger token
|
28
|
+
config.page_id = 'xxxx' # => Page ID
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
#### Welcome
|
33
|
+
```ruby
|
34
|
+
MessengerPlatform.welcome(nil, 'Hello world') # => nil can be changed by page id
|
35
|
+
```
|
36
|
+
|
37
|
+
#### Send Message
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
MessengerPlatform.text(user_id, 'Hello world')
|
41
|
+
MessengerPlatform.image(user_id, 'https://xxx.com/xx.png')
|
42
|
+
```
|
43
|
+
|
44
|
+
#### Payload
|
45
|
+
|
46
|
+
There are three types of payload: `button`, `generic`, `receipt`
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
MessengerPlatform.payload(:button, user_id, 'Hello world', [
|
50
|
+
{
|
51
|
+
"type":"web_url",
|
52
|
+
"url":"https://petersapparel.parseapp.com",
|
53
|
+
"title":"Show Website"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"type":"postback",
|
57
|
+
"title":"Start Chatting",
|
58
|
+
"payload":"USER_DEFINED_PAYLOAD"
|
59
|
+
}
|
60
|
+
])
|
61
|
+
|
62
|
+
MessengerPlatform.payload(:generic, user_id, [
|
63
|
+
{
|
64
|
+
"title":"Classic White T-Shirt",
|
65
|
+
"image_url":"http://petersapparel.parseapp.com/img/item100-thumb.png",
|
66
|
+
"subtitle":"Soft white cotton t-shirt is back in style",
|
67
|
+
"buttons":[
|
68
|
+
{
|
69
|
+
"type":"web_url",
|
70
|
+
"url":"https://petersapparel.parseapp.com/view_item?item_id=100",
|
71
|
+
"title":"View Item"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"type":"web_url",
|
75
|
+
"url":"https://petersapparel.parseapp.com/buy_item?item_id=100",
|
76
|
+
"title":"Buy Item"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"type":"postback",
|
80
|
+
"title":"Bookmark Item",
|
81
|
+
"payload":"USER_DEFINED_PAYLOAD_FOR_ITEM100"
|
82
|
+
}
|
83
|
+
]
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"title":"Classic Grey T-Shirt",
|
87
|
+
"image_url":"http://petersapparel.parseapp.com/img/item101-thumb.png",
|
88
|
+
"subtitle":"Soft gray cotton t-shirt is back in style",
|
89
|
+
"buttons":[
|
90
|
+
{
|
91
|
+
"type":"web_url",
|
92
|
+
"url":"https://petersapparel.parseapp.com/view_item?item_id=101",
|
93
|
+
"title":"View Item"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"type":"web_url",
|
97
|
+
"url":"https://petersapparel.parseapp.com/buy_item?item_id=101",
|
98
|
+
"title":"Buy Item"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"type":"postback",
|
102
|
+
"title":"Bookmark Item",
|
103
|
+
"payload":"USER_DEFINED_PAYLOAD_FOR_ITEM101"
|
104
|
+
}
|
105
|
+
]
|
106
|
+
}
|
107
|
+
])
|
108
|
+
|
109
|
+
MessengerPlatform.payload(:receipt, user_id, {
|
110
|
+
"recipient_name":"Stephane Crozatier",
|
111
|
+
"order_number":"12345678902",
|
112
|
+
"currency":"USD",
|
113
|
+
"payment_method":"Visa 2345",
|
114
|
+
"order_url":"http://petersapparel.parseapp.com/order?order_id=123456",
|
115
|
+
"timestamp":"1428444852",
|
116
|
+
"elements":[
|
117
|
+
{
|
118
|
+
"title":"Classic White T-Shirt",
|
119
|
+
"subtitle":"100% Soft and Luxurious Cotton",
|
120
|
+
"quantity":2,
|
121
|
+
"price":50,
|
122
|
+
"currency":"USD",
|
123
|
+
"image_url":"http://petersapparel.parseapp.com/img/whiteshirt.png"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"title":"Classic Gray T-Shirt",
|
127
|
+
"subtitle":"100% Soft and Luxurious Cotton",
|
128
|
+
"quantity":1,
|
129
|
+
"price":25,
|
130
|
+
"currency":"USD",
|
131
|
+
"image_url":"http://petersapparel.parseapp.com/img/grayshirt.png"
|
132
|
+
}
|
133
|
+
],
|
134
|
+
"address":{
|
135
|
+
"street_1":"1 Hacker Way",
|
136
|
+
"street_2":"",
|
137
|
+
"city":"Menlo Park",
|
138
|
+
"postal_code":"94025",
|
139
|
+
"state":"CA",
|
140
|
+
"country":"US"
|
141
|
+
},
|
142
|
+
"summary":{
|
143
|
+
"subtotal":75.00,
|
144
|
+
"shipping_cost":4.95,
|
145
|
+
"total_tax":6.19,
|
146
|
+
"total_cost":56.14
|
147
|
+
},
|
148
|
+
"adjustments":[
|
149
|
+
{
|
150
|
+
"name":"New Customer Discount",
|
151
|
+
"amount":20
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"name":"$10 Off Coupon",
|
155
|
+
"amount":10
|
156
|
+
}
|
157
|
+
]
|
158
|
+
})
|
159
|
+
```
|
160
|
+
|
161
|
+
## Development
|
162
|
+
|
163
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
164
|
+
|
165
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
166
|
+
|
167
|
+
## Contributing
|
168
|
+
|
169
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Coffa/messenger_platform. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
170
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "messenger_platform"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/messenger_platform.rb
CHANGED
@@ -1,2 +1,27 @@
|
|
1
|
-
|
1
|
+
require 'messenger_platform/config'
|
2
|
+
require 'messenger_platform/api'
|
3
|
+
require 'messenger_platform/parser'
|
4
|
+
|
5
|
+
module MessengerPlatform
|
6
|
+
extend self
|
7
|
+
|
8
|
+
def configure
|
9
|
+
yield(Config) if block_given?
|
10
|
+
end
|
11
|
+
|
12
|
+
def text(receiver_id, text)
|
13
|
+
Api.call(:text, receiver_id, text)
|
14
|
+
end
|
15
|
+
|
16
|
+
def image(receiver_id, image_url)
|
17
|
+
Api.call(:image, receiver_id, image_url)
|
18
|
+
end
|
19
|
+
|
20
|
+
def welcome(page_id, text)
|
21
|
+
Api.call(:welcome, page_id, text)
|
22
|
+
end
|
23
|
+
|
24
|
+
def payload(template_type, *args)
|
25
|
+
Api.call("payload_#{template_type}", *args)
|
26
|
+
end
|
2
27
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'messenger_platform/entities/welcome'
|
2
|
+
require 'messenger_platform/entities/message'
|
3
|
+
require 'messenger_platform/entities/text'
|
4
|
+
require 'messenger_platform/entities/image'
|
5
|
+
require 'messenger_platform/entities/payload_button'
|
6
|
+
require 'messenger_platform/entities/payload_generic'
|
7
|
+
require 'messenger_platform/entities/payload_receipt'
|
8
|
+
|
9
|
+
module MessengerPlatform
|
10
|
+
module Api
|
11
|
+
extend self
|
12
|
+
|
13
|
+
def call(name, recipient_id, *args)
|
14
|
+
klass = Entities.const_get(name.to_s.split('_').map(&:capitalize).join(''))
|
15
|
+
klass.new(recipient_id).call(*args)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module MessengerPlatform
|
2
|
+
module Config
|
3
|
+
|
4
|
+
mattr_accessor :page_id
|
5
|
+
mattr_accessor :token
|
6
|
+
|
7
|
+
mattr_accessor :end_point
|
8
|
+
@@end_point = 'https://graph.facebook.com/v2.6'
|
9
|
+
|
10
|
+
mattr_accessor :message_end_point
|
11
|
+
@@message_end_point = 'https://graph.facebook.com/v2.6/me/messages'
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module MessengerPlatform
|
2
|
+
module Entities
|
3
|
+
class Message
|
4
|
+
attr_accessor :recipient_id
|
5
|
+
|
6
|
+
def initialize(recipient_id)
|
7
|
+
@recipient_id = recipient_id
|
8
|
+
end
|
9
|
+
|
10
|
+
def call(*args)
|
11
|
+
Typhoeus.post(Config.message_end_point, body: body_params(*args))
|
12
|
+
end
|
13
|
+
|
14
|
+
def auth_params
|
15
|
+
{
|
16
|
+
access_token: Config.token,
|
17
|
+
recipient: { id: recipient_id }
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
def message_params(message)
|
22
|
+
{ message: message }
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module MessengerPlatform
|
2
|
+
module Entities
|
3
|
+
class PayloadButton < Message
|
4
|
+
|
5
|
+
def body_params(text, button_template)
|
6
|
+
auth_params.merge(message_params(attachment: {
|
7
|
+
type: :template,
|
8
|
+
payload: {
|
9
|
+
template_type: :button,
|
10
|
+
text: text,
|
11
|
+
buttons: button_template
|
12
|
+
}
|
13
|
+
}))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module MessengerPlatform
|
2
|
+
module Entities
|
3
|
+
class PayloadGeneric < Message
|
4
|
+
|
5
|
+
def body_params(generic_template)
|
6
|
+
auth_params.merge(message: {
|
7
|
+
attachment: {
|
8
|
+
type: :template,
|
9
|
+
payload: {
|
10
|
+
template_type: :generic,
|
11
|
+
elements: generic_template
|
12
|
+
}
|
13
|
+
}
|
14
|
+
})
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module MessengerPlatform
|
2
|
+
module Entities
|
3
|
+
class PayloadReceipt < Message
|
4
|
+
|
5
|
+
def body_params(receipt_template)
|
6
|
+
auth_params.merge(message: {
|
7
|
+
attachment: {
|
8
|
+
type: :template,
|
9
|
+
payload: {
|
10
|
+
template_type: :receipt,
|
11
|
+
}.merge(receipt_template)
|
12
|
+
}
|
13
|
+
})
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module MessengerPlatform
|
2
|
+
module Entities
|
3
|
+
class Welcome
|
4
|
+
attr_accessor :page_id
|
5
|
+
|
6
|
+
def initialize(page_id)
|
7
|
+
@page_id = page_id
|
8
|
+
end
|
9
|
+
|
10
|
+
def call(text)
|
11
|
+
params = {
|
12
|
+
access_token: Config.token,
|
13
|
+
setting_type: 'call_to_actions',
|
14
|
+
thread_state: 'new_thread',
|
15
|
+
call_to_actions: [{ message: { text: text } }]
|
16
|
+
}
|
17
|
+
|
18
|
+
Typhoeus.post("#{Config.end_point}/#{page_id || Config.page_id}/thread_settings", body: params)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module MessengerPlatform
|
2
|
+
module Parser
|
3
|
+
extend self
|
4
|
+
|
5
|
+
def execute(args)
|
6
|
+
args['entry']
|
7
|
+
.map { |entry| entry[:messaging] }.flatten
|
8
|
+
.map do |msg|
|
9
|
+
{
|
10
|
+
sender_id: msg[:sender][:id],
|
11
|
+
recipient_id: msg[:recipient][:id]
|
12
|
+
}.merge(filter_type(msg) || {})
|
13
|
+
end
|
14
|
+
.select { |msg| msg[:type].present? }
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def filter_type(msg)
|
20
|
+
if msg.key? 'message'
|
21
|
+
{ type: 'message', text: msg[:message][:text] }
|
22
|
+
elsif msg.key? 'postback'
|
23
|
+
{ type: 'payload', text: msg[:postback][:payload] }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'messenger_platform/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "messenger_platform"
|
8
|
+
spec.version = MessengerPlatform::VERSION
|
9
|
+
spec.authors = ["MQuy"]
|
10
|
+
spec.email = ["sugiacupit@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Write a short summary, because Rubygems requires one.}
|
13
|
+
spec.description = %q{Write a longer description or delete this line.}
|
14
|
+
spec.homepage = "https://github.com/Coffa/messenger_platform"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
24
|
+
|
25
|
+
spec.add_dependency 'typhoeus', '~> 1.0'
|
26
|
+
spec.add_dependency 'faraday', '~> 0.9.2'
|
27
|
+
end
|
metadata
CHANGED
@@ -1,25 +1,117 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: messenger_platform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- MQuy
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: typhoeus
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: faraday
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.9.2
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.9.2
|
83
|
+
description: Write a longer description or delete this line.
|
84
|
+
email:
|
85
|
+
- sugiacupit@gmail.com
|
15
86
|
executables: []
|
16
87
|
extensions: []
|
17
88
|
extra_rdoc_files: []
|
18
89
|
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- CODE_OF_CONDUCT.md
|
94
|
+
- Gemfile
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- bin/console
|
98
|
+
- bin/setup
|
19
99
|
- lib/messenger_platform.rb
|
20
|
-
|
21
|
-
|
22
|
-
-
|
100
|
+
- lib/messenger_platform/api.rb
|
101
|
+
- lib/messenger_platform/config.rb
|
102
|
+
- lib/messenger_platform/entities/image.rb
|
103
|
+
- lib/messenger_platform/entities/message.rb
|
104
|
+
- lib/messenger_platform/entities/payload_button.rb
|
105
|
+
- lib/messenger_platform/entities/payload_generic.rb
|
106
|
+
- lib/messenger_platform/entities/payload_receipt.rb
|
107
|
+
- lib/messenger_platform/entities/text.rb
|
108
|
+
- lib/messenger_platform/entities/welcome.rb
|
109
|
+
- lib/messenger_platform/parser.rb
|
110
|
+
- lib/messenger_platform/version.rb
|
111
|
+
- lib/tasks/messenger_platform_tasks.rake
|
112
|
+
- messenger_platform.gemspec
|
113
|
+
homepage: https://github.com/Coffa/messenger_platform
|
114
|
+
licenses: []
|
23
115
|
metadata: {}
|
24
116
|
post_install_message:
|
25
117
|
rdoc_options: []
|
@@ -37,9 +129,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
129
|
version: '0'
|
38
130
|
requirements: []
|
39
131
|
rubyforge_project:
|
40
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.5.1
|
41
133
|
signing_key:
|
42
134
|
specification_version: 4
|
43
|
-
summary:
|
135
|
+
summary: Write a short summary, because Rubygems requires one.
|
44
136
|
test_files: []
|
45
137
|
has_rdoc:
|