Permalink
Browse files

Verion bump 0.2.8 (plus, sanity check for version in tests)

  • Loading branch information...
1 parent 3b206f0 commit 07e93f39d4c82019cd270a9a9331748f5d40d1c4 @motdotla motdotla committed Jul 18, 2013
Showing with 9 additions and 2 deletions.
  1. +2 −0 lib/sendgrid.js
  2. +3 −2 package.json
  3. +4 −0 test/lib/sendgrid.test.js
View
@@ -1,5 +1,6 @@
"use strict";
+var package_json = require('./../package.json');
var querystring = require('querystring');
var https = require('https');
var nodemailer = require('nodemailer');
@@ -22,6 +23,7 @@ if (process.env.NODE_ENV == "test") {
function SendGrid(api_user, api_key) {
this.api_user = api_user;
this.api_key = api_key;
+ this.version = package_json.version;
}
/*
View
@@ -4,11 +4,12 @@
"Kyle Partridge <kyle.partridge@sendgrid.com>",
"David Tomberlin <david.tomberlin@sendgrid.com>",
"Swift <swift@sendgrid.com>",
- "Brandon West <brandon.west@sendgrid.com>"
+ "Brandon West <brandon.west@sendgrid.com>",
+ "Scott Motte <scott.motte@sendgrid.com>"
],
"name": "sendgrid",
"description": "A NodeJS implementation of the SendGrid Api.",
- "version": "0.2.7",
+ "version": "0.2.8",
"homepage": "http://sendgrid.com",
"repository": {
"type": "git",
@@ -25,6 +25,10 @@ describe('SendGrid', function () {
sendgrid = new SendGrid(API_USER, API_KEY);
});
+ it('version should be set', function() {
+ expect(sendgrid.version).to.equal("0.2.8");
+ });
+
describe('#send', function() {
var payload, mock, webApi, postParams, postParamsString;

0 comments on commit 07e93f3

Please sign in to comment.