Skip to content

Commit

Permalink
Merge pull request #12 from koopjs/greenkeeper/initial
Browse files Browse the repository at this point in the history
Update dependencies to enable Greenkeeper 🌴
  • Loading branch information
Daniel Fenton authored Mar 16, 2017
2 parents 1ea82d6 + 18fdb47 commit 4618650
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: node_js

node_js:
- '0.12'
- '0.10'
- 6
sudo: false
cache:
directories:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# koop-gist

[![Greenkeeper badge](https://badges.greenkeeper.io/koopjs/koop-gist.svg)](https://greenkeeper.io/)

> Github gist provider for [Koop](https://github.com/esri/koop)
[![npm][npm-image]][npm-url]
Expand Down
5 changes: 3 additions & 2 deletions controller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var crypto = require('crypto')
var provider = require('koop-provider')
var request = require('request')
var pkg = require('../package.json')
var path = require('path')

/**
* creates new gist controller
Expand All @@ -18,7 +19,7 @@ var gistController = function (model) {
* @param {object} res - outgoing response object
*/
ctrl.index = function (req, res) {
res.render(__dirname + '/../views/index', {
res.render(path.join(__dirname, '/../views/index'), {
baseUrl: req.baseUrl
})
}
Expand All @@ -30,7 +31,7 @@ var gistController = function (model) {
* @param {object} res - outgoing response object
*/
ctrl.preview = function (req, res) {
res.render(__dirname + '/../views/demo', {
res.render(path.join(__dirname, '/../views/demo'), {
baseUrl: req.baseUrl,
id: req.params.id
})
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
},
"dependencies": {
"debug": "^2.2.0",
"ejs": "^1.0.0",
"ejs": "^2.5.6",
"geohub": "^1.0.2",
"koop-provider": "^1.0.0",
"request": "^2.65.0"
},
"devDependencies": {
"koop": "^2.8.6",
"standard": "^5.3.1",
"supertest": "^0.11.0",
"koop": "2.12.1",
"standard": "^9.0.1",
"supertest": "^3.0.0",
"tap-spec": "^4.0.2",
"tape": "^4.2.0"
},
Expand Down
3 changes: 2 additions & 1 deletion test/model-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ var test = require('tape')
var koop = require('koop/lib')
var createGistModel = require('../model')
var gistId = 'c82a80ee4c5b91889efe'
var path = require('path')

koop.config = {
data_dir: __dirname + '/output/',
data_dir: path.join(__dirname, '/output/'),
ghtoken: process.env.KOOP_GIST_TOKEN
}
koop.log = new koop.Logger({})
Expand Down

0 comments on commit 4618650

Please sign in to comment.