{"action":"created","comment":{"url":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/comments/99816801","pull_request_review_id":20483032,"id":99816801,"diff_hunk":"@@ -27,6 +27,12 @@ def initialize(options = {})\n # The deliver methods maps the Mail::Message attributes to the MailjetSend API JSON expected structure\n class Mailjet::APIMailer\n   def initialize(options = {})\n+#    send = Mailjet.Send.new\n+#    if send.version.exists\n+#      version = send.version\n+#    else\n+      @version = Mailjet.config.api_version\n+#    end\n     @delivery_method_options = options.slice(","path":"lib/mailjet/mailer.rb","position":10,"original_position":10,"commit_id":"dd14c5e01568bb021797ce8da5b78d5250f94b72","original_commit_id":"dd14c5e01568bb021797ce8da5b78d5250f94b72","user":{"login":"arnaudbreton","id":1361191,"avatar_url":"https://avatars.githubusercontent.com/u/1361191?v=3","gravatar_id":"","url":"https://api.github.com/users/arnaudbreton","html_url":"https://github.com/arnaudbreton","followers_url":"https://api.github.com/users/arnaudbreton/followers","following_url":"https://api.github.com/users/arnaudbreton/following{/other_user}","gists_url":"https://api.github.com/users/arnaudbreton/gists{/gist_id}","starred_url":"https://api.github.com/users/arnaudbreton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnaudbreton/subscriptions","organizations_url":"https://api.github.com/users/arnaudbreton/orgs","repos_url":"https://api.github.com/users/arnaudbreton/repos","events_url":"https://api.github.com/users/arnaudbreton/events{/privacy}","received_events_url":"https://api.github.com/users/arnaudbreton/received_events","type":"User","site_admin":false},"body":"The syntax of those fields changed in 3.1, they're not prefixed with `mj-`","created_at":"2017-02-07T13:05:10Z","updated_at":"2017-02-07T13:15:09Z","html_url":"https://github.com/mailjet/mailjet-gem/pull/87#discussion_r99816801","pull_request_url":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/comments/99816801"},"html":{"href":"https://github.com/mailjet/mailjet-gem/pull/87#discussion_r99816801"},"pull_request":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/87","id":101893528,"html_url":"https://github.com/mailjet/mailjet-gem/pull/87","diff_url":"https://github.com/mailjet/mailjet-gem/pull/87.diff","patch_url":"https://github.com/mailjet/mailjet-gem/pull/87.patch","issue_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/87","number":87,"state":"open","locked":false,"title":"V3.1 smart","user":{"login":"Aridjar","id":8275194,"avatar_url":"https://avatars.githubusercontent.com/u/8275194?v=3","gravatar_id":"","url":"https://api.github.com/users/Aridjar","html_url":"https://github.com/Aridjar","followers_url":"https://api.github.com/users/Aridjar/followers","following_url":"https://api.github.com/users/Aridjar/following{/other_user}","gists_url":"https://api.github.com/users/Aridjar/gists{/gist_id}","starred_url":"https://api.github.com/users/Aridjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aridjar/subscriptions","organizations_url":"https://api.github.com/users/Aridjar/orgs","repos_url":"https://api.github.com/users/Aridjar/repos","events_url":"https://api.github.com/users/Aridjar/events{/privacy}","received_events_url":"https://api.github.com/users/Aridjar/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-17T16:07:28Z","updated_at":"2017-02-07T13:15:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1b5fc27deaf7bdb74b55f9f2d2fac6bdb58793d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/87/commits","review_comments_url":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/87/comments","review_comment_url":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/87/comments","statuses_url":"https://api.github.com/repos/mailjet/mailjet-gem/statuses/dd14c5e01568bb021797ce8da5b78d5250f94b72","head":{"label":"mailjet:v3.1-smart","ref":"v3.1-smart","sha":"dd14c5e01568bb021797ce8da5b78d5250f94b72","user":{"login":"mailjet","id":1148168,"avatar_url":"https://avatars.githubusercontent.com/u/1148168?v=3","gravatar_id":"","url":"https://api.github.com/users/mailjet","html_url":"https://github.com/mailjet","followers_url":"https://api.github.com/users/mailjet/followers","following_url":"https://api.github.com/users/mailjet/following{/other_user}","gists_url":"https://api.github.com/users/mailjet/gists{/gist_id}","starred_url":"https://api.github.com/users/mailjet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mailjet/subscriptions","organizations_url":"https://api.github.com/users/mailjet/orgs","repos_url":"https://api.github.com/users/mailjet/repos","events_url":"https://api.github.com/users/mailjet/events{/privacy}","received_events_url":"https://api.github.com/users/mailjet/received_events","type":"Organization","site_admin":false},"repo":{"id":3832506,"name":"mailjet-gem","full_name":"mailjet/mailjet-gem","owner":{"login":"mailjet","id":1148168,"avatar_url":"https://avatars.githubusercontent.com/u/1148168?v=3","gravatar_id":"","url":"https://api.github.com/users/mailjet","html_url":"https://github.com/mailjet","followers_url":"https://api.github.com/users/mailjet/followers","following_url":"https://api.github.com/users/mailjet/following{/other_user}","gists_url":"https://api.github.com/users/mailjet/gists{/gist_id}","starred_url":"https://api.github.com/users/mailjet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mailjet/subscriptions","organizations_url":"https://api.github.com/users/mailjet/orgs","repos_url":"https://api.github.com/users/mailjet/repos","events_url":"https://api.github.com/users/mailjet/events{/privacy}","received_events_url":"https://api.github.com/users/mailjet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mailjet/mailjet-gem","description":"[API v3] Mailjet official Ruby GEM","fork":false,"url":"https://api.github.com/repos/mailjet/mailjet-gem","forks_url":"https://api.github.com/repos/mailjet/mailjet-gem/forks","keys_url":"https://api.github.com/repos/mailjet/mailjet-gem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mailjet/mailjet-gem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mailjet/mailjet-gem/teams","hooks_url":"https://api.github.com/repos/mailjet/mailjet-gem/hooks","issue_events_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/events{/number}","events_url":"https://api.github.com/repos/mailjet/mailjet-gem/events","assignees_url":"https://api.github.com/repos/mailjet/mailjet-gem/assignees{/user}","branches_url":"https://api.github.com/repos/mailjet/mailjet-gem/branches{/branch}","tags_url":"https://api.github.com/repos/mailjet/mailjet-gem/tags","blobs_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/refs{/sha}","trees_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mailjet/mailjet-gem/statuses/{sha}","languages_url":"https://api.github.com/repos/mailjet/mailjet-gem/languages","stargazers_url":"https://api.github.com/repos/mailjet/mailjet-gem/stargazers","contributors_url":"https://api.github.com/repos/mailjet/mailjet-gem/contributors","subscribers_url":"https://api.github.com/repos/mailjet/mailjet-gem/subscribers","subscription_url":"https://api.github.com/repos/mailjet/mailjet-gem/subscription","commits_url":"https://api.github.com/repos/mailjet/mailjet-gem/commits{/sha}","git_commits_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/commits{/sha}","comments_url":"https://api.github.com/repos/mailjet/mailjet-gem/comments{/number}","issue_comment_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/comments{/number}","contents_url":"https://api.github.com/repos/mailjet/mailjet-gem/contents/{+path}","compare_url":"https://api.github.com/repos/mailjet/mailjet-gem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mailjet/mailjet-gem/merges","archive_url":"https://api.github.com/repos/mailjet/mailjet-gem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mailjet/mailjet-gem/downloads","issues_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues{/number}","pulls_url":"https://api.github.com/repos/mailjet/mailjet-gem/pulls{/number}","milestones_url":"https://api.github.com/repos/mailjet/mailjet-gem/milestones{/number}","notifications_url":"https://api.github.com/repos/mailjet/mailjet-gem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mailjet/mailjet-gem/labels{/name}","releases_url":"https://api.github.com/repos/mailjet/mailjet-gem/releases{/id}","deployments_url":"https://api.github.com/repos/mailjet/mailjet-gem/deployments","created_at":"2012-03-26T12:31:19Z","updated_at":"2017-01-30T14:30:04Z","pushed_at":"2017-01-17T16:11:36Z","git_url":"git://github.com/mailjet/mailjet-gem.git","ssh_url":"git@github.com:mailjet/mailjet-gem.git","clone_url":"https://github.com/mailjet/mailjet-gem.git","svn_url":"https://github.com/mailjet/mailjet-gem","homepage":"https://dev.mailjet.com","size":442,"stargazers_count":70,"watchers_count":70,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":3,"forks":38,"open_issues":3,"watchers":70,"default_branch":"master"}},"base":{"label":"mailjet:master","ref":"master","sha":"c29c8a726ae1bcca27e836ca4e0f6df6fb4920ef","user":{"login":"mailjet","id":1148168,"avatar_url":"https://avatars.githubusercontent.com/u/1148168?v=3","gravatar_id":"","url":"https://api.github.com/users/mailjet","html_url":"https://github.com/mailjet","followers_url":"https://api.github.com/users/mailjet/followers","following_url":"https://api.github.com/users/mailjet/following{/other_user}","gists_url":"https://api.github.com/users/mailjet/gists{/gist_id}","starred_url":"https://api.github.com/users/mailjet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mailjet/subscriptions","organizations_url":"https://api.github.com/users/mailjet/orgs","repos_url":"https://api.github.com/users/mailjet/repos","events_url":"https://api.github.com/users/mailjet/events{/privacy}","received_events_url":"https://api.github.com/users/mailjet/received_events","type":"Organization","site_admin":false},"repo":{"id":3832506,"name":"mailjet-gem","full_name":"mailjet/mailjet-gem","owner":{"login":"mailjet","id":1148168,"avatar_url":"https://avatars.githubusercontent.com/u/1148168?v=3","gravatar_id":"","url":"https://api.github.com/users/mailjet","html_url":"https://github.com/mailjet","followers_url":"https://api.github.com/users/mailjet/followers","following_url":"https://api.github.com/users/mailjet/following{/other_user}","gists_url":"https://api.github.com/users/mailjet/gists{/gist_id}","starred_url":"https://api.github.com/users/mailjet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mailjet/subscriptions","organizations_url":"https://api.github.com/users/mailjet/orgs","repos_url":"https://api.github.com/users/mailjet/repos","events_url":"https://api.github.com/users/mailjet/events{/privacy}","received_events_url":"https://api.github.com/users/mailjet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mailjet/mailjet-gem","description":"[API v3] Mailjet official Ruby GEM","fork":false,"url":"https://api.github.com/repos/mailjet/mailjet-gem","forks_url":"https://api.github.com/repos/mailjet/mailjet-gem/forks","keys_url":"https://api.github.com/repos/mailjet/mailjet-gem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mailjet/mailjet-gem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mailjet/mailjet-gem/teams","hooks_url":"https://api.github.com/repos/mailjet/mailjet-gem/hooks","issue_events_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/events{/number}","events_url":"https://api.github.com/repos/mailjet/mailjet-gem/events","assignees_url":"https://api.github.com/repos/mailjet/mailjet-gem/assignees{/user}","branches_url":"https://api.github.com/repos/mailjet/mailjet-gem/branches{/branch}","tags_url":"https://api.github.com/repos/mailjet/mailjet-gem/tags","blobs_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/refs{/sha}","trees_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mailjet/mailjet-gem/statuses/{sha}","languages_url":"https://api.github.com/repos/mailjet/mailjet-gem/languages","stargazers_url":"https://api.github.com/repos/mailjet/mailjet-gem/stargazers","contributors_url":"https://api.github.com/repos/mailjet/mailjet-gem/contributors","subscribers_url":"https://api.github.com/repos/mailjet/mailjet-gem/subscribers","subscription_url":"https://api.github.com/repos/mailjet/mailjet-gem/subscription","commits_url":"https://api.github.com/repos/mailjet/mailjet-gem/commits{/sha}","git_commits_url":"https://api.github.com/repos/mailjet/mailjet-gem/git/commits{/sha}","comments_url":"https://api.github.com/repos/mailjet/mailjet-gem/comments{/number}","issue_comment_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/comments{/number}","contents_url":"https://api.github.com/repos/mailjet/mailjet-gem/contents/{+path}","compare_url":"https://api.github.com/repos/mailjet/mailjet-gem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mailjet/mailjet-gem/merges","archive_url":"https://api.github.com/repos/mailjet/mailjet-gem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mailjet/mailjet-gem/downloads","issues_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues{/number}","pulls_url":"https://api.github.com/repos/mailjet/mailjet-gem/pulls{/number}","milestones_url":"https://api.github.com/repos/mailjet/mailjet-gem/milestones{/number}","notifications_url":"https://api.github.com/repos/mailjet/mailjet-gem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mailjet/mailjet-gem/labels{/name}","releases_url":"https://api.github.com/repos/mailjet/mailjet-gem/releases{/id}","deployments_url":"https://api.github.com/repos/mailjet/mailjet-gem/deployments","created_at":"2012-03-26T12:31:19Z","updated_at":"2017-01-30T14:30:04Z","pushed_at":"2017-01-17T16:11:36Z","git_url":"git://github.com/mailjet/mailjet-gem.git","ssh_url":"git@github.com:mailjet/mailjet-gem.git","clone_url":"https://github.com/mailjet/mailjet-gem.git","svn_url":"https://github.com/mailjet/mailjet-gem","homepage":"https://dev.mailjet.com","size":442,"stargazers_count":70,"watchers_count":70,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":3,"forks":38,"open_issues":3,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/87"},"html":{"href":"https://github.com/mailjet/mailjet-gem/pull/87"},"issue":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/issues/87"},"comments":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/mailjet/mailjet-gem/statuses/dd14c5e01568bb021797ce8da5b78d5250f94b72"}}}}
{"actor":{"display_login":"arnaudbreton"}}