postmark-inbound 0.2.0 → 0.2.1

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: 68e263e910d1c898e9959f28756fb370f65f7dfb
4
- data.tar.gz: a15cd5ea90284cb8c1c1689a5b1a4f4b5f413df0
3
+ metadata.gz: eefa3761d288b57ff307dece6e5e8679b84b759e
4
+ data.tar.gz: 30d6cd93c53c00f96108fe64f0706af356939c13
5
5
  SHA512:
6
- metadata.gz: 455d1a0606cf8504d01e2a91d4233630a8e0ce1a1f655b38a9747d3f4523a024ade1b841062be8e39b2dabd7861d94fcf0c27c628a182d5f59aff0db2128cbec
7
- data.tar.gz: 3e4bf98990750698e31ed501cb6372485983fa144d4d5bac37cc582d1f6d947149476f75a49d3729f3820af1512e180613a0483b19ee5a9becf9acd364a5194b
6
+ metadata.gz: c05badd0b3f9fe5a508938590d51e11309bee6a5031dba38c2c9616daa4241206bfe0e2e02fcffd95427037f80eab0913a3ea8fd54c88cd83e6851f2c1781b27
7
+ data.tar.gz: 19cafa228bbddba7dea91fe35178f71a3c217e3c2c5aaf7ddc27e4853b668f54c5240f687fa4b0ae22fb292837f52d340c05be26d642895963a81921bc59f2a5
data/README.md CHANGED
@@ -10,15 +10,13 @@ A Ruby server for Postmark inbound webhook.
10
10
  - [Kajiki](https://kenjij.github.io/kajiki/) 1.1 <=
11
11
  - [Sinatra](http://www.sinatrarb.com) 1.4 <=
12
12
 
13
- ## Getting Started
14
-
15
- ### Install
13
+ ## Install
16
14
 
17
15
  ```
18
16
  $ gem install postmark-inbound
19
17
  ```
20
18
 
21
- ### Configure
19
+ ## Configure
22
20
 
23
21
  Create a configuration file following the example below.
24
22
 
@@ -46,7 +44,7 @@ PINS::Config.setup do |c|
46
44
  end
47
45
  ```
48
46
 
49
- #### Handlers
47
+ ### Handlers
50
48
 
51
49
  Handler blocks are called for every incoming requests. Create as many files you'd like containing handlers, for example: `handlers/examples.rb`
52
50
 
@@ -67,7 +65,7 @@ end
67
65
 
68
66
  ```
69
67
 
70
- ### Use
68
+ ## Use
71
69
 
72
70
  To see help:
73
71
 
@@ -27,7 +27,7 @@ module PINS
27
27
  # @param headers [Array]
28
28
  # @return [Hash]
29
29
  def catch_pm_headers(headers)
30
- return nil unless Array === headers
30
+ return {} unless Array === headers
31
31
  caught = {}
32
32
  headers.each do |h|
33
33
  case h[:name]
@@ -1,5 +1,5 @@
1
1
  module PINS
2
2
 
3
- Version = '0.2.0'
3
+ Version = '0.2.1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark-inbound
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken J.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kajiki