mailercity 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Mailercity
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/mailercity.rb CHANGED
@@ -56,7 +56,7 @@ module Mailercity
56
56
 
57
57
  def deliver
58
58
  response = Mailercity.request("/#{mailer_name}/#{template}", params)
59
- response.status == 200
59
+ response.status == 201
60
60
  end
61
61
 
62
62
  private
@@ -6,7 +6,7 @@ Mailercity.api_key = "testkey"
6
6
 
7
7
  describe Mailercity do
8
8
  def stub_post(url, params, options={})
9
- status = options.fetch(:status, 200)
9
+ status = options.fetch(:status, 201)
10
10
  api_key = options.fetch(:api_key, Mailercity.api_key)
11
11
  stub_request(:post, url).with(:body => params, :headers => {'X-Api-Key' => api_key}).to_return(:status => status, :body => "", :headers => {})
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailercity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-11 00:00:00.000000000 Z
12
+ date: 2012-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday