messenger-ruby 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c184d96abdb780341de1ac9918fb206c2f5d93c
4
- data.tar.gz: 7d94c3a157e2b324e48251253680a98274c4a6ee
3
+ metadata.gz: d38ac08d7148579e6c2acd158fe5da375d0664fd
4
+ data.tar.gz: 2397174f21176dbbe6be0a095ae242a8632a785b
5
5
  SHA512:
6
- metadata.gz: f79fc58986cc9e1de0f29b5ff21555977cd2e86739113c763370b8129616d1739d25a1e93359e354706802a7533324208adc3de5870890a9745373d5df479984
7
- data.tar.gz: 17111413f2f12dc4c9233555483207f42ffe2f648d397a151b51f53b3e9756ec03b45c16a504f162e95b378376afe5620873da16ff71324be2fc41253ec37eb7
6
+ metadata.gz: 6a71fb4206096cdb737b1cda4431151b21200d56ec17704b06b98fb95f3ce0249ac9ec3a7efbc7a4f69afa1d66491025c7bcd1ca3d11f601a9c2dd216df5b21e
7
+ data.tar.gz: 502795ee238a3a0a10b74f93321989a6f53218914b55af45ff434a5807c8872cc6e17f4b960dbc44628e0ffbc720d2264bde591d23c8adc72c6418562fead9d3
data/README.md CHANGED
@@ -74,6 +74,7 @@ If you want your controller to be named differently, please update your `routes.
74
74
 
75
75
  Run your application and:
76
76
  * complete step __2. Setup Webhook__ from [this tutorial](https://developers.facebook.com/docs/messenger-platform/quickstart#steps) - _if you mounted `Messenger::Engine` at `/messenger` and your application can be found at `https://example.com`, your `Callback URL` will be `https://example.com/messenger/webhook`_
77
+ * select `message_deliveries`, `messages`, `messaging_optins` and `messaging_postbacks` under Subscription Fields
77
78
  * visit `/messenger/subscribe` in your app (it's replacement for __[4. Subscribe the App to the Page](https://developers.facebook.com/docs/messenger-platform/quickstart#steps)__ step) - call `subscribe` action anytime you want to refresh subscription of your app
78
79
 
79
80
  ## Usage
@@ -13,7 +13,7 @@ module Messenger
13
13
  end
14
14
 
15
15
  def build_attachments(attachments)
16
- attachments.map { |attachment| Attachment.new(attachment.symbolize_keys) }
16
+ attachments.map { |attachment| Attachment.new(attachment.symbolize_keys.slice(:type, :payload)) }
17
17
  end
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module Messenger
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messenger-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - justynjozwiak
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-04-29 00:00:00.000000000 Z
12
+ date: 2016-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client