mailjet 0.0.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +81 -259
  3. data/Rakefile +5 -4
  4. data/lib/mailjet.rb +7 -11
  5. data/lib/mailjet/api_error.rb +9 -5
  6. data/lib/mailjet/collection_proxy.rb +15 -0
  7. data/lib/mailjet/configuration.rb +4 -8
  8. data/lib/mailjet/connection.rb +72 -0
  9. data/lib/mailjet/gem_extensions/rest_client.rb +19 -0
  10. data/lib/mailjet/mailer.rb +37 -2
  11. data/lib/mailjet/message_delivery.rb +9 -0
  12. data/lib/mailjet/reporting.rb +10 -7
  13. data/lib/mailjet/resource.rb +199 -0
  14. data/lib/mailjet/resources/apikey.rb +12 -0
  15. data/lib/mailjet/resources/apikeyaccess.rb +12 -0
  16. data/lib/mailjet/resources/apikeytotals.rb +14 -0
  17. data/lib/mailjet/resources/apitoken.rb +12 -0
  18. data/lib/mailjet/resources/batchjob.rb +12 -0
  19. data/lib/mailjet/resources/bouncestatistics.rb +14 -0
  20. data/lib/mailjet/resources/campaign.rb +12 -0
  21. data/lib/mailjet/resources/campaignstatistics.rb +14 -0
  22. data/lib/mailjet/resources/clickstatistics.rb +14 -0
  23. data/lib/mailjet/resources/contact.rb +12 -0
  24. data/lib/mailjet/resources/contactdata.rb +12 -0
  25. data/lib/mailjet/resources/contactfilter.rb +12 -0
  26. data/lib/mailjet/resources/contacthistorydata.rb +12 -0
  27. data/lib/mailjet/resources/contactmetadata.rb +12 -0
  28. data/lib/mailjet/resources/contactslist.rb +12 -0
  29. data/lib/mailjet/resources/contactslistsignup.rb +12 -0
  30. data/lib/mailjet/resources/contactstatistics.rb +14 -0
  31. data/lib/mailjet/resources/csvimport.rb +12 -0
  32. data/lib/mailjet/resources/domainstatistics.rb +14 -0
  33. data/lib/mailjet/resources/eventcallbackurl.rb +12 -0
  34. data/lib/mailjet/resources/geostatistics.rb +14 -0
  35. data/lib/mailjet/resources/graphstatistics.rb +14 -0
  36. data/lib/mailjet/resources/listrecipient.rb +12 -0
  37. data/lib/mailjet/resources/listrecipientstatistics.rb +14 -0
  38. data/lib/mailjet/resources/liststatistics.rb +14 -0
  39. data/lib/mailjet/resources/manycontacts.rb +12 -0
  40. data/lib/mailjet/resources/message.rb +12 -0
  41. data/lib/mailjet/resources/messagehistory.rb +14 -0
  42. data/lib/mailjet/resources/messageinformation.rb +14 -0
  43. data/lib/mailjet/resources/messagesentstatistics.rb +14 -0
  44. data/lib/mailjet/resources/messagestate.rb +12 -0
  45. data/lib/mailjet/resources/messagestatistics.rb +14 -0
  46. data/lib/mailjet/resources/metadata.rb +14 -0
  47. data/lib/mailjet/resources/metasender.rb +12 -0
  48. data/lib/mailjet/resources/myprofile.rb +12 -0
  49. data/lib/mailjet/resources/newsletter.rb +12 -0
  50. data/lib/mailjet/resources/newsletterblock.rb +12 -0
  51. data/lib/mailjet/resources/newsletterproperties.rb +12 -0
  52. data/lib/mailjet/resources/newslettertemplate.rb +12 -0
  53. data/lib/mailjet/resources/newslettertemplateblock.rb +12 -0
  54. data/lib/mailjet/resources/newslettertemplatecategory.rb +12 -0
  55. data/lib/mailjet/resources/newslettertemplateproperties.rb +12 -0
  56. data/lib/mailjet/resources/openinformation.rb +14 -0
  57. data/lib/mailjet/resources/openstatistics.rb +14 -0
  58. data/lib/mailjet/resources/parseroute.rb +12 -0
  59. data/lib/mailjet/resources/preferences.rb +12 -0
  60. data/lib/mailjet/resources/sender.rb +12 -0
  61. data/lib/mailjet/resources/senderstatistics.rb +14 -0
  62. data/lib/mailjet/resources/toplinkclicked.rb +14 -0
  63. data/lib/mailjet/resources/trigger.rb +12 -0
  64. data/lib/mailjet/resources/user.rb +12 -0
  65. data/lib/mailjet/resources/useragentstatistics.rb +14 -0
  66. data/lib/mailjet/resources/widget.rb +12 -0
  67. data/lib/mailjet/resources/widgetcustomvalue.rb +12 -0
  68. data/lib/mailjet/version.rb +1 -1
  69. metadata +155 -44
  70. data/lib/mailjet/api.rb +0 -20
  71. data/lib/mailjet/api_request.rb +0 -70
  72. data/lib/mailjet/campaign.rb +0 -67
  73. data/lib/mailjet/click.rb +0 -15
  74. data/lib/mailjet/contact.rb +0 -18
  75. data/lib/mailjet/email.rb +0 -4
  76. data/lib/mailjet/list.rb +0 -58
  77. data/lib/mailjet/template_category.rb +0 -13
  78. data/lib/mailjet/template_model.rb +0 -13
  79. data/test/mailjet/api_request_test.rb +0 -72
  80. data/test/mailjet/api_test.rb +0 -13
  81. data/test/mailjet/campaign_test.rb +0 -66
  82. data/test/mailjet/configuration_test.rb +0 -16
  83. data/test/mailjet/contact_test.rb +0 -24
  84. data/test/mailjet/list_test.rb +0 -67
  85. data/test/mailjet/rack/endpoint_test.rb +0 -30
  86. data/test/mailjet/reporting_test.rb +0 -26
  87. data/test/mailjet/template_category_test.rb +0 -13
  88. data/test/mailjet/template_model_test.rb +0 -13
  89. data/test/mailjet_test.rb +0 -17
  90. data/test/minitest_helper.rb +0 -22
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Messagestate
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/messagestate'
7
+ self.public_operations = [:get]
8
+ self.filters = []
9
+ self.properties = [:id, :related_to, :state]
10
+
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Messagestatistics
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/messagestatistics'
7
+ self.public_operations = [:get]
8
+ self.filters = [:campaign_id, :campaign_status, :contact_email, :contact_id, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
+ self.properties = [:average_click_delay, :average_clicked_count, :average_open_delay, :average_opened_count, :blocked_count, :bounced_count, :campaign_count, :clicked_count, :delivered_count, :opened_count, :processed_count, :queued_count, :spam_complaint_count, :transactional_count, :unsubscribed_count]
10
+
11
+ self.read_only = true
12
+
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Metadata
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/metadata'
7
+ self.public_operations = [:get]
8
+ self.filters = [:public_resources, :read_only_resources, :resource_name]
9
+ self.properties = [:description, :filters, :is_read_only, :name, :private_operations, :properties, :public_operations, :sort_info, :unique_key]
10
+
11
+ self.read_only = true
12
+
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Metasender
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/metasender'
7
+ self.public_operations = [:get, :put, :post]
8
+ self.filters = [:dns, :user]
9
+ self.properties = [:created_at, :description, :email, :filename, :id, :is_enabled]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Myprofile
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/myprofile'
7
+ self.public_operations = [:get, :put]
8
+ self.filters = [:user]
9
+ self.properties = [:address_city, :address_country, :address_postal_code, :address_street, :billing_email, :birthday_at, :company_name, :contact_phone, :estimated_volume, :features, :firstname, :id, :industry, :lastname, :user, :vat, :vat_number, :website]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Newsletter
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/newsletter'
7
+ self.public_operations = [:get, :put, :post]
8
+ self.filters = [:campaign, :contacts_list, :delivered_at, :edit_mode, :is_archived, :is_campaign, :is_deleted, :is_handled, :is_starred, :modified, :news_letter_template, :segmentation, :status, :subject]
9
+ self.properties = [:callback, :campaign, :contacts_list, :created_at, :delivered_at, :edit_mode, :edit_type, :footer, :footer_address, :footer_wysiwyg_type, :header_filename, :header_link, :header_text, :header_url, :id, :ip, :is_handled, :is_starred, :is_text_part_included, :locale, :modified_at, :permalink, :permalink_host, :permalink_wysiwyg_type, :politeness_mode, :reply_email, :segmentation, :sender, :sender_email, :sender_name, :status, :subject, :template, :test_address, :title, :url]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Newsletterblock
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/newsletterblock'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:news_letter]
9
+ self.properties = [:align, :alt, :block_type, :color, :content, :filename, :fontfamily, :fontsize, :id, :line, :link, :news_letter, :pos, :siblings, :src_height, :src_width, :url, :width]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Newsletterproperties
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/newsletterproperties'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:news_letter]
9
+ self.properties = [:id, :name, :news_letter, :property_name, :selector, :value]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Newslettertemplate
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/newslettertemplate'
7
+ self.public_operations = [:get, :put, :post]
8
+ self.filters = [:is_public, :news_letter_template_category]
9
+ self.properties = [:category, :created_at, :footer, :footer_address, :footer_wysiwyg_type, :header_filename, :header_link, :header_text, :header_url, :id, :locale, :name, :permalink, :permalink_wysiwyg_type, :source_news_letter_id, :status]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Newslettertemplateblock
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/newslettertemplateblock'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:news_letter_template]
9
+ self.properties = [:align, :alt, :block_type, :color, :content, :filename, :fontfamily, :fontsize, :id, :line, :link, :pos, :siblings, :src_height, :src_width, :template, :url, :width]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Newslettertemplatecategory
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/newslettertemplatecategory'
7
+ self.public_operations = [:get]
8
+ self.filters = [:locale]
9
+ self.properties = [:description, :id, :locale, :parent_category, :value]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Newslettertemplateproperties
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/newslettertemplateproperties'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:news_letter_template]
9
+ self.properties = [:id, :name, :property_name, :selector, :template, :value]
10
+
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Openinformation
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/openinformation'
7
+ self.public_operations = [:get]
8
+ self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
+ self.properties = [:arrived_at, :campaign, :contact, :id, :message_id, :opened_at, :user_agent, :user_agent_full]
10
+
11
+ self.read_only = true
12
+
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Openstatistics
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/openstatistics'
7
+ self.public_operations = [:get]
8
+ self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message_status, :period, :to_ts]
9
+ self.properties = [:opened_count, :opened_delay, :processed_count]
10
+
11
+ self.read_only = true
12
+
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Parseroute
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/parseroute'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:api_key]
9
+ self.properties = [:api_key, :email, :id, :url]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Preferences
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/preferences'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:user]
9
+ self.properties = [:id, :key, :user, :value]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Sender
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/sender'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:confirm_key, :domain, :email, :local_part, :show_deleted, :status]
9
+ self.properties = [:confirm_key, :created_at, :dns, :email, :email_type, :filename, :id, :is_default_sender, :name, :status]
10
+
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Senderstatistics
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/senderstatistics'
7
+ self.public_operations = [:get]
8
+ self.filters = [:domain, :email, :sender]
9
+ self.properties = [:blocked_count, :bounced_count, :clicked_count, :delivered_count, :last_activity_at, :opened_count, :processed_count, :queued_count, :sender, :spam_complaint_count, :unsubscribed_count]
10
+
11
+ self.read_only = true
12
+
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Toplinkclicked
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/toplinkclicked'
7
+ self.public_operations = [:get]
8
+ self.filters = [:campaign_id, :campaign_status, :contact, :contacts_list, :custom_campaign, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :message, :period, :to_ts]
9
+ self.properties = [:clicked_count, :id, :link_id, :url]
10
+
11
+ self.read_only = true
12
+
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Trigger
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/trigger'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:event, :min_added_ts]
9
+ self.properties = [:added_ts, :api_key, :details, :event, :id, :user]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class User
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/user'
7
+ self.public_operations = [:get, :put]
8
+ self.filters = [:is_activated, :new_email, :user_name]
9
+ self.properties = [:created_at, :email, :id, :is_rules_accepted, :last_ip, :last_login_at, :locale, :max_allowed_api_keys, :timezone, :username, :warned_ratelimit_at]
10
+
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Useragentstatistics
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/useragentstatistics'
7
+ self.public_operations = [:get]
8
+ self.filters = [:campaign_id, :campaign_status, :contacts_list, :custom_campaign, :event, :exclude_platform, :from, :from_domain, :from_id, :from_ts, :from_type, :is_deleted, :is_newsletter_tool, :is_starred, :period, :platform, :to_ts]
9
+ self.properties = [:count, :distinct_count, :platform, :user_agent]
10
+
11
+ self.read_only = true
12
+
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Widget
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/widget'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:active, :api_key, :contacts_list, :locale, :message_template, :sender]
9
+ self.properties = [:created_at, :from, :id, :is_active, :list, :locale, :name, :replyto, :sendername, :subject, :template]
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'mailjet/resource'
2
+
3
+ module Mailjet
4
+ class Widgetcustomvalue
5
+ include Mailjet::Resource
6
+ self.resource_path = '/v3/REST/widgetcustomvalue'
7
+ self.public_operations = [:get, :put, :post, :delete]
8
+ self.filters = [:name, :widget]
9
+ self.properties = [:api_key, :display, :id, :name, :value, :widget]
10
+
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Mailjet
2
- VERSION = "0.0.5"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailjet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
+ - Jean-Baptiste Escoyez
7
8
  - Aurélien AMILIN
8
9
  - Benoit Bénézech
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-10-10 00:00:00.000000000 Z
13
+ date: 2014-06-10 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: activesupport
@@ -39,6 +40,20 @@ dependencies:
39
40
  - - '>='
40
41
  - !ruby/object:Gem::Version
41
42
  version: 1.4.0
43
+ - !ruby/object:Gem::Dependency
44
+ name: rest-client
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
42
57
  - !ruby/object:Gem::Dependency
43
58
  name: actionmailer
44
59
  requirement: !ruby/object:Gem::Requirement
@@ -81,6 +96,20 @@ dependencies:
81
96
  - - '>='
82
97
  - !ruby/object:Gem::Version
83
98
  version: '0'
99
+ - !ruby/object:Gem::Dependency
100
+ name: minitest-spec-context
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
84
113
  - !ruby/object:Gem::Dependency
85
114
  name: turn
86
115
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +153,7 @@ dependencies:
124
153
  - !ruby/object:Gem::Version
125
154
  version: '0'
126
155
  - !ruby/object:Gem::Dependency
127
- name: rack
156
+ name: mocha
128
157
  requirement: !ruby/object:Gem::Requirement
129
158
  requirements:
130
159
  - - '>='
@@ -138,7 +167,63 @@ dependencies:
138
167
  - !ruby/object:Gem::Version
139
168
  version: '0'
140
169
  - !ruby/object:Gem::Dependency
141
- name: mocha
170
+ name: webmock
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - '>='
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ type: :development
177
+ prerelease: false
178
+ version_requirements: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - '>='
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ - !ruby/object:Gem::Dependency
184
+ name: vcr
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - '>='
195
+ - !ruby/object:Gem::Version
196
+ version: '0'
197
+ - !ruby/object:Gem::Dependency
198
+ name: guard
199
+ requirement: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - '>='
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ type: :development
205
+ prerelease: false
206
+ version_requirements: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - '>='
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ - !ruby/object:Gem::Dependency
212
+ name: guard-minitest
213
+ requirement: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - '>='
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
218
+ type: :development
219
+ prerelease: false
220
+ version_requirements: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - '>='
223
+ - !ruby/object:Gem::Version
224
+ version: '0'
225
+ - !ruby/object:Gem::Dependency
226
+ name: debugger
142
227
  requirement: !ruby/object:Gem::Requirement
143
228
  requirements:
144
229
  - - '>='
@@ -153,43 +238,81 @@ dependencies:
153
238
  version: '0'
154
239
  description: Cloud Emailing for easy delivery.
155
240
  email:
156
- - benoit.benezech@gmail.com
241
+ - jbescoyez@gmail.com
157
242
  executables: []
158
243
  extensions: []
159
244
  extra_rdoc_files: []
160
245
  files:
161
- - lib/mailjet/api.rb
246
+ - MIT-LICENSE
247
+ - README.md
248
+ - Rakefile
249
+ - lib/mailjet.rb
162
250
  - lib/mailjet/api_error.rb
163
- - lib/mailjet/api_request.rb
164
- - lib/mailjet/campaign.rb
165
- - lib/mailjet/click.rb
251
+ - lib/mailjet/collection_proxy.rb
166
252
  - lib/mailjet/configuration.rb
167
- - lib/mailjet/contact.rb
253
+ - lib/mailjet/connection.rb
168
254
  - lib/mailjet/core_extensions/ostruct.rb
169
- - lib/mailjet/email.rb
170
- - lib/mailjet/list.rb
255
+ - lib/mailjet/gem_extensions/rest_client.rb
171
256
  - lib/mailjet/mailer.rb
257
+ - lib/mailjet/message_delivery.rb
172
258
  - lib/mailjet/rack/endpoint.rb
173
259
  - lib/mailjet/reporting.rb
174
- - lib/mailjet/template_category.rb
175
- - lib/mailjet/template_model.rb
260
+ - lib/mailjet/resource.rb
261
+ - lib/mailjet/resources/apikey.rb
262
+ - lib/mailjet/resources/apikeyaccess.rb
263
+ - lib/mailjet/resources/apikeytotals.rb
264
+ - lib/mailjet/resources/apitoken.rb
265
+ - lib/mailjet/resources/batchjob.rb
266
+ - lib/mailjet/resources/bouncestatistics.rb
267
+ - lib/mailjet/resources/campaign.rb
268
+ - lib/mailjet/resources/campaignstatistics.rb
269
+ - lib/mailjet/resources/clickstatistics.rb
270
+ - lib/mailjet/resources/contact.rb
271
+ - lib/mailjet/resources/contactdata.rb
272
+ - lib/mailjet/resources/contactfilter.rb
273
+ - lib/mailjet/resources/contacthistorydata.rb
274
+ - lib/mailjet/resources/contactmetadata.rb
275
+ - lib/mailjet/resources/contactslist.rb
276
+ - lib/mailjet/resources/contactslistsignup.rb
277
+ - lib/mailjet/resources/contactstatistics.rb
278
+ - lib/mailjet/resources/csvimport.rb
279
+ - lib/mailjet/resources/domainstatistics.rb
280
+ - lib/mailjet/resources/eventcallbackurl.rb
281
+ - lib/mailjet/resources/geostatistics.rb
282
+ - lib/mailjet/resources/graphstatistics.rb
283
+ - lib/mailjet/resources/listrecipient.rb
284
+ - lib/mailjet/resources/listrecipientstatistics.rb
285
+ - lib/mailjet/resources/liststatistics.rb
286
+ - lib/mailjet/resources/manycontacts.rb
287
+ - lib/mailjet/resources/message.rb
288
+ - lib/mailjet/resources/messagehistory.rb
289
+ - lib/mailjet/resources/messageinformation.rb
290
+ - lib/mailjet/resources/messagesentstatistics.rb
291
+ - lib/mailjet/resources/messagestate.rb
292
+ - lib/mailjet/resources/messagestatistics.rb
293
+ - lib/mailjet/resources/metadata.rb
294
+ - lib/mailjet/resources/metasender.rb
295
+ - lib/mailjet/resources/myprofile.rb
296
+ - lib/mailjet/resources/newsletter.rb
297
+ - lib/mailjet/resources/newsletterblock.rb
298
+ - lib/mailjet/resources/newsletterproperties.rb
299
+ - lib/mailjet/resources/newslettertemplate.rb
300
+ - lib/mailjet/resources/newslettertemplateblock.rb
301
+ - lib/mailjet/resources/newslettertemplatecategory.rb
302
+ - lib/mailjet/resources/newslettertemplateproperties.rb
303
+ - lib/mailjet/resources/openinformation.rb
304
+ - lib/mailjet/resources/openstatistics.rb
305
+ - lib/mailjet/resources/parseroute.rb
306
+ - lib/mailjet/resources/preferences.rb
307
+ - lib/mailjet/resources/sender.rb
308
+ - lib/mailjet/resources/senderstatistics.rb
309
+ - lib/mailjet/resources/toplinkclicked.rb
310
+ - lib/mailjet/resources/trigger.rb
311
+ - lib/mailjet/resources/user.rb
312
+ - lib/mailjet/resources/useragentstatistics.rb
313
+ - lib/mailjet/resources/widget.rb
314
+ - lib/mailjet/resources/widgetcustomvalue.rb
176
315
  - lib/mailjet/version.rb
177
- - lib/mailjet.rb
178
- - MIT-LICENSE
179
- - Rakefile
180
- - README.md
181
- - test/mailjet/api_request_test.rb
182
- - test/mailjet/api_test.rb
183
- - test/mailjet/campaign_test.rb
184
- - test/mailjet/configuration_test.rb
185
- - test/mailjet/contact_test.rb
186
- - test/mailjet/list_test.rb
187
- - test/mailjet/rack/endpoint_test.rb
188
- - test/mailjet/reporting_test.rb
189
- - test/mailjet/template_category_test.rb
190
- - test/mailjet/template_model_test.rb
191
- - test/mailjet_test.rb
192
- - test/minitest_helper.rb
193
316
  homepage: http://www.mailjet.com
194
317
  licenses: []
195
318
  metadata: {}
@@ -209,20 +332,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
332
  version: '0'
210
333
  requirements: []
211
334
  rubyforge_project:
212
- rubygems_version: 2.0.0
335
+ rubygems_version: 2.2.1
213
336
  signing_key:
214
337
  specification_version: 4
215
338
  summary: Cloud Emailing for easy delivery.
216
- test_files:
217
- - test/mailjet/api_request_test.rb
218
- - test/mailjet/api_test.rb
219
- - test/mailjet/campaign_test.rb
220
- - test/mailjet/configuration_test.rb
221
- - test/mailjet/contact_test.rb
222
- - test/mailjet/list_test.rb
223
- - test/mailjet/rack/endpoint_test.rb
224
- - test/mailjet/reporting_test.rb
225
- - test/mailjet/template_category_test.rb
226
- - test/mailjet/template_model_test.rb
227
- - test/mailjet_test.rb
228
- - test/minitest_helper.rb
339
+ test_files: []