You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2016/04/15 22:49:33 UTC
[1/5] cordova-plugin-network-information git commit: CB-10368
Incremented plugin version.
Repository: cordova-plugin-network-information
Updated Branches:
refs/heads/1.2.x b0375e549 -> 09b46b2c6
CB-10368 Incremented plugin version.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/7ca10c7d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/7ca10c7d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/7ca10c7d
Branch: refs/heads/1.2.x
Commit: 7ca10c7d151c6f50e25dc387e4876383f9f0edbf
Parents: b0375e5
Author: Steve Gill <st...@gmail.com>
Authored: Fri Jan 15 16:58:32 2016 -0800
Committer: Steve Gill <st...@gmail.com>
Committed: Fri Jan 15 16:58:32 2016 -0800
----------------------------------------------------------------------
package.json | 2 +-
plugin.xml | 2 +-
tests/plugin.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/7ca10c7d/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 76d116a..0e049f3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-network-information",
- "version": "1.2.0",
+ "version": "1.2.1-dev",
"description": "Cordova Network Information Plugin",
"cordova": {
"id": "cordova-plugin-network-information",
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/7ca10c7d/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 7160994..20eea08 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -21,7 +21,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-network-information"
- version="1.2.0">
+ version="1.2.1-dev">
<name>Network Information</name>
<description>Cordova Network Information Plugin</description>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/7ca10c7d/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index b4c03ea..25ff0fc 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -21,7 +21,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-network-information-tests"
- version="1.2.0">
+ version="1.2.1-dev">
<name>Cordova Network Information Plugin Tests</name>
<license>Apache 2.0</license>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[3/5] cordova-plugin-network-information git commit: CB-10636 Add
JSHint for plugins
Posted by st...@apache.org.
CB-10636 Add JSHint for plugins
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/b6f537fe
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/b6f537fe
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/b6f537fe
Branch: refs/heads/1.2.x
Commit: b6f537fe4c460fc5eb28837ac5314932f40d672a
Parents: e95dc3b
Author: daserge <v-...@microsoft.com>
Authored: Tue Mar 1 10:11:09 2016 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Tue Mar 1 10:23:03 2016 +0300
----------------------------------------------------------------------
.gitignore | 2 +-
.jshintrc | 17 +++++++++++++++++
.travis.yml | 4 ++++
README.md | 2 ++
package.json | 9 ++++++++-
src/blackberry10/index.js | 2 ++
src/browser/network.js | 2 --
src/firefoxos/NetworkProxy.js | 7 +++----
src/tizen/NetworkProxy.js | 3 ++-
src/windows/NetworkInfoProxy.js | 7 +------
tests/tests.js | 3 +++
11 files changed, 43 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 52b558e..6964ea0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,7 +12,7 @@ Thumbs.db
*.swp
*.user
-
+node_modules
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/.jshintrc
----------------------------------------------------------------------
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..df32482
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,17 @@
+{
+ "browser": true
+ , "devel": true
+ , "bitwise": true
+ , "undef": true
+ , "trailing": true
+ , "quotmark": false
+ , "indent": 4
+ , "unused": "vars"
+ , "latedef": "nofunc"
+ , "globals": {
+ "module": false,
+ "exports": false,
+ "require": false,
+ "cordova": true
+ }
+}
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..b9af4c5
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,4 @@
+language: node_js
+sudo: false
+node_js:
+ - "4.2"
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 3136147..ed341f4 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,8 @@
# under the License.
-->
+[](https://travis-ci.org/apache/cordova-plugin-network-information)
+
# cordova-plugin-network-information
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index e4bf913..bbc5bde 100644
--- a/package.json
+++ b/package.json
@@ -41,6 +41,13 @@
"cordova-tizen",
"cordova-browser"
],
+ "scripts": {
+ "test": "npm run jshint",
+ "jshint": "jshint www && jshint src && jshint tests"
+ },
"author": "Apache Software Foundation",
- "license": "Apache-2.0"
+ "license": "Apache-2.0",
+ "devDependencies": {
+ "jshint": "^2.6.0"
+ }
}
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/src/blackberry10/index.js
----------------------------------------------------------------------
diff --git a/src/blackberry10/index.js b/src/blackberry10/index.js
index d47d840..c6cd00a 100644
--- a/src/blackberry10/index.js
+++ b/src/blackberry10/index.js
@@ -19,6 +19,8 @@
*
*/
+/* global PluginResult */
+
//map from BB10 to cordova connection types:
//https://github.com/apache/cordova-js/blob/master/lib/common/plugin/Connection.js
function mapConnectionType(con) {
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/src/browser/network.js
----------------------------------------------------------------------
diff --git a/src/browser/network.js b/src/browser/network.js
index 5769dd9..8a6ddb0 100644
--- a/src/browser/network.js
+++ b/src/browser/network.js
@@ -18,8 +18,6 @@
*
*/
-/*global module, require*/
-
var cordova = require('cordova'),
proxy = require("cordova/exec/proxy"),
Connection = require('./Connection');
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/src/firefoxos/NetworkProxy.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/NetworkProxy.js b/src/firefoxos/NetworkProxy.js
index 40d6163..8c82557 100644
--- a/src/firefoxos/NetworkProxy.js
+++ b/src/firefoxos/NetworkProxy.js
@@ -24,8 +24,7 @@
and http://w3c.github.io/netinfo/
*/
-var cordova = require('cordova'),
- Connection = require('./Connection'),
+var Connection = require('./Connection'),
modulemapper = require('cordova/modulemapper');
var origConnection = modulemapper.getOriginalSymbol(window, 'navigator.connection');
@@ -47,7 +46,7 @@ module.exports = {
metered = connection.metered,
type = connection.type;
- if (type != undefined) {
+ if (type !== undefined) {
// For more information see:
// https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API
@@ -65,7 +64,7 @@ module.exports = {
connectionType = Connection.NONE;
break;
}
- } else if (bandwidth != undefined && metered != undefined) {
+ } else if (bandwidth !== undefined && metered !== undefined) {
/*
bandwidth of type double, readonly
The user agent must set the value of the bandwidth attribute to:
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/src/tizen/NetworkProxy.js
----------------------------------------------------------------------
diff --git a/src/tizen/NetworkProxy.js b/src/tizen/NetworkProxy.js
index cd9506e..d2de2cc 100644
--- a/src/tizen/NetworkProxy.js
+++ b/src/tizen/NetworkProxy.js
@@ -19,7 +19,8 @@
*
*/
-var cordova = require('cordova');
+/* global tizen */
+
var Connection = require('./Connection');
module.exports = {
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/src/windows/NetworkInfoProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/NetworkInfoProxy.js b/src/windows/NetworkInfoProxy.js
index 27ad2f0..92153c7 100644
--- a/src/windows/NetworkInfoProxy.js
+++ b/src/windows/NetworkInfoProxy.js
@@ -21,15 +21,10 @@
/*global Windows:true */
-var cordova = require('cordova');
var Connection = require('./Connection');
var winNetConn = Windows.Networking.Connectivity;
var networkInfo = winNetConn.NetworkInformation;
-var networkCostInfo = winNetConn.NetworkCostType;
-var networkConnectivityInfo = winNetConn.NetworkConnectivityLevel;
-var networkAuthenticationInfo = winNetConn.NetworkAuthenticationType;
-var networkEncryptionInfo = winNetConn.NetworkEncryptionType;
function getCurrrentConnectionType() {
@@ -76,7 +71,7 @@ module.exports = {
{
var reportConnectionInfoOnce = function () {
win(getCurrrentConnectionType(), { keepCallback: true });
- }
+ };
// report current connection type
setTimeout(reportConnectionInfoOnce, 0);
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6f537fe/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 23be97a..07f4b27 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -19,6 +19,9 @@
*
*/
+/* jshint jasmine: true */
+/* global Connection */
+
exports.defineAutoTests = function () {
describe('Network (navigator.connection)', function () {
it("network.spec.1 should exist", function () {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[5/5] cordova-plugin-network-information git commit: Updated version
and RELEASENOTES.md for release 1.2.1
Posted by st...@apache.org.
Updated version and RELEASENOTES.md for release 1.2.1
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/09b46b2c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/09b46b2c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/09b46b2c
Branch: refs/heads/1.2.x
Commit: 09b46b2c612a97d963e00ab4739b1370efe538a3
Parents: 079c10d
Author: Steve Gill <st...@gmail.com>
Authored: Fri Apr 15 13:08:27 2016 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Fri Apr 15 13:08:27 2016 -0700
----------------------------------------------------------------------
RELEASENOTES.md | 4 ++++
package.json | 2 +-
plugin.xml | 2 +-
tests/plugin.xml | 2 +-
4 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/09b46b2c/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 00b5a0f..82f1a86 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -20,6 +20,10 @@
-->
# Release Notes
+### 1.2.1 (Apr 15, 2016)
+* CB-10763: Remove emoji in `cordova-plugin-network-information`
+* CB-10636 Add `JSHint` for plugins
+
### 1.2.0 (Jan 15, 2016)
* Adding `CoreTelephony` to `plugin.xml`
* Adding notification for `CT radio` information
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/09b46b2c/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index bbc5bde..6e341ff 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-network-information",
- "version": "1.2.1-dev",
+ "version": "1.2.1",
"description": "Cordova Network Information Plugin",
"cordova": {
"id": "cordova-plugin-network-information",
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/09b46b2c/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 20eea08..eb7e807 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -21,7 +21,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-network-information"
- version="1.2.1-dev">
+ version="1.2.1">
<name>Network Information</name>
<description>Cordova Network Information Plugin</description>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/09b46b2c/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index 25ff0fc..dedbc2a 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -21,7 +21,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-network-information-tests"
- version="1.2.1-dev">
+ version="1.2.1">
<name>Cordova Network Information Plugin Tests</name>
<license>Apache 2.0</license>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[4/5] cordova-plugin-network-information git commit: CB-10763: Remove
emoji in cordova-plugin-network-information
Posted by st...@apache.org.
CB-10763: Remove emoji in cordova-plugin-network-information
Removing warning emoji
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/079c10d4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/079c10d4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/079c10d4
Branch: refs/heads/1.2.x
Commit: 079c10d412549c53c207e5b5cc010957c6b447c6
Parents: b6f537f
Author: Sarangan Rajamanickam <sa...@microsoft.com>
Authored: Wed Mar 2 16:40:06 2016 -0800
Committer: Sarangan Rajamanickam <sa...@microsoft.com>
Committed: Wed Mar 2 17:33:45 2016 -0800
----------------------------------------------------------------------
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/079c10d4/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index ed341f4..2eabd1e 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ This plugin provides an implementation of an old version of the
It provides information about the device's cellular and
wifi connection, and whether the device has an internet connection.
-:warning: Report issues on the [Apache Cordova issue tracker](https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20in%20%28Open%2C%20%22In%20Progress%22%2C%20Reopened%29%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20%22Plugin%20Network%20Information%22%20ORDER%20BY%20priority%20DESC%2C%20summary%20ASC%2C%20updatedDate%20DESC)
+Report issues with this plugin on the [Apache Cordova issue tracker][Apache Cordova issue tracker].
## Installation
@@ -209,3 +209,5 @@ When running in the Emulator, the `connection.status` is always unknown, so this
### Windows Phone 8 Quirks
The Emulator reports the connection type as `Cellular`, which does not change, so events does _not_ fire.
+
+[Apache Cordova issue tracker]: https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20in%20%28Open%2C%20%22In%20Progress%22%2C%20Reopened%29%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20%22Plugin%20Network%20Information%22%20ORDER%20BY%20priority%20DESC%2C%20summary%20ASC%2C%20updatedDate%20DESC
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/5] cordova-plugin-network-information git commit: chore: edit
package.json license to match SPDX id
Posted by st...@apache.org.
chore: edit package.json license to match SPDX id
See [NPM package.json spec for licenses](https://docs.npmjs.com/files/package.json#license) and [SPDX license IDs](https://spdx.org/licenses/)
X-ref: https://github.com/apache/cordova-plugin-device/pull/48
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/e95dc3b9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/e95dc3b9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/e95dc3b9
Branch: refs/heads/1.2.x
Commit: e95dc3b9abf2d63aa62c6c2c1fdea1dfe91225b8
Parents: 7ca10c7
Author: t1st3 <co...@tiste.org>
Authored: Mon Feb 8 10:32:48 2016 +0100
Committer: t1st3 <co...@tiste.org>
Committed: Mon Feb 8 10:32:48 2016 +0100
----------------------------------------------------------------------
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/e95dc3b9/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 0e049f3..e4bf913 100644
--- a/package.json
+++ b/package.json
@@ -42,5 +42,5 @@
"cordova-browser"
],
"author": "Apache Software Foundation",
- "license": "Apache 2.0"
+ "license": "Apache-2.0"
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org