incoming 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -5,6 +5,9 @@ Incoming! helps you receive email in your Rack apps.
5
5
 
6
6
  Brought to you by :zap: **Honeybadger.io**, painless [Rails exception tracking](https://www.honeybadger.io/).
7
7
 
8
+ [![Build Status](https://travis-ci.org/honeybadger-io/incoming.png)](https://travis-ci.org/honeybadger-io/incoming)
9
+ [![Gem Version](https://badge.fury.io/rb/incoming.png)](http://badge.fury.io/rb/incoming)
10
+
8
11
  ## Sendgrid example:
9
12
 
10
13
  ```ruby
@@ -2,7 +2,7 @@ require 'mail'
2
2
  require 'incoming/strategy'
3
3
 
4
4
  module Incoming
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
 
7
7
  module Strategies
8
8
  autoload :Sendgrid, 'incoming/strategies/sendgrid'
@@ -4,7 +4,7 @@ module Incoming
4
4
  include Incoming::Strategy
5
5
 
6
6
  def initialize(request)
7
- @message = Mail.new(request.params.delete(:message))
7
+ @message = Mail.new(request.params['message'])
8
8
  end
9
9
  end
10
10
  end
@@ -10,10 +10,10 @@ module Incoming
10
10
  def initialize(request)
11
11
  params = request.params
12
12
 
13
- @signature = params.delete(:signature)
14
- @token = params.delete(:token)
15
- @timestamp = params.delete(:timestamp)
16
- @message = Mail.new(params.delete(:message))
13
+ @signature = params['signature']
14
+ @token = params['token']
15
+ @timestamp = params['timestamp']
16
+ @message = Mail.new(params['message'])
17
17
  end
18
18
 
19
19
  def authenticate
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incoming
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  segments:
143
143
  - 0
144
- hash: -2639697308401258513
144
+ hash: 3390187440770362
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  none: false
147
147
  requirements: