mandrill-rails 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YmQ2MDY0YjM3NjJmMjgxOTAyOWE2Y2JkZjYzMjA1MmY0MDAxNmZmNg==
5
+ data.tar.gz: !binary |-
6
+ ZThjYmEyZTM5NDdjOGIzMWVlYzgwZjNlZDNkYzY2YTY3MGJjZjliNg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YThjYTM1NTA4MDVkNzMzY2I1YjNjZjU3YTEyNzJkODcwOGJhZmZmMjNjYThm
10
+ YTRiNDAyZGUzZmVjNTYyODQ0MDdiODllNWVhYjE0ZDI1YTI3NTcwYzhmYTYw
11
+ M2ZmYWFhNGM3OWMxZTkxNzZhYjE3ZTU4YmM1MThiYTEzZDQ1YjE=
12
+ data.tar.gz: !binary |-
13
+ MWU3YWI2ODc4ZGQ3YTdkYzM1NTdiOTcxZTg2OGRlZDJhMDZmYmEzNGI3Nzhj
14
+ MzYwMGQ3OWZhNThjYzg2YmVmMzExNmQ5MDBjYzExNjAwZDhkYzU2ZTczZjAy
15
+ NjQ4NjkwYTNmM2YwOGY3YTlkOTY0Y2EzNDBkODZhMzViNWFlNmY=
data/.travis.yml CHANGED
@@ -9,5 +9,5 @@ rvm:
9
9
  - 1.9.3
10
10
  - 2.0.0
11
11
  # - rbx-18mode # removing for now; travis is having chronic intermittent issues building this properly at the moment
12
- - rbx-19mode
12
+ # - rbx-19mode # removeing for now; again, borked on travis "rbx-2.2.1-d19 is not installed"
13
13
  - jruby-19mode
data/CHANGELOG CHANGED
@@ -1,9 +1 @@
1
- == 1.0.1
2
- * When specific format not requested, EventDecorator#message_body returns the first available body content. See \#8
3
-
4
- == 1.0.0
5
- * added support for Mandrill webhook authentication (thanks to @zshannon for the contribution)
6
- * stepped to 1.0.0 (applying Semantic Versioning principles; see http://semver.org/)
7
-
8
- == 0.0.4
9
- * removed manadrill gem as a dependency (thanks to @ssaunier for highlighting this)
1
+ See release notes at https://github.com/evendis/mandrill-rails/releases
@@ -1,5 +1,6 @@
1
1
  require 'json'
2
2
  require 'openssl'
3
+ require 'active_support'
3
4
  require 'active_support/core_ext'
4
5
 
5
6
  require "mandrill-rails/version"
@@ -3,5 +3,5 @@ module Mandrill
3
3
  end
4
4
  end
5
5
  unless defined?(Mandrill::Rails::VERSION)
6
- Mandrill::Rails::VERSION = "1.0.1"
6
+ Mandrill::Rails::VERSION = "1.0.2"
7
7
  end
@@ -83,7 +83,7 @@ module Mandrill::Rails::WebHookProcessor
83
83
  def authenticate_mandrill_request!
84
84
  expected_signature = request.headers['HTTP_X_MANDRILL_SIGNATURE']
85
85
  mandrill_webhook_keys = self.class.mandrill_webhook_keys
86
- if Mandrill::WebHook::Processor.authentic?(expected_signature,mandrill_webhook_keys,request.original_url,request.params)
86
+ if Mandrill::WebHook::Processor.authentic?(expected_signature,mandrill_webhook_keys,request.original_url,request.request_parameters)
87
87
  true
88
88
  else
89
89
  head(:forbidden, :text => "Mandrill signature did not match.")
@@ -52,7 +52,7 @@ class Mandrill::WebHook::Processor
52
52
  # Method described in docs: http://help.mandrill.com/entries/23704122-Authenticating-webhook-requests
53
53
  def generate_signature(webhook_key, original_url, params)
54
54
  signed_data = original_url.dup
55
- params.except(:action, :controller).keys.sort.each do |key|
55
+ params.keys.sort.each do |key|
56
56
  signed_data << key
57
57
  signed_data << params[key]
58
58
  end
@@ -104,7 +104,7 @@ describe Mandrill::Rails::WebHookProcessor do
104
104
  let(:request) { double() }
105
105
  before do
106
106
  request.stub(:original_url).and_return(original_url)
107
- request.stub(:params).and_return(raw_params)
107
+ request.stub(:request_parameters).and_return(raw_params)
108
108
  request.stub(:headers).and_return(headers)
109
109
  processor_instance.request = request
110
110
  processor_instance.params = params
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paul Gallagher
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2014-06-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rdoc
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: guard-rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
@@ -154,27 +141,26 @@ files:
154
141
  homepage: https://github.com/evendis/mandrill-rails
155
142
  licenses:
156
143
  - MIT
144
+ metadata: {}
157
145
  post_install_message:
158
146
  rdoc_options: []
159
147
  require_paths:
160
148
  - lib
161
149
  required_ruby_version: !ruby/object:Gem::Requirement
162
- none: false
163
150
  requirements:
164
151
  - - ! '>='
165
152
  - !ruby/object:Gem::Version
166
153
  version: '0'
167
154
  required_rubygems_version: !ruby/object:Gem::Requirement
168
- none: false
169
155
  requirements:
170
156
  - - ! '>='
171
157
  - !ruby/object:Gem::Version
172
158
  version: '0'
173
159
  requirements: []
174
160
  rubyforge_project:
175
- rubygems_version: 1.8.25
161
+ rubygems_version: 2.2.2
176
162
  signing_key:
177
- specification_version: 3
163
+ specification_version: 4
178
164
  summary: Provides webhook processing and event decoration to make using Mandrill with
179
165
  Rails just that much easier
180
166
  test_files: