mail-madmimi 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -9,38 +9,40 @@ PATH
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- actionmailer (4.0.3)
13
- actionpack (= 4.0.3)
12
+ actionmailer (4.1.4)
13
+ actionpack (= 4.1.4)
14
+ actionview (= 4.1.4)
14
15
  mail (~> 2.5.4)
15
- actionpack (4.0.3)
16
- activesupport (= 4.0.3)
17
- builder (~> 3.1.0)
18
- erubis (~> 2.7.0)
16
+ actionpack (4.1.4)
17
+ actionview (= 4.1.4)
18
+ activesupport (= 4.1.4)
19
19
  rack (~> 1.5.2)
20
20
  rack-test (~> 0.6.2)
21
- activesupport (4.0.3)
22
- i18n (~> 0.6, >= 0.6.4)
23
- minitest (~> 4.2)
24
- multi_json (~> 1.3)
21
+ actionview (4.1.4)
22
+ activesupport (= 4.1.4)
23
+ builder (~> 3.1)
24
+ erubis (~> 2.7.0)
25
+ activesupport (4.1.4)
26
+ i18n (~> 0.6, >= 0.6.9)
27
+ json (~> 1.7, >= 1.7.7)
28
+ minitest (~> 5.1)
25
29
  thread_safe (~> 0.1)
26
- tzinfo (~> 0.3.37)
27
- atomic (1.1.14)
28
- builder (3.1.4)
30
+ tzinfo (~> 1.1)
31
+ builder (3.2.2)
29
32
  diff-lcs (1.2.5)
30
33
  erubis (2.7.0)
31
- httparty (0.13.0)
34
+ httparty (0.13.1)
32
35
  json (~> 1.8)
33
36
  multi_xml (>= 0.5.2)
34
- i18n (0.6.9)
37
+ i18n (0.6.11)
35
38
  json (1.8.1)
36
39
  mail (2.5.4)
37
40
  mime-types (~> 1.16)
38
41
  treetop (~> 1.4.8)
39
42
  mime-types (1.25.1)
40
- minitest (4.7.5)
41
- multi_json (1.8.4)
43
+ minitest (5.4.0)
42
44
  multi_xml (0.5.5)
43
- polyglot (0.3.4)
45
+ polyglot (0.3.5)
44
46
  rack (1.5.2)
45
47
  rack-test (0.6.2)
46
48
  rack (>= 1.0)
@@ -48,16 +50,16 @@ GEM
48
50
  rspec-core (~> 2.14.0)
49
51
  rspec-expectations (~> 2.14.0)
50
52
  rspec-mocks (~> 2.14.0)
51
- rspec-core (2.14.7)
53
+ rspec-core (2.14.8)
52
54
  rspec-expectations (2.14.5)
53
55
  diff-lcs (>= 1.1.3, < 2.0)
54
- rspec-mocks (2.14.5)
55
- thread_safe (0.1.3)
56
- atomic
56
+ rspec-mocks (2.14.6)
57
+ thread_safe (0.3.4)
57
58
  treetop (1.4.15)
58
59
  polyglot
59
60
  polyglot (>= 0.3.1)
60
- tzinfo (0.3.38)
61
+ tzinfo (1.2.1)
62
+ thread_safe (~> 0.1)
61
63
 
62
64
  PLATFORMS
63
65
  ruby
@@ -23,7 +23,7 @@ module Mail
23
23
  end
24
24
 
25
25
  def parse_response(resp)
26
- case resp.headers["status"]
26
+ case resp.headers["status"].to_i
27
27
  when 200..299 then resp.parsed_response
28
28
  else raise MadmimiError.new "status=#{resp.headers["status"]}; " + resp.parsed_response
29
29
  end
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Madmimi
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  class CorrectResponse
13
13
  def headers
14
- { "status" => 200 }
14
+ { "status" => "200" }
15
15
  end
16
16
 
17
17
  def parsed_response
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  class IncorrectResponse
24
24
  def headers
25
- { "status" => 403 }
25
+ { "status" => "403" }
26
26
  end
27
27
 
28
28
  def parsed_response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail-madmimi
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: 2014-04-02 00:00:00.000000000 Z
12
+ date: 2014-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty