Skip to content

Commit

Permalink
Upgrade dependencies. Make things work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Feb 5, 2015
1 parent 9609cab commit 7b87f6e
Show file tree
Hide file tree
Showing 278 changed files with 37,240 additions and 76,838 deletions.
11 changes: 7 additions & 4 deletions lib/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions lib/routes/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,20 @@
},
"homepage": "https://github.com/eiriksm/cloaked-dangerzone",
"devDependencies": {
"coffee-script": "~1.7.1",
"coveralls": "~2.11.1",
"istanbul": "~0.3.0",
"mocha": "~1.21.4",
"should": "~4.0.4",
"supertest": "~0.13.0"
"coffee-script": "~1.9.0",
"coveralls": "~2.11.2",
"istanbul": "~0.3.5",
"mocha": "~2.1.0",
"should": "~4.6.4",
"supertest": "~0.15.0"
},
"dependencies": {
"compression": "~1.0.11",
"express": "~4.8.4",
"http-auth": "^2.1.9",
"compression": "~1.4.0",
"cors": "^2.5.3",
"express": "~4.11.2",
"http-auth": "^2.2.5",
"tripping-octo-nemesis": "~0.1.0",
"underscore": "^1.6.0",
"underscore": "^1.7.0",
"yaml-config": "~0.3.0"
}
}
2 changes: 2 additions & 0 deletions src/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ express = require 'express'
compress = require 'compression'
auth = require 'http-auth'
octo = require 'tripping-octo-nemesis'
cors = require 'cors'

app = express()
app.use cors()

app.users = {}

Expand Down
6 changes: 3 additions & 3 deletions src/routes/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports =
user: (req, res) ->
user = req.params.user
if !app.users[user]
res.send 404
res.sendStatus 404
return
if app.cache[user]
c = app.cache[user].unix
Expand All @@ -28,13 +28,13 @@ module.exports =
app.cache[user] = data
res.send data
return
res.send 500, 'problems'
res.sendStatus 500, 'problems'

allusers: (req, res) ->
if app.users[req.user]
res.send [req.user]
else
res.send 404
res.sendStatus 404

unbook: (req, res) ->
user = req.params.user
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions static/dartangular/.pub/bin/sdk-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8.5
19 changes: 19 additions & 0 deletions static/dartangular/.pub/deps/debug/di/lib/annotations.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
library di.annotations;

/**
* Annotation that can be applied to the library declaration listing all
* types for which type factories should be generated to be used
* by StaticInjector.
*/
class Injectables {
final List<Type> types;
const Injectables(this.types);
}

/**
* Annotation that can be applied to a class for which type factories
* should be generated to be used by StaticInjector.
*/
class Injectable {
const Injectable();
}
66 changes: 66 additions & 0 deletions static/dartangular/.pub/deps/debug/di/lib/check_bind_args.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
library di.check_bind_args;

import "src/module.dart";
export "src/module.dart" show DEFAULT_VALUE, IDENTITY, isSet, isNotSet;

checkBindArgs(dynamic toValue, Function toFactory,
Type toImplementation, List inject, toInstanceOf) {
int count = 0;
bool argCountMatch = true;
if (isSet(toValue)) count++;
if (isSet(toFactory)) {
count++;
var len = inject.length;
switch (len) {
case 0: argCountMatch = toFactory is _0; break;
case 1: argCountMatch = toFactory is _1; break;
case 2: argCountMatch = toFactory is _2; break;
case 3: argCountMatch = toFactory is _3; break;
case 4: argCountMatch = toFactory is _4; break;
case 5: argCountMatch = toFactory is _5; break;
case 6: argCountMatch = toFactory is _6; break;
case 7: argCountMatch = toFactory is _7; break;
case 8: argCountMatch = toFactory is _8; break;
case 9: argCountMatch = toFactory is _9; break;
case 10: argCountMatch = toFactory is _10; break;
case 11: argCountMatch = toFactory is _11; break;
case 12: argCountMatch = toFactory is _12; break;
case 13: argCountMatch = toFactory is _13; break;
case 14: argCountMatch = toFactory is _14; break;
case 15: argCountMatch = toFactory is _15; break;
}
if (!argCountMatch) throw "toFactory's argument count does not match amount provided by inject";
}

if (toImplementation != null) count++;
if (toInstanceOf != null) count++;
if (count > 1) {
throw 'Only one of following parameters can be specified: '
'toValue, toFactory, toImplementation, toInstanceOf';
}

if (inject.isNotEmpty && isNotSet(toFactory)) {
throw "Received inject list but toFactory is not set.";
}

return true;
}

typedef _0();
typedef _1(a1);
typedef _2(a1, a2);
typedef _3(a1, a2, a3);
typedef _4(a1, a2, a3, a4);
typedef _5(a1, a2, a3, a4, a5);
typedef _6(a1, a2, a3, a4, a5, a6);
typedef _7(a1, a2, a3, a4, a5, a6, a7);
typedef _8(a1, a2, a3, a4, a5, a6, a7, a8);
typedef _9(a1, a2, a3, a4, a5, a6, a7, a8, a9);
typedef _10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
typedef _11(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
typedef _12(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);
typedef _13(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13);
typedef _14(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
typedef _15(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);

// Generation script in scripts/check_bind_args_script.dart
8 changes: 8 additions & 0 deletions static/dartangular/.pub/deps/debug/di/lib/di.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
library di;

export 'key.dart' show Key, key;
export 'src/injector.dart' show Injector, ModuleInjector;
export 'src/module.dart' show Module, Binding, DEFAULT_VALUE;
export 'src/reflector.dart' show TypeReflector;
export 'src/errors.dart' hide BaseError, PRIMITIVE_TYPES;
export 'annotations.dart' show Injectable, Injectables;
13 changes: 13 additions & 0 deletions static/dartangular/.pub/deps/debug/di/lib/dynamic_injector.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
library di.dynamic_injector;

import 'di.dart';
export 'di.dart';

/**
* A backwards-compatible shim to avoid breaking DI 1 with DI 2.0.0
* TODO: Remove after all apps have been upgraded.
*/
@Deprecated("3.0")
class DynamicInjector extends ModuleInjector {
DynamicInjector({modules}) : super(modules);
}

0 comments on commit 7b87f6e

Please sign in to comment.