From 2c27a82cb6b31126c1c0e97caa4a1a77fb56eb36 Mon Sep 17 00:00:00 2001 From: Carlos Lalimarmo Date: Wed, 18 Feb 2015 17:52:27 -0500 Subject: [PATCH] Permit a complete callback when opening a file to allow consumers to specify code to always run, after a successful or errorful opening of a file --- dist/json-gcs.js | 2 +- lib/file.js | 1 + lib/storage.js | 4 +++- spec/json_gcs_spec.coffee | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/json-gcs.js b/dist/json-gcs.js index 524a203..dbd4747 100644 --- a/dist/json-gcs.js +++ b/dist/json-gcs.js @@ -1 +1 @@ -define("ensure",[],function(){return function(n,t){for(var e={},r=0;r JsonGCS = require('json-gcs') - describe 'JsonGCS', -> + describe 'JsonGCS.Storage', -> mocks = {} instance = null @@ -12,7 +12,7 @@ define (require) -> } mocks.http = {} - instance = JsonGCS( + instance = JsonGCS.Storage( http: mocks.http authenticator: mocks.authenticator bucketName: 'my-bucket'