Skip to content

Commit

Permalink
Merge pull request #10 from dwyl/2.0
Browse files Browse the repository at this point in the history
2.0
  • Loading branch information
iteles committed Sep 23, 2015
2 parents ab15b63 + 51fe713 commit 7598fbd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Binary file removed dump.rdb
Binary file not shown.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else {
rc = {
port: 6379,
host: '127.0.0.1',
auth: null
auth: '' // Error: The password has to be of type "string"
}
}

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redis-connection",
"version": "1.0.4",
"version": "2.0.0",
"description": "Re-use a single or pool of redis connections across several modules/files in your app.",
"main": "index.js",
"scripts": {
Expand All @@ -25,12 +25,12 @@
"homepage": "https://github.com/dwyl/redis-connection#readme",
"dependencies": {
"hiredis": "^0.4.1",
"redis": "^1.0.0"
"redis": "^2.0.0"
},
"devDependencies": {
"decache": "^3.0.3",
"env2": "^2.0.2",
"istanbul": "^0.3.19",
"istanbul": "^0.3.20",
"tape": "^4.2.0"
}
}
4 changes: 3 additions & 1 deletion test/rediscloud.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ var dir = __dirname.split('/')[__dirname.split('/').length-1];
var file = dir + __filename.replace(__dirname, '') + " -> ";

test(file + " Confirm RedisCloud is accessible GET/SET", function(t) {
// require('env2')('config.env');
console.log(process.env.REDISCLOUD_URL);
var redisClient = require('../index.js')();
redisClient.set('redis', 'working', redisClient.print);
redisClient.set('redis', 'working');
// console.log("✓ Redis Client connected to: " + redisClient.address);
t.ok(redisClient.address !== '127.0.0.1:6379', "✓ Redis Client connected to: " + redisClient.address)
redisClient.get('redis', function (err, reply) {
Expand Down

0 comments on commit 7598fbd

Please sign in to comment.