mailjet 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -74,7 +74,6 @@ Add the keys to an initializer:
74
74
  Mailjet.configure do |config|
75
75
  config.api_key = 'your-api-key'
76
76
  config.secret_key = 'your-secret-key'
77
- config.domain = 'my_domain.com'
78
77
  config.default_from = 'my_regitered_mailjet_email@domain.com'
79
78
  end
80
79
  ```
@@ -10,7 +10,6 @@ class Mailjet::Mailer < ::Mail::SMTP
10
10
  :authentication => 'plain',
11
11
  :user_name => Mailjet.config.api_key,
12
12
  :password => Mailjet.config.secret_key,
13
- :domain => Mailjet.config.domain,
14
13
  :enable_starttls_auto => true
15
14
  }.merge(options))
16
15
  end
@@ -1,3 +1,3 @@
1
1
  module Mailjet
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -42,15 +42,14 @@ describe Mailjet::Campaign do
42
42
 
43
43
  # Mailjet::Campaign#send!
44
44
  campaign.send!.must_equal 'OK'
45
- # TODO does not work, 500 server side.
46
45
 
47
46
  # Mailjet::Campaign#test
48
47
  campaign.test('benoit.benezech@gmail.com').must_equal 'OK'
49
48
 
50
49
  # Mailjet::Campaign#html
51
50
  campaign.html.must_be_nil
52
- # TODO how to get content in the campaign template?
53
51
 
52
+ sleep 10 # wait for the campaign to be send
54
53
  campaign = Mailjet::Campaign.find(campaign.id)
55
54
 
56
55
  # Mailjet::Campaign#contacts
data/test/mailjet_test.rb CHANGED
@@ -6,13 +6,11 @@ describe Mailjet do
6
6
  Mailjet.configure do |config|
7
7
  config.api_key = "1234"
8
8
  config.secret_key = "5678"
9
- config.domain = "domain_test"
10
9
  config.default_from = "default from test"
11
10
  end
12
11
 
13
12
  Mailjet.config.api_key.must_equal "1234"
14
13
  Mailjet.config.secret_key.must_equal "5678"
15
- Mailjet.config.domain.must_equal "domain_test"
16
14
  Mailjet.config.default_from = "default from test"
17
15
  end
18
16
  end
@@ -10,7 +10,6 @@ MiniTest::Spec.before do
10
10
  Mailjet.configure do |config|
11
11
  config.api_key = test_account['api_key']
12
12
  config.secret_key = test_account['secret_key']
13
- config.domain = test_account['domain']
14
13
  config.default_from = test_account['default_from']
15
14
  end
16
15
  end
@@ -20,4 +19,4 @@ MiniTest::Spec.after do
20
19
  Dir["#{File.dirname(__FILE__)}/../lib/**/*.rb"].each {|f| load f}
21
20
  end
22
21
 
23
- Turn.config.format = :outline
22
+ Turn.config.format = :outline
metadata CHANGED
@@ -1,128 +1,123 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mailjet
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
4
5
  prerelease:
5
- version: 0.0.1
6
6
  platform: ruby
7
- authors:
8
- - "Aur\xC3\xA9lien AMILIN"
9
- - "Benoit B\xC3\xA9n\xC3\xA9zech"
7
+ authors:
8
+ - Aurélien AMILIN
9
+ - Benoit Bénézech
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2012-03-26 00:00:00 +02:00
15
- default_executable:
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
13
+ date: 2012-03-26 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
18
16
  name: activesupport
19
- prerelease: false
20
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70243132596240 !ruby/object:Gem::Requirement
21
18
  none: false
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
25
22
  version: 3.0.9
26
23
  type: :runtime
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
29
- name: actionmailer
30
24
  prerelease: false
31
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *70243132596240
26
+ - !ruby/object:Gem::Dependency
27
+ name: actionmailer
28
+ requirement: &70243132612100 !ruby/object:Gem::Requirement
32
29
  none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
36
33
  version: 3.0.9
37
34
  type: :development
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
40
- name: minitest
41
35
  prerelease: false
42
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *70243132612100
37
+ - !ruby/object:Gem::Dependency
38
+ name: minitest
39
+ requirement: &70243132611720 !ruby/object:Gem::Requirement
43
40
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
48
45
  type: :development
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
51
- name: minitest-matchers
52
46
  prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *70243132611720
48
+ - !ruby/object:Gem::Dependency
49
+ name: minitest-matchers
50
+ requirement: &70243132611260 !ruby/object:Gem::Requirement
54
51
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
59
56
  type: :development
60
- version_requirements: *id004
61
- - !ruby/object:Gem::Dependency
62
- name: turn
63
57
  prerelease: false
64
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *70243132611260
59
+ - !ruby/object:Gem::Dependency
60
+ name: turn
61
+ requirement: &70243132610840 !ruby/object:Gem::Requirement
65
62
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
70
67
  type: :development
71
- version_requirements: *id005
72
- - !ruby/object:Gem::Dependency
73
- name: rake
74
68
  prerelease: false
75
- requirement: &id006 !ruby/object:Gem::Requirement
69
+ version_requirements: *70243132610840
70
+ - !ruby/object:Gem::Dependency
71
+ name: rake
72
+ requirement: &70243132610420 !ruby/object:Gem::Requirement
76
73
  none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
81
78
  type: :development
82
- version_requirements: *id006
83
- - !ruby/object:Gem::Dependency
84
- name: json
85
79
  prerelease: false
86
- requirement: &id007 !ruby/object:Gem::Requirement
80
+ version_requirements: *70243132610420
81
+ - !ruby/object:Gem::Dependency
82
+ name: json
83
+ requirement: &70243132610000 !ruby/object:Gem::Requirement
87
84
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: "0"
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
92
89
  type: :development
93
- version_requirements: *id007
94
- - !ruby/object:Gem::Dependency
95
- name: rack
96
90
  prerelease: false
97
- requirement: &id008 !ruby/object:Gem::Requirement
91
+ version_requirements: *70243132610000
92
+ - !ruby/object:Gem::Dependency
93
+ name: rack
94
+ requirement: &70243132609580 !ruby/object:Gem::Requirement
98
95
  none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: "0"
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
103
100
  type: :development
104
- version_requirements: *id008
105
- - !ruby/object:Gem::Dependency
106
- name: mocha
107
101
  prerelease: false
108
- requirement: &id009 !ruby/object:Gem::Requirement
102
+ version_requirements: *70243132609580
103
+ - !ruby/object:Gem::Dependency
104
+ name: mocha
105
+ requirement: &70243132609160 !ruby/object:Gem::Requirement
109
106
  none: false
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- version: "0"
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
114
111
  type: :development
115
- version_requirements: *id009
112
+ prerelease: false
113
+ version_requirements: *70243132609160
116
114
  description: Cloud Emailing for easy delivery.
117
- email:
115
+ email:
118
116
  - benoit.benezech@gmail.com
119
117
  executables: []
120
-
121
118
  extensions: []
122
-
123
119
  extra_rdoc_files: []
124
-
125
- files:
120
+ files:
126
121
  - lib/mailjet/api.rb
127
122
  - lib/mailjet/api_error.rb
128
123
  - lib/mailjet/api_request.rb
@@ -155,35 +150,31 @@ files:
155
150
  - test/mailjet/template_model_test.rb
156
151
  - test/mailjet_test.rb
157
152
  - test/minitest_helper.rb
158
- has_rdoc: true
159
153
  homepage: http://www.mailjet.com
160
154
  licenses: []
161
-
162
155
  post_install_message:
163
156
  rdoc_options: []
164
-
165
- require_paths:
157
+ require_paths:
166
158
  - lib
167
- required_ruby_version: !ruby/object:Gem::Requirement
159
+ required_ruby_version: !ruby/object:Gem::Requirement
168
160
  none: false
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: "0"
173
- required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
166
  none: false
175
- requirements:
176
- - - ">="
177
- - !ruby/object:Gem::Version
178
- version: "0"
167
+ requirements:
168
+ - - ! '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
179
171
  requirements: []
180
-
181
172
  rubyforge_project:
182
- rubygems_version: 1.6.2
173
+ rubygems_version: 1.8.15
183
174
  signing_key:
184
175
  specification_version: 3
185
176
  summary: Cloud Emailing for easy delivery.
186
- test_files:
177
+ test_files:
187
178
  - test/mailjet/api_request_test.rb
188
179
  - test/mailjet/api_test.rb
189
180
  - test/mailjet/campaign_test.rb