facebook-messenger 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +151 -10
  3. data/lib/facebook/messenger.rb +3 -0
  4. data/lib/facebook/messenger/bot.rb +43 -10
  5. data/lib/facebook/messenger/bot/message_type.rb +13 -0
  6. data/lib/facebook/messenger/bot/messaging_type.rb +12 -0
  7. data/lib/facebook/messenger/bot/tag.rb +27 -0
  8. data/lib/facebook/messenger/configuration.rb +3 -1
  9. data/lib/facebook/messenger/configuration/providers/base.rb +4 -2
  10. data/lib/facebook/messenger/configuration/providers/environment.rb +6 -1
  11. data/lib/facebook/messenger/error.rb +14 -1
  12. data/lib/facebook/messenger/incoming.rb +31 -6
  13. data/lib/facebook/messenger/incoming/account_linking.rb +6 -0
  14. data/lib/facebook/messenger/incoming/common.rb +75 -1
  15. data/lib/facebook/messenger/incoming/delivery.rb +1 -0
  16. data/lib/facebook/messenger/incoming/message.rb +86 -1
  17. data/lib/facebook/messenger/incoming/message_echo.rb +2 -2
  18. data/lib/facebook/messenger/incoming/message_request.rb +13 -0
  19. data/lib/facebook/messenger/incoming/optin.rb +18 -1
  20. data/lib/facebook/messenger/incoming/payment.rb +49 -0
  21. data/lib/facebook/messenger/incoming/policy_enforcement.rb +21 -0
  22. data/lib/facebook/messenger/incoming/postback.rb +5 -1
  23. data/lib/facebook/messenger/incoming/read.rb +3 -0
  24. data/lib/facebook/messenger/incoming/referral.rb +5 -2
  25. data/lib/facebook/messenger/profile.rb +43 -3
  26. data/lib/facebook/messenger/server.rb +40 -4
  27. data/lib/facebook/messenger/server_no_error.rb +36 -0
  28. data/lib/facebook/messenger/subscriptions.rb +42 -2
  29. data/lib/facebook/messenger/version.rb +3 -1
  30. metadata +12 -5
@@ -1,5 +1,7 @@
1
1
  module Facebook
2
2
  module Messenger
3
- VERSION = '1.0.0'.freeze
3
+ #
4
+ # @return [String] Define the version of gem.
5
+ VERSION = '1.1.0'.freeze
4
6
  end
5
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook-messenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Gorset
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2018-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 1.6.4
39
+ version: 1.4.5
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 1.6.4
46
+ version: 1.4.5
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -170,6 +170,9 @@ files:
170
170
  - lib/facebook/messenger/bot.rb
171
171
  - lib/facebook/messenger/bot/error_parser.rb
172
172
  - lib/facebook/messenger/bot/exceptions.rb
173
+ - lib/facebook/messenger/bot/message_type.rb
174
+ - lib/facebook/messenger/bot/messaging_type.rb
175
+ - lib/facebook/messenger/bot/tag.rb
173
176
  - lib/facebook/messenger/configuration.rb
174
177
  - lib/facebook/messenger/configuration/providers.rb
175
178
  - lib/facebook/messenger/configuration/providers/base.rb
@@ -181,12 +184,16 @@ files:
181
184
  - lib/facebook/messenger/incoming/delivery.rb
182
185
  - lib/facebook/messenger/incoming/message.rb
183
186
  - lib/facebook/messenger/incoming/message_echo.rb
187
+ - lib/facebook/messenger/incoming/message_request.rb
184
188
  - lib/facebook/messenger/incoming/optin.rb
189
+ - lib/facebook/messenger/incoming/payment.rb
190
+ - lib/facebook/messenger/incoming/policy_enforcement.rb
185
191
  - lib/facebook/messenger/incoming/postback.rb
186
192
  - lib/facebook/messenger/incoming/read.rb
187
193
  - lib/facebook/messenger/incoming/referral.rb
188
194
  - lib/facebook/messenger/profile.rb
189
195
  - lib/facebook/messenger/server.rb
196
+ - lib/facebook/messenger/server_no_error.rb
190
197
  - lib/facebook/messenger/subscriptions.rb
191
198
  - lib/facebook/messenger/version.rb
192
199
  homepage: https://github.com/hyperoslo/facebook-messenger
@@ -209,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
216
  version: '0'
210
217
  requirements: []
211
218
  rubyforge_project:
212
- rubygems_version: 2.6.8
219
+ rubygems_version: 2.5.2.1
213
220
  signing_key:
214
221
  specification_version: 4
215
222
  summary: Facebook Messenger client