Skip to content

Commit

Permalink
Merge pull request #839 from uProxy/lucyhe-update_uproxy_lib_dep
Browse files Browse the repository at this point in the history
Update uProxy, Chrome webstore and dependency versions
  • Loading branch information
lucyhe committed Feb 3, 2015
2 parents b4d6407 + 91a025b commit f88170d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "uProxy",
"description": "Share your pathway to the Internet",
"version": "0.4.0",
"version": "0.6.0",
"repository": {
"type": "git",
"url": "https://github.com/uproxy/uproxy"
Expand All @@ -18,9 +18,9 @@
],
"devDependencies": {
"es6-promise": "^0.1.1",
"freedom-social-xmpp": "~0.3.5",
"freedom-for-chrome": "~0.4.8",
"freedom-for-firefox": "~0.6.6",
"freedom-social-xmpp": "~0.3.6",
"freedom-for-chrome": "~0.4.11",
"freedom-for-firefox": "~0.6.7",
"fs-extra": "^0.12.0",
"grunt": "~0.4.2",
"grunt-contrib-clean": "~0.5.0",
Expand All @@ -40,11 +40,11 @@
"grunt-vulcanize": "^0.6.0",
"typescript": "^1.0.1",
"uproxy-churn": "^0.0.5",
"uproxy-lib": "^17.0.0",
"uproxy-lib": "^18.0.0",
"uproxy-networking": "^5.0.0"
},
"peerDependencies" : {
"freedom": "~0.6.11"
"freedom": "~0.6.18"
},
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "__MSG_appName__",
"description": "__MSG_appDescription__",
"minimum_chrome_version": "41.0.2267",
"version": "0.5.3",
"version": "0.6.0",
"default_locale": "en",
"icons": {
"128": "icons/default-128.png",
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "__MSG_extName__",
"version": "0.5.3",
"version": "0.6.0",
"manifest_version": 2,
"description": "__MSG_extDescription__",
"minimum_chrome_version": "41.0.2267",
Expand Down
9 changes: 9 additions & 0 deletions src/mocks/freedom-mocks.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/**
* freedom-mocks.ts
*
* Mock freedom objects used for uProxy unit tests. The mock classes below
* implement different freedom interfaces found in freedom/typings/freedom.d.ts.
* This file must be compiled independently of all other typescript in uProxy.
*/

/// <reference path='../third_party/typings/es6-promise/es6-promise.d.ts' />
/// <reference path='../third_party/typings/jasmine/jasmine.d.ts' />
/// <reference path='../freedom/typings/storage.d.ts' />


Expand All @@ -20,6 +23,11 @@ class MockCore {

public getId = () => { return ['useless']; }

public getLogger = (tag) => {
var logger = jasmine.createSpyObj('logger-'+tag, ['log', 'info', 'error']);
freedom['loggers'][tag] = logger;
return Promise.resolve(logger);
}
} // class MockCore

class MockCorePeerConnection {
Expand Down Expand Up @@ -106,6 +114,7 @@ var mockSocial = () => { return new MockSocial(); };
mockSocial['api'] = 'social';
mockSocial['manifest'] = 'I have no manifest :)';

freedom['loggers'] = {};
freedom['core'] = () => { return new MockCore(); };
freedom['core.console'] = () => { return new MockLog(); };
freedom['core.rtcpeerconnection'] = () => { return new MockCorePeerConnection(); };
Expand Down

0 comments on commit f88170d

Please sign in to comment.