postmark 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -75,7 +75,7 @@ describe Mail::Message do
75
75
  end
76
76
 
77
77
  describe "#postmark_attachments" do
78
- let(:attached_file) { mock("file") }
78
+ let(:attached_file) { double("file") }
79
79
  let(:attached_hash) { {'Name' => 'picture.jpeg',
80
80
  'ContentType' => 'image/jpeg'} }
81
81
  let(:exported_file) { {'Name' => 'file.jpeg',
@@ -1,16 +1,16 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Postmark do
4
- let(:api_key) { mock }
5
- let(:secure) { mock }
6
- let(:proxy_host) { mock }
7
- let(:proxy_port) { mock }
8
- let(:proxy_user) { mock }
9
- let(:proxy_pass) { mock }
10
- let(:host) { mock }
11
- let(:port) { mock }
12
- let(:path_prefix) { mock }
13
- let(:max_retries) { mock }
4
+ let(:api_key) { double }
5
+ let(:secure) { double }
6
+ let(:proxy_host) { double }
7
+ let(:proxy_port) { double }
8
+ let(:proxy_user) { double }
9
+ let(:proxy_pass) { double }
10
+ let(:host) { double }
11
+ let(:port) { double }
12
+ let(:path_prefix) { double }
13
+ let(:max_retries) { double }
14
14
 
15
15
  before do
16
16
  subject.api_key = api_key
@@ -83,7 +83,7 @@ describe Postmark do
83
83
  end
84
84
 
85
85
  describe ".api_client" do
86
- let(:api_client) { mock }
86
+ let(:api_client) { double }
87
87
 
88
88
  context "when shared client instance already exists" do
89
89
 
@@ -117,8 +117,8 @@ describe Postmark do
117
117
  end
118
118
 
119
119
  describe ".deliver_message" do
120
- let(:api_client) { mock }
121
- let(:message) { mock }
120
+ let(:api_client) { double }
121
+ let(:message) { double }
122
122
 
123
123
  before do
124
124
  subject.api_client = api_client
@@ -136,8 +136,8 @@ describe Postmark do
136
136
  end
137
137
 
138
138
  describe ".deliver_messages" do
139
- let(:api_client) { mock }
140
- let(:message) { mock }
139
+ let(:api_client) { double }
140
+ let(:message) { double }
141
141
 
142
142
  before do
143
143
  subject.api_client = api_client
@@ -150,7 +150,7 @@ describe Postmark do
150
150
  end
151
151
 
152
152
  describe ".delivery_stats" do
153
- let(:api_client) { mock }
153
+ let(:api_client) { double }
154
154
 
155
155
  before do
156
156
  subject.api_client = api_client
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petyo Ivanov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-16 00:00:00.000000000 Z
13
+ date: 2014-04-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -104,8 +104,10 @@ files:
104
104
  - VERSION
105
105
  - init.rb
106
106
  - lib/postmark.rb
107
+ - lib/postmark/account_api_client.rb
107
108
  - lib/postmark/api_client.rb
108
109
  - lib/postmark/bounce.rb
110
+ - lib/postmark/client.rb
109
111
  - lib/postmark/handlers/mail.rb
110
112
  - lib/postmark/helpers/hash_helper.rb
111
113
  - lib/postmark/helpers/message_helper.rb
@@ -122,6 +124,7 @@ files:
122
124
  - lib/postmark/version.rb
123
125
  - postmark.gemspec
124
126
  - spec/data/empty.gif
127
+ - spec/integration/account_api_client_spec.rb
125
128
  - spec/integration/api_client_hashes_spec.rb
126
129
  - spec/integration/api_client_messages_spec.rb
127
130
  - spec/integration/api_client_resources_spec.rb
@@ -129,8 +132,10 @@ files:
129
132
  - spec/spec_helper.rb
130
133
  - spec/support/helpers.rb
131
134
  - spec/support/shared_examples.rb
135
+ - spec/unit/postmark/account_api_client_spec.rb
132
136
  - spec/unit/postmark/api_client_spec.rb
133
137
  - spec/unit/postmark/bounce_spec.rb
138
+ - spec/unit/postmark/client_spec.rb
134
139
  - spec/unit/postmark/handlers/mail_spec.rb
135
140
  - spec/unit/postmark/helpers/hash_helper_spec.rb
136
141
  - spec/unit/postmark/helpers/message_helper_spec.rb
@@ -171,6 +176,7 @@ specification_version: 4
171
176
  summary: Official Postmark API wrapper.
172
177
  test_files:
173
178
  - spec/data/empty.gif
179
+ - spec/integration/account_api_client_spec.rb
174
180
  - spec/integration/api_client_hashes_spec.rb
175
181
  - spec/integration/api_client_messages_spec.rb
176
182
  - spec/integration/api_client_resources_spec.rb
@@ -178,8 +184,10 @@ test_files:
178
184
  - spec/spec_helper.rb
179
185
  - spec/support/helpers.rb
180
186
  - spec/support/shared_examples.rb
187
+ - spec/unit/postmark/account_api_client_spec.rb
181
188
  - spec/unit/postmark/api_client_spec.rb
182
189
  - spec/unit/postmark/bounce_spec.rb
190
+ - spec/unit/postmark/client_spec.rb
183
191
  - spec/unit/postmark/handlers/mail_spec.rb
184
192
  - spec/unit/postmark/helpers/hash_helper_spec.rb
185
193
  - spec/unit/postmark/helpers/message_helper_spec.rb